Handle multiple target events before commit resume
[deliverable/binutils-gdb.git] / Makefile.in
CommitLineData
405ea7a0
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
252b5132
RH
3#
4# Makefile for directory with subdirs to build.
5cec67bf 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
52cf9762 6# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
e3f56a99 7# 2011, 2012, 2013, 2014, 2015, 2016, 2017
1b05fbbd 8# Free Software Foundation
252b5132
RH
9#
10# This file is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
e8a5fa9c 12# the Free Software Foundation; either version 3 of the License, or
252b5132
RH
13# (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
e8a5fa9c
RW
21# along with this program; see the file COPYING3. If not see
22# <http://www.gnu.org/licenses/>.
252b5132
RH
23#
24
0bb6ea20
HPN
25# First, test for a proper version of make, but only where one is required.
26
27@if gcc
28ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty.
29$(error GNU make version 3.80 or newer is required.)
30endif
31@endif gcc
32
50212802
NN
33# -------------------------------
34# Standard Autoconf-set variables
35# -------------------------------
583d52d7 36VPATH=@srcdir@
583d52d7 37
c6b750e1 38build_alias=@build_noncanonical@
4b900473
PB
39build_vendor=@build_vendor@
40build_os=@build_os@
7f121bbf 41build=@build@
c6b750e1 42host_alias=@host_noncanonical@
4b900473
PB
43host_vendor=@host_vendor@
44host_os=@host_os@
7f121bbf 45host=@host@
c6b750e1 46target_alias=@target_noncanonical@
4b900473
PB
47target_vendor=@target_vendor@
48target_os=@target_os@
7f121bbf 49target=@target@
583d52d7 50
50212802 51program_transform_name = @program_transform_name@
403d9505
NN
52
53prefix = @prefix@
54exec_prefix = @exec_prefix@
55
50212802
NN
56srcdir = @srcdir@
57
403d9505
NN
58bindir = @bindir@
59sbindir = @sbindir@
60libexecdir = @libexecdir@
61datadir = @datadir@
62sysconfdir = @sysconfdir@
63sharedstatedir = @sharedstatedir@
64localstatedir = @localstatedir@
65libdir = @libdir@
66includedir = @includedir@
67oldincludedir = @oldincludedir@
68infodir = @infodir@
108a6f8e
CD
69datarootdir = @datarootdir@
70docdir = @docdir@
a3ca38d2 71pdfdir = @pdfdir@
108a6f8e 72htmldir = @htmldir@
403d9505 73mandir = @mandir@
252b5132
RH
74man1dir = $(mandir)/man1
75man2dir = $(mandir)/man2
76man3dir = $(mandir)/man3
77man4dir = $(mandir)/man4
78man5dir = $(mandir)/man5
79man6dir = $(mandir)/man6
80man7dir = $(mandir)/man7
81man8dir = $(mandir)/man8
82man9dir = $(mandir)/man9
d5de0a84 83
e5c3f801
NN
84INSTALL = @INSTALL@
85INSTALL_PROGRAM = @INSTALL_PROGRAM@
86INSTALL_SCRIPT = @INSTALL_SCRIPT@
87INSTALL_DATA = @INSTALL_DATA@
656fdd47
PB
88LN = @LN@
89LN_S = @LN_S@
77d7106f
AM
90MAINT = @MAINT@
91MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
92MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
252b5132 93
50212802
NN
94# -------------------------------------------------
95# Miscellaneous non-standard autoconf-set variables
96# -------------------------------------------------
252b5132 97
50212802
NN
98# The gcc driver likes to know the arguments it was configured with.
99TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
252b5132 100
50212802
NN
101tooldir = @tooldir@
102build_tooldir = @build_tooldir@
252b5132 103
50212802
NN
104# This is the name of the environment variable used for the path to
105# the libraries.
106RPATH_ENVVAR = @RPATH_ENVVAR@
252b5132 107
3bbd2f8f
AL
108# On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path
109# is used instead of the directory itself to avoid including built
110# executables in PATH.
111GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
112
50212802
NN
113# Build programs are put under this directory.
114BUILD_SUBDIR = @build_subdir@
115# This is set by the configure script to the arguments to use when configuring
116# directories built for the build system.
a7254363 117BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
6a9cf61e 118
e8a5fa9c
RW
119# Linker flags to use on the host, for stage1 or when not
120# bootstrapping.
121STAGE1_LDFLAGS = @stage1_ldflags@
122
123# Libraries to use on the host, for stage1 or when not bootstrapping.
124STAGE1_LIBS = @stage1_libs@
125
126# Linker flags to use for stage2 and later.
127POSTSTAGE1_LDFLAGS = @poststage1_ldflags@
128
129# Libraries to use for stage2 and later.
130POSTSTAGE1_LIBS = @poststage1_libs@
131
6a9cf61e
PB
132# This is the list of variables to export in the environment when
133# configuring any subdirectory. It must also be exported whenever
134# recursing into a build directory in case that directory's Makefile
135# re-runs configure.
136BASE_EXPORTS = \
137 FLEX="$(FLEX)"; export FLEX; \
138 LEX="$(LEX)"; export LEX; \
139 BISON="$(BISON)"; export BISON; \
140 YACC="$(YACC)"; export YACC; \
141 M4="$(M4)"; export M4; \
8e957354
PB
142 SED="$(SED)"; export SED; \
143 AWK="$(AWK)"; export AWK; \
6a9cf61e
PB
144 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
145
378fce5b 146# This is the list of variables to export in the environment when
6a9cf61e 147# configuring subdirectories for the build system.
378fce5b 148BUILD_EXPORTS = \
6a9cf61e 149 $(BASE_EXPORTS) \
378fce5b
DD
150 AR="$(AR_FOR_BUILD)"; export AR; \
151 AS="$(AS_FOR_BUILD)"; export AS; \
152 CC="$(CC_FOR_BUILD)"; export CC; \
153 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
154 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
155 CXX="$(CXX_FOR_BUILD)"; export CXX; \
156 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
378fce5b 157 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
e552509b
ILT
158 GOC="$(GOC_FOR_BUILD)"; export GOC; \
159 GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \
378fce5b
DD
160 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
161 LD="$(LD_FOR_BUILD)"; export LD; \
162 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
163 NM="$(NM_FOR_BUILD)"; export NM; \
164 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
0c24b341
NC
165 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
166 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
50212802 167
6641ce42 168# These variables must be set on the make command line for directories
2440009d 169# built for the build system to override those in BASE_FLAGS_TO_PASS.
6641ce42
JM
170EXTRA_BUILD_FLAGS = \
171 CFLAGS="$(CFLAGS_FOR_BUILD)" \
172 LDFLAGS="$(LDFLAGS_FOR_BUILD)"
173
50212802
NN
174# This is the list of directories to built for the host system.
175SUBDIRS = @configdirs@
911e63d0 176TARGET_CONFIGDIRS = @target_configdirs@
50212802
NN
177# This is set by the configure script to the arguments to use when configuring
178# directories built for the host system.
179HOST_CONFIGARGS = @host_configargs@
b00612cc
PB
180# Host programs are put under this directory, which is . except if building
181# with srcdir=..
182HOST_SUBDIR = @host_subdir@
378fce5b 183# This is the list of variables to export in the environment when
be01d343
PB
184# configuring subdirectories for the host system. We need to pass
185# some to the GCC configure because of its hybrid host/target nature.
378fce5b 186HOST_EXPORTS = \
6a9cf61e 187 $(BASE_EXPORTS) \
378fce5b 188 CC="$(CC)"; export CC; \
da888c87 189 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
378fce5b
DD
190 CFLAGS="$(CFLAGS)"; export CFLAGS; \
191 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
192 CXX="$(CXX)"; export CXX; \
193 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1b05fbbd 194 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
9b980aa1 195 GOC="$(GOC)"; export GOC; \
378fce5b
DD
196 AR="$(AR)"; export AR; \
197 AS="$(AS)"; export AS; \
198 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
199 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
200 LD="$(LD)"; export LD; \
e8a5fa9c 201 LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
378fce5b
DD
202 NM="$(NM)"; export NM; \
203 RANLIB="$(RANLIB)"; export RANLIB; \
204 WINDRES="$(WINDRES)"; export WINDRES; \
0c24b341 205 WINDMC="$(WINDMC)"; export WINDMC; \
378fce5b 206 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
95b6a1f2 207 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
b121d7d4 208 READELF="$(READELF)"; export READELF; \
be01d343
PB
209 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
210 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
211 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
212 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
213 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
214 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
6b91c541 215 OBJCOPY_FOR_TARGET="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY_FOR_TARGET; \
be01d343 216 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
b121d7d4 217 READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
378fce5b 218 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
e8a5fa9c 219 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
378fce5b 220 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
315b3b02 221 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
1b6c0831 222 ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
7ec59b9e 223 ISLINC="$(HOST_ISLINC)"; export ISLINC; \
e3f56a99 224 ISLVER="$(HOST_ISLVER)"; export ISLVER; \
22121df0
L
225 LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
226 LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
4849dfd8 227 XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export XGCC_FLAGS_FOR_TARGET; \
f70224b5
PB
228@if gcc-bootstrap
229 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
230@endif gcc-bootstrap
e90269c8 231 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
378fce5b 232
1f53ca9a
AO
233POSTSTAGE1_CXX_EXPORT = \
234 CXX='$(CXX)'; export CXX; \
235 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
236@if target-libstdc++-v3-bootstrap
237# Override the above if we're bootstrapping C++.
238POSTSTAGE1_CXX_EXPORT = \
d2489204 239 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \
1f53ca9a 240 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
1d14850f 241 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
ffdd6afc 242 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
abca8d87 243 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
244 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
245 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$s/libstdc++-v3/libsupc++ \
ffdd6afc
ILT
246 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
247 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \
248 export CXX; \
1f53ca9a
AO
249 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
250@endif target-libstdc++-v3-bootstrap
251
378fce5b 252# Similar, for later GCC stages.
d545f33b 253POSTSTAGE1_HOST_EXPORTS = \
7ffa0b57 254 $(HOST_EXPORTS) \
b00612cc 255 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
1b05fbbd
AO
256 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
257 $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
258 CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
1f53ca9a 259 $(POSTSTAGE1_CXX_EXPORT) \
1b6c0831 260 $(LTO_EXPORTS) \
e8a5fa9c
RW
261 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
262 LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
263 HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
50212802 264
50212802
NN
265# Target libraries are put under this directory:
266TARGET_SUBDIR = @target_subdir@
267# This is set by the configure script to the arguments to use when configuring
268# directories built for the target.
a7254363 269TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
378fce5b 270# This is the list of variables to export in the environment when
f2b2dd91 271# configuring subdirectories for the target system.
378fce5b 272BASE_TARGET_EXPORTS = \
6a9cf61e 273 $(BASE_EXPORTS) \
378fce5b 274 AR="$(AR_FOR_TARGET)"; export AR; \
be01d343 275 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
1b05fbbd
AO
276 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
277 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
378fce5b 278 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
06bcb89d 279 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
1b05fbbd 280 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1b05fbbd 281 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
e552509b 282 GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
378fce5b 283 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
be01d343 284 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
378fce5b 285 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7e0f7140 286 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
be01d343 287 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
5ae72758 288 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
6b91c541 289 OBJCOPY="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY; \
378fce5b 290 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
b121d7d4 291 READELF="$(READELF_FOR_TARGET)"; export READELF; \
7e0f7140 292 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
315b3b02 293 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
0c24b341 294 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
f2b2dd91
RW
295@if gcc-bootstrap
296 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
297@endif gcc-bootstrap
911e63d0
JR
298 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
299 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
378fce5b
DD
300
301RAW_CXX_TARGET_EXPORTS = \
302 $(BASE_TARGET_EXPORTS) \
303 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
1b05fbbd 304 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
378fce5b
DD
305
306NORMAL_TARGET_EXPORTS = \
307 $(BASE_TARGET_EXPORTS) \
1b05fbbd 308 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
50212802 309
4b1cb4fe
DD
310# Where to find GMP
311HOST_GMPLIBS = @gmplibs@
312HOST_GMPINC = @gmpinc@
313
4849dfd8 314# Where to find isl
1b6c0831 315HOST_ISLLIBS = @isllibs@
7ec59b9e 316HOST_ISLINC = @islinc@
e3f56a99 317HOST_ISLVER = @islver@
e28c595f 318
700d40ca
ILT
319# Where to find libelf
320HOST_LIBELFLIBS = @libelflibs@
321HOST_LIBELFINC = @libelfinc@
322
50212802
NN
323# ----------------------------------------------
324# Programs producing files for the BUILD machine
325# ----------------------------------------------
326
f6c1938b 327SHELL = @SHELL@
50212802
NN
328
329# pwd command to use. Allow user to override default by setting PWDCMD in
330# the environment to account for automounters. The make variable must not
331# be called PWDCMD, otherwise the value set here is passed to make
332# subprocesses and overrides the setting from the user's environment.
b40e3958
L
333# Don't use PWD since it is a common shell environment variable and we
334# don't want to corrupt it.
335PWD_COMMAND = $${PWDCMD-pwd}
50212802
NN
336
337# compilers to use to create programs which must be run in the build
338# environment.
b5714970
PB
339AR_FOR_BUILD = @AR_FOR_BUILD@
340AS_FOR_BUILD = @AS_FOR_BUILD@
50212802 341CC_FOR_BUILD = @CC_FOR_BUILD@
5fbad20a 342CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
b5714970
PB
343CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
344CXX_FOR_BUILD = @CXX_FOR_BUILD@
345DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
b5714970 346GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
9b980aa1 347GOC_FOR_BUILD = @GOC_FOR_BUILD@
b5714970
PB
348LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
349LD_FOR_BUILD = @LD_FOR_BUILD@
350NM_FOR_BUILD = @NM_FOR_BUILD@
351RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
352WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
353WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
50212802
NN
354
355# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
356# here so that they can be overridden by Makefile fragments.
50212802
NN
357BUILD_PREFIX = @BUILD_PREFIX@
358BUILD_PREFIX_1 = @BUILD_PREFIX_1@
252b5132 359
0df3d27f
PB
360# Flags to pass to stage2 and later makes. They are defined
361# here so that they can be overridden by Makefile fragments.
362BOOT_CFLAGS= -g -O2
f6d183c0 363BOOT_LDFLAGS=
d7b9dae9 364BOOT_ADAFLAGS= -gnatpg
0df3d27f 365
8e957354
PB
366AWK = @AWK@
367SED = @SED@
be01d343
PB
368BISON = @BISON@
369YACC = @YACC@
370FLEX = @FLEX@
371LEX = @LEX@
372M4 = @M4@
373MAKEINFO = @MAKEINFO@
374EXPECT = @EXPECT@
375RUNTEST = @RUNTEST@
252b5132 376
e3f56a99 377AUTO_PROFILE = gcc-auto-profile -c 1000000
05a13254 378
252b5132
RH
379# This just becomes part of the MAKEINFO definition passed down to
380# sub-makes. It lets flags be given on the command line while still
381# using the makeinfo from the object tree.
62a3fc85
DD
382# (Default to avoid splitting info files by setting the threshold high.)
383MAKEINFOFLAGS = --split-size=5000000
252b5132 384
50212802
NN
385# ---------------------------------------------
386# Programs producing files for the HOST machine
387# ---------------------------------------------
252b5132 388
50212802 389AS = @AS@
50212802
NN
390AR = @AR@
391AR_FLAGS = rc
50212802 392CC = @CC@
50212802 393CXX = @CXX@
50212802 394DLLTOOL = @DLLTOOL@
50212802 395LD = @LD@
be01d343
PB
396LIPO = @LIPO@
397NM = @NM@
80911fe1 398OBJDUMP = @OBJDUMP@
50212802 399RANLIB = @RANLIB@
b121d7d4 400READELF = @READELF@
be01d343 401STRIP = @STRIP@
50212802 402WINDRES = @WINDRES@
0c24b341 403WINDMC = @WINDMC@
252b5132 404
a0323144
PB
405GNATBIND = @GNATBIND@
406GNATMAKE = @GNATMAKE@
407
be01d343 408CFLAGS = @CFLAGS@
b2edfdd2 409LDFLAGS = @LDFLAGS@
be01d343
PB
410LIBCFLAGS = $(CFLAGS)
411CXXFLAGS = @CXXFLAGS@
412LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
e552509b 413GOCFLAGS = $(CFLAGS)
50212802 414
05a13254
NC
415CREATE_GCOV = create_gcov
416
1b05fbbd
AO
417TFLAGS =
418
419# Defaults for all stages; some are overridden below.
420
421STAGE_CFLAGS = $(BOOT_CFLAGS)
422STAGE_TFLAGS = $(TFLAGS)
423STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
424
425
426# Defaults for stage 1; some are overridden below.
427STAGE1_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
428STAGE1_CXXFLAGS = $(CXXFLAGS)
429@if target-libstdc++-v3-bootstrap
430# Override the above if we're bootstrapping C++.
431STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
432@endif target-libstdc++-v3-bootstrap
1b05fbbd 433STAGE1_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 434STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
435
436# Defaults for stage 2; some are overridden below.
437STAGE2_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
438STAGE2_CXXFLAGS = $(CXXFLAGS)
439@if target-libstdc++-v3-bootstrap
440# Override the above if we're bootstrapping C++.
441STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
442@endif target-libstdc++-v3-bootstrap
1b05fbbd 443STAGE2_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 444STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
445
446# Defaults for stage 3; some are overridden below.
447STAGE3_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
448STAGE3_CXXFLAGS = $(CXXFLAGS)
449@if target-libstdc++-v3-bootstrap
450# Override the above if we're bootstrapping C++.
451STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
452@endif target-libstdc++-v3-bootstrap
1b05fbbd 453STAGE3_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 454STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
455
456# Defaults for stage 4; some are overridden below.
457STAGE4_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
458STAGE4_CXXFLAGS = $(CXXFLAGS)
459@if target-libstdc++-v3-bootstrap
460# Override the above if we're bootstrapping C++.
461STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
462@endif target-libstdc++-v3-bootstrap
1b05fbbd 463STAGE4_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 464STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
465
466# Defaults for stage profile; some are overridden below.
467STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
468STAGEprofile_CXXFLAGS = $(CXXFLAGS)
469@if target-libstdc++-v3-bootstrap
470# Override the above if we're bootstrapping C++.
471STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
472@endif target-libstdc++-v3-bootstrap
1b05fbbd 473STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 474STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
475
476# Defaults for stage feedback; some are overridden below.
477STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
478STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
479@if target-libstdc++-v3-bootstrap
480# Override the above if we're bootstrapping C++.
481STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
482@endif target-libstdc++-v3-bootstrap
1b05fbbd 483STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 484STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
485
486
22121df0
L
487# By default, C and C++ are the only stage1 languages, because they are the
488# only ones we require to build with the bootstrap compiler, and also the
489# only ones useful for building stage2.
8a0d8a5c 490
1b05fbbd 491STAGE1_CFLAGS = @stage1_cflags@
1f53ca9a
AO
492STAGE1_CHECKING = @stage1_checking@
493STAGE1_LANGUAGES = @stage1_languages@
1b05fbbd
AO
494# * We force-disable intermodule optimizations, even if
495# --enable-intermodule was passed, since the installed compiler
496# probably can't handle them. Luckily, autoconf always respects
497# the last argument when conflicting --enable arguments are passed.
498# * Likewise, we force-disable coverage flags, since the installed
499# compiler probably has never heard of them.
880b18d1 500# * We also disable -Wformat, since older GCCs don't understand newer %s.
1b05fbbd 501STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
880b18d1 502 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \
503 --disable-build-format-warnings
8a0d8a5c 504
1b05fbbd
AO
505STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
506STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
8520c408 507
e3f56a99
NC
508STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
509STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
7f6ef0c0 510
05a13254
NC
511STAGEautoprofile_CFLAGS = $(STAGE2_CFLAGS) -g
512STAGEautoprofile_TFLAGS = $(STAGE2_TFLAGS)
513
514STAGEautofeedback_CFLAGS = $(STAGE3_CFLAGS)
515STAGEautofeedback_TFLAGS = $(STAGE3_TFLAGS)
516
8520c408
AO
517do-compare = @do_compare@
518do-compare3 = $(do-compare)
8520c408 519
50212802
NN
520# -----------------------------------------------
521# Programs producing files for the TARGET machine
522# -----------------------------------------------
0da52010 523
50212802 524AR_FOR_TARGET=@AR_FOR_TARGET@
852e5f18 525AS_FOR_TARGET=@AS_FOR_TARGET@
1b05fbbd 526CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
55db4b87 527
50212802
NN
528# If GCC_FOR_TARGET is not overriden on the command line, then this
529# variable is passed down to the gcc Makefile, where it is used to
530# build libgcc2.a. We define it here so that it can itself be
531# overridden on the command line.
1b05fbbd
AO
532GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
533CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
534RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
1b05fbbd 535GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
e552509b 536GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
852e5f18 537DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
50212802 538LD_FOR_TARGET=@LD_FOR_TARGET@
50212802 539
7e0f7140 540LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
50212802 541NM_FOR_TARGET=@NM_FOR_TARGET@
5ae72758 542OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
6b91c541 543OBJCOPY_FOR_TARGET=@OBJCOPY_FOR_TARGET@
852e5f18 544RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
b121d7d4 545READELF_FOR_TARGET=@READELF_FOR_TARGET@
7e0f7140 546STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
50212802 547WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
0c24b341 548WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
252b5132 549
be01d343
PB
550COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
551COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
552COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
553
7f6ef0c0
PB
554CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
555CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
7f6ef0c0 556
be01d343
PB
557LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
558LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
91c1f14c 559LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
e552509b 560GOCFLAGS_FOR_TARGET = -O2 -g
50212802 561
1b05fbbd
AO
562FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
563SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
564DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
565
566XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
567
50212802
NN
568# ------------------------------------
569# Miscellaneous targets and flag lists
570# ------------------------------------
571
252b5132
RH
572# The first rule in the file had better be this one. Don't put any above it.
573# This lives here to allow makefile fragments to contain dependencies.
f70224b5 574all:
252b5132 575
252b5132 576#### host and target specific makefile fragments come in here.
a0da8069
NN
577@target_makefile_frag@
578@alphaieee_frag@
579@ospace_frag@
580@host_makefile_frag@
252b5132
RH
581###
582
e90269c8 583# This is the list of directories that may be needed in RPATH_ENVVAR
18a8530e 584# so that programs built for the target machine work.
e3f56a99 585TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libsanitizer)$(TARGET_LIB_PATH_libmpx)$(TARGET_LIB_PATH_libvtv)$(TARGET_LIB_PATH_libcilkrts)$(TARGET_LIB_PATH_liboffloadmic)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(TARGET_LIB_PATH_libitm)$(TARGET_LIB_PATH_libatomic)$(HOST_LIB_PATH_gcc)
e90269c8
PB
586
587@if target-libstdc++-v3
18a8530e 588TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
e90269c8
PB
589@endif target-libstdc++-v3
590
5286fdef
L
591@if target-libsanitizer
592TARGET_LIB_PATH_libsanitizer = $$r/$(TARGET_SUBDIR)/libsanitizer/.libs:
593@endif target-libsanitizer
594
1b6c0831
L
595@if target-libmpx
596TARGET_LIB_PATH_libmpx = $$r/$(TARGET_SUBDIR)/libmpx/.libs:
597@endif target-libmpx
598
95e43135
JBG
599@if target-libvtv
600TARGET_LIB_PATH_libvtv = $$r/$(TARGET_SUBDIR)/libvtv/.libs:
601@endif target-libvtv
602
e3f56a99
NC
603@if target-libcilkrts
604TARGET_LIB_PATH_libcilkrts = $$r/$(TARGET_SUBDIR)/libcilkrts/.libs:
605@endif target-libcilkrts
606
1b6c0831
L
607@if target-liboffloadmic
608TARGET_LIB_PATH_liboffloadmic = $$r/$(TARGET_SUBDIR)/liboffloadmic/.libs:
609@endif target-liboffloadmic
610
064d0a7c
PB
611@if target-libssp
612TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
613@endif target-libssp
614
b3ded179
PB
615@if target-libgomp
616TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
617@endif target-libgomp
618
7ec59b9e
L
619@if target-libitm
620TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs:
621@endif target-libitm
622
623@if target-libatomic
624TARGET_LIB_PATH_libatomic = $$r/$(TARGET_SUBDIR)/libatomic/.libs:
625@endif target-libatomic
626
e90269c8
PB
627
628
629# This is the list of directories that may be needed in RPATH_ENVVAR
630# so that programs built for the host machine work.
1b6c0831 631HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_isl)$(HOST_LIB_PATH_libelf)
e90269c8
PB
632
633# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
634@if gcc
3bbd2f8f 635HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
e90269c8
PB
636@endif gcc
637
638
4b900473
PB
639@if gmp
640HOST_LIB_PATH_gmp = \
641 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
642@endif gmp
643
644@if mpfr
645HOST_LIB_PATH_mpfr = \
05a13254 646 $$r/$(HOST_SUBDIR)/mpfr/src/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/src/.libs:
4b900473
PB
647@endif mpfr
648
e8a5fa9c
RW
649@if mpc
650HOST_LIB_PATH_mpc = \
05a13254 651 $$r/$(HOST_SUBDIR)/mpc/src/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/src/.libs:
e8a5fa9c
RW
652@endif mpc
653
7ec59b9e
L
654@if isl
655HOST_LIB_PATH_isl = \
656 $$r/$(HOST_SUBDIR)/isl/.libs:$$r/$(HOST_SUBDIR)/prev-isl/.libs:
657@endif isl
e28c595f 658
1f53ca9a
AO
659@if libelf
660HOST_LIB_PATH_libelf = \
661 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
662@endif libelf
663
e90269c8 664
87cda2cf
AO
665CXX_FOR_TARGET_FLAG_TO_PASS = \
666 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
667@if target-libstdc++-v3
668# CXX_FOR_TARGET is tricky to get right for target libs that require a
669# functional C++ compiler. When we recurse, if we expand
670# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
671# libstdc++ include flags from the script. Instead, we get an
672# -funconfigured-* word, so that we'll get errors if this invalid C++
673# command line is used for anything, but also so that we can use the
674# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
675# don't pass it on, sub-make will use the default definition, that
676# re-expands it at the time of use, so we'll get it right when we need
677# it. One potential exception is the expansion of CXX_FOR_TARGET
678# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
679# really work, for C++ host programs can't depend on the current-stage
680# C++ target library.
681CXX_FOR_TARGET_FLAG_TO_PASS = \
682 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
683@endif target-libstdc++-v3
684
22121df0
L
685# Flags to pass down to all sub-makes. STAGE*FLAGS,
686# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
687# overrideable (for a bootstrap build stage1 also builds gcc.info).
252b5132 688BASE_FLAGS_TO_PASS = \
497f816e 689 "DESTDIR=$(DESTDIR)" \
252b5132 690 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
252b5132 691 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
252b5132
RH
692 "bindir=$(bindir)" \
693 "datadir=$(datadir)" \
694 "exec_prefix=$(exec_prefix)" \
695 "includedir=$(includedir)" \
108a6f8e
CD
696 "datarootdir=$(datarootdir)" \
697 "docdir=$(docdir)" \
252b5132 698 "infodir=$(infodir)" \
a3ca38d2 699 "pdfdir=$(pdfdir)" \
108a6f8e 700 "htmldir=$(htmldir)" \
252b5132
RH
701 "libdir=$(libdir)" \
702 "libexecdir=$(libexecdir)" \
703 "lispdir=$(lispdir)" \
704 "localstatedir=$(localstatedir)" \
705 "mandir=$(mandir)" \
706 "oldincludedir=$(oldincludedir)" \
707 "prefix=$(prefix)" \
708 "sbindir=$(sbindir)" \
709 "sharedstatedir=$(sharedstatedir)" \
710 "sysconfdir=$(sysconfdir)" \
711 "tooldir=$(tooldir)" \
ba73c63f 712 "build_tooldir=$(build_tooldir)" \
12f0bd74 713 "target_alias=$(target_alias)" \
8e957354 714 "AWK=$(AWK)" \
12f0bd74
NN
715 "BISON=$(BISON)" \
716 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
b2edd3b5 717 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
12f0bd74
NN
718 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
719 "EXPECT=$(EXPECT)" \
6a9cf61e 720 "FLEX=$(FLEX)" \
12f0bd74
NN
721 "INSTALL=$(INSTALL)" \
722 "INSTALL_DATA=$(INSTALL_DATA)" \
723 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
724 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
6641ce42 725 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
12f0bd74
NN
726 "LEX=$(LEX)" \
727 "M4=$(M4)" \
728 "MAKE=$(MAKE)" \
729 "RUNTEST=$(RUNTEST)" \
730 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
8e957354 731 "SED=$(SED)" \
12f0bd74
NN
732 "SHELL=$(SHELL)" \
733 "YACC=$(YACC)" \
c52c6897 734 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
da888c87 735 "ADA_CFLAGS=$(ADA_CFLAGS)" \
12f0bd74 736 "AR_FLAGS=$(AR_FLAGS)" \
c52c6897 737 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
f6d183c0
PB
738 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
739 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
12f0bd74
NN
740 "CFLAGS=$(CFLAGS)" \
741 "CXXFLAGS=$(CXXFLAGS)" \
742 "LDFLAGS=$(LDFLAGS)" \
743 "LIBCFLAGS=$(LIBCFLAGS)" \
744 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
8a0d8a5c 745 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
80911fe1 746 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
a0323144
PB
747 "GNATBIND=$(GNATBIND)" \
748 "GNATMAKE=$(GNATMAKE)" \
12f0bd74
NN
749 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
750 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
751 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
752 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
06bcb89d 753 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
12f0bd74
NN
754 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
755 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
1b05fbbd 756 "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
4b1cb4fe 757 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
e552509b
ILT
758 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
759 "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
12f0bd74 760 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
7e0f7140 761 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
414e5532 762 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
12f0bd74
NN
763 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
764 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
765 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
5ae72758 766 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
6b91c541 767 "OBJCOPY_FOR_TARGET=$(OBJCOPY_FOR_TARGET)" \
12f0bd74 768 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
b121d7d4 769 "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \
7e0f7140 770 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
12f0bd74 771 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
0c24b341 772 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
1b05fbbd 773 "BUILD_CONFIG=$(BUILD_CONFIG)" \
c52c6897 774 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
80911fe1 775 "LEAN=$(LEAN)" \
1b05fbbd 776 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
1f53ca9a 777 "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
778 "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
779 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
1f53ca9a 780 "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
781 "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
782 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
1f53ca9a 783 "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
784 "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
785 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
1f53ca9a 786 "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
1b05fbbd
AO
787 "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
788 "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
1f53ca9a 789 "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
790 "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
791 "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
1f53ca9a 792 "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd 793 "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
87cda2cf 794 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
1b05fbbd 795 "TFLAGS=$(TFLAGS)" \
10ecffb9 796 "CONFIG_SHELL=$(SHELL)" \
52cf9762
NC
797 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
798 $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)")
252b5132 799
55db4b87
PB
800# We leave this in just in case, but it is not needed anymore.
801RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
656fdd47 802
252b5132
RH
803# Flags to pass down to most sub-makes, in which we're building with
804# the host environment.
252b5132
RH
805EXTRA_HOST_FLAGS = \
806 'AR=$(AR)' \
807 'AS=$(AS)' \
808 'CC=$(CC)' \
809 'CXX=$(CXX)' \
810 'DLLTOOL=$(DLLTOOL)' \
1b05fbbd 811 'GFORTRAN=$(GFORTRAN)' \
9b980aa1 812 'GOC=$(GOC)' \
252b5132 813 'LD=$(LD)' \
be01d343 814 'LIPO=$(LIPO)' \
252b5132 815 'NM=$(NM)' \
80911fe1 816 'OBJDUMP=$(OBJDUMP)' \
b9459e83 817 'RANLIB=$(RANLIB)' \
b121d7d4 818 'READELF=$(READELF)' \
be01d343 819 'STRIP=$(STRIP)' \
0c24b341 820 'WINDRES=$(WINDRES)' \
05a13254
NC
821 'WINDMC=$(WINDMC)' \
822 'CREATE_GCOV=$(CREATE_GCOV)'
252b5132
RH
823
824FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
825
b3676d82
EB
826# Flags to pass to stage1 or when not bootstrapping.
827
828STAGE1_FLAGS_TO_PASS = \
829 LDFLAGS="$${LDFLAGS}" \
830 HOST_LIBS="$${HOST_LIBS}"
831
8a0d8a5c
PB
832# Flags to pass to stage2 and later makes.
833
834POSTSTAGE1_FLAGS_TO_PASS = \
e8a5fa9c
RW
835 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
836 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
837 GNATBIND="$${GNATBIND}" \
1f53ca9a
AO
838 LDFLAGS="$${LDFLAGS}" \
839 HOST_LIBS="$${HOST_LIBS}" \
1b6c0831 840 $(LTO_FLAGS_TO_PASS) \
8a0d8a5c
PB
841 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
842
f91ca6bc
IB
843@if gcc-bootstrap
844EXTRA_HOST_EXPORTS = if [ $(current_stage) != stage1 ]; then \
845 $(POSTSTAGE1_HOST_EXPORTS) \
22121df0 846 fi;
f91ca6bc
IB
847
848EXTRA_BOOTSTRAP_FLAGS = CC="$$CC" CXX="$$CXX" LDFLAGS="$$LDFLAGS"
849@endif gcc-bootstrap
850
252b5132 851# Flags to pass down to makes which are built with the target environment.
0aed8855
PB
852# The double $ decreases the length of the command line; those variables
853# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
7f6ef0c0
PB
854# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
855# so we expand them here.
252b5132
RH
856EXTRA_TARGET_FLAGS = \
857 'AR=$$(AR_FOR_TARGET)' \
0aed8855 858 'AS=$(COMPILER_AS_FOR_TARGET)' \
1b05fbbd
AO
859 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
860 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
1b6c0831
L
861 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
862 -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
863 $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
1b05fbbd 864 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
252b5132 865 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
1b05fbbd 866 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
9b980aa1 867 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
e552509b 868 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
0aed8855 869 'LD=$(COMPILER_LD_FOR_TARGET)' \
414e5532 870 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
1b05fbbd
AO
871 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
872 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
0aed8855 873 'NM=$(COMPILER_NM_FOR_TARGET)' \
5ae72758 874 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
6b91c541 875 'OBJCOPY=$$(OBJCOPY_FOR_TARGET)' \
252b5132 876 'RANLIB=$$(RANLIB_FOR_TARGET)' \
b121d7d4 877 'READELF=$$(READELF_FOR_TARGET)' \
0c24b341 878 'WINDRES=$$(WINDRES_FOR_TARGET)' \
1b05fbbd
AO
879 'WINDMC=$$(WINDMC_FOR_TARGET)' \
880 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
1b6c0831
L
881 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \
882 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \
1b05fbbd 883 "TFLAGS=$$TFLAGS"
252b5132
RH
884
885TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
886
887# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
888# unfortunately needs the native compiler and the target ar and
889# ranlib.
890# If any variables are added here, they must be added to do-*, below.
2a4cbe27 891# The BUILD_* variables are a special case, which are used for the gcc
252b5132
RH
892# cross-building scheme.
893EXTRA_GCC_FLAGS = \
252b5132 894 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
3dee29da 895 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
98dd765a 896 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
252b5132 897
f0b24077 898GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
252b5132 899
1b05fbbd 900@if gcc
96655cc4 901BUILD_CONFIG = @BUILD_CONFIG@
1b05fbbd
AO
902ifneq ($(BUILD_CONFIG),)
903include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
904endif
905@endif gcc
906
dd12c3a8 907.PHONY: configure-host
b813574b 908configure-host: \
dd12c3a8
NN
909 maybe-configure-bfd \
910 maybe-configure-opcodes \
911 maybe-configure-binutils \
912 maybe-configure-bison \
f9806fa5 913 maybe-configure-cgen \
dd12c3a8 914 maybe-configure-dejagnu \
dd12c3a8
NN
915 maybe-configure-etc \
916 maybe-configure-fastjar \
d3ed111c 917 maybe-configure-fixincludes \
dd12c3a8
NN
918 maybe-configure-flex \
919 maybe-configure-gas \
b813574b 920 maybe-configure-gcc \
4b900473
PB
921 maybe-configure-gmp \
922 maybe-configure-mpfr \
e8a5fa9c 923 maybe-configure-mpc \
7ec59b9e 924 maybe-configure-isl \
1f53ca9a 925 maybe-configure-libelf \
93f9b408 926 maybe-configure-gold \
dd12c3a8 927 maybe-configure-gprof \
dd12c3a8
NN
928 maybe-configure-intl \
929 maybe-configure-tcl \
930 maybe-configure-itcl \
931 maybe-configure-ld \
2bf680c4 932 maybe-configure-libbacktrace \
04cf1b77 933 maybe-configure-libcpp \
be01d343 934 maybe-configure-libdecnumber \
dd12c3a8
NN
935 maybe-configure-libgui \
936 maybe-configure-libiberty \
1b6c0831 937 maybe-configure-libiberty-linker-plugin \
dc448a7b 938 maybe-configure-libiconv \
dd12c3a8 939 maybe-configure-m4 \
dd12c3a8 940 maybe-configure-readline \
dd12c3a8
NN
941 maybe-configure-sid \
942 maybe-configure-sim \
dd12c3a8 943 maybe-configure-texinfo \
dd12c3a8 944 maybe-configure-zlib \
73cc7272 945 maybe-configure-gnulib \
dd12c3a8
NN
946 maybe-configure-gdb \
947 maybe-configure-expect \
948 maybe-configure-guile \
949 maybe-configure-tk \
dd12c3a8 950 maybe-configure-libtermcap \
b00612cc 951 maybe-configure-utils \
700d40ca 952 maybe-configure-gnattools \
1b6c0831
L
953 maybe-configure-lto-plugin \
954 maybe-configure-libcc1 \
0e65dfba
NA
955 maybe-configure-gotools \
956 maybe-configure-libctf
dd12c3a8
NN
957.PHONY: configure-target
958configure-target: \
959 maybe-configure-target-libstdc++-v3 \
5286fdef 960 maybe-configure-target-libsanitizer \
1b6c0831 961 maybe-configure-target-libmpx \
95e43135 962 maybe-configure-target-libvtv \
e3f56a99 963 maybe-configure-target-libcilkrts \
1b6c0831 964 maybe-configure-target-liboffloadmic \
064d0a7c 965 maybe-configure-target-libssp \
dd12c3a8 966 maybe-configure-target-newlib \
6aa8ef82 967 maybe-configure-target-libgcc \
2bf680c4 968 maybe-configure-target-libbacktrace \
e552509b 969 maybe-configure-target-libquadmath \
4b1cb4fe 970 maybe-configure-target-libgfortran \
dd12c3a8 971 maybe-configure-target-libobjc \
e552509b 972 maybe-configure-target-libgo \
dd12c3a8
NN
973 maybe-configure-target-libtermcap \
974 maybe-configure-target-winsup \
975 maybe-configure-target-libgloss \
dd12c3a8 976 maybe-configure-target-libffi \
dd12c3a8 977 maybe-configure-target-zlib \
a2592b1b 978 maybe-configure-target-rda \
b3ded179 979 maybe-configure-target-libada \
7ec59b9e
L
980 maybe-configure-target-libgomp \
981 maybe-configure-target-libitm \
982 maybe-configure-target-libatomic
252b5132 983
319cab08
PB
984# The target built for a native non-bootstrap build.
985.PHONY: all
f70224b5
PB
986all:
987@if gcc-bootstrap
be01d343 988 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
989 @r=`${PWD_COMMAND}`; export r; \
990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 991 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 992@endif gcc-bootstrap
0aed8855 993 @: $(MAKE); $(unstage)
f70224b5
PB
994 @r=`${PWD_COMMAND}`; export r; \
995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 996@if gcc-bootstrap
b5233201 997 if [ -f stage_last ]; then \
07fc31c9 998 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 999 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 1000 else \
1b05fbbd 1001@endif gcc-bootstrap
b5233201
AO
1002 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
1003@if gcc-bootstrap
1004 ; \
04ec0acb 1005 fi \
b5233201 1006@endif gcc-bootstrap
04ec0acb 1007 && :
6a9cf61e
PB
1008
1009.PHONY: all-build
c52c6897
PB
1010
1011all-build: maybe-all-build-libiberty
1012all-build: maybe-all-build-bison
c52c6897
PB
1013all-build: maybe-all-build-flex
1014all-build: maybe-all-build-m4
1015all-build: maybe-all-build-texinfo
1016all-build: maybe-all-build-fixincludes
1b6c0831 1017all-build: maybe-all-build-libcpp
c52c6897 1018
dd12c3a8 1019.PHONY: all-host
c52c6897 1020
c52c6897
PB
1021@if bfd-no-bootstrap
1022all-host: maybe-all-bfd
1023@endif bfd-no-bootstrap
1024@if opcodes-no-bootstrap
1025all-host: maybe-all-opcodes
1026@endif opcodes-no-bootstrap
1027@if binutils-no-bootstrap
1028all-host: maybe-all-binutils
1029@endif binutils-no-bootstrap
1030all-host: maybe-all-bison
f9806fa5 1031all-host: maybe-all-cgen
c52c6897 1032all-host: maybe-all-dejagnu
c52c6897
PB
1033all-host: maybe-all-etc
1034all-host: maybe-all-fastjar
201f096f 1035@if fixincludes-no-bootstrap
c52c6897 1036all-host: maybe-all-fixincludes
201f096f 1037@endif fixincludes-no-bootstrap
c52c6897
PB
1038all-host: maybe-all-flex
1039@if gas-no-bootstrap
1040all-host: maybe-all-gas
1041@endif gas-no-bootstrap
1042@if gcc-no-bootstrap
1043all-host: maybe-all-gcc
1044@endif gcc-no-bootstrap
4b900473
PB
1045@if gmp-no-bootstrap
1046all-host: maybe-all-gmp
1047@endif gmp-no-bootstrap
1048@if mpfr-no-bootstrap
1049all-host: maybe-all-mpfr
1050@endif mpfr-no-bootstrap
e8a5fa9c
RW
1051@if mpc-no-bootstrap
1052all-host: maybe-all-mpc
1053@endif mpc-no-bootstrap
7ec59b9e
L
1054@if isl-no-bootstrap
1055all-host: maybe-all-isl
1056@endif isl-no-bootstrap
1f53ca9a
AO
1057@if libelf-no-bootstrap
1058all-host: maybe-all-libelf
1059@endif libelf-no-bootstrap
93f9b408
ILT
1060@if gold-no-bootstrap
1061all-host: maybe-all-gold
1062@endif gold-no-bootstrap
c52c6897 1063all-host: maybe-all-gprof
c52c6897
PB
1064@if intl-no-bootstrap
1065all-host: maybe-all-intl
1066@endif intl-no-bootstrap
1067all-host: maybe-all-tcl
1068all-host: maybe-all-itcl
1069@if ld-no-bootstrap
1070all-host: maybe-all-ld
1071@endif ld-no-bootstrap
2bf680c4
ILT
1072@if libbacktrace-no-bootstrap
1073all-host: maybe-all-libbacktrace
1074@endif libbacktrace-no-bootstrap
c52c6897
PB
1075@if libcpp-no-bootstrap
1076all-host: maybe-all-libcpp
1077@endif libcpp-no-bootstrap
1078@if libdecnumber-no-bootstrap
1079all-host: maybe-all-libdecnumber
1080@endif libdecnumber-no-bootstrap
1081all-host: maybe-all-libgui
1082@if libiberty-no-bootstrap
1083all-host: maybe-all-libiberty
1084@endif libiberty-no-bootstrap
1b6c0831
L
1085@if libiberty-linker-plugin-no-bootstrap
1086all-host: maybe-all-libiberty-linker-plugin
1087@endif libiberty-linker-plugin-no-bootstrap
016a3251 1088@if libiconv-no-bootstrap
dc448a7b 1089all-host: maybe-all-libiconv
016a3251 1090@endif libiconv-no-bootstrap
c52c6897 1091all-host: maybe-all-m4
c52c6897 1092all-host: maybe-all-readline
c52c6897
PB
1093all-host: maybe-all-sid
1094all-host: maybe-all-sim
c52c6897 1095all-host: maybe-all-texinfo
c52c6897
PB
1096@if zlib-no-bootstrap
1097all-host: maybe-all-zlib
1098@endif zlib-no-bootstrap
73cc7272 1099all-host: maybe-all-gnulib
c52c6897
PB
1100all-host: maybe-all-gdb
1101all-host: maybe-all-expect
1102all-host: maybe-all-guile
1103all-host: maybe-all-tk
1104all-host: maybe-all-libtermcap
1105all-host: maybe-all-utils
1106all-host: maybe-all-gnattools
700d40ca
ILT
1107@if lto-plugin-no-bootstrap
1108all-host: maybe-all-lto-plugin
1109@endif lto-plugin-no-bootstrap
1b6c0831
L
1110all-host: maybe-all-libcc1
1111all-host: maybe-all-gotools
0e65dfba
NA
1112@if libctf-no-bootstrap
1113all-host: maybe-all-libctf
1114@endif libctf-no-bootstrap
c52c6897 1115
dd12c3a8 1116.PHONY: all-target
c52c6897 1117
e8a5fa9c 1118@if target-libstdc++-v3-no-bootstrap
c52c6897 1119all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1120@endif target-libstdc++-v3-no-bootstrap
5eb08693 1121@if target-libsanitizer-no-bootstrap
5286fdef 1122all-target: maybe-all-target-libsanitizer
5eb08693 1123@endif target-libsanitizer-no-bootstrap
1b6c0831
L
1124@if target-libmpx-no-bootstrap
1125all-target: maybe-all-target-libmpx
1126@endif target-libmpx-no-bootstrap
95e43135
JBG
1127@if target-libvtv-no-bootstrap
1128all-target: maybe-all-target-libvtv
1129@endif target-libvtv-no-bootstrap
e3f56a99 1130all-target: maybe-all-target-libcilkrts
1b6c0831 1131all-target: maybe-all-target-liboffloadmic
c52c6897 1132all-target: maybe-all-target-libssp
c52c6897 1133all-target: maybe-all-target-newlib
f86e35b8 1134@if target-libgcc-no-bootstrap
6aa8ef82 1135all-target: maybe-all-target-libgcc
f86e35b8 1136@endif target-libgcc-no-bootstrap
2bf680c4 1137all-target: maybe-all-target-libbacktrace
e552509b 1138all-target: maybe-all-target-libquadmath
c52c6897
PB
1139all-target: maybe-all-target-libgfortran
1140all-target: maybe-all-target-libobjc
e552509b 1141all-target: maybe-all-target-libgo
c52c6897
PB
1142all-target: maybe-all-target-libtermcap
1143all-target: maybe-all-target-winsup
1144all-target: maybe-all-target-libgloss
c52c6897 1145all-target: maybe-all-target-libffi
c52c6897 1146all-target: maybe-all-target-zlib
c52c6897
PB
1147all-target: maybe-all-target-rda
1148all-target: maybe-all-target-libada
911e63d0 1149@if target-libgomp-no-bootstrap
c52c6897 1150all-target: maybe-all-target-libgomp
911e63d0 1151@endif target-libgomp-no-bootstrap
7ec59b9e
L
1152all-target: maybe-all-target-libitm
1153all-target: maybe-all-target-libatomic
252b5132
RH
1154
1155# Do a target for all the subdirectories. A ``make do-X'' will do a
1156# ``make X'' in all subdirectories (because, in general, there is a
1157# dependency (below) of X upon do-X, a ``make X'' will also do this,
1158# but it may do additional work as well).
e393202e 1159
2a4cbe27 1160.PHONY: do-info
f70224b5 1161do-info:
0aed8855 1162 @: $(MAKE); $(unstage)
e360f423
PB
1163 @r=`${PWD_COMMAND}`; export r; \
1164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1165 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1166 info-target
f70224b5 1167
e393202e 1168
2a4cbe27 1169.PHONY: info-host
c52c6897 1170
c52c6897
PB
1171info-host: maybe-info-bfd
1172info-host: maybe-info-opcodes
1173info-host: maybe-info-binutils
1174info-host: maybe-info-bison
f9806fa5 1175info-host: maybe-info-cgen
c52c6897 1176info-host: maybe-info-dejagnu
c52c6897
PB
1177info-host: maybe-info-etc
1178info-host: maybe-info-fastjar
c52c6897
PB
1179info-host: maybe-info-fixincludes
1180info-host: maybe-info-flex
1181info-host: maybe-info-gas
1182info-host: maybe-info-gcc
4b900473
PB
1183info-host: maybe-info-gmp
1184info-host: maybe-info-mpfr
e8a5fa9c 1185info-host: maybe-info-mpc
7ec59b9e 1186info-host: maybe-info-isl
1f53ca9a 1187info-host: maybe-info-libelf
93f9b408 1188info-host: maybe-info-gold
c52c6897 1189info-host: maybe-info-gprof
c52c6897
PB
1190info-host: maybe-info-intl
1191info-host: maybe-info-tcl
1192info-host: maybe-info-itcl
1193info-host: maybe-info-ld
2bf680c4 1194info-host: maybe-info-libbacktrace
c52c6897
PB
1195info-host: maybe-info-libcpp
1196info-host: maybe-info-libdecnumber
1197info-host: maybe-info-libgui
1198info-host: maybe-info-libiberty
1b6c0831 1199info-host: maybe-info-libiberty-linker-plugin
dc448a7b 1200info-host: maybe-info-libiconv
c52c6897 1201info-host: maybe-info-m4
c52c6897 1202info-host: maybe-info-readline
c52c6897
PB
1203info-host: maybe-info-sid
1204info-host: maybe-info-sim
c52c6897 1205info-host: maybe-info-texinfo
c52c6897 1206info-host: maybe-info-zlib
73cc7272 1207info-host: maybe-info-gnulib
c52c6897
PB
1208info-host: maybe-info-gdb
1209info-host: maybe-info-expect
1210info-host: maybe-info-guile
1211info-host: maybe-info-tk
1212info-host: maybe-info-libtermcap
1213info-host: maybe-info-utils
1214info-host: maybe-info-gnattools
700d40ca 1215info-host: maybe-info-lto-plugin
1b6c0831
L
1216info-host: maybe-info-libcc1
1217info-host: maybe-info-gotools
0e65dfba 1218info-host: maybe-info-libctf
252b5132 1219
2a4cbe27 1220.PHONY: info-target
c52c6897
PB
1221
1222info-target: maybe-info-target-libstdc++-v3
5286fdef 1223info-target: maybe-info-target-libsanitizer
1b6c0831 1224info-target: maybe-info-target-libmpx
95e43135 1225info-target: maybe-info-target-libvtv
e3f56a99 1226info-target: maybe-info-target-libcilkrts
1b6c0831 1227info-target: maybe-info-target-liboffloadmic
c52c6897 1228info-target: maybe-info-target-libssp
c52c6897 1229info-target: maybe-info-target-newlib
6aa8ef82 1230info-target: maybe-info-target-libgcc
2bf680c4 1231info-target: maybe-info-target-libbacktrace
e552509b 1232info-target: maybe-info-target-libquadmath
c52c6897
PB
1233info-target: maybe-info-target-libgfortran
1234info-target: maybe-info-target-libobjc
e552509b 1235info-target: maybe-info-target-libgo
c52c6897
PB
1236info-target: maybe-info-target-libtermcap
1237info-target: maybe-info-target-winsup
1238info-target: maybe-info-target-libgloss
c52c6897 1239info-target: maybe-info-target-libffi
c52c6897 1240info-target: maybe-info-target-zlib
c52c6897
PB
1241info-target: maybe-info-target-rda
1242info-target: maybe-info-target-libada
1243info-target: maybe-info-target-libgomp
7ec59b9e
L
1244info-target: maybe-info-target-libitm
1245info-target: maybe-info-target-libatomic
252b5132 1246
4fa63067 1247.PHONY: do-dvi
f70224b5 1248do-dvi:
0aed8855 1249 @: $(MAKE); $(unstage)
e360f423
PB
1250 @r=`${PWD_COMMAND}`; export r; \
1251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1252 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1253 dvi-target
f70224b5 1254
2a4cbe27 1255
4fa63067 1256.PHONY: dvi-host
c52c6897 1257
c52c6897
PB
1258dvi-host: maybe-dvi-bfd
1259dvi-host: maybe-dvi-opcodes
1260dvi-host: maybe-dvi-binutils
1261dvi-host: maybe-dvi-bison
f9806fa5 1262dvi-host: maybe-dvi-cgen
c52c6897 1263dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1264dvi-host: maybe-dvi-etc
1265dvi-host: maybe-dvi-fastjar
c52c6897
PB
1266dvi-host: maybe-dvi-fixincludes
1267dvi-host: maybe-dvi-flex
1268dvi-host: maybe-dvi-gas
1269dvi-host: maybe-dvi-gcc
4b900473
PB
1270dvi-host: maybe-dvi-gmp
1271dvi-host: maybe-dvi-mpfr
e8a5fa9c 1272dvi-host: maybe-dvi-mpc
7ec59b9e 1273dvi-host: maybe-dvi-isl
1f53ca9a 1274dvi-host: maybe-dvi-libelf
93f9b408 1275dvi-host: maybe-dvi-gold
c52c6897 1276dvi-host: maybe-dvi-gprof
c52c6897
PB
1277dvi-host: maybe-dvi-intl
1278dvi-host: maybe-dvi-tcl
1279dvi-host: maybe-dvi-itcl
1280dvi-host: maybe-dvi-ld
2bf680c4 1281dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1282dvi-host: maybe-dvi-libcpp
1283dvi-host: maybe-dvi-libdecnumber
1284dvi-host: maybe-dvi-libgui
1285dvi-host: maybe-dvi-libiberty
1b6c0831 1286dvi-host: maybe-dvi-libiberty-linker-plugin
dc448a7b 1287dvi-host: maybe-dvi-libiconv
c52c6897 1288dvi-host: maybe-dvi-m4
c52c6897 1289dvi-host: maybe-dvi-readline
c52c6897
PB
1290dvi-host: maybe-dvi-sid
1291dvi-host: maybe-dvi-sim
c52c6897 1292dvi-host: maybe-dvi-texinfo
c52c6897 1293dvi-host: maybe-dvi-zlib
73cc7272 1294dvi-host: maybe-dvi-gnulib
c52c6897
PB
1295dvi-host: maybe-dvi-gdb
1296dvi-host: maybe-dvi-expect
1297dvi-host: maybe-dvi-guile
1298dvi-host: maybe-dvi-tk
1299dvi-host: maybe-dvi-libtermcap
1300dvi-host: maybe-dvi-utils
1301dvi-host: maybe-dvi-gnattools
700d40ca 1302dvi-host: maybe-dvi-lto-plugin
1b6c0831
L
1303dvi-host: maybe-dvi-libcc1
1304dvi-host: maybe-dvi-gotools
0e65dfba 1305dvi-host: maybe-dvi-libctf
2a4cbe27 1306
4fa63067 1307.PHONY: dvi-target
c52c6897
PB
1308
1309dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1310dvi-target: maybe-dvi-target-libsanitizer
1b6c0831 1311dvi-target: maybe-dvi-target-libmpx
95e43135 1312dvi-target: maybe-dvi-target-libvtv
e3f56a99 1313dvi-target: maybe-dvi-target-libcilkrts
1b6c0831 1314dvi-target: maybe-dvi-target-liboffloadmic
c52c6897 1315dvi-target: maybe-dvi-target-libssp
c52c6897 1316dvi-target: maybe-dvi-target-newlib
6aa8ef82 1317dvi-target: maybe-dvi-target-libgcc
2bf680c4 1318dvi-target: maybe-dvi-target-libbacktrace
e552509b 1319dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1320dvi-target: maybe-dvi-target-libgfortran
1321dvi-target: maybe-dvi-target-libobjc
e552509b 1322dvi-target: maybe-dvi-target-libgo
c52c6897
PB
1323dvi-target: maybe-dvi-target-libtermcap
1324dvi-target: maybe-dvi-target-winsup
1325dvi-target: maybe-dvi-target-libgloss
c52c6897 1326dvi-target: maybe-dvi-target-libffi
c52c6897 1327dvi-target: maybe-dvi-target-zlib
c52c6897
PB
1328dvi-target: maybe-dvi-target-rda
1329dvi-target: maybe-dvi-target-libada
1330dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1331dvi-target: maybe-dvi-target-libitm
1332dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1333
56a8fe78
DD
1334.PHONY: do-pdf
1335do-pdf:
1336 @: $(MAKE); $(unstage)
1337 @r=`${PWD_COMMAND}`; export r; \
1338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1339 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1340 pdf-target
1341
1342
1343.PHONY: pdf-host
1344
56a8fe78
DD
1345pdf-host: maybe-pdf-bfd
1346pdf-host: maybe-pdf-opcodes
1347pdf-host: maybe-pdf-binutils
1348pdf-host: maybe-pdf-bison
f9806fa5 1349pdf-host: maybe-pdf-cgen
56a8fe78 1350pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1351pdf-host: maybe-pdf-etc
1352pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1353pdf-host: maybe-pdf-fixincludes
1354pdf-host: maybe-pdf-flex
1355pdf-host: maybe-pdf-gas
1356pdf-host: maybe-pdf-gcc
4b900473
PB
1357pdf-host: maybe-pdf-gmp
1358pdf-host: maybe-pdf-mpfr
e8a5fa9c 1359pdf-host: maybe-pdf-mpc
7ec59b9e 1360pdf-host: maybe-pdf-isl
1f53ca9a 1361pdf-host: maybe-pdf-libelf
93f9b408 1362pdf-host: maybe-pdf-gold
56a8fe78 1363pdf-host: maybe-pdf-gprof
56a8fe78
DD
1364pdf-host: maybe-pdf-intl
1365pdf-host: maybe-pdf-tcl
1366pdf-host: maybe-pdf-itcl
1367pdf-host: maybe-pdf-ld
2bf680c4 1368pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1369pdf-host: maybe-pdf-libcpp
1370pdf-host: maybe-pdf-libdecnumber
1371pdf-host: maybe-pdf-libgui
1372pdf-host: maybe-pdf-libiberty
1b6c0831 1373pdf-host: maybe-pdf-libiberty-linker-plugin
dc448a7b 1374pdf-host: maybe-pdf-libiconv
56a8fe78 1375pdf-host: maybe-pdf-m4
56a8fe78 1376pdf-host: maybe-pdf-readline
56a8fe78
DD
1377pdf-host: maybe-pdf-sid
1378pdf-host: maybe-pdf-sim
56a8fe78 1379pdf-host: maybe-pdf-texinfo
56a8fe78 1380pdf-host: maybe-pdf-zlib
73cc7272 1381pdf-host: maybe-pdf-gnulib
56a8fe78
DD
1382pdf-host: maybe-pdf-gdb
1383pdf-host: maybe-pdf-expect
1384pdf-host: maybe-pdf-guile
1385pdf-host: maybe-pdf-tk
1386pdf-host: maybe-pdf-libtermcap
1387pdf-host: maybe-pdf-utils
1388pdf-host: maybe-pdf-gnattools
700d40ca 1389pdf-host: maybe-pdf-lto-plugin
1b6c0831
L
1390pdf-host: maybe-pdf-libcc1
1391pdf-host: maybe-pdf-gotools
0e65dfba 1392pdf-host: maybe-pdf-libctf
56a8fe78
DD
1393
1394.PHONY: pdf-target
1395
1396pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1397pdf-target: maybe-pdf-target-libsanitizer
1b6c0831 1398pdf-target: maybe-pdf-target-libmpx
95e43135 1399pdf-target: maybe-pdf-target-libvtv
e3f56a99 1400pdf-target: maybe-pdf-target-libcilkrts
1b6c0831 1401pdf-target: maybe-pdf-target-liboffloadmic
56a8fe78
DD
1402pdf-target: maybe-pdf-target-libssp
1403pdf-target: maybe-pdf-target-newlib
6aa8ef82 1404pdf-target: maybe-pdf-target-libgcc
2bf680c4 1405pdf-target: maybe-pdf-target-libbacktrace
e552509b 1406pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1407pdf-target: maybe-pdf-target-libgfortran
1408pdf-target: maybe-pdf-target-libobjc
e552509b 1409pdf-target: maybe-pdf-target-libgo
56a8fe78
DD
1410pdf-target: maybe-pdf-target-libtermcap
1411pdf-target: maybe-pdf-target-winsup
1412pdf-target: maybe-pdf-target-libgloss
56a8fe78 1413pdf-target: maybe-pdf-target-libffi
56a8fe78 1414pdf-target: maybe-pdf-target-zlib
56a8fe78
DD
1415pdf-target: maybe-pdf-target-rda
1416pdf-target: maybe-pdf-target-libada
1417pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1418pdf-target: maybe-pdf-target-libitm
1419pdf-target: maybe-pdf-target-libatomic
56a8fe78 1420
6d389afc 1421.PHONY: do-html
f70224b5 1422do-html:
0aed8855 1423 @: $(MAKE); $(unstage)
e360f423
PB
1424 @r=`${PWD_COMMAND}`; export r; \
1425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1426 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1427 html-target
f70224b5 1428
6d389afc
MS
1429
1430.PHONY: html-host
c52c6897 1431
c52c6897
PB
1432html-host: maybe-html-bfd
1433html-host: maybe-html-opcodes
1434html-host: maybe-html-binutils
1435html-host: maybe-html-bison
f9806fa5 1436html-host: maybe-html-cgen
c52c6897 1437html-host: maybe-html-dejagnu
c52c6897
PB
1438html-host: maybe-html-etc
1439html-host: maybe-html-fastjar
c52c6897
PB
1440html-host: maybe-html-fixincludes
1441html-host: maybe-html-flex
1442html-host: maybe-html-gas
1443html-host: maybe-html-gcc
4b900473
PB
1444html-host: maybe-html-gmp
1445html-host: maybe-html-mpfr
e8a5fa9c 1446html-host: maybe-html-mpc
7ec59b9e 1447html-host: maybe-html-isl
1f53ca9a 1448html-host: maybe-html-libelf
93f9b408 1449html-host: maybe-html-gold
c52c6897 1450html-host: maybe-html-gprof
c52c6897
PB
1451html-host: maybe-html-intl
1452html-host: maybe-html-tcl
1453html-host: maybe-html-itcl
1454html-host: maybe-html-ld
2bf680c4 1455html-host: maybe-html-libbacktrace
c52c6897
PB
1456html-host: maybe-html-libcpp
1457html-host: maybe-html-libdecnumber
1458html-host: maybe-html-libgui
1459html-host: maybe-html-libiberty
1b6c0831 1460html-host: maybe-html-libiberty-linker-plugin
dc448a7b 1461html-host: maybe-html-libiconv
c52c6897 1462html-host: maybe-html-m4
c52c6897 1463html-host: maybe-html-readline
c52c6897
PB
1464html-host: maybe-html-sid
1465html-host: maybe-html-sim
c52c6897 1466html-host: maybe-html-texinfo
c52c6897 1467html-host: maybe-html-zlib
73cc7272 1468html-host: maybe-html-gnulib
c52c6897
PB
1469html-host: maybe-html-gdb
1470html-host: maybe-html-expect
1471html-host: maybe-html-guile
1472html-host: maybe-html-tk
1473html-host: maybe-html-libtermcap
1474html-host: maybe-html-utils
1475html-host: maybe-html-gnattools
700d40ca 1476html-host: maybe-html-lto-plugin
1b6c0831
L
1477html-host: maybe-html-libcc1
1478html-host: maybe-html-gotools
0e65dfba 1479html-host: maybe-html-libctf
6d389afc
MS
1480
1481.PHONY: html-target
c52c6897
PB
1482
1483html-target: maybe-html-target-libstdc++-v3
5286fdef 1484html-target: maybe-html-target-libsanitizer
1b6c0831 1485html-target: maybe-html-target-libmpx
95e43135 1486html-target: maybe-html-target-libvtv
e3f56a99 1487html-target: maybe-html-target-libcilkrts
1b6c0831 1488html-target: maybe-html-target-liboffloadmic
c52c6897 1489html-target: maybe-html-target-libssp
c52c6897 1490html-target: maybe-html-target-newlib
6aa8ef82 1491html-target: maybe-html-target-libgcc
2bf680c4 1492html-target: maybe-html-target-libbacktrace
e552509b 1493html-target: maybe-html-target-libquadmath
c52c6897
PB
1494html-target: maybe-html-target-libgfortran
1495html-target: maybe-html-target-libobjc
e552509b 1496html-target: maybe-html-target-libgo
c52c6897
PB
1497html-target: maybe-html-target-libtermcap
1498html-target: maybe-html-target-winsup
1499html-target: maybe-html-target-libgloss
c52c6897 1500html-target: maybe-html-target-libffi
c52c6897 1501html-target: maybe-html-target-zlib
c52c6897
PB
1502html-target: maybe-html-target-rda
1503html-target: maybe-html-target-libada
1504html-target: maybe-html-target-libgomp
7ec59b9e
L
1505html-target: maybe-html-target-libitm
1506html-target: maybe-html-target-libatomic
6d389afc 1507
4fa63067 1508.PHONY: do-TAGS
f70224b5 1509do-TAGS:
0aed8855 1510 @: $(MAKE); $(unstage)
e360f423
PB
1511 @r=`${PWD_COMMAND}`; export r; \
1512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1513 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1514 TAGS-target
f70224b5 1515
2a4cbe27 1516
4fa63067 1517.PHONY: TAGS-host
c52c6897 1518
c52c6897
PB
1519TAGS-host: maybe-TAGS-bfd
1520TAGS-host: maybe-TAGS-opcodes
1521TAGS-host: maybe-TAGS-binutils
1522TAGS-host: maybe-TAGS-bison
f9806fa5 1523TAGS-host: maybe-TAGS-cgen
c52c6897 1524TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1525TAGS-host: maybe-TAGS-etc
1526TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1527TAGS-host: maybe-TAGS-fixincludes
1528TAGS-host: maybe-TAGS-flex
1529TAGS-host: maybe-TAGS-gas
1530TAGS-host: maybe-TAGS-gcc
4b900473
PB
1531TAGS-host: maybe-TAGS-gmp
1532TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1533TAGS-host: maybe-TAGS-mpc
7ec59b9e 1534TAGS-host: maybe-TAGS-isl
1f53ca9a 1535TAGS-host: maybe-TAGS-libelf
93f9b408 1536TAGS-host: maybe-TAGS-gold
c52c6897 1537TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1538TAGS-host: maybe-TAGS-intl
1539TAGS-host: maybe-TAGS-tcl
1540TAGS-host: maybe-TAGS-itcl
1541TAGS-host: maybe-TAGS-ld
2bf680c4 1542TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1543TAGS-host: maybe-TAGS-libcpp
1544TAGS-host: maybe-TAGS-libdecnumber
1545TAGS-host: maybe-TAGS-libgui
1546TAGS-host: maybe-TAGS-libiberty
1b6c0831 1547TAGS-host: maybe-TAGS-libiberty-linker-plugin
dc448a7b 1548TAGS-host: maybe-TAGS-libiconv
c52c6897 1549TAGS-host: maybe-TAGS-m4
c52c6897 1550TAGS-host: maybe-TAGS-readline
c52c6897
PB
1551TAGS-host: maybe-TAGS-sid
1552TAGS-host: maybe-TAGS-sim
c52c6897 1553TAGS-host: maybe-TAGS-texinfo
c52c6897 1554TAGS-host: maybe-TAGS-zlib
73cc7272 1555TAGS-host: maybe-TAGS-gnulib
c52c6897
PB
1556TAGS-host: maybe-TAGS-gdb
1557TAGS-host: maybe-TAGS-expect
1558TAGS-host: maybe-TAGS-guile
1559TAGS-host: maybe-TAGS-tk
1560TAGS-host: maybe-TAGS-libtermcap
1561TAGS-host: maybe-TAGS-utils
1562TAGS-host: maybe-TAGS-gnattools
700d40ca 1563TAGS-host: maybe-TAGS-lto-plugin
1b6c0831
L
1564TAGS-host: maybe-TAGS-libcc1
1565TAGS-host: maybe-TAGS-gotools
0e65dfba 1566TAGS-host: maybe-TAGS-libctf
2a4cbe27 1567
4fa63067 1568.PHONY: TAGS-target
c52c6897
PB
1569
1570TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1571TAGS-target: maybe-TAGS-target-libsanitizer
1b6c0831 1572TAGS-target: maybe-TAGS-target-libmpx
95e43135 1573TAGS-target: maybe-TAGS-target-libvtv
e3f56a99 1574TAGS-target: maybe-TAGS-target-libcilkrts
1b6c0831 1575TAGS-target: maybe-TAGS-target-liboffloadmic
c52c6897 1576TAGS-target: maybe-TAGS-target-libssp
c52c6897 1577TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1578TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1579TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1580TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1581TAGS-target: maybe-TAGS-target-libgfortran
1582TAGS-target: maybe-TAGS-target-libobjc
e552509b 1583TAGS-target: maybe-TAGS-target-libgo
c52c6897
PB
1584TAGS-target: maybe-TAGS-target-libtermcap
1585TAGS-target: maybe-TAGS-target-winsup
1586TAGS-target: maybe-TAGS-target-libgloss
c52c6897 1587TAGS-target: maybe-TAGS-target-libffi
c52c6897 1588TAGS-target: maybe-TAGS-target-zlib
c52c6897
PB
1589TAGS-target: maybe-TAGS-target-rda
1590TAGS-target: maybe-TAGS-target-libada
1591TAGS-target: maybe-TAGS-target-libgomp
7ec59b9e
L
1592TAGS-target: maybe-TAGS-target-libitm
1593TAGS-target: maybe-TAGS-target-libatomic
a2592b1b 1594
4fa63067 1595.PHONY: do-install-info
f70224b5 1596do-install-info:
0aed8855 1597 @: $(MAKE); $(unstage)
e360f423
PB
1598 @r=`${PWD_COMMAND}`; export r; \
1599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1600 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
f70224b5 1601 install-info-target
f70224b5 1602
a2592b1b 1603
4fa63067 1604.PHONY: install-info-host
c52c6897 1605
c52c6897
PB
1606install-info-host: maybe-install-info-bfd
1607install-info-host: maybe-install-info-opcodes
1608install-info-host: maybe-install-info-binutils
1609install-info-host: maybe-install-info-bison
f9806fa5 1610install-info-host: maybe-install-info-cgen
c52c6897 1611install-info-host: maybe-install-info-dejagnu
c52c6897
PB
1612install-info-host: maybe-install-info-etc
1613install-info-host: maybe-install-info-fastjar
c52c6897
PB
1614install-info-host: maybe-install-info-fixincludes
1615install-info-host: maybe-install-info-flex
1616install-info-host: maybe-install-info-gas
1617install-info-host: maybe-install-info-gcc
4b900473
PB
1618install-info-host: maybe-install-info-gmp
1619install-info-host: maybe-install-info-mpfr
e8a5fa9c 1620install-info-host: maybe-install-info-mpc
7ec59b9e 1621install-info-host: maybe-install-info-isl
1f53ca9a 1622install-info-host: maybe-install-info-libelf
93f9b408 1623install-info-host: maybe-install-info-gold
c52c6897 1624install-info-host: maybe-install-info-gprof
c52c6897
PB
1625install-info-host: maybe-install-info-intl
1626install-info-host: maybe-install-info-tcl
1627install-info-host: maybe-install-info-itcl
1628install-info-host: maybe-install-info-ld
2bf680c4 1629install-info-host: maybe-install-info-libbacktrace
c52c6897
PB
1630install-info-host: maybe-install-info-libcpp
1631install-info-host: maybe-install-info-libdecnumber
1632install-info-host: maybe-install-info-libgui
1633install-info-host: maybe-install-info-libiberty
1b6c0831 1634install-info-host: maybe-install-info-libiberty-linker-plugin
dc448a7b 1635install-info-host: maybe-install-info-libiconv
c52c6897 1636install-info-host: maybe-install-info-m4
c52c6897 1637install-info-host: maybe-install-info-readline
c52c6897
PB
1638install-info-host: maybe-install-info-sid
1639install-info-host: maybe-install-info-sim
c52c6897 1640install-info-host: maybe-install-info-texinfo
c52c6897 1641install-info-host: maybe-install-info-zlib
73cc7272 1642install-info-host: maybe-install-info-gnulib
c52c6897
PB
1643install-info-host: maybe-install-info-gdb
1644install-info-host: maybe-install-info-expect
1645install-info-host: maybe-install-info-guile
1646install-info-host: maybe-install-info-tk
1647install-info-host: maybe-install-info-libtermcap
1648install-info-host: maybe-install-info-utils
1649install-info-host: maybe-install-info-gnattools
700d40ca 1650install-info-host: maybe-install-info-lto-plugin
1b6c0831
L
1651install-info-host: maybe-install-info-libcc1
1652install-info-host: maybe-install-info-gotools
0e65dfba 1653install-info-host: maybe-install-info-libctf
a2592b1b 1654
4fa63067 1655.PHONY: install-info-target
c52c6897
PB
1656
1657install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1658install-info-target: maybe-install-info-target-libsanitizer
1b6c0831 1659install-info-target: maybe-install-info-target-libmpx
95e43135 1660install-info-target: maybe-install-info-target-libvtv
e3f56a99 1661install-info-target: maybe-install-info-target-libcilkrts
1b6c0831 1662install-info-target: maybe-install-info-target-liboffloadmic
c52c6897 1663install-info-target: maybe-install-info-target-libssp
c52c6897 1664install-info-target: maybe-install-info-target-newlib
6aa8ef82 1665install-info-target: maybe-install-info-target-libgcc
2bf680c4 1666install-info-target: maybe-install-info-target-libbacktrace
e552509b 1667install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1668install-info-target: maybe-install-info-target-libgfortran
1669install-info-target: maybe-install-info-target-libobjc
e552509b 1670install-info-target: maybe-install-info-target-libgo
c52c6897
PB
1671install-info-target: maybe-install-info-target-libtermcap
1672install-info-target: maybe-install-info-target-winsup
1673install-info-target: maybe-install-info-target-libgloss
c52c6897 1674install-info-target: maybe-install-info-target-libffi
c52c6897 1675install-info-target: maybe-install-info-target-zlib
c52c6897
PB
1676install-info-target: maybe-install-info-target-rda
1677install-info-target: maybe-install-info-target-libada
1678install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1679install-info-target: maybe-install-info-target-libitm
1680install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1681
a3ca38d2
DD
1682.PHONY: do-install-pdf
1683do-install-pdf:
1684 @: $(MAKE); $(unstage)
1685 @r=`${PWD_COMMAND}`; export r; \
1686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1687 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1688 install-pdf-target
1689
1690
1691.PHONY: install-pdf-host
1692
a3ca38d2
DD
1693install-pdf-host: maybe-install-pdf-bfd
1694install-pdf-host: maybe-install-pdf-opcodes
1695install-pdf-host: maybe-install-pdf-binutils
1696install-pdf-host: maybe-install-pdf-bison
f9806fa5 1697install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1698install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1699install-pdf-host: maybe-install-pdf-etc
1700install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1701install-pdf-host: maybe-install-pdf-fixincludes
1702install-pdf-host: maybe-install-pdf-flex
1703install-pdf-host: maybe-install-pdf-gas
1704install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1705install-pdf-host: maybe-install-pdf-gmp
1706install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1707install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1708install-pdf-host: maybe-install-pdf-isl
1f53ca9a 1709install-pdf-host: maybe-install-pdf-libelf
93f9b408 1710install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1711install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1712install-pdf-host: maybe-install-pdf-intl
1713install-pdf-host: maybe-install-pdf-tcl
1714install-pdf-host: maybe-install-pdf-itcl
1715install-pdf-host: maybe-install-pdf-ld
2bf680c4 1716install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1717install-pdf-host: maybe-install-pdf-libcpp
1718install-pdf-host: maybe-install-pdf-libdecnumber
1719install-pdf-host: maybe-install-pdf-libgui
1720install-pdf-host: maybe-install-pdf-libiberty
1b6c0831 1721install-pdf-host: maybe-install-pdf-libiberty-linker-plugin
dc448a7b 1722install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1723install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1724install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1725install-pdf-host: maybe-install-pdf-sid
1726install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1727install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2 1728install-pdf-host: maybe-install-pdf-zlib
73cc7272 1729install-pdf-host: maybe-install-pdf-gnulib
a3ca38d2
DD
1730install-pdf-host: maybe-install-pdf-gdb
1731install-pdf-host: maybe-install-pdf-expect
1732install-pdf-host: maybe-install-pdf-guile
1733install-pdf-host: maybe-install-pdf-tk
1734install-pdf-host: maybe-install-pdf-libtermcap
1735install-pdf-host: maybe-install-pdf-utils
1736install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1737install-pdf-host: maybe-install-pdf-lto-plugin
1b6c0831
L
1738install-pdf-host: maybe-install-pdf-libcc1
1739install-pdf-host: maybe-install-pdf-gotools
0e65dfba 1740install-pdf-host: maybe-install-pdf-libctf
a3ca38d2
DD
1741
1742.PHONY: install-pdf-target
1743
1744install-pdf-target: maybe-install-pdf-target-libstdc++-v3
5286fdef 1745install-pdf-target: maybe-install-pdf-target-libsanitizer
1b6c0831 1746install-pdf-target: maybe-install-pdf-target-libmpx
95e43135 1747install-pdf-target: maybe-install-pdf-target-libvtv
e3f56a99 1748install-pdf-target: maybe-install-pdf-target-libcilkrts
1b6c0831 1749install-pdf-target: maybe-install-pdf-target-liboffloadmic
a3ca38d2
DD
1750install-pdf-target: maybe-install-pdf-target-libssp
1751install-pdf-target: maybe-install-pdf-target-newlib
1752install-pdf-target: maybe-install-pdf-target-libgcc
2bf680c4 1753install-pdf-target: maybe-install-pdf-target-libbacktrace
e552509b 1754install-pdf-target: maybe-install-pdf-target-libquadmath
a3ca38d2
DD
1755install-pdf-target: maybe-install-pdf-target-libgfortran
1756install-pdf-target: maybe-install-pdf-target-libobjc
e552509b 1757install-pdf-target: maybe-install-pdf-target-libgo
a3ca38d2
DD
1758install-pdf-target: maybe-install-pdf-target-libtermcap
1759install-pdf-target: maybe-install-pdf-target-winsup
1760install-pdf-target: maybe-install-pdf-target-libgloss
a3ca38d2 1761install-pdf-target: maybe-install-pdf-target-libffi
a3ca38d2 1762install-pdf-target: maybe-install-pdf-target-zlib
a3ca38d2
DD
1763install-pdf-target: maybe-install-pdf-target-rda
1764install-pdf-target: maybe-install-pdf-target-libada
1765install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1766install-pdf-target: maybe-install-pdf-target-libitm
1767install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1768
108a6f8e
CD
1769.PHONY: do-install-html
1770do-install-html:
1771 @: $(MAKE); $(unstage)
1772 @r=`${PWD_COMMAND}`; export r; \
1773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1774 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1775 install-html-target
1776
1777
1778.PHONY: install-html-host
1779
108a6f8e
CD
1780install-html-host: maybe-install-html-bfd
1781install-html-host: maybe-install-html-opcodes
1782install-html-host: maybe-install-html-binutils
1783install-html-host: maybe-install-html-bison
f9806fa5 1784install-html-host: maybe-install-html-cgen
108a6f8e 1785install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1786install-html-host: maybe-install-html-etc
1787install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1788install-html-host: maybe-install-html-fixincludes
1789install-html-host: maybe-install-html-flex
1790install-html-host: maybe-install-html-gas
1791install-html-host: maybe-install-html-gcc
4b900473
PB
1792install-html-host: maybe-install-html-gmp
1793install-html-host: maybe-install-html-mpfr
e8a5fa9c 1794install-html-host: maybe-install-html-mpc
7ec59b9e 1795install-html-host: maybe-install-html-isl
1f53ca9a 1796install-html-host: maybe-install-html-libelf
93f9b408 1797install-html-host: maybe-install-html-gold
108a6f8e 1798install-html-host: maybe-install-html-gprof
108a6f8e
CD
1799install-html-host: maybe-install-html-intl
1800install-html-host: maybe-install-html-tcl
1801install-html-host: maybe-install-html-itcl
1802install-html-host: maybe-install-html-ld
2bf680c4 1803install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1804install-html-host: maybe-install-html-libcpp
1805install-html-host: maybe-install-html-libdecnumber
1806install-html-host: maybe-install-html-libgui
1807install-html-host: maybe-install-html-libiberty
1b6c0831 1808install-html-host: maybe-install-html-libiberty-linker-plugin
dc448a7b 1809install-html-host: maybe-install-html-libiconv
108a6f8e 1810install-html-host: maybe-install-html-m4
108a6f8e 1811install-html-host: maybe-install-html-readline
108a6f8e
CD
1812install-html-host: maybe-install-html-sid
1813install-html-host: maybe-install-html-sim
108a6f8e 1814install-html-host: maybe-install-html-texinfo
108a6f8e 1815install-html-host: maybe-install-html-zlib
73cc7272 1816install-html-host: maybe-install-html-gnulib
108a6f8e
CD
1817install-html-host: maybe-install-html-gdb
1818install-html-host: maybe-install-html-expect
1819install-html-host: maybe-install-html-guile
1820install-html-host: maybe-install-html-tk
1821install-html-host: maybe-install-html-libtermcap
1822install-html-host: maybe-install-html-utils
1823install-html-host: maybe-install-html-gnattools
700d40ca 1824install-html-host: maybe-install-html-lto-plugin
1b6c0831
L
1825install-html-host: maybe-install-html-libcc1
1826install-html-host: maybe-install-html-gotools
0e65dfba 1827install-html-host: maybe-install-html-libctf
108a6f8e
CD
1828
1829.PHONY: install-html-target
1830
1831install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1832install-html-target: maybe-install-html-target-libsanitizer
1b6c0831 1833install-html-target: maybe-install-html-target-libmpx
95e43135 1834install-html-target: maybe-install-html-target-libvtv
e3f56a99 1835install-html-target: maybe-install-html-target-libcilkrts
1b6c0831 1836install-html-target: maybe-install-html-target-liboffloadmic
108a6f8e 1837install-html-target: maybe-install-html-target-libssp
108a6f8e 1838install-html-target: maybe-install-html-target-newlib
6aa8ef82 1839install-html-target: maybe-install-html-target-libgcc
2bf680c4 1840install-html-target: maybe-install-html-target-libbacktrace
e552509b 1841install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1842install-html-target: maybe-install-html-target-libgfortran
1843install-html-target: maybe-install-html-target-libobjc
e552509b 1844install-html-target: maybe-install-html-target-libgo
108a6f8e
CD
1845install-html-target: maybe-install-html-target-libtermcap
1846install-html-target: maybe-install-html-target-winsup
1847install-html-target: maybe-install-html-target-libgloss
108a6f8e 1848install-html-target: maybe-install-html-target-libffi
108a6f8e 1849install-html-target: maybe-install-html-target-zlib
108a6f8e
CD
1850install-html-target: maybe-install-html-target-rda
1851install-html-target: maybe-install-html-target-libada
1852install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1853install-html-target: maybe-install-html-target-libitm
1854install-html-target: maybe-install-html-target-libatomic
108a6f8e 1855
2a4cbe27 1856.PHONY: do-installcheck
f70224b5 1857do-installcheck:
0aed8855 1858 @: $(MAKE); $(unstage)
e360f423
PB
1859 @r=`${PWD_COMMAND}`; export r; \
1860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1861 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1862 installcheck-target
f70224b5 1863
2a4cbe27
NN
1864
1865.PHONY: installcheck-host
c52c6897 1866
c52c6897
PB
1867installcheck-host: maybe-installcheck-bfd
1868installcheck-host: maybe-installcheck-opcodes
1869installcheck-host: maybe-installcheck-binutils
1870installcheck-host: maybe-installcheck-bison
f9806fa5 1871installcheck-host: maybe-installcheck-cgen
c52c6897 1872installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1873installcheck-host: maybe-installcheck-etc
1874installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1875installcheck-host: maybe-installcheck-fixincludes
1876installcheck-host: maybe-installcheck-flex
1877installcheck-host: maybe-installcheck-gas
1878installcheck-host: maybe-installcheck-gcc
4b900473
PB
1879installcheck-host: maybe-installcheck-gmp
1880installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1881installcheck-host: maybe-installcheck-mpc
7ec59b9e 1882installcheck-host: maybe-installcheck-isl
1f53ca9a 1883installcheck-host: maybe-installcheck-libelf
93f9b408 1884installcheck-host: maybe-installcheck-gold
c52c6897 1885installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1886installcheck-host: maybe-installcheck-intl
1887installcheck-host: maybe-installcheck-tcl
1888installcheck-host: maybe-installcheck-itcl
1889installcheck-host: maybe-installcheck-ld
2bf680c4 1890installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1891installcheck-host: maybe-installcheck-libcpp
1892installcheck-host: maybe-installcheck-libdecnumber
1893installcheck-host: maybe-installcheck-libgui
1894installcheck-host: maybe-installcheck-libiberty
1b6c0831 1895installcheck-host: maybe-installcheck-libiberty-linker-plugin
dc448a7b 1896installcheck-host: maybe-installcheck-libiconv
c52c6897 1897installcheck-host: maybe-installcheck-m4
c52c6897 1898installcheck-host: maybe-installcheck-readline
c52c6897
PB
1899installcheck-host: maybe-installcheck-sid
1900installcheck-host: maybe-installcheck-sim
c52c6897 1901installcheck-host: maybe-installcheck-texinfo
c52c6897 1902installcheck-host: maybe-installcheck-zlib
73cc7272 1903installcheck-host: maybe-installcheck-gnulib
c52c6897
PB
1904installcheck-host: maybe-installcheck-gdb
1905installcheck-host: maybe-installcheck-expect
1906installcheck-host: maybe-installcheck-guile
1907installcheck-host: maybe-installcheck-tk
1908installcheck-host: maybe-installcheck-libtermcap
1909installcheck-host: maybe-installcheck-utils
1910installcheck-host: maybe-installcheck-gnattools
700d40ca 1911installcheck-host: maybe-installcheck-lto-plugin
1b6c0831
L
1912installcheck-host: maybe-installcheck-libcc1
1913installcheck-host: maybe-installcheck-gotools
0e65dfba 1914installcheck-host: maybe-installcheck-libctf
2a4cbe27
NN
1915
1916.PHONY: installcheck-target
c52c6897
PB
1917
1918installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 1919installcheck-target: maybe-installcheck-target-libsanitizer
1b6c0831 1920installcheck-target: maybe-installcheck-target-libmpx
95e43135 1921installcheck-target: maybe-installcheck-target-libvtv
e3f56a99 1922installcheck-target: maybe-installcheck-target-libcilkrts
1b6c0831 1923installcheck-target: maybe-installcheck-target-liboffloadmic
c52c6897 1924installcheck-target: maybe-installcheck-target-libssp
c52c6897 1925installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 1926installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 1927installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 1928installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
1929installcheck-target: maybe-installcheck-target-libgfortran
1930installcheck-target: maybe-installcheck-target-libobjc
e552509b 1931installcheck-target: maybe-installcheck-target-libgo
c52c6897
PB
1932installcheck-target: maybe-installcheck-target-libtermcap
1933installcheck-target: maybe-installcheck-target-winsup
1934installcheck-target: maybe-installcheck-target-libgloss
c52c6897 1935installcheck-target: maybe-installcheck-target-libffi
c52c6897 1936installcheck-target: maybe-installcheck-target-zlib
c52c6897
PB
1937installcheck-target: maybe-installcheck-target-rda
1938installcheck-target: maybe-installcheck-target-libada
1939installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
1940installcheck-target: maybe-installcheck-target-libitm
1941installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 1942
4fa63067 1943.PHONY: do-mostlyclean
f70224b5 1944do-mostlyclean:
0aed8855 1945 @: $(MAKE); $(unstage)
e360f423
PB
1946 @r=`${PWD_COMMAND}`; export r; \
1947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1948 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
f70224b5 1949 mostlyclean-target
f70224b5 1950
2a4cbe27 1951
4fa63067 1952.PHONY: mostlyclean-host
c52c6897 1953
c52c6897
PB
1954mostlyclean-host: maybe-mostlyclean-bfd
1955mostlyclean-host: maybe-mostlyclean-opcodes
1956mostlyclean-host: maybe-mostlyclean-binutils
1957mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 1958mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 1959mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
1960mostlyclean-host: maybe-mostlyclean-etc
1961mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
1962mostlyclean-host: maybe-mostlyclean-fixincludes
1963mostlyclean-host: maybe-mostlyclean-flex
1964mostlyclean-host: maybe-mostlyclean-gas
1965mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
1966mostlyclean-host: maybe-mostlyclean-gmp
1967mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 1968mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 1969mostlyclean-host: maybe-mostlyclean-isl
1f53ca9a 1970mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 1971mostlyclean-host: maybe-mostlyclean-gold
c52c6897 1972mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
1973mostlyclean-host: maybe-mostlyclean-intl
1974mostlyclean-host: maybe-mostlyclean-tcl
1975mostlyclean-host: maybe-mostlyclean-itcl
1976mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 1977mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
1978mostlyclean-host: maybe-mostlyclean-libcpp
1979mostlyclean-host: maybe-mostlyclean-libdecnumber
1980mostlyclean-host: maybe-mostlyclean-libgui
1981mostlyclean-host: maybe-mostlyclean-libiberty
1b6c0831 1982mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin
dc448a7b 1983mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 1984mostlyclean-host: maybe-mostlyclean-m4
c52c6897 1985mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
1986mostlyclean-host: maybe-mostlyclean-sid
1987mostlyclean-host: maybe-mostlyclean-sim
c52c6897 1988mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897 1989mostlyclean-host: maybe-mostlyclean-zlib
73cc7272 1990mostlyclean-host: maybe-mostlyclean-gnulib
c52c6897
PB
1991mostlyclean-host: maybe-mostlyclean-gdb
1992mostlyclean-host: maybe-mostlyclean-expect
1993mostlyclean-host: maybe-mostlyclean-guile
1994mostlyclean-host: maybe-mostlyclean-tk
1995mostlyclean-host: maybe-mostlyclean-libtermcap
1996mostlyclean-host: maybe-mostlyclean-utils
1997mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 1998mostlyclean-host: maybe-mostlyclean-lto-plugin
1b6c0831
L
1999mostlyclean-host: maybe-mostlyclean-libcc1
2000mostlyclean-host: maybe-mostlyclean-gotools
0e65dfba 2001mostlyclean-host: maybe-mostlyclean-libctf
2a4cbe27 2002
4fa63067 2003.PHONY: mostlyclean-target
c52c6897
PB
2004
2005mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 2006mostlyclean-target: maybe-mostlyclean-target-libsanitizer
1b6c0831 2007mostlyclean-target: maybe-mostlyclean-target-libmpx
95e43135 2008mostlyclean-target: maybe-mostlyclean-target-libvtv
e3f56a99 2009mostlyclean-target: maybe-mostlyclean-target-libcilkrts
1b6c0831 2010mostlyclean-target: maybe-mostlyclean-target-liboffloadmic
c52c6897 2011mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 2012mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 2013mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 2014mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 2015mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
2016mostlyclean-target: maybe-mostlyclean-target-libgfortran
2017mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 2018mostlyclean-target: maybe-mostlyclean-target-libgo
c52c6897
PB
2019mostlyclean-target: maybe-mostlyclean-target-libtermcap
2020mostlyclean-target: maybe-mostlyclean-target-winsup
2021mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897 2022mostlyclean-target: maybe-mostlyclean-target-libffi
c52c6897 2023mostlyclean-target: maybe-mostlyclean-target-zlib
c52c6897
PB
2024mostlyclean-target: maybe-mostlyclean-target-rda
2025mostlyclean-target: maybe-mostlyclean-target-libada
2026mostlyclean-target: maybe-mostlyclean-target-libgomp
7ec59b9e
L
2027mostlyclean-target: maybe-mostlyclean-target-libitm
2028mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 2029
4fa63067 2030.PHONY: do-clean
f70224b5 2031do-clean:
0aed8855 2032 @: $(MAKE); $(unstage)
e360f423
PB
2033 @r=`${PWD_COMMAND}`; export r; \
2034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2035 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 2036 clean-target
f70224b5 2037
2a4cbe27 2038
4fa63067 2039.PHONY: clean-host
c52c6897 2040
c52c6897
PB
2041clean-host: maybe-clean-bfd
2042clean-host: maybe-clean-opcodes
2043clean-host: maybe-clean-binutils
2044clean-host: maybe-clean-bison
f9806fa5 2045clean-host: maybe-clean-cgen
c52c6897 2046clean-host: maybe-clean-dejagnu
c52c6897
PB
2047clean-host: maybe-clean-etc
2048clean-host: maybe-clean-fastjar
c52c6897
PB
2049clean-host: maybe-clean-fixincludes
2050clean-host: maybe-clean-flex
2051clean-host: maybe-clean-gas
2052clean-host: maybe-clean-gcc
4b900473
PB
2053clean-host: maybe-clean-gmp
2054clean-host: maybe-clean-mpfr
e8a5fa9c 2055clean-host: maybe-clean-mpc
7ec59b9e 2056clean-host: maybe-clean-isl
1f53ca9a 2057clean-host: maybe-clean-libelf
93f9b408 2058clean-host: maybe-clean-gold
c52c6897 2059clean-host: maybe-clean-gprof
c52c6897
PB
2060clean-host: maybe-clean-intl
2061clean-host: maybe-clean-tcl
2062clean-host: maybe-clean-itcl
2063clean-host: maybe-clean-ld
2bf680c4 2064clean-host: maybe-clean-libbacktrace
c52c6897
PB
2065clean-host: maybe-clean-libcpp
2066clean-host: maybe-clean-libdecnumber
2067clean-host: maybe-clean-libgui
2068clean-host: maybe-clean-libiberty
1b6c0831 2069clean-host: maybe-clean-libiberty-linker-plugin
dc448a7b 2070clean-host: maybe-clean-libiconv
c52c6897 2071clean-host: maybe-clean-m4
c52c6897 2072clean-host: maybe-clean-readline
c52c6897
PB
2073clean-host: maybe-clean-sid
2074clean-host: maybe-clean-sim
c52c6897 2075clean-host: maybe-clean-texinfo
c52c6897 2076clean-host: maybe-clean-zlib
73cc7272 2077clean-host: maybe-clean-gnulib
c52c6897
PB
2078clean-host: maybe-clean-gdb
2079clean-host: maybe-clean-expect
2080clean-host: maybe-clean-guile
2081clean-host: maybe-clean-tk
2082clean-host: maybe-clean-libtermcap
2083clean-host: maybe-clean-utils
2084clean-host: maybe-clean-gnattools
700d40ca 2085clean-host: maybe-clean-lto-plugin
1b6c0831
L
2086clean-host: maybe-clean-libcc1
2087clean-host: maybe-clean-gotools
0e65dfba 2088clean-host: maybe-clean-libctf
2a4cbe27 2089
4fa63067 2090.PHONY: clean-target
c52c6897
PB
2091
2092clean-target: maybe-clean-target-libstdc++-v3
5286fdef 2093clean-target: maybe-clean-target-libsanitizer
1b6c0831 2094clean-target: maybe-clean-target-libmpx
95e43135 2095clean-target: maybe-clean-target-libvtv
e3f56a99 2096clean-target: maybe-clean-target-libcilkrts
1b6c0831 2097clean-target: maybe-clean-target-liboffloadmic
c52c6897 2098clean-target: maybe-clean-target-libssp
c52c6897 2099clean-target: maybe-clean-target-newlib
6aa8ef82 2100clean-target: maybe-clean-target-libgcc
2bf680c4 2101clean-target: maybe-clean-target-libbacktrace
e552509b 2102clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2103clean-target: maybe-clean-target-libgfortran
2104clean-target: maybe-clean-target-libobjc
e552509b 2105clean-target: maybe-clean-target-libgo
c52c6897
PB
2106clean-target: maybe-clean-target-libtermcap
2107clean-target: maybe-clean-target-winsup
2108clean-target: maybe-clean-target-libgloss
c52c6897 2109clean-target: maybe-clean-target-libffi
c52c6897 2110clean-target: maybe-clean-target-zlib
c52c6897
PB
2111clean-target: maybe-clean-target-rda
2112clean-target: maybe-clean-target-libada
2113clean-target: maybe-clean-target-libgomp
7ec59b9e
L
2114clean-target: maybe-clean-target-libitm
2115clean-target: maybe-clean-target-libatomic
2a4cbe27 2116
4fa63067 2117.PHONY: do-distclean
f70224b5 2118do-distclean:
0aed8855 2119 @: $(MAKE); $(unstage)
e360f423
PB
2120 @r=`${PWD_COMMAND}`; export r; \
2121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2122 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2123 distclean-target
f70224b5 2124
2a4cbe27 2125
4fa63067 2126.PHONY: distclean-host
c52c6897 2127
c52c6897
PB
2128distclean-host: maybe-distclean-bfd
2129distclean-host: maybe-distclean-opcodes
2130distclean-host: maybe-distclean-binutils
2131distclean-host: maybe-distclean-bison
f9806fa5 2132distclean-host: maybe-distclean-cgen
c52c6897 2133distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2134distclean-host: maybe-distclean-etc
2135distclean-host: maybe-distclean-fastjar
c52c6897
PB
2136distclean-host: maybe-distclean-fixincludes
2137distclean-host: maybe-distclean-flex
2138distclean-host: maybe-distclean-gas
2139distclean-host: maybe-distclean-gcc
4b900473
PB
2140distclean-host: maybe-distclean-gmp
2141distclean-host: maybe-distclean-mpfr
e8a5fa9c 2142distclean-host: maybe-distclean-mpc
7ec59b9e 2143distclean-host: maybe-distclean-isl
1f53ca9a 2144distclean-host: maybe-distclean-libelf
93f9b408 2145distclean-host: maybe-distclean-gold
c52c6897 2146distclean-host: maybe-distclean-gprof
c52c6897
PB
2147distclean-host: maybe-distclean-intl
2148distclean-host: maybe-distclean-tcl
2149distclean-host: maybe-distclean-itcl
2150distclean-host: maybe-distclean-ld
2bf680c4 2151distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2152distclean-host: maybe-distclean-libcpp
2153distclean-host: maybe-distclean-libdecnumber
2154distclean-host: maybe-distclean-libgui
2155distclean-host: maybe-distclean-libiberty
1b6c0831 2156distclean-host: maybe-distclean-libiberty-linker-plugin
dc448a7b 2157distclean-host: maybe-distclean-libiconv
c52c6897 2158distclean-host: maybe-distclean-m4
c52c6897 2159distclean-host: maybe-distclean-readline
c52c6897
PB
2160distclean-host: maybe-distclean-sid
2161distclean-host: maybe-distclean-sim
c52c6897 2162distclean-host: maybe-distclean-texinfo
c52c6897 2163distclean-host: maybe-distclean-zlib
73cc7272 2164distclean-host: maybe-distclean-gnulib
c52c6897
PB
2165distclean-host: maybe-distclean-gdb
2166distclean-host: maybe-distclean-expect
2167distclean-host: maybe-distclean-guile
2168distclean-host: maybe-distclean-tk
2169distclean-host: maybe-distclean-libtermcap
2170distclean-host: maybe-distclean-utils
2171distclean-host: maybe-distclean-gnattools
700d40ca 2172distclean-host: maybe-distclean-lto-plugin
1b6c0831
L
2173distclean-host: maybe-distclean-libcc1
2174distclean-host: maybe-distclean-gotools
0e65dfba 2175distclean-host: maybe-distclean-libctf
2a4cbe27 2176
4fa63067 2177.PHONY: distclean-target
c52c6897
PB
2178
2179distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2180distclean-target: maybe-distclean-target-libsanitizer
1b6c0831 2181distclean-target: maybe-distclean-target-libmpx
95e43135 2182distclean-target: maybe-distclean-target-libvtv
e3f56a99 2183distclean-target: maybe-distclean-target-libcilkrts
1b6c0831 2184distclean-target: maybe-distclean-target-liboffloadmic
c52c6897 2185distclean-target: maybe-distclean-target-libssp
c52c6897 2186distclean-target: maybe-distclean-target-newlib
6aa8ef82 2187distclean-target: maybe-distclean-target-libgcc
2bf680c4 2188distclean-target: maybe-distclean-target-libbacktrace
e552509b 2189distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2190distclean-target: maybe-distclean-target-libgfortran
2191distclean-target: maybe-distclean-target-libobjc
e552509b 2192distclean-target: maybe-distclean-target-libgo
c52c6897
PB
2193distclean-target: maybe-distclean-target-libtermcap
2194distclean-target: maybe-distclean-target-winsup
2195distclean-target: maybe-distclean-target-libgloss
c52c6897 2196distclean-target: maybe-distclean-target-libffi
c52c6897 2197distclean-target: maybe-distclean-target-zlib
c52c6897
PB
2198distclean-target: maybe-distclean-target-rda
2199distclean-target: maybe-distclean-target-libada
2200distclean-target: maybe-distclean-target-libgomp
7ec59b9e
L
2201distclean-target: maybe-distclean-target-libitm
2202distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2203
4fa63067 2204.PHONY: do-maintainer-clean
f70224b5 2205do-maintainer-clean:
0aed8855 2206 @: $(MAKE); $(unstage)
e360f423
PB
2207 @r=`${PWD_COMMAND}`; export r; \
2208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2209 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2210 maintainer-clean-target
f70224b5 2211
2a4cbe27 2212
4fa63067 2213.PHONY: maintainer-clean-host
c52c6897 2214
c52c6897
PB
2215maintainer-clean-host: maybe-maintainer-clean-bfd
2216maintainer-clean-host: maybe-maintainer-clean-opcodes
2217maintainer-clean-host: maybe-maintainer-clean-binutils
2218maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2219maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2220maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2221maintainer-clean-host: maybe-maintainer-clean-etc
2222maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2223maintainer-clean-host: maybe-maintainer-clean-fixincludes
2224maintainer-clean-host: maybe-maintainer-clean-flex
2225maintainer-clean-host: maybe-maintainer-clean-gas
2226maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2227maintainer-clean-host: maybe-maintainer-clean-gmp
2228maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2229maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2230maintainer-clean-host: maybe-maintainer-clean-isl
1f53ca9a 2231maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2232maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2233maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2234maintainer-clean-host: maybe-maintainer-clean-intl
2235maintainer-clean-host: maybe-maintainer-clean-tcl
2236maintainer-clean-host: maybe-maintainer-clean-itcl
2237maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2238maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2239maintainer-clean-host: maybe-maintainer-clean-libcpp
2240maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2241maintainer-clean-host: maybe-maintainer-clean-libgui
2242maintainer-clean-host: maybe-maintainer-clean-libiberty
1b6c0831 2243maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin
dc448a7b 2244maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2245maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2246maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2247maintainer-clean-host: maybe-maintainer-clean-sid
2248maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2249maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897 2250maintainer-clean-host: maybe-maintainer-clean-zlib
73cc7272 2251maintainer-clean-host: maybe-maintainer-clean-gnulib
c52c6897
PB
2252maintainer-clean-host: maybe-maintainer-clean-gdb
2253maintainer-clean-host: maybe-maintainer-clean-expect
2254maintainer-clean-host: maybe-maintainer-clean-guile
2255maintainer-clean-host: maybe-maintainer-clean-tk
2256maintainer-clean-host: maybe-maintainer-clean-libtermcap
2257maintainer-clean-host: maybe-maintainer-clean-utils
2258maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2259maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1b6c0831
L
2260maintainer-clean-host: maybe-maintainer-clean-libcc1
2261maintainer-clean-host: maybe-maintainer-clean-gotools
0e65dfba 2262maintainer-clean-host: maybe-maintainer-clean-libctf
2a4cbe27 2263
4fa63067 2264.PHONY: maintainer-clean-target
c52c6897
PB
2265
2266maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2267maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
1b6c0831 2268maintainer-clean-target: maybe-maintainer-clean-target-libmpx
95e43135 2269maintainer-clean-target: maybe-maintainer-clean-target-libvtv
e3f56a99 2270maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts
1b6c0831 2271maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic
c52c6897 2272maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2273maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2274maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2275maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2276maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2277maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2278maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2279maintainer-clean-target: maybe-maintainer-clean-target-libgo
c52c6897
PB
2280maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2281maintainer-clean-target: maybe-maintainer-clean-target-winsup
2282maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897 2283maintainer-clean-target: maybe-maintainer-clean-target-libffi
c52c6897 2284maintainer-clean-target: maybe-maintainer-clean-target-zlib
c52c6897
PB
2285maintainer-clean-target: maybe-maintainer-clean-target-rda
2286maintainer-clean-target: maybe-maintainer-clean-target-libada
2287maintainer-clean-target: maybe-maintainer-clean-target-libgomp
7ec59b9e
L
2288maintainer-clean-target: maybe-maintainer-clean-target-libitm
2289maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2290
2a4cbe27 2291
4fa63067 2292# Here are the targets which correspond to the do-X targets.
2a4cbe27 2293
a3ca38d2
DD
2294.PHONY: info installcheck dvi pdf html
2295.PHONY: install-info install-pdf install-html
4fa63067
NN
2296.PHONY: clean distclean mostlyclean maintainer-clean realclean
2297.PHONY: local-clean local-distclean local-maintainer-clean
2298info: do-info
2299installcheck: do-installcheck
2300dvi: do-dvi
56a8fe78 2301pdf: do-pdf
6d389afc 2302html: do-html
2a4cbe27 2303
4fa63067
NN
2304# Make sure makeinfo is built before we do a `make info', if we're
2305# in fact building texinfo.
2306do-info: maybe-all-texinfo
2a4cbe27 2307
4fa63067 2308install-info: do-install-info dir.info
b40e3958 2309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
2310 if [ -f dir.info ]; then \
2311 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info; \
2312 else true; fi
2a4cbe27 2313
a3ca38d2
DD
2314install-pdf: do-install-pdf
2315
108a6f8e
CD
2316install-html: do-install-html
2317
4fa63067
NN
2318local-clean:
2319 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2320
4fa63067
NN
2321local-distclean:
2322 -rm -f Makefile config.status config.cache mh-frag mt-frag
bb7dc663 2323 -rm -f maybedep.tmp serdep.tmp stage_final
4fa63067
NN
2324 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2325 rm -rf $(TARGET_SUBDIR); \
2326 else true; fi
2327 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2328 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2329 rm -rf $(HOST_SUBDIR); \
2330 else true; fi
4fa63067
NN
2331 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2332 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2333 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2334 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
bb7dc663
NC
2335 -rmdir fastjar gcc gnattools gotools libcc1 libiberty 2>/dev/null
2336 -rmdir texinfo zlib 2>/dev/null
18fa8f9c 2337 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2338
4fa63067
NN
2339local-maintainer-clean:
2340 @echo "This command is intended for maintainers to use;"
2341 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2342
4fa63067
NN
2343clean: do-clean local-clean
2344mostlyclean: do-mostlyclean local-clean
2345distclean: do-distclean local-clean local-distclean
2346maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2347maintainer-clean: local-distclean
2348realclean: maintainer-clean
2a4cbe27 2349
4fa63067 2350# Check target.
2a4cbe27 2351
4fa63067
NN
2352.PHONY: check do-check
2353check: do-check
2a4cbe27 2354
4fa63067 2355# Only include modules actually being configured and built.
f70224b5
PB
2356.PHONY: check-host
2357check-host: \
4fa63067
NN
2358 maybe-check-bfd \
2359 maybe-check-opcodes \
2360 maybe-check-binutils \
2361 maybe-check-bison \
f9806fa5 2362 maybe-check-cgen \
4fa63067 2363 maybe-check-dejagnu \
4fa63067
NN
2364 maybe-check-etc \
2365 maybe-check-fastjar \
d3ed111c 2366 maybe-check-fixincludes \
4fa63067
NN
2367 maybe-check-flex \
2368 maybe-check-gas \
b813574b 2369 maybe-check-gcc \
4b900473
PB
2370 maybe-check-gmp \
2371 maybe-check-mpfr \
e8a5fa9c 2372 maybe-check-mpc \
7ec59b9e 2373 maybe-check-isl \
1f53ca9a 2374 maybe-check-libelf \
93f9b408 2375 maybe-check-gold \
4fa63067 2376 maybe-check-gprof \
4fa63067
NN
2377 maybe-check-intl \
2378 maybe-check-tcl \
2379 maybe-check-itcl \
2380 maybe-check-ld \
2bf680c4 2381 maybe-check-libbacktrace \
04cf1b77 2382 maybe-check-libcpp \
be01d343 2383 maybe-check-libdecnumber \
4fa63067
NN
2384 maybe-check-libgui \
2385 maybe-check-libiberty \
1b6c0831 2386 maybe-check-libiberty-linker-plugin \
dc448a7b 2387 maybe-check-libiconv \
4fa63067 2388 maybe-check-m4 \
4fa63067 2389 maybe-check-readline \
4fa63067
NN
2390 maybe-check-sid \
2391 maybe-check-sim \
4fa63067 2392 maybe-check-texinfo \
4fa63067 2393 maybe-check-zlib \
73cc7272 2394 maybe-check-gnulib \
4fa63067
NN
2395 maybe-check-gdb \
2396 maybe-check-expect \
2397 maybe-check-guile \
2398 maybe-check-tk \
4fa63067
NN
2399 maybe-check-libtermcap \
2400 maybe-check-utils \
700d40ca 2401 maybe-check-gnattools \
1b6c0831
L
2402 maybe-check-lto-plugin \
2403 maybe-check-libcc1 \
0e65dfba
NA
2404 maybe-check-gotools \
2405 maybe-check-libctf
f70224b5
PB
2406
2407.PHONY: check-target
2408check-target: \
4fa63067 2409 maybe-check-target-libstdc++-v3 \
5286fdef 2410 maybe-check-target-libsanitizer \
1b6c0831 2411 maybe-check-target-libmpx \
95e43135 2412 maybe-check-target-libvtv \
e3f56a99 2413 maybe-check-target-libcilkrts \
1b6c0831 2414 maybe-check-target-liboffloadmic \
064d0a7c 2415 maybe-check-target-libssp \
4fa63067 2416 maybe-check-target-newlib \
6aa8ef82 2417 maybe-check-target-libgcc \
2bf680c4 2418 maybe-check-target-libbacktrace \
e552509b 2419 maybe-check-target-libquadmath \
4b1cb4fe 2420 maybe-check-target-libgfortran \
4fa63067 2421 maybe-check-target-libobjc \
e552509b 2422 maybe-check-target-libgo \
4fa63067
NN
2423 maybe-check-target-libtermcap \
2424 maybe-check-target-winsup \
2425 maybe-check-target-libgloss \
4fa63067 2426 maybe-check-target-libffi \
4fa63067 2427 maybe-check-target-zlib \
4fa63067 2428 maybe-check-target-rda \
b3ded179 2429 maybe-check-target-libada \
7ec59b9e
L
2430 maybe-check-target-libgomp \
2431 maybe-check-target-libitm \
2432 maybe-check-target-libatomic
f70224b5
PB
2433
2434do-check:
0aed8855 2435 @: $(MAKE); $(unstage)
e360f423
PB
2436 @r=`${PWD_COMMAND}`; export r; \
2437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2438 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2439
4fa63067 2440# Automated reporting of test results.
2a4cbe27 2441
4fa63067
NN
2442warning.log: build.log
2443 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2444
4fa63067
NN
2445mail-report.log:
2446 if test x'$(BOOT_CFLAGS)' != x''; then \
2447 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2448 fi; \
2449 $(srcdir)/contrib/test_summary -t >$@
2450 chmod +x $@
2451 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2452
4fa63067
NN
2453mail-report-with-warnings.log: warning.log
2454 if test x'$(BOOT_CFLAGS)' != x''; then \
2455 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2456 fi; \
2457 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2458 chmod +x $@
2459 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2460
1b6c0831
L
2461# Local Vim config
2462
2463$(srcdir)/.local.vimrc:
22121df0 2464 $(LN_S) contrib/vimrc $@
1b6c0831
L
2465
2466$(srcdir)/.lvimrc:
22121df0 2467 $(LN_S) contrib/vimrc $@
1b6c0831
L
2468
2469vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2470
2471.PHONY: vimrc
2472
4849dfd8
NC
2473# clang-format config
2474
2475$(srcdir)/.clang-format:
2476 $(LN_S) contrib/clang-format $@
2477
2478clang-format: $(srcdir)/.clang-format
2479
2480.PHONY: clang-format
2481
4fa63067 2482# Installation targets.
2a4cbe27 2483
4fa63067 2484.PHONY: install uninstall
f70224b5 2485install:
0aed8855 2486 @: $(MAKE); $(unstage)
e360f423
PB
2487 @r=`${PWD_COMMAND}`; export r; \
2488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2489 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2490
4fa63067
NN
2491.PHONY: install-host-nogcc
2492install-host-nogcc: \
4fa63067
NN
2493 maybe-install-bfd \
2494 maybe-install-opcodes \
2495 maybe-install-binutils \
2496 maybe-install-bison \
f9806fa5 2497 maybe-install-cgen \
4fa63067 2498 maybe-install-dejagnu \
4fa63067
NN
2499 maybe-install-etc \
2500 maybe-install-fastjar \
d3ed111c 2501 maybe-install-fixincludes \
4fa63067
NN
2502 maybe-install-flex \
2503 maybe-install-gas \
4b900473
PB
2504 maybe-install-gmp \
2505 maybe-install-mpfr \
e8a5fa9c 2506 maybe-install-mpc \
7ec59b9e 2507 maybe-install-isl \
1f53ca9a 2508 maybe-install-libelf \
93f9b408 2509 maybe-install-gold \
4fa63067 2510 maybe-install-gprof \
4fa63067
NN
2511 maybe-install-intl \
2512 maybe-install-tcl \
2513 maybe-install-itcl \
2514 maybe-install-ld \
2bf680c4 2515 maybe-install-libbacktrace \
04cf1b77 2516 maybe-install-libcpp \
be01d343 2517 maybe-install-libdecnumber \
4fa63067
NN
2518 maybe-install-libgui \
2519 maybe-install-libiberty \
1b6c0831 2520 maybe-install-libiberty-linker-plugin \
dc448a7b 2521 maybe-install-libiconv \
4fa63067 2522 maybe-install-m4 \
4fa63067 2523 maybe-install-readline \
4fa63067
NN
2524 maybe-install-sid \
2525 maybe-install-sim \
4fa63067 2526 maybe-install-texinfo \
4fa63067 2527 maybe-install-zlib \
73cc7272 2528 maybe-install-gnulib \
4fa63067
NN
2529 maybe-install-gdb \
2530 maybe-install-expect \
2531 maybe-install-guile \
2532 maybe-install-tk \
4fa63067 2533 maybe-install-libtermcap \
b00612cc 2534 maybe-install-utils \
700d40ca 2535 maybe-install-gnattools \
1b6c0831
L
2536 maybe-install-lto-plugin \
2537 maybe-install-libcc1 \
0e65dfba
NA
2538 maybe-install-gotools \
2539 maybe-install-libctf
2a4cbe27 2540
4fa63067 2541.PHONY: install-host
b813574b 2542install-host: \
4fa63067
NN
2543 maybe-install-bfd \
2544 maybe-install-opcodes \
2545 maybe-install-binutils \
2546 maybe-install-bison \
f9806fa5 2547 maybe-install-cgen \
4fa63067 2548 maybe-install-dejagnu \
4fa63067
NN
2549 maybe-install-etc \
2550 maybe-install-fastjar \
d3ed111c 2551 maybe-install-fixincludes \
4fa63067
NN
2552 maybe-install-flex \
2553 maybe-install-gas \
b813574b 2554 maybe-install-gcc \
4b900473
PB
2555 maybe-install-gmp \
2556 maybe-install-mpfr \
e8a5fa9c 2557 maybe-install-mpc \
7ec59b9e 2558 maybe-install-isl \
1f53ca9a 2559 maybe-install-libelf \
93f9b408 2560 maybe-install-gold \
4fa63067 2561 maybe-install-gprof \
4fa63067
NN
2562 maybe-install-intl \
2563 maybe-install-tcl \
2564 maybe-install-itcl \
2565 maybe-install-ld \
2bf680c4 2566 maybe-install-libbacktrace \
04cf1b77 2567 maybe-install-libcpp \
be01d343 2568 maybe-install-libdecnumber \
4fa63067
NN
2569 maybe-install-libgui \
2570 maybe-install-libiberty \
1b6c0831 2571 maybe-install-libiberty-linker-plugin \
dc448a7b 2572 maybe-install-libiconv \
4fa63067 2573 maybe-install-m4 \
4fa63067 2574 maybe-install-readline \
4fa63067
NN
2575 maybe-install-sid \
2576 maybe-install-sim \
4fa63067 2577 maybe-install-texinfo \
4fa63067 2578 maybe-install-zlib \
73cc7272 2579 maybe-install-gnulib \
4fa63067
NN
2580 maybe-install-gdb \
2581 maybe-install-expect \
2582 maybe-install-guile \
2583 maybe-install-tk \
4fa63067 2584 maybe-install-libtermcap \
b00612cc 2585 maybe-install-utils \
700d40ca 2586 maybe-install-gnattools \
1b6c0831
L
2587 maybe-install-lto-plugin \
2588 maybe-install-libcc1 \
0e65dfba
NA
2589 maybe-install-gotools \
2590 maybe-install-libctf
2a4cbe27 2591
4fa63067
NN
2592.PHONY: install-target
2593install-target: \
2594 maybe-install-target-libstdc++-v3 \
5286fdef 2595 maybe-install-target-libsanitizer \
1b6c0831 2596 maybe-install-target-libmpx \
95e43135 2597 maybe-install-target-libvtv \
e3f56a99 2598 maybe-install-target-libcilkrts \
1b6c0831 2599 maybe-install-target-liboffloadmic \
064d0a7c 2600 maybe-install-target-libssp \
4fa63067 2601 maybe-install-target-newlib \
6aa8ef82 2602 maybe-install-target-libgcc \
2bf680c4 2603 maybe-install-target-libbacktrace \
e552509b 2604 maybe-install-target-libquadmath \
4b1cb4fe 2605 maybe-install-target-libgfortran \
4fa63067 2606 maybe-install-target-libobjc \
e552509b 2607 maybe-install-target-libgo \
4fa63067
NN
2608 maybe-install-target-libtermcap \
2609 maybe-install-target-winsup \
2610 maybe-install-target-libgloss \
4fa63067 2611 maybe-install-target-libffi \
4fa63067 2612 maybe-install-target-zlib \
4fa63067 2613 maybe-install-target-rda \
b3ded179 2614 maybe-install-target-libada \
7ec59b9e
L
2615 maybe-install-target-libgomp \
2616 maybe-install-target-libitm \
2617 maybe-install-target-libatomic
2a4cbe27 2618
4fa63067
NN
2619uninstall:
2620 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2621
4fa63067
NN
2622.PHONY: install.all
2623install.all: install-no-fixedincludes
22121df0
L
2624 @if [ -f ./gcc/Makefile ]; then \
2625 r=`${PWD_COMMAND}`; export r; \
0aed8855 2626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2627 $(HOST_EXPORTS) \
4fa63067 2628 (cd ./gcc && \
22121df0 2629 $(MAKE) $(FLAGS_TO_PASS) install-headers); \
4fa63067 2630 else \
22121df0 2631 true; \
4fa63067 2632 fi
2a4cbe27 2633
7ec59b9e
L
2634# install-no-fixedincludes is used to allow the elaboration of binary packages
2635# suitable for distribution, where we cannot include the fixed system header
2636# files.
4fa63067
NN
2637.PHONY: install-no-fixedincludes
2638install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2639 install-target gcc-install-no-fixedincludes
2a4cbe27 2640
9b980aa1
RW
2641.PHONY: install-strip
2642install-strip:
2643 @: $(MAKE); $(unstage)
2644 @r=`${PWD_COMMAND}`; export r; \
2645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2646 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2647
2648.PHONY: install-strip-host
2649install-strip-host: \
9b980aa1
RW
2650 maybe-install-strip-bfd \
2651 maybe-install-strip-opcodes \
2652 maybe-install-strip-binutils \
2653 maybe-install-strip-bison \
9b980aa1
RW
2654 maybe-install-strip-cgen \
2655 maybe-install-strip-dejagnu \
9b980aa1
RW
2656 maybe-install-strip-etc \
2657 maybe-install-strip-fastjar \
9b980aa1
RW
2658 maybe-install-strip-fixincludes \
2659 maybe-install-strip-flex \
2660 maybe-install-strip-gas \
2661 maybe-install-strip-gcc \
9b980aa1
RW
2662 maybe-install-strip-gmp \
2663 maybe-install-strip-mpfr \
2664 maybe-install-strip-mpc \
7ec59b9e 2665 maybe-install-strip-isl \
9b980aa1 2666 maybe-install-strip-libelf \
9b980aa1
RW
2667 maybe-install-strip-gold \
2668 maybe-install-strip-gprof \
9b980aa1
RW
2669 maybe-install-strip-intl \
2670 maybe-install-strip-tcl \
2671 maybe-install-strip-itcl \
2672 maybe-install-strip-ld \
2bf680c4 2673 maybe-install-strip-libbacktrace \
9b980aa1
RW
2674 maybe-install-strip-libcpp \
2675 maybe-install-strip-libdecnumber \
2676 maybe-install-strip-libgui \
2677 maybe-install-strip-libiberty \
1b6c0831 2678 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2679 maybe-install-strip-libiconv \
9b980aa1 2680 maybe-install-strip-m4 \
9b980aa1 2681 maybe-install-strip-readline \
9b980aa1
RW
2682 maybe-install-strip-sid \
2683 maybe-install-strip-sim \
9b980aa1 2684 maybe-install-strip-texinfo \
9b980aa1 2685 maybe-install-strip-zlib \
73cc7272 2686 maybe-install-strip-gnulib \
9b980aa1
RW
2687 maybe-install-strip-gdb \
2688 maybe-install-strip-expect \
2689 maybe-install-strip-guile \
2690 maybe-install-strip-tk \
2691 maybe-install-strip-libtermcap \
2692 maybe-install-strip-utils \
2693 maybe-install-strip-gnattools \
1b6c0831
L
2694 maybe-install-strip-lto-plugin \
2695 maybe-install-strip-libcc1 \
0e65dfba
NA
2696 maybe-install-strip-gotools \
2697 maybe-install-strip-libctf
9b980aa1
RW
2698
2699.PHONY: install-strip-target
2700install-strip-target: \
2701 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2702 maybe-install-strip-target-libsanitizer \
1b6c0831 2703 maybe-install-strip-target-libmpx \
95e43135 2704 maybe-install-strip-target-libvtv \
e3f56a99 2705 maybe-install-strip-target-libcilkrts \
1b6c0831 2706 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2707 maybe-install-strip-target-libssp \
2708 maybe-install-strip-target-newlib \
2709 maybe-install-strip-target-libgcc \
2bf680c4 2710 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2711 maybe-install-strip-target-libquadmath \
2712 maybe-install-strip-target-libgfortran \
2713 maybe-install-strip-target-libobjc \
2714 maybe-install-strip-target-libgo \
2715 maybe-install-strip-target-libtermcap \
2716 maybe-install-strip-target-winsup \
2717 maybe-install-strip-target-libgloss \
9b980aa1 2718 maybe-install-strip-target-libffi \
9b980aa1 2719 maybe-install-strip-target-zlib \
9b980aa1
RW
2720 maybe-install-strip-target-rda \
2721 maybe-install-strip-target-libada \
7ec59b9e
L
2722 maybe-install-strip-target-libgomp \
2723 maybe-install-strip-target-libitm \
2724 maybe-install-strip-target-libatomic
9b980aa1
RW
2725
2726
4fa63067 2727### other supporting targets
2a4cbe27 2728
4fa63067
NN
2729MAKEDIRS= \
2730 $(DESTDIR)$(prefix) \
2731 $(DESTDIR)$(exec_prefix)
2732.PHONY: installdirs
2733installdirs: mkinstalldirs
2734 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2735
4fa63067 2736dir.info: do-install-info
22121df0
L
2737 if [ -f $(srcdir)/texinfo/gen-info-dir ]; then \
2738 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new; \
2739 mv -f dir.info.new dir.info; \
2740 else true; \
4fa63067 2741 fi
2a4cbe27 2742
4fa63067
NN
2743dist:
2744 @echo "Building a full distribution of this tree isn't done"
2745 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2746
4fa63067 2747etags tags: TAGS
2a4cbe27 2748
4fa63067
NN
2749# Right now this just builds TAGS in each subdirectory. emacs19 has the
2750# ability to use several tags files at once, so there is probably no need
2751# to combine them into one big TAGS file (like CVS 1.3 does). We could
2752# (if we felt like it) have this Makefile write a piece of elisp which
2753# the user could load to tell emacs19 where all the TAGS files we just
2754# built are.
2755TAGS: do-TAGS
2a4cbe27 2756
a7254363
PB
2757# ------------------------------------
2758# Macros for configure and all targets
2759# ------------------------------------
2760
2761
2762
2763
2764
4fa63067
NN
2765# --------------------------------------
2766# Modules which run on the build machine
2767# --------------------------------------
2768
a7254363 2769
4fa63067
NN
2770.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2771maybe-configure-build-libiberty:
4f0ef2d8
CD
2772@if gcc-bootstrap
2773configure-build-libiberty: stage_current
2774@endif gcc-bootstrap
6bd3dfaa
PB
2775@if build-libiberty
2776maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2777configure-build-libiberty:
0aed8855 2778 @: $(MAKE); $(unstage)
c52c6897 2779 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2781 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 2782 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty; \
1f53ca9a 2783 $(BUILD_EXPORTS) \
4fa63067
NN
2784 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2785 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2786 case $(srcdir) in \
b00612cc
PB
2787 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2788 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2789 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2790 esac; \
1b6c0831 2791 module_srcdir=libiberty; \
4fa63067 2792 rm -f no-such-file || : ; \
1b6c0831
L
2793 CONFIG_SITE=no-such-file $(SHELL) \
2794 $$s/$$module_srcdir/configure \
2795 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2796 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2797 --target=${target_alias} \
2a4cbe27 2798 || exit 1
6bd3dfaa 2799@endif build-libiberty
2a4cbe27 2800
a7254363
PB
2801
2802
d545f33b
PB
2803
2804
4fa63067
NN
2805.PHONY: all-build-libiberty maybe-all-build-libiberty
2806maybe-all-build-libiberty:
4f0ef2d8
CD
2807@if gcc-bootstrap
2808all-build-libiberty: stage_current
2809@endif gcc-bootstrap
6bd3dfaa 2810@if build-libiberty
72b2455a 2811TARGET-build-libiberty=all
6bd3dfaa 2812maybe-all-build-libiberty: all-build-libiberty
4fa63067 2813all-build-libiberty: configure-build-libiberty
0aed8855 2814 @: $(MAKE); $(unstage)
4fa63067 2815 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2817 $(BUILD_EXPORTS) \
72b2455a 2818 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2819 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2820 $(TARGET-build-libiberty))
6bd3dfaa 2821@endif build-libiberty
2a4cbe27 2822
a7254363
PB
2823
2824
d545f33b
PB
2825
2826
6a9cf61e
PB
2827.PHONY: configure-build-bison maybe-configure-build-bison
2828maybe-configure-build-bison:
4f0ef2d8
CD
2829@if gcc-bootstrap
2830configure-build-bison: stage_current
2831@endif gcc-bootstrap
6a9cf61e
PB
2832@if build-bison
2833maybe-configure-build-bison: configure-build-bison
c52c6897 2834configure-build-bison:
0aed8855 2835 @: $(MAKE); $(unstage)
c52c6897 2836 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2838 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
22121df0 2839 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison; \
1f53ca9a 2840 $(BUILD_EXPORTS) \
6a9cf61e
PB
2841 echo Configuring in $(BUILD_SUBDIR)/bison; \
2842 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2843 case $(srcdir) in \
b00612cc
PB
2844 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2845 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2846 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2847 esac; \
1b6c0831 2848 module_srcdir=bison; \
6a9cf61e 2849 rm -f no-such-file || : ; \
1b6c0831
L
2850 CONFIG_SITE=no-such-file $(SHELL) \
2851 $$s/$$module_srcdir/configure \
2852 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2853 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2854 --target=${target_alias} \
6a9cf61e
PB
2855 || exit 1
2856@endif build-bison
2857
a7254363
PB
2858
2859
d545f33b
PB
2860
2861
6a9cf61e
PB
2862.PHONY: all-build-bison maybe-all-build-bison
2863maybe-all-build-bison:
4f0ef2d8
CD
2864@if gcc-bootstrap
2865all-build-bison: stage_current
2866@endif gcc-bootstrap
6a9cf61e 2867@if build-bison
72b2455a 2868TARGET-build-bison=all
6a9cf61e
PB
2869maybe-all-build-bison: all-build-bison
2870all-build-bison: configure-build-bison
0aed8855 2871 @: $(MAKE); $(unstage)
6a9cf61e
PB
2872 @r=`${PWD_COMMAND}`; export r; \
2873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2874 $(BUILD_EXPORTS) \
72b2455a 2875 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2876 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2877 $(TARGET-build-bison))
6a9cf61e
PB
2878@endif build-bison
2879
a7254363
PB
2880
2881
d545f33b
PB
2882
2883
6a9cf61e
PB
2884.PHONY: configure-build-flex maybe-configure-build-flex
2885maybe-configure-build-flex:
4f0ef2d8
CD
2886@if gcc-bootstrap
2887configure-build-flex: stage_current
2888@endif gcc-bootstrap
6a9cf61e
PB
2889@if build-flex
2890maybe-configure-build-flex: configure-build-flex
c52c6897 2891configure-build-flex:
0aed8855 2892 @: $(MAKE); $(unstage)
c52c6897 2893 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2895 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
22121df0 2896 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex; \
1f53ca9a 2897 $(BUILD_EXPORTS) \
6a9cf61e
PB
2898 echo Configuring in $(BUILD_SUBDIR)/flex; \
2899 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2900 case $(srcdir) in \
b00612cc
PB
2901 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2902 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2903 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2904 esac; \
1b6c0831 2905 module_srcdir=flex; \
6a9cf61e 2906 rm -f no-such-file || : ; \
1b6c0831
L
2907 CONFIG_SITE=no-such-file $(SHELL) \
2908 $$s/$$module_srcdir/configure \
2909 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2910 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2911 --target=${target_alias} \
6a9cf61e
PB
2912 || exit 1
2913@endif build-flex
2914
a7254363
PB
2915
2916
d545f33b
PB
2917
2918
6a9cf61e
PB
2919.PHONY: all-build-flex maybe-all-build-flex
2920maybe-all-build-flex:
4f0ef2d8
CD
2921@if gcc-bootstrap
2922all-build-flex: stage_current
2923@endif gcc-bootstrap
6a9cf61e 2924@if build-flex
72b2455a 2925TARGET-build-flex=all
6a9cf61e
PB
2926maybe-all-build-flex: all-build-flex
2927all-build-flex: configure-build-flex
0aed8855 2928 @: $(MAKE); $(unstage)
6a9cf61e
PB
2929 @r=`${PWD_COMMAND}`; export r; \
2930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2931 $(BUILD_EXPORTS) \
72b2455a 2932 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 2933 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2934 $(TARGET-build-flex))
6a9cf61e
PB
2935@endif build-flex
2936
a7254363
PB
2937
2938
d545f33b
PB
2939
2940
6a9cf61e
PB
2941.PHONY: configure-build-m4 maybe-configure-build-m4
2942maybe-configure-build-m4:
4f0ef2d8
CD
2943@if gcc-bootstrap
2944configure-build-m4: stage_current
2945@endif gcc-bootstrap
6a9cf61e
PB
2946@if build-m4
2947maybe-configure-build-m4: configure-build-m4
c52c6897 2948configure-build-m4:
0aed8855 2949 @: $(MAKE); $(unstage)
c52c6897 2950 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2952 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
22121df0 2953 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4; \
1f53ca9a 2954 $(BUILD_EXPORTS) \
6a9cf61e
PB
2955 echo Configuring in $(BUILD_SUBDIR)/m4; \
2956 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2957 case $(srcdir) in \
b00612cc
PB
2958 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2959 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2960 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2961 esac; \
1b6c0831 2962 module_srcdir=m4; \
6a9cf61e 2963 rm -f no-such-file || : ; \
1b6c0831
L
2964 CONFIG_SITE=no-such-file $(SHELL) \
2965 $$s/$$module_srcdir/configure \
2966 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2967 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2968 --target=${target_alias} \
6a9cf61e
PB
2969 || exit 1
2970@endif build-m4
2971
a7254363
PB
2972
2973
d545f33b
PB
2974
2975
6a9cf61e
PB
2976.PHONY: all-build-m4 maybe-all-build-m4
2977maybe-all-build-m4:
4f0ef2d8
CD
2978@if gcc-bootstrap
2979all-build-m4: stage_current
2980@endif gcc-bootstrap
6a9cf61e 2981@if build-m4
72b2455a 2982TARGET-build-m4=all
6a9cf61e
PB
2983maybe-all-build-m4: all-build-m4
2984all-build-m4: configure-build-m4
0aed8855 2985 @: $(MAKE); $(unstage)
6a9cf61e
PB
2986 @r=`${PWD_COMMAND}`; export r; \
2987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2988 $(BUILD_EXPORTS) \
72b2455a 2989 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 2990 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2991 $(TARGET-build-m4))
6a9cf61e
PB
2992@endif build-m4
2993
a7254363
PB
2994
2995
d545f33b
PB
2996
2997
6a9cf61e
PB
2998.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2999maybe-configure-build-texinfo:
4f0ef2d8
CD
3000@if gcc-bootstrap
3001configure-build-texinfo: stage_current
3002@endif gcc-bootstrap
6a9cf61e
PB
3003@if build-texinfo
3004maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 3005configure-build-texinfo:
0aed8855 3006 @: $(MAKE); $(unstage)
c52c6897 3007 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 3008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3009 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 3010 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo; \
1f53ca9a 3011 $(BUILD_EXPORTS) \
6a9cf61e
PB
3012 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
3013 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
3014 case $(srcdir) in \
b00612cc
PB
3015 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3016 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
3017 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 3018 esac; \
1b6c0831 3019 module_srcdir=texinfo; \
6a9cf61e 3020 rm -f no-such-file || : ; \
1b6c0831
L
3021 CONFIG_SITE=no-such-file $(SHELL) \
3022 $$s/$$module_srcdir/configure \
3023 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3024 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3025 --target=${target_alias} \
6a9cf61e
PB
3026 || exit 1
3027@endif build-texinfo
3028
a7254363
PB
3029
3030
d545f33b
PB
3031
3032
6a9cf61e
PB
3033.PHONY: all-build-texinfo maybe-all-build-texinfo
3034maybe-all-build-texinfo:
4f0ef2d8
CD
3035@if gcc-bootstrap
3036all-build-texinfo: stage_current
3037@endif gcc-bootstrap
6a9cf61e 3038@if build-texinfo
72b2455a 3039TARGET-build-texinfo=all
6a9cf61e
PB
3040maybe-all-build-texinfo: all-build-texinfo
3041all-build-texinfo: configure-build-texinfo
0aed8855 3042 @: $(MAKE); $(unstage)
6a9cf61e
PB
3043 @r=`${PWD_COMMAND}`; export r; \
3044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3045 $(BUILD_EXPORTS) \
72b2455a 3046 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3047 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3048 $(TARGET-build-texinfo))
6a9cf61e
PB
3049@endif build-texinfo
3050
a7254363
PB
3051
3052
d545f33b
PB
3053
3054
ee025550
PB
3055.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3056maybe-configure-build-fixincludes:
4f0ef2d8
CD
3057@if gcc-bootstrap
3058configure-build-fixincludes: stage_current
3059@endif gcc-bootstrap
ee025550
PB
3060@if build-fixincludes
3061maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3062configure-build-fixincludes:
0aed8855 3063 @: $(MAKE); $(unstage)
c52c6897 3064 @r=`${PWD_COMMAND}`; export r; \
ee025550 3065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3066 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 3067 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes; \
1f53ca9a 3068 $(BUILD_EXPORTS) \
ee025550
PB
3069 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3070 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3071 case $(srcdir) in \
b00612cc
PB
3072 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3073 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3074 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3075 esac; \
1b6c0831 3076 module_srcdir=fixincludes; \
ee025550 3077 rm -f no-such-file || : ; \
1b6c0831
L
3078 CONFIG_SITE=no-such-file $(SHELL) \
3079 $$s/$$module_srcdir/configure \
3080 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3081 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3082 --target=${target_alias} \
ee025550
PB
3083 || exit 1
3084@endif build-fixincludes
3085
a7254363
PB
3086
3087
d545f33b
PB
3088
3089
ee025550
PB
3090.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3091maybe-all-build-fixincludes:
4f0ef2d8
CD
3092@if gcc-bootstrap
3093all-build-fixincludes: stage_current
3094@endif gcc-bootstrap
ee025550
PB
3095@if build-fixincludes
3096TARGET-build-fixincludes=all
3097maybe-all-build-fixincludes: all-build-fixincludes
3098all-build-fixincludes: configure-build-fixincludes
0aed8855 3099 @: $(MAKE); $(unstage)
ee025550
PB
3100 @r=`${PWD_COMMAND}`; export r; \
3101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3102 $(BUILD_EXPORTS) \
ee025550 3103 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3104 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3105 $(TARGET-build-fixincludes))
ee025550
PB
3106@endif build-fixincludes
3107
2a4cbe27 3108
a7254363 3109
d545f33b
PB
3110
3111
1b6c0831
L
3112.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3113maybe-configure-build-libcpp:
3114@if gcc-bootstrap
3115configure-build-libcpp: stage_current
3116@endif gcc-bootstrap
3117@if build-libcpp
3118maybe-configure-build-libcpp: configure-build-libcpp
3119configure-build-libcpp:
3120 @: $(MAKE); $(unstage)
3121 @r=`${PWD_COMMAND}`; export r; \
3122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3123 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 3124 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp; \
1b6c0831
L
3125 $(BUILD_EXPORTS) \
3126 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3127 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3128 case $(srcdir) in \
3129 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3130 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3131 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3132 esac; \
3133 module_srcdir=libcpp; \
3134 rm -f no-such-file || : ; \
3135 CONFIG_SITE=no-such-file $(SHELL) \
3136 $$s/$$module_srcdir/configure \
3137 --srcdir=$${topdir}/$$module_srcdir \
3138 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3139 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3140 || exit 1
3141@endif build-libcpp
3142
3143
3144
3145
3146
3147.PHONY: all-build-libcpp maybe-all-build-libcpp
3148maybe-all-build-libcpp:
3149@if gcc-bootstrap
3150all-build-libcpp: stage_current
3151@endif gcc-bootstrap
3152@if build-libcpp
3153TARGET-build-libcpp=all
3154maybe-all-build-libcpp: all-build-libcpp
3155all-build-libcpp: configure-build-libcpp
3156 @: $(MAKE); $(unstage)
3157 @r=`${PWD_COMMAND}`; export r; \
3158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3159 $(BUILD_EXPORTS) \
3160 (cd $(BUILD_SUBDIR)/libcpp && \
3161 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3162 $(TARGET-build-libcpp))
3163@endif build-libcpp
3164
3165
3166
3167
3168
4fa63067
NN
3169# --------------------------------------
3170# Modules which run on the host machine
3171# --------------------------------------
2a4cbe27 3172
a7254363 3173
a90ef4bf
JM
3174.PHONY: configure-bfd maybe-configure-bfd
3175maybe-configure-bfd:
4f0ef2d8 3176@if gcc-bootstrap
a90ef4bf 3177configure-bfd: stage_current
4f0ef2d8 3178@endif gcc-bootstrap
a90ef4bf
JM
3179@if bfd
3180maybe-configure-bfd: configure-bfd
3181configure-bfd:
c52c6897 3182 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3184 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
22121df0 3185 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
1f53ca9a 3186 $(HOST_EXPORTS) \
a90ef4bf
JM
3187 echo Configuring in $(HOST_SUBDIR)/bfd; \
3188 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3189 case $(srcdir) in \
b00612cc 3190 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3191 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3192 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3193 esac; \
1b6c0831
L
3194 module_srcdir=bfd; \
3195 $(SHELL) \
3196 $$s/$$module_srcdir/configure \
3197 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3198 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3199 --target=${target_alias} \
2a4cbe27 3200 || exit 1
a90ef4bf 3201@endif bfd
a7254363 3202
d545f33b
PB
3203
3204
a90ef4bf
JM
3205.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3206maybe-configure-stage1-bfd:
3207@if bfd-bootstrap
3208maybe-configure-stage1-bfd: configure-stage1-bfd
3209configure-stage1-bfd:
3210 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3211 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3212 @r=`${PWD_COMMAND}`; export r; \
3213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3214 TFLAGS="$(STAGE1_TFLAGS)"; \
3215 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3216 $(HOST_EXPORTS) \
3217 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3218 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3219 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
3220 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd; \
3221 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3222 cd $(HOST_SUBDIR)/bfd || exit 1; \
3223 case $(srcdir) in \
3224 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3225 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3226 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3227 esac; \
1b6c0831
L
3228 module_srcdir=bfd; \
3229 $(SHELL) $$s/$$module_srcdir/configure \
3230 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3231 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3232 --target=${target_alias} \
3233 \
a90ef4bf
JM
3234 $(STAGE1_CONFIGURE_FLAGS)
3235@endif bfd-bootstrap
2a4cbe27 3236
a90ef4bf
JM
3237.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3238maybe-configure-stage2-bfd:
3239@if bfd-bootstrap
3240maybe-configure-stage2-bfd: configure-stage2-bfd
3241configure-stage2-bfd:
3242 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3243 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3244 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3246 TFLAGS="$(STAGE2_TFLAGS)"; \
3247 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3248 $(HOST_EXPORTS) \
a90ef4bf
JM
3249 $(POSTSTAGE1_HOST_EXPORTS) \
3250 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3251 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3252 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3253 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd; \
3254 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3255 cd $(HOST_SUBDIR)/bfd || exit 1; \
3256 case $(srcdir) in \
3257 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3258 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3259 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3260 esac; \
1b6c0831
L
3261 module_srcdir=bfd; \
3262 $(SHELL) $$s/$$module_srcdir/configure \
3263 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3264 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3265 --target=${target_alias} \
22121df0 3266 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3267 $(STAGE2_CONFIGURE_FLAGS)
3268@endif bfd-bootstrap
2a4cbe27 3269
a90ef4bf
JM
3270.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3271maybe-configure-stage3-bfd:
3272@if bfd-bootstrap
3273maybe-configure-stage3-bfd: configure-stage3-bfd
3274configure-stage3-bfd:
3275 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3276 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3277 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3279 TFLAGS="$(STAGE3_TFLAGS)"; \
3280 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3281 $(HOST_EXPORTS) \
a90ef4bf
JM
3282 $(POSTSTAGE1_HOST_EXPORTS) \
3283 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3284 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3285 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3286 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd; \
3287 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3288 cd $(HOST_SUBDIR)/bfd || exit 1; \
3289 case $(srcdir) in \
3290 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3291 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3292 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3293 esac; \
1b6c0831
L
3294 module_srcdir=bfd; \
3295 $(SHELL) $$s/$$module_srcdir/configure \
3296 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3297 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3298 --target=${target_alias} \
22121df0 3299 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3300 $(STAGE3_CONFIGURE_FLAGS)
3301@endif bfd-bootstrap
9b980aa1 3302
a90ef4bf
JM
3303.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3304maybe-configure-stage4-bfd:
3305@if bfd-bootstrap
3306maybe-configure-stage4-bfd: configure-stage4-bfd
3307configure-stage4-bfd:
3308 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3309 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3310 @r=`${PWD_COMMAND}`; export r; \
3311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3312 TFLAGS="$(STAGE4_TFLAGS)"; \
3313 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3314 $(HOST_EXPORTS) \
a90ef4bf
JM
3315 $(POSTSTAGE1_HOST_EXPORTS) \
3316 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3317 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3318 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3319 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd; \
3320 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3321 cd $(HOST_SUBDIR)/bfd || exit 1; \
3322 case $(srcdir) in \
3323 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3324 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3325 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3326 esac; \
1b6c0831
L
3327 module_srcdir=bfd; \
3328 $(SHELL) $$s/$$module_srcdir/configure \
3329 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3330 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3331 --target=${target_alias} \
22121df0 3332 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3333 $(STAGE4_CONFIGURE_FLAGS)
3334@endif bfd-bootstrap
4fa63067 3335
a90ef4bf
JM
3336.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3337maybe-configure-stageprofile-bfd:
3338@if bfd-bootstrap
3339maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3340configure-stageprofile-bfd:
3341 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3342 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3343 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3345 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3346 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3347 $(HOST_EXPORTS) \
a90ef4bf
JM
3348 $(POSTSTAGE1_HOST_EXPORTS) \
3349 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3350 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3351 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3352 echo Configuring stage profile in $(HOST_SUBDIR)/bfd; \
3353 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3354 cd $(HOST_SUBDIR)/bfd || exit 1; \
3355 case $(srcdir) in \
3356 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3357 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3358 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3359 esac; \
1b6c0831
L
3360 module_srcdir=bfd; \
3361 $(SHELL) $$s/$$module_srcdir/configure \
3362 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3363 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3364 --target=${target_alias} \
22121df0 3365 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3366 $(STAGEprofile_CONFIGURE_FLAGS)
3367@endif bfd-bootstrap
2a4cbe27 3368
a90ef4bf
JM
3369.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3370maybe-configure-stagefeedback-bfd:
3371@if bfd-bootstrap
3372maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3373configure-stagefeedback-bfd:
3374 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3375 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3376 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3378 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3379 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3380 $(HOST_EXPORTS) \
a90ef4bf
JM
3381 $(POSTSTAGE1_HOST_EXPORTS) \
3382 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3383 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3384 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3385 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd; \
3386 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3387 cd $(HOST_SUBDIR)/bfd || exit 1; \
3388 case $(srcdir) in \
3389 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3390 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3391 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3392 esac; \
1b6c0831
L
3393 module_srcdir=bfd; \
3394 $(SHELL) $$s/$$module_srcdir/configure \
3395 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3396 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3397 --target=${target_alias} \
22121df0 3398 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3399 $(STAGEfeedback_CONFIGURE_FLAGS)
3400@endif bfd-bootstrap
2a4cbe27 3401
56a8fe78 3402
56a8fe78 3403
56a8fe78 3404
6d389afc 3405
a90ef4bf
JM
3406.PHONY: all-bfd maybe-all-bfd
3407maybe-all-bfd:
3408@if gcc-bootstrap
3409all-bfd: stage_current
3410@endif gcc-bootstrap
3411@if bfd
3412TARGET-bfd=all
3413maybe-all-bfd: all-bfd
3414all-bfd: configure-bfd
3415 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3417 $(HOST_EXPORTS) \
3418 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3419 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3420 $(TARGET-bfd))
3421@endif bfd
6d389afc 3422
6d389afc 3423
2a4cbe27 3424
a90ef4bf
JM
3425.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3426.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3427maybe-all-stage1-bfd:
3428maybe-clean-stage1-bfd:
3429@if bfd-bootstrap
3430maybe-all-stage1-bfd: all-stage1-bfd
3431all-stage1: all-stage1-bfd
3432TARGET-stage1-bfd = $(TARGET-bfd)
3433all-stage1-bfd: configure-stage1-bfd
3434 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3435 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3437 TFLAGS="$(STAGE1_TFLAGS)"; \
3438 $(HOST_EXPORTS) \
3439 cd $(HOST_SUBDIR)/bfd && \
05a13254 3440 \
a90ef4bf
JM
3441 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3442 CFLAGS="$(STAGE1_CFLAGS)" \
3443 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3444 LIBCFLAGS="$(LIBCFLAGS)" \
3445 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3446 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3447 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3448 $(EXTRA_HOST_FLAGS) \
3449 $(STAGE1_FLAGS_TO_PASS) \
05a13254 3450 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 3451 $(TARGET-stage1-bfd)
2a4cbe27 3452
a90ef4bf
JM
3453maybe-clean-stage1-bfd: clean-stage1-bfd
3454clean-stage1: clean-stage1-bfd
3455clean-stage1-bfd:
3456 @if [ $(current_stage) = stage1 ]; then \
3457 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3458 else \
3459 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3460 $(MAKE) stage1-start; \
3461 fi; \
3462 cd $(HOST_SUBDIR)/bfd && \
3463 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3464 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3465@endif bfd-bootstrap
2a4cbe27 3466
2a4cbe27 3467
a90ef4bf
JM
3468.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3469.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3470maybe-all-stage2-bfd:
3471maybe-clean-stage2-bfd:
3472@if bfd-bootstrap
3473maybe-all-stage2-bfd: all-stage2-bfd
3474all-stage2: all-stage2-bfd
3475TARGET-stage2-bfd = $(TARGET-bfd)
3476all-stage2-bfd: configure-stage2-bfd
3477 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3478 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3480 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3481 $(HOST_EXPORTS) \
a90ef4bf
JM
3482 $(POSTSTAGE1_HOST_EXPORTS) \
3483 cd $(HOST_SUBDIR)/bfd && \
05a13254 3484 \
a90ef4bf
JM
3485 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3486 CFLAGS="$(STAGE2_CFLAGS)" \
3487 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3488 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3489 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3490 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3491 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3492 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3493 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 3494 $(TARGET-stage2-bfd)
2a4cbe27 3495
a90ef4bf
JM
3496maybe-clean-stage2-bfd: clean-stage2-bfd
3497clean-stage2: clean-stage2-bfd
3498clean-stage2-bfd:
3499 @if [ $(current_stage) = stage2 ]; then \
3500 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3501 else \
3502 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3503 $(MAKE) stage2-start; \
3504 fi; \
3505 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3506 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3507@endif bfd-bootstrap
2a4cbe27 3508
a3ca38d2 3509
a90ef4bf
JM
3510.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3511.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3512maybe-all-stage3-bfd:
3513maybe-clean-stage3-bfd:
3514@if bfd-bootstrap
3515maybe-all-stage3-bfd: all-stage3-bfd
3516all-stage3: all-stage3-bfd
3517TARGET-stage3-bfd = $(TARGET-bfd)
3518all-stage3-bfd: configure-stage3-bfd
3519 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3520 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3522 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3523 $(HOST_EXPORTS) \
a90ef4bf
JM
3524 $(POSTSTAGE1_HOST_EXPORTS) \
3525 cd $(HOST_SUBDIR)/bfd && \
05a13254 3526 \
a90ef4bf
JM
3527 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3528 CFLAGS="$(STAGE3_CFLAGS)" \
3529 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3530 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3531 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3532 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3533 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3534 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3535 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 3536 $(TARGET-stage3-bfd)
a3ca38d2 3537
a90ef4bf
JM
3538maybe-clean-stage3-bfd: clean-stage3-bfd
3539clean-stage3: clean-stage3-bfd
3540clean-stage3-bfd:
3541 @if [ $(current_stage) = stage3 ]; then \
3542 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3543 else \
3544 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3545 $(MAKE) stage3-start; \
3546 fi; \
3547 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3548 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3549@endif bfd-bootstrap
a3ca38d2 3550
108a6f8e 3551
a90ef4bf
JM
3552.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3553.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3554maybe-all-stage4-bfd:
3555maybe-clean-stage4-bfd:
3556@if bfd-bootstrap
3557maybe-all-stage4-bfd: all-stage4-bfd
3558all-stage4: all-stage4-bfd
3559TARGET-stage4-bfd = $(TARGET-bfd)
3560all-stage4-bfd: configure-stage4-bfd
3561 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3562 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3564 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3565 $(HOST_EXPORTS) \
a90ef4bf
JM
3566 $(POSTSTAGE1_HOST_EXPORTS) \
3567 cd $(HOST_SUBDIR)/bfd && \
05a13254 3568 \
a90ef4bf
JM
3569 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3570 CFLAGS="$(STAGE4_CFLAGS)" \
3571 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3572 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3573 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3574 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3575 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3576 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3577 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 3578 $(TARGET-stage4-bfd)
108a6f8e 3579
a90ef4bf
JM
3580maybe-clean-stage4-bfd: clean-stage4-bfd
3581clean-stage4: clean-stage4-bfd
3582clean-stage4-bfd:
3583 @if [ $(current_stage) = stage4 ]; then \
3584 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3585 else \
3586 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3587 $(MAKE) stage4-start; \
3588 fi; \
3589 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3590 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3591@endif bfd-bootstrap
108a6f8e 3592
2a4cbe27 3593
a90ef4bf
JM
3594.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3595.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3596maybe-all-stageprofile-bfd:
3597maybe-clean-stageprofile-bfd:
3598@if bfd-bootstrap
3599maybe-all-stageprofile-bfd: all-stageprofile-bfd
3600all-stageprofile: all-stageprofile-bfd
3601TARGET-stageprofile-bfd = $(TARGET-bfd)
3602all-stageprofile-bfd: configure-stageprofile-bfd
3603 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3604 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3606 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3607 $(HOST_EXPORTS) \
a90ef4bf
JM
3608 $(POSTSTAGE1_HOST_EXPORTS) \
3609 cd $(HOST_SUBDIR)/bfd && \
05a13254 3610 \
a90ef4bf
JM
3611 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3612 CFLAGS="$(STAGEprofile_CFLAGS)" \
3613 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3614 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3615 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3616 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3617 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3618 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3619 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 3620 $(TARGET-stageprofile-bfd)
2a4cbe27 3621
a90ef4bf
JM
3622maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3623clean-stageprofile: clean-stageprofile-bfd
3624clean-stageprofile-bfd:
3625 @if [ $(current_stage) = stageprofile ]; then \
3626 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3627 else \
3628 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3629 $(MAKE) stageprofile-start; \
3630 fi; \
3631 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3632 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3633@endif bfd-bootstrap
2a4cbe27 3634
a7254363 3635
a90ef4bf
JM
3636.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3637.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3638maybe-all-stagefeedback-bfd:
3639maybe-clean-stagefeedback-bfd:
3640@if bfd-bootstrap
3641maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3642all-stagefeedback: all-stagefeedback-bfd
3643TARGET-stagefeedback-bfd = $(TARGET-bfd)
3644all-stagefeedback-bfd: configure-stagefeedback-bfd
3645 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3646 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3648 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3649 $(HOST_EXPORTS) \
3650 $(POSTSTAGE1_HOST_EXPORTS) \
3651 cd $(HOST_SUBDIR)/bfd && \
05a13254 3652 \
a90ef4bf
JM
3653 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3654 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3655 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3656 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3657 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3658 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3659 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3660 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3661 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 3662 $(TARGET-stagefeedback-bfd)
d545f33b 3663
a90ef4bf
JM
3664maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3665clean-stagefeedback: clean-stagefeedback-bfd
3666clean-stagefeedback-bfd:
3667 @if [ $(current_stage) = stagefeedback ]; then \
3668 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3669 else \
3670 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3671 $(MAKE) stagefeedback-start; \
3672 fi; \
3673 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3674 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3675@endif bfd-bootstrap
d545f33b 3676
2a4cbe27 3677
a7254363 3678
d545f33b
PB
3679
3680
a90ef4bf
JM
3681.PHONY: check-bfd maybe-check-bfd
3682maybe-check-bfd:
3683@if bfd
3684maybe-check-bfd: check-bfd
2a4cbe27 3685
a90ef4bf 3686check-bfd:
0aed8855 3687 @: $(MAKE); $(unstage)
4fa63067 3688 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 3690 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 3691 (cd $(HOST_SUBDIR)/bfd && \
f91ca6bc 3692 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 3693
a90ef4bf 3694@endif bfd
2a4cbe27 3695
a90ef4bf
JM
3696.PHONY: install-bfd maybe-install-bfd
3697maybe-install-bfd:
3698@if bfd
3699maybe-install-bfd: install-bfd
2a4cbe27 3700
a90ef4bf 3701install-bfd: installdirs
0aed8855 3702 @: $(MAKE); $(unstage)
4fa63067 3703 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3705 $(HOST_EXPORTS) \
a90ef4bf 3706 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3707 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3708
a90ef4bf 3709@endif bfd
2a4cbe27 3710
a90ef4bf
JM
3711.PHONY: install-strip-bfd maybe-install-strip-bfd
3712maybe-install-strip-bfd:
3713@if bfd
3714maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3715
a90ef4bf 3716install-strip-bfd: installdirs
9b980aa1
RW
3717 @: $(MAKE); $(unstage)
3718 @r=`${PWD_COMMAND}`; export r; \
3719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3720 $(HOST_EXPORTS) \
a90ef4bf 3721 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3722 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3723
a90ef4bf 3724@endif bfd
9b980aa1 3725
56a8fe78 3726# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3727
a90ef4bf
JM
3728.PHONY: maybe-info-bfd info-bfd
3729maybe-info-bfd:
3730@if bfd
3731maybe-info-bfd: info-bfd
4fa63067 3732
a90ef4bf
JM
3733info-bfd: \
3734 configure-bfd
3735 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3736 r=`${PWD_COMMAND}`; export r; \
3737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3738 $(HOST_EXPORTS) \
b813574b 3739 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3741 done; \
22121df0 3742 echo "Doing info in bfd"; \
a90ef4bf 3743 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3746 "RANLIB=$${RANLIB}" \
0c24b341 3747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3748 info) \
2a4cbe27
NN
3749 || exit 1
3750
a90ef4bf 3751@endif bfd
2a4cbe27 3752
a90ef4bf
JM
3753.PHONY: maybe-dvi-bfd dvi-bfd
3754maybe-dvi-bfd:
3755@if bfd
3756maybe-dvi-bfd: dvi-bfd
2a4cbe27 3757
a90ef4bf
JM
3758dvi-bfd: \
3759 configure-bfd
3760 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3761 r=`${PWD_COMMAND}`; export r; \
3762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3763 $(HOST_EXPORTS) \
b813574b 3764 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3766 done; \
22121df0 3767 echo "Doing dvi in bfd"; \
a90ef4bf 3768 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3771 "RANLIB=$${RANLIB}" \
0c24b341 3772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3773 dvi) \
2a4cbe27
NN
3774 || exit 1
3775
a90ef4bf 3776@endif bfd
2a4cbe27 3777
a90ef4bf
JM
3778.PHONY: maybe-pdf-bfd pdf-bfd
3779maybe-pdf-bfd:
3780@if bfd
3781maybe-pdf-bfd: pdf-bfd
56a8fe78 3782
a90ef4bf
JM
3783pdf-bfd: \
3784 configure-bfd
3785 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3786 r=`${PWD_COMMAND}`; export r; \
3787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3788 $(HOST_EXPORTS) \
3789 for flag in $(EXTRA_HOST_FLAGS) ; do \
3790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3791 done; \
22121df0 3792 echo "Doing pdf in bfd"; \
a90ef4bf 3793 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
3794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3796 "RANLIB=$${RANLIB}" \
0c24b341 3797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
3798 pdf) \
3799 || exit 1
3800
a90ef4bf 3801@endif bfd
56a8fe78 3802
a90ef4bf
JM
3803.PHONY: maybe-html-bfd html-bfd
3804maybe-html-bfd:
3805@if bfd
3806maybe-html-bfd: html-bfd
6d389afc 3807
a90ef4bf
JM
3808html-bfd: \
3809 configure-bfd
3810 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3811 r=`${PWD_COMMAND}`; export r; \
3812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3813 $(HOST_EXPORTS) \
3814 for flag in $(EXTRA_HOST_FLAGS) ; do \
3815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3816 done; \
22121df0 3817 echo "Doing html in bfd"; \
a90ef4bf 3818 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3821 "RANLIB=$${RANLIB}" \
0c24b341 3822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3823 html) \
3824 || exit 1
3825
a90ef4bf 3826@endif bfd
6d389afc 3827
a90ef4bf
JM
3828.PHONY: maybe-TAGS-bfd TAGS-bfd
3829maybe-TAGS-bfd:
3830@if bfd
3831maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3832
a90ef4bf
JM
3833TAGS-bfd: \
3834 configure-bfd
3835 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3836 r=`${PWD_COMMAND}`; export r; \
3837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3838 $(HOST_EXPORTS) \
b813574b 3839 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3841 done; \
22121df0 3842 echo "Doing TAGS in bfd"; \
a90ef4bf 3843 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3846 "RANLIB=$${RANLIB}" \
0c24b341 3847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3848 TAGS) \
2a4cbe27
NN
3849 || exit 1
3850
a90ef4bf 3851@endif bfd
2a4cbe27 3852
a90ef4bf
JM
3853.PHONY: maybe-install-info-bfd install-info-bfd
3854maybe-install-info-bfd:
3855@if bfd
3856maybe-install-info-bfd: install-info-bfd
2a4cbe27 3857
a90ef4bf
JM
3858install-info-bfd: \
3859 configure-bfd \
3860 info-bfd
3861 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3862 r=`${PWD_COMMAND}`; export r; \
3863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3864 $(HOST_EXPORTS) \
b813574b 3865 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3867 done; \
22121df0 3868 echo "Doing install-info in bfd"; \
a90ef4bf 3869 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3872 "RANLIB=$${RANLIB}" \
0c24b341 3873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3874 install-info) \
2a4cbe27
NN
3875 || exit 1
3876
a90ef4bf 3877@endif bfd
2a4cbe27 3878
a90ef4bf
JM
3879.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3880maybe-install-pdf-bfd:
3881@if bfd
3882maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3883
a90ef4bf
JM
3884install-pdf-bfd: \
3885 configure-bfd \
3886 pdf-bfd
3887 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3888 r=`${PWD_COMMAND}`; export r; \
3889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3890 $(HOST_EXPORTS) \
3891 for flag in $(EXTRA_HOST_FLAGS) ; do \
3892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3893 done; \
22121df0 3894 echo "Doing install-pdf in bfd"; \
a90ef4bf 3895 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
3896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3898 "RANLIB=$${RANLIB}" \
0c24b341 3899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
3900 install-pdf) \
3901 || exit 1
3902
a90ef4bf 3903@endif bfd
a3ca38d2 3904
a90ef4bf
JM
3905.PHONY: maybe-install-html-bfd install-html-bfd
3906maybe-install-html-bfd:
3907@if bfd
3908maybe-install-html-bfd: install-html-bfd
108a6f8e 3909
a90ef4bf
JM
3910install-html-bfd: \
3911 configure-bfd \
3912 html-bfd
3913 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
3914 r=`${PWD_COMMAND}`; export r; \
3915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3916 $(HOST_EXPORTS) \
3917 for flag in $(EXTRA_HOST_FLAGS) ; do \
3918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3919 done; \
22121df0 3920 echo "Doing install-html in bfd"; \
a90ef4bf 3921 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
3922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3924 "RANLIB=$${RANLIB}" \
0c24b341 3925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
3926 install-html) \
3927 || exit 1
3928
a90ef4bf 3929@endif bfd
108a6f8e 3930
a90ef4bf
JM
3931.PHONY: maybe-installcheck-bfd installcheck-bfd
3932maybe-installcheck-bfd:
3933@if bfd
3934maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3935
a90ef4bf
JM
3936installcheck-bfd: \
3937 configure-bfd
3938 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3939 r=`${PWD_COMMAND}`; export r; \
3940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3941 $(HOST_EXPORTS) \
b813574b 3942 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3944 done; \
22121df0 3945 echo "Doing installcheck in bfd"; \
a90ef4bf 3946 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3949 "RANLIB=$${RANLIB}" \
0c24b341 3950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3951 installcheck) \
2a4cbe27
NN
3952 || exit 1
3953
a90ef4bf 3954@endif bfd
2a4cbe27 3955
a90ef4bf
JM
3956.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3957maybe-mostlyclean-bfd:
3958@if bfd
3959maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3960
a90ef4bf
JM
3961mostlyclean-bfd:
3962 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3963 r=`${PWD_COMMAND}`; export r; \
3964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3965 $(HOST_EXPORTS) \
b813574b 3966 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3968 done; \
22121df0 3969 echo "Doing mostlyclean in bfd"; \
a90ef4bf 3970 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3973 "RANLIB=$${RANLIB}" \
0c24b341 3974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3975 mostlyclean) \
2a4cbe27
NN
3976 || exit 1
3977
a90ef4bf 3978@endif bfd
2a4cbe27 3979
a90ef4bf
JM
3980.PHONY: maybe-clean-bfd clean-bfd
3981maybe-clean-bfd:
3982@if bfd
3983maybe-clean-bfd: clean-bfd
2a4cbe27 3984
a90ef4bf
JM
3985clean-bfd:
3986 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3987 r=`${PWD_COMMAND}`; export r; \
3988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3989 $(HOST_EXPORTS) \
b813574b 3990 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3992 done; \
22121df0 3993 echo "Doing clean in bfd"; \
a90ef4bf 3994 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3997 "RANLIB=$${RANLIB}" \
0c24b341 3998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3999 clean) \
2a4cbe27
NN
4000 || exit 1
4001
a90ef4bf 4002@endif bfd
2a4cbe27 4003
a90ef4bf
JM
4004.PHONY: maybe-distclean-bfd distclean-bfd
4005maybe-distclean-bfd:
4006@if bfd
4007maybe-distclean-bfd: distclean-bfd
2a4cbe27 4008
a90ef4bf
JM
4009distclean-bfd:
4010 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4011 r=`${PWD_COMMAND}`; export r; \
4012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4013 $(HOST_EXPORTS) \
b813574b 4014 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4016 done; \
22121df0 4017 echo "Doing distclean in bfd"; \
a90ef4bf 4018 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4021 "RANLIB=$${RANLIB}" \
0c24b341 4022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4023 distclean) \
2a4cbe27
NN
4024 || exit 1
4025
a90ef4bf 4026@endif bfd
2a4cbe27 4027
a90ef4bf
JM
4028.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4029maybe-maintainer-clean-bfd:
4030@if bfd
4031maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 4032
a90ef4bf
JM
4033maintainer-clean-bfd:
4034 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4035 r=`${PWD_COMMAND}`; export r; \
4036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4037 $(HOST_EXPORTS) \
b813574b 4038 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4040 done; \
22121df0 4041 echo "Doing maintainer-clean in bfd"; \
a90ef4bf 4042 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4045 "RANLIB=$${RANLIB}" \
0c24b341 4046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4047 maintainer-clean) \
2a4cbe27
NN
4048 || exit 1
4049
a90ef4bf 4050@endif bfd
2a4cbe27 4051
2a4cbe27 4052
a7254363 4053
a90ef4bf
JM
4054.PHONY: configure-opcodes maybe-configure-opcodes
4055maybe-configure-opcodes:
4f0ef2d8 4056@if gcc-bootstrap
a90ef4bf 4057configure-opcodes: stage_current
4f0ef2d8 4058@endif gcc-bootstrap
a90ef4bf
JM
4059@if opcodes
4060maybe-configure-opcodes: configure-opcodes
4061configure-opcodes:
c52c6897 4062 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4064 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
22121df0 4065 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
1f53ca9a 4066 $(HOST_EXPORTS) \
a90ef4bf
JM
4067 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4068 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4069 case $(srcdir) in \
b00612cc 4070 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4071 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4072 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4073 esac; \
1b6c0831
L
4074 module_srcdir=opcodes; \
4075 $(SHELL) \
4076 $$s/$$module_srcdir/configure \
4077 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4078 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4079 --target=${target_alias} \
2a4cbe27 4080 || exit 1
a90ef4bf 4081@endif opcodes
a7254363 4082
d545f33b
PB
4083
4084
a90ef4bf
JM
4085.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4086maybe-configure-stage1-opcodes:
4087@if opcodes-bootstrap
4088maybe-configure-stage1-opcodes: configure-stage1-opcodes
4089configure-stage1-opcodes:
4090 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4091 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4092 @r=`${PWD_COMMAND}`; export r; \
4093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4094 TFLAGS="$(STAGE1_TFLAGS)"; \
4095 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4096 $(HOST_EXPORTS) \
4097 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4098 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4099 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4100 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes; \
4101 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4102 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4103 case $(srcdir) in \
4104 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4105 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4106 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4107 esac; \
1b6c0831
L
4108 module_srcdir=opcodes; \
4109 $(SHELL) $$s/$$module_srcdir/configure \
4110 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4111 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4112 --target=${target_alias} \
4113 \
a90ef4bf
JM
4114 $(STAGE1_CONFIGURE_FLAGS)
4115@endif opcodes-bootstrap
2a4cbe27 4116
a90ef4bf
JM
4117.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4118maybe-configure-stage2-opcodes:
4119@if opcodes-bootstrap
4120maybe-configure-stage2-opcodes: configure-stage2-opcodes
4121configure-stage2-opcodes:
4122 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4123 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4124 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4126 TFLAGS="$(STAGE2_TFLAGS)"; \
4127 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4128 $(HOST_EXPORTS) \
a90ef4bf
JM
4129 $(POSTSTAGE1_HOST_EXPORTS) \
4130 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4131 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4132 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4133 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes; \
4134 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4135 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4136 case $(srcdir) in \
4137 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4138 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4139 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4140 esac; \
1b6c0831
L
4141 module_srcdir=opcodes; \
4142 $(SHELL) $$s/$$module_srcdir/configure \
4143 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4144 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4145 --target=${target_alias} \
22121df0 4146 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4147 $(STAGE2_CONFIGURE_FLAGS)
4148@endif opcodes-bootstrap
2a4cbe27 4149
a90ef4bf
JM
4150.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4151maybe-configure-stage3-opcodes:
4152@if opcodes-bootstrap
4153maybe-configure-stage3-opcodes: configure-stage3-opcodes
4154configure-stage3-opcodes:
4155 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4156 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4157 @r=`${PWD_COMMAND}`; export r; \
4158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4159 TFLAGS="$(STAGE3_TFLAGS)"; \
4160 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4161 $(HOST_EXPORTS) \
a90ef4bf
JM
4162 $(POSTSTAGE1_HOST_EXPORTS) \
4163 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4164 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4165 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4166 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes; \
4167 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4168 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4169 case $(srcdir) in \
4170 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4171 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4172 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4173 esac; \
1b6c0831
L
4174 module_srcdir=opcodes; \
4175 $(SHELL) $$s/$$module_srcdir/configure \
4176 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4177 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4178 --target=${target_alias} \
22121df0 4179 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4180 $(STAGE3_CONFIGURE_FLAGS)
4181@endif opcodes-bootstrap
9b980aa1 4182
a90ef4bf
JM
4183.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4184maybe-configure-stage4-opcodes:
4185@if opcodes-bootstrap
4186maybe-configure-stage4-opcodes: configure-stage4-opcodes
4187configure-stage4-opcodes:
4188 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4189 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4190 @r=`${PWD_COMMAND}`; export r; \
4191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4192 TFLAGS="$(STAGE4_TFLAGS)"; \
4193 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4194 $(HOST_EXPORTS) \
a90ef4bf
JM
4195 $(POSTSTAGE1_HOST_EXPORTS) \
4196 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4197 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4198 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4199 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes; \
4200 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4201 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4202 case $(srcdir) in \
4203 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4204 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4205 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4206 esac; \
1b6c0831
L
4207 module_srcdir=opcodes; \
4208 $(SHELL) $$s/$$module_srcdir/configure \
4209 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4210 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4211 --target=${target_alias} \
22121df0 4212 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4213 $(STAGE4_CONFIGURE_FLAGS)
4214@endif opcodes-bootstrap
4fa63067 4215
a90ef4bf
JM
4216.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4217maybe-configure-stageprofile-opcodes:
4218@if opcodes-bootstrap
4219maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4220configure-stageprofile-opcodes:
4221 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4222 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4223 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4225 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4226 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4227 $(HOST_EXPORTS) \
a90ef4bf
JM
4228 $(POSTSTAGE1_HOST_EXPORTS) \
4229 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4230 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4231 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4232 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes; \
4233 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4234 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4235 case $(srcdir) in \
4236 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4237 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4238 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4239 esac; \
1b6c0831
L
4240 module_srcdir=opcodes; \
4241 $(SHELL) $$s/$$module_srcdir/configure \
4242 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4243 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4244 --target=${target_alias} \
22121df0 4245 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4246 $(STAGEprofile_CONFIGURE_FLAGS)
4247@endif opcodes-bootstrap
4248
4249.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4250maybe-configure-stagefeedback-opcodes:
4251@if opcodes-bootstrap
4252maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4253configure-stagefeedback-opcodes:
4254 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4255 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4256 @r=`${PWD_COMMAND}`; export r; \
4257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4258 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4259 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4260 $(HOST_EXPORTS) \
4261 $(POSTSTAGE1_HOST_EXPORTS) \
4262 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4263 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4264 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4265 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes; \
4266 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4267 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4268 case $(srcdir) in \
4269 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4270 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4271 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4272 esac; \
1b6c0831
L
4273 module_srcdir=opcodes; \
4274 $(SHELL) $$s/$$module_srcdir/configure \
4275 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4276 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4277 --target=${target_alias} \
22121df0 4278 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4279 $(STAGEfeedback_CONFIGURE_FLAGS)
4280@endif opcodes-bootstrap
4281
4282
4283
4284
4285
4286.PHONY: all-opcodes maybe-all-opcodes
4287maybe-all-opcodes:
4288@if gcc-bootstrap
4289all-opcodes: stage_current
4290@endif gcc-bootstrap
4291@if opcodes
4292TARGET-opcodes=all
4293maybe-all-opcodes: all-opcodes
4294all-opcodes: configure-opcodes
4295 @r=`${PWD_COMMAND}`; export r; \
4296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4297 $(HOST_EXPORTS) \
4298 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4299 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4300 $(TARGET-opcodes))
4301@endif opcodes
4302
4303
4304
4305.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4306.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4307maybe-all-stage1-opcodes:
4308maybe-clean-stage1-opcodes:
4309@if opcodes-bootstrap
4310maybe-all-stage1-opcodes: all-stage1-opcodes
4311all-stage1: all-stage1-opcodes
4312TARGET-stage1-opcodes = $(TARGET-opcodes)
4313all-stage1-opcodes: configure-stage1-opcodes
4314 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4315 @r=`${PWD_COMMAND}`; export r; \
4316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4317 TFLAGS="$(STAGE1_TFLAGS)"; \
4318 $(HOST_EXPORTS) \
4319 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4320 \
a90ef4bf
JM
4321 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4322 CFLAGS="$(STAGE1_CFLAGS)" \
4323 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4324 LIBCFLAGS="$(LIBCFLAGS)" \
4325 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4326 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4327 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4328 $(EXTRA_HOST_FLAGS) \
4329 $(STAGE1_FLAGS_TO_PASS) \
05a13254 4330 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
4331 $(TARGET-stage1-opcodes)
4332
4333maybe-clean-stage1-opcodes: clean-stage1-opcodes
4334clean-stage1: clean-stage1-opcodes
4335clean-stage1-opcodes:
4336 @if [ $(current_stage) = stage1 ]; then \
4337 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4338 else \
4339 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4340 $(MAKE) stage1-start; \
4341 fi; \
4342 cd $(HOST_SUBDIR)/opcodes && \
4343 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4344 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4345@endif opcodes-bootstrap
4346
4347
4348.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4349.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4350maybe-all-stage2-opcodes:
4351maybe-clean-stage2-opcodes:
4352@if opcodes-bootstrap
4353maybe-all-stage2-opcodes: all-stage2-opcodes
4354all-stage2: all-stage2-opcodes
4355TARGET-stage2-opcodes = $(TARGET-opcodes)
4356all-stage2-opcodes: configure-stage2-opcodes
4357 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4358 @r=`${PWD_COMMAND}`; export r; \
4359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4360 TFLAGS="$(STAGE2_TFLAGS)"; \
4361 $(HOST_EXPORTS) \
4362 $(POSTSTAGE1_HOST_EXPORTS) \
4363 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4364 \
a90ef4bf
JM
4365 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4366 CFLAGS="$(STAGE2_CFLAGS)" \
4367 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4368 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4369 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4370 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4371 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4372 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4373 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
4374 $(TARGET-stage2-opcodes)
4375
4376maybe-clean-stage2-opcodes: clean-stage2-opcodes
4377clean-stage2: clean-stage2-opcodes
4378clean-stage2-opcodes:
4379 @if [ $(current_stage) = stage2 ]; then \
4380 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4381 else \
4382 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4383 $(MAKE) stage2-start; \
4384 fi; \
4385 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4386 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4387@endif opcodes-bootstrap
4388
4389
4390.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4391.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4392maybe-all-stage3-opcodes:
4393maybe-clean-stage3-opcodes:
4394@if opcodes-bootstrap
4395maybe-all-stage3-opcodes: all-stage3-opcodes
4396all-stage3: all-stage3-opcodes
4397TARGET-stage3-opcodes = $(TARGET-opcodes)
4398all-stage3-opcodes: configure-stage3-opcodes
4399 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4400 @r=`${PWD_COMMAND}`; export r; \
4401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4402 TFLAGS="$(STAGE3_TFLAGS)"; \
4403 $(HOST_EXPORTS) \
4404 $(POSTSTAGE1_HOST_EXPORTS) \
4405 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4406 \
a90ef4bf
JM
4407 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4408 CFLAGS="$(STAGE3_CFLAGS)" \
4409 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4410 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4411 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4412 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4413 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4414 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4415 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
4416 $(TARGET-stage3-opcodes)
4417
4418maybe-clean-stage3-opcodes: clean-stage3-opcodes
4419clean-stage3: clean-stage3-opcodes
4420clean-stage3-opcodes:
4421 @if [ $(current_stage) = stage3 ]; then \
4422 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4423 else \
4424 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4425 $(MAKE) stage3-start; \
4426 fi; \
4427 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4428 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4429@endif opcodes-bootstrap
4430
4431
4432.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4433.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4434maybe-all-stage4-opcodes:
4435maybe-clean-stage4-opcodes:
4436@if opcodes-bootstrap
4437maybe-all-stage4-opcodes: all-stage4-opcodes
4438all-stage4: all-stage4-opcodes
4439TARGET-stage4-opcodes = $(TARGET-opcodes)
4440all-stage4-opcodes: configure-stage4-opcodes
4441 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4442 @r=`${PWD_COMMAND}`; export r; \
4443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4444 TFLAGS="$(STAGE4_TFLAGS)"; \
4445 $(HOST_EXPORTS) \
4446 $(POSTSTAGE1_HOST_EXPORTS) \
4447 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4448 \
a90ef4bf
JM
4449 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4450 CFLAGS="$(STAGE4_CFLAGS)" \
4451 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4452 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4453 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4454 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4455 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4456 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4457 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
4458 $(TARGET-stage4-opcodes)
4459
4460maybe-clean-stage4-opcodes: clean-stage4-opcodes
4461clean-stage4: clean-stage4-opcodes
4462clean-stage4-opcodes:
4463 @if [ $(current_stage) = stage4 ]; then \
4464 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4465 else \
4466 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4467 $(MAKE) stage4-start; \
4468 fi; \
4469 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4470 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4471@endif opcodes-bootstrap
4472
4473
4474.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4475.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4476maybe-all-stageprofile-opcodes:
4477maybe-clean-stageprofile-opcodes:
4478@if opcodes-bootstrap
4479maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4480all-stageprofile: all-stageprofile-opcodes
4481TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4482all-stageprofile-opcodes: configure-stageprofile-opcodes
4483 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4484 @r=`${PWD_COMMAND}`; export r; \
4485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4486 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4487 $(HOST_EXPORTS) \
4488 $(POSTSTAGE1_HOST_EXPORTS) \
4489 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4490 \
a90ef4bf
JM
4491 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4492 CFLAGS="$(STAGEprofile_CFLAGS)" \
4493 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4494 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4495 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4496 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4497 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4498 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4499 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
4500 $(TARGET-stageprofile-opcodes)
4501
4502maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4503clean-stageprofile: clean-stageprofile-opcodes
4504clean-stageprofile-opcodes:
4505 @if [ $(current_stage) = stageprofile ]; then \
4506 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4507 else \
4508 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4509 $(MAKE) stageprofile-start; \
4510 fi; \
4511 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4512 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4513@endif opcodes-bootstrap
4514
4515
4516.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4517.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4518maybe-all-stagefeedback-opcodes:
4519maybe-clean-stagefeedback-opcodes:
4520@if opcodes-bootstrap
4521maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4522all-stagefeedback: all-stagefeedback-opcodes
4523TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4524all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4525 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4526 @r=`${PWD_COMMAND}`; export r; \
4527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4528 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4529 $(HOST_EXPORTS) \
4530 $(POSTSTAGE1_HOST_EXPORTS) \
4531 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4532 \
a90ef4bf
JM
4533 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4534 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4535 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4536 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4537 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4538 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4539 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4540 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4541 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
4542 $(TARGET-stagefeedback-opcodes)
4543
4544maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4545clean-stagefeedback: clean-stagefeedback-opcodes
4546clean-stagefeedback-opcodes:
4547 @if [ $(current_stage) = stagefeedback ]; then \
4548 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4549 else \
4550 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4551 $(MAKE) stagefeedback-start; \
4552 fi; \
4553 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4554 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4555@endif opcodes-bootstrap
4556
4557
4558
4559
4560
4561.PHONY: check-opcodes maybe-check-opcodes
4562maybe-check-opcodes:
4563@if opcodes
4564maybe-check-opcodes: check-opcodes
4565
4566check-opcodes:
0aed8855 4567 @: $(MAKE); $(unstage)
a90ef4bf 4568 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 4570 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 4571 (cd $(HOST_SUBDIR)/opcodes && \
f91ca6bc 4572 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 4573
a90ef4bf 4574@endif opcodes
2a4cbe27 4575
a90ef4bf
JM
4576.PHONY: install-opcodes maybe-install-opcodes
4577maybe-install-opcodes:
4578@if opcodes
4579maybe-install-opcodes: install-opcodes
56a8fe78 4580
a90ef4bf 4581install-opcodes: installdirs
56a8fe78 4582 @: $(MAKE); $(unstage)
a90ef4bf 4583 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4585 $(HOST_EXPORTS) \
a90ef4bf
JM
4586 (cd $(HOST_SUBDIR)/opcodes && \
4587 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4588
a90ef4bf 4589@endif opcodes
56a8fe78 4590
a90ef4bf
JM
4591.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4592maybe-install-strip-opcodes:
4593@if opcodes
4594maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4595
a90ef4bf 4596install-strip-opcodes: installdirs
0aed8855 4597 @: $(MAKE); $(unstage)
a90ef4bf
JM
4598 @r=`${PWD_COMMAND}`; export r; \
4599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4600 $(HOST_EXPORTS) \
4601 (cd $(HOST_SUBDIR)/opcodes && \
4602 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4603
4604@endif opcodes
4605
4606# Other targets (info, dvi, pdf, etc.)
4607
4608.PHONY: maybe-info-opcodes info-opcodes
4609maybe-info-opcodes:
4610@if opcodes
4611maybe-info-opcodes: info-opcodes
4612
4613info-opcodes: \
4614 configure-opcodes
4615 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4616 r=`${PWD_COMMAND}`; export r; \
4617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4618 $(HOST_EXPORTS) \
4619 for flag in $(EXTRA_HOST_FLAGS) ; do \
4620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4621 done; \
22121df0 4622 echo "Doing info in opcodes"; \
a90ef4bf 4623 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
4624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4626 "RANLIB=$${RANLIB}" \
0c24b341 4627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4628 info) \
6d389afc
MS
4629 || exit 1
4630
a90ef4bf 4631@endif opcodes
6d389afc 4632
a90ef4bf
JM
4633.PHONY: maybe-dvi-opcodes dvi-opcodes
4634maybe-dvi-opcodes:
4635@if opcodes
4636maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4637
a90ef4bf
JM
4638dvi-opcodes: \
4639 configure-opcodes
4640 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4641 r=`${PWD_COMMAND}`; export r; \
4642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4643 $(HOST_EXPORTS) \
b813574b 4644 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4646 done; \
22121df0 4647 echo "Doing dvi in opcodes"; \
a90ef4bf 4648 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4651 "RANLIB=$${RANLIB}" \
0c24b341 4652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4653 dvi) \
2a4cbe27
NN
4654 || exit 1
4655
a90ef4bf 4656@endif opcodes
2a4cbe27 4657
a90ef4bf
JM
4658.PHONY: maybe-pdf-opcodes pdf-opcodes
4659maybe-pdf-opcodes:
4660@if opcodes
4661maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4662
a90ef4bf
JM
4663pdf-opcodes: \
4664 configure-opcodes
4665 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4666 r=`${PWD_COMMAND}`; export r; \
4667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4668 $(HOST_EXPORTS) \
b813574b 4669 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4671 done; \
22121df0 4672 echo "Doing pdf in opcodes"; \
a90ef4bf 4673 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4676 "RANLIB=$${RANLIB}" \
0c24b341 4677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4678 pdf) \
2a4cbe27
NN
4679 || exit 1
4680
a90ef4bf 4681@endif opcodes
2a4cbe27 4682
a90ef4bf
JM
4683.PHONY: maybe-html-opcodes html-opcodes
4684maybe-html-opcodes:
4685@if opcodes
4686maybe-html-opcodes: html-opcodes
a3ca38d2 4687
a90ef4bf
JM
4688html-opcodes: \
4689 configure-opcodes
4690 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4691 r=`${PWD_COMMAND}`; export r; \
4692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4693 $(HOST_EXPORTS) \
4694 for flag in $(EXTRA_HOST_FLAGS) ; do \
4695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4696 done; \
22121df0 4697 echo "Doing html in opcodes"; \
a90ef4bf 4698 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4701 "RANLIB=$${RANLIB}" \
0c24b341 4702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4703 html) \
a3ca38d2
DD
4704 || exit 1
4705
a90ef4bf 4706@endif opcodes
a3ca38d2 4707
a90ef4bf
JM
4708.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4709maybe-TAGS-opcodes:
4710@if opcodes
4711maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4712
a90ef4bf
JM
4713TAGS-opcodes: \
4714 configure-opcodes
4715 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4716 r=`${PWD_COMMAND}`; export r; \
4717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4718 $(HOST_EXPORTS) \
4719 for flag in $(EXTRA_HOST_FLAGS) ; do \
4720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4721 done; \
22121df0 4722 echo "Doing TAGS in opcodes"; \
a90ef4bf 4723 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4726 "RANLIB=$${RANLIB}" \
0c24b341 4727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4728 TAGS) \
108a6f8e
CD
4729 || exit 1
4730
a90ef4bf 4731@endif opcodes
108a6f8e 4732
a90ef4bf
JM
4733.PHONY: maybe-install-info-opcodes install-info-opcodes
4734maybe-install-info-opcodes:
4735@if opcodes
4736maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4737
a90ef4bf
JM
4738install-info-opcodes: \
4739 configure-opcodes \
4740 info-opcodes
4741 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4742 r=`${PWD_COMMAND}`; export r; \
4743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4744 $(HOST_EXPORTS) \
b813574b 4745 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4747 done; \
22121df0 4748 echo "Doing install-info in opcodes"; \
a90ef4bf 4749 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4752 "RANLIB=$${RANLIB}" \
0c24b341 4753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4754 install-info) \
2a4cbe27
NN
4755 || exit 1
4756
a90ef4bf 4757@endif opcodes
2a4cbe27 4758
a90ef4bf
JM
4759.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4760maybe-install-pdf-opcodes:
4761@if opcodes
4762maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4763
a90ef4bf
JM
4764install-pdf-opcodes: \
4765 configure-opcodes \
4766 pdf-opcodes
4767 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4768 r=`${PWD_COMMAND}`; export r; \
4769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4770 $(HOST_EXPORTS) \
b813574b 4771 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4773 done; \
22121df0 4774 echo "Doing install-pdf in opcodes"; \
a90ef4bf 4775 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4778 "RANLIB=$${RANLIB}" \
0c24b341 4779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4780 install-pdf) \
2a4cbe27
NN
4781 || exit 1
4782
a90ef4bf 4783@endif opcodes
2a4cbe27 4784
a90ef4bf
JM
4785.PHONY: maybe-install-html-opcodes install-html-opcodes
4786maybe-install-html-opcodes:
4787@if opcodes
4788maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4789
a90ef4bf
JM
4790install-html-opcodes: \
4791 configure-opcodes \
4792 html-opcodes
4793 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4794 r=`${PWD_COMMAND}`; export r; \
4795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4796 $(HOST_EXPORTS) \
b813574b 4797 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4799 done; \
22121df0 4800 echo "Doing install-html in opcodes"; \
a90ef4bf 4801 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4804 "RANLIB=$${RANLIB}" \
0c24b341 4805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4806 install-html) \
2a4cbe27
NN
4807 || exit 1
4808
a90ef4bf 4809@endif opcodes
2a4cbe27 4810
a90ef4bf
JM
4811.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4812maybe-installcheck-opcodes:
4813@if opcodes
4814maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4815
a90ef4bf
JM
4816installcheck-opcodes: \
4817 configure-opcodes
4818 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4819 r=`${PWD_COMMAND}`; export r; \
4820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4821 $(HOST_EXPORTS) \
b813574b 4822 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4824 done; \
22121df0 4825 echo "Doing installcheck in opcodes"; \
a90ef4bf 4826 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4829 "RANLIB=$${RANLIB}" \
0c24b341 4830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4831 installcheck) \
2a4cbe27
NN
4832 || exit 1
4833
a90ef4bf 4834@endif opcodes
2a4cbe27 4835
a90ef4bf
JM
4836.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4837maybe-mostlyclean-opcodes:
4838@if opcodes
4839maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4840
a90ef4bf
JM
4841mostlyclean-opcodes:
4842 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4843 r=`${PWD_COMMAND}`; export r; \
4844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4845 $(HOST_EXPORTS) \
b813574b 4846 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4848 done; \
22121df0 4849 echo "Doing mostlyclean in opcodes"; \
a90ef4bf 4850 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4853 "RANLIB=$${RANLIB}" \
0c24b341 4854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4855 mostlyclean) \
2a4cbe27
NN
4856 || exit 1
4857
a90ef4bf 4858@endif opcodes
2a4cbe27 4859
a90ef4bf
JM
4860.PHONY: maybe-clean-opcodes clean-opcodes
4861maybe-clean-opcodes:
4862@if opcodes
4863maybe-clean-opcodes: clean-opcodes
2a4cbe27 4864
a90ef4bf
JM
4865clean-opcodes:
4866 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4867 r=`${PWD_COMMAND}`; export r; \
4868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4869 $(HOST_EXPORTS) \
b813574b 4870 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4872 done; \
22121df0 4873 echo "Doing clean in opcodes"; \
a90ef4bf 4874 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4877 "RANLIB=$${RANLIB}" \
0c24b341 4878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4879 clean) \
2a4cbe27
NN
4880 || exit 1
4881
a90ef4bf 4882@endif opcodes
2a4cbe27 4883
a90ef4bf
JM
4884.PHONY: maybe-distclean-opcodes distclean-opcodes
4885maybe-distclean-opcodes:
4886@if opcodes
4887maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4888
a90ef4bf
JM
4889distclean-opcodes:
4890 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4891 r=`${PWD_COMMAND}`; export r; \
4892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4893 $(HOST_EXPORTS) \
b813574b 4894 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4896 done; \
22121df0 4897 echo "Doing distclean in opcodes"; \
a90ef4bf 4898 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4901 "RANLIB=$${RANLIB}" \
0c24b341 4902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4903 distclean) \
2a4cbe27
NN
4904 || exit 1
4905
a90ef4bf 4906@endif opcodes
2a4cbe27 4907
a90ef4bf
JM
4908.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4909maybe-maintainer-clean-opcodes:
4910@if opcodes
4911maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4912
a90ef4bf
JM
4913maintainer-clean-opcodes:
4914 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4915 r=`${PWD_COMMAND}`; export r; \
4916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4917 $(HOST_EXPORTS) \
b813574b 4918 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4920 done; \
22121df0 4921 echo "Doing maintainer-clean in opcodes"; \
a90ef4bf 4922 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4925 "RANLIB=$${RANLIB}" \
0c24b341 4926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4927 maintainer-clean) \
2a4cbe27
NN
4928 || exit 1
4929
a90ef4bf 4930@endif opcodes
2a4cbe27 4931
2a4cbe27 4932
a7254363 4933
a90ef4bf
JM
4934.PHONY: configure-binutils maybe-configure-binutils
4935maybe-configure-binutils:
4f0ef2d8 4936@if gcc-bootstrap
a90ef4bf 4937configure-binutils: stage_current
4f0ef2d8 4938@endif gcc-bootstrap
a90ef4bf
JM
4939@if binutils
4940maybe-configure-binutils: configure-binutils
4941configure-binutils:
c52c6897
PB
4942 @r=`${PWD_COMMAND}`; export r; \
4943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4944 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
22121df0 4945 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
1f53ca9a 4946 $(HOST_EXPORTS) \
a90ef4bf
JM
4947 echo Configuring in $(HOST_SUBDIR)/binutils; \
4948 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 4949 case $(srcdir) in \
b00612cc 4950 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4951 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 4952 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4953 esac; \
1b6c0831
L
4954 module_srcdir=binutils; \
4955 $(SHELL) \
4956 $$s/$$module_srcdir/configure \
4957 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4958 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4959 --target=${target_alias} \
2a4cbe27 4960 || exit 1
a90ef4bf 4961@endif binutils
2a4cbe27 4962
a7254363
PB
4963
4964
a90ef4bf
JM
4965.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
4966maybe-configure-stage1-binutils:
4967@if binutils-bootstrap
4968maybe-configure-stage1-binutils: configure-stage1-binutils
4969configure-stage1-binutils:
c52c6897 4970 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 4971 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4972 @r=`${PWD_COMMAND}`; export r; \
4973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4974 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 4975 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 4976 $(HOST_EXPORTS) \
8ee82aff 4977 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4978 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4979 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4980 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils; \
4981 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 4982 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4983 case $(srcdir) in \
4984 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4985 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4986 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4987 esac; \
1b6c0831
L
4988 module_srcdir=binutils; \
4989 $(SHELL) $$s/$$module_srcdir/configure \
4990 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4991 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4992 --target=${target_alias} \
4993 \
1b05fbbd 4994 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 4995@endif binutils-bootstrap
d545f33b 4996
a90ef4bf
JM
4997.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
4998maybe-configure-stage2-binutils:
4999@if binutils-bootstrap
5000maybe-configure-stage2-binutils: configure-stage2-binutils
5001configure-stage2-binutils:
c52c6897 5002 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 5003 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5004 @r=`${PWD_COMMAND}`; export r; \
5005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5006 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 5007 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5008 $(HOST_EXPORTS) \
1b05fbbd 5009 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5010 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5011 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
5012 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5013 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils; \
5014 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5015 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5016 case $(srcdir) in \
5017 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5018 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5019 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5020 esac; \
1b6c0831
L
5021 module_srcdir=binutils; \
5022 $(SHELL) $$s/$$module_srcdir/configure \
5023 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5024 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5025 --target=${target_alias} \
22121df0 5026 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5027 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 5028@endif binutils-bootstrap
8520c408 5029
a90ef4bf
JM
5030.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
5031maybe-configure-stage3-binutils:
5032@if binutils-bootstrap
5033maybe-configure-stage3-binutils: configure-stage3-binutils
5034configure-stage3-binutils:
c52c6897 5035 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 5036 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5037 @r=`${PWD_COMMAND}`; export r; \
5038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5039 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 5040 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5041 $(HOST_EXPORTS) \
1b05fbbd 5042 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5043 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5044 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5045 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5046 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils; \
5047 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5048 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5049 case $(srcdir) in \
5050 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5051 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5052 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5053 esac; \
1b6c0831
L
5054 module_srcdir=binutils; \
5055 $(SHELL) $$s/$$module_srcdir/configure \
5056 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5057 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5058 --target=${target_alias} \
22121df0 5059 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5060 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5061@endif binutils-bootstrap
8520c408 5062
a90ef4bf
JM
5063.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5064maybe-configure-stage4-binutils:
5065@if binutils-bootstrap
5066maybe-configure-stage4-binutils: configure-stage4-binutils
5067configure-stage4-binutils:
c52c6897 5068 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5069 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5070 @r=`${PWD_COMMAND}`; export r; \
5071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5072 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5073 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5074 $(HOST_EXPORTS) \
1b05fbbd 5075 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5076 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5077 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5078 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5079 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils; \
5080 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5081 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5082 case $(srcdir) in \
5083 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5084 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5085 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5086 esac; \
1b6c0831
L
5087 module_srcdir=binutils; \
5088 $(SHELL) $$s/$$module_srcdir/configure \
5089 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5090 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5091 --target=${target_alias} \
22121df0 5092 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5093 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5094@endif binutils-bootstrap
d545f33b 5095
a90ef4bf
JM
5096.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5097maybe-configure-stageprofile-binutils:
5098@if binutils-bootstrap
5099maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5100configure-stageprofile-binutils:
c52c6897 5101 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5102 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5103 @r=`${PWD_COMMAND}`; export r; \
5104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5105 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5106 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5107 $(HOST_EXPORTS) \
1b05fbbd
AO
5108 $(POSTSTAGE1_HOST_EXPORTS) \
5109 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5110 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5111 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5112 echo Configuring stage profile in $(HOST_SUBDIR)/binutils; \
5113 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5114 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5115 case $(srcdir) in \
5116 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5117 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5118 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5119 esac; \
1b6c0831
L
5120 module_srcdir=binutils; \
5121 $(SHELL) $$s/$$module_srcdir/configure \
5122 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5123 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5124 --target=${target_alias} \
22121df0 5125 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5126 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5127@endif binutils-bootstrap
d545f33b 5128
a90ef4bf
JM
5129.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5130maybe-configure-stagefeedback-binutils:
5131@if binutils-bootstrap
5132maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5133configure-stagefeedback-binutils:
c52c6897 5134 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5135 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5136 @r=`${PWD_COMMAND}`; export r; \
5137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5138 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5139 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5140 $(HOST_EXPORTS) \
1b05fbbd
AO
5141 $(POSTSTAGE1_HOST_EXPORTS) \
5142 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5143 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5144 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5145 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils; \
5146 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5147 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5148 case $(srcdir) in \
5149 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5150 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5151 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5152 esac; \
1b6c0831
L
5153 module_srcdir=binutils; \
5154 $(SHELL) $$s/$$module_srcdir/configure \
5155 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5156 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5157 --target=${target_alias} \
22121df0 5158 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5159 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5160@endif binutils-bootstrap
d545f33b
PB
5161
5162
5163
5164
5165
a90ef4bf
JM
5166.PHONY: all-binutils maybe-all-binutils
5167maybe-all-binutils:
4f0ef2d8 5168@if gcc-bootstrap
a90ef4bf 5169all-binutils: stage_current
4f0ef2d8 5170@endif gcc-bootstrap
a90ef4bf
JM
5171@if binutils
5172TARGET-binutils=all
5173maybe-all-binutils: all-binutils
5174all-binutils: configure-binutils
c52c6897 5175 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5177 $(HOST_EXPORTS) \
a90ef4bf 5178 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5179 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5180 $(TARGET-binutils))
5181@endif binutils
2a4cbe27 5182
a7254363 5183
d545f33b 5184
a90ef4bf
JM
5185.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5186.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5187maybe-all-stage1-binutils:
5188maybe-clean-stage1-binutils:
5189@if binutils-bootstrap
5190maybe-all-stage1-binutils: all-stage1-binutils
5191all-stage1: all-stage1-binutils
5192TARGET-stage1-binutils = $(TARGET-binutils)
5193all-stage1-binutils: configure-stage1-binutils
c52c6897 5194 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5195 @r=`${PWD_COMMAND}`; export r; \
5196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5197 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5198 $(HOST_EXPORTS) \
a90ef4bf 5199 cd $(HOST_SUBDIR)/binutils && \
05a13254 5200 \
7f6ef0c0 5201 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5202 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 5203 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5204 LIBCFLAGS="$(LIBCFLAGS)" \
5205 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5206 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5207 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5208 $(EXTRA_HOST_FLAGS) \
5209 $(STAGE1_FLAGS_TO_PASS) \
05a13254 5210 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5211 $(TARGET-stage1-binutils)
d545f33b 5212
a90ef4bf
JM
5213maybe-clean-stage1-binutils: clean-stage1-binutils
5214clean-stage1: clean-stage1-binutils
5215clean-stage1-binutils:
9dbaa842 5216 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5217 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5218 else \
a90ef4bf 5219 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5220 $(MAKE) stage1-start; \
5221 fi; \
a90ef4bf 5222 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5223 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5224 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5225@endif binutils-bootstrap
d545f33b
PB
5226
5227
a90ef4bf
JM
5228.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5229.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5230maybe-all-stage2-binutils:
5231maybe-clean-stage2-binutils:
5232@if binutils-bootstrap
5233maybe-all-stage2-binutils: all-stage2-binutils
5234all-stage2: all-stage2-binutils
5235TARGET-stage2-binutils = $(TARGET-binutils)
5236all-stage2-binutils: configure-stage2-binutils
c52c6897 5237 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5238 @r=`${PWD_COMMAND}`; export r; \
5239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5240 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5241 $(HOST_EXPORTS) \
1f53ca9a 5242 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5243 cd $(HOST_SUBDIR)/binutils && \
05a13254 5244 \
7f6ef0c0 5245 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5246 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5247 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5248 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5249 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5250 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5251 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5252 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5253 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5254 $(TARGET-stage2-binutils)
d545f33b 5255
a90ef4bf
JM
5256maybe-clean-stage2-binutils: clean-stage2-binutils
5257clean-stage2: clean-stage2-binutils
5258clean-stage2-binutils:
9dbaa842 5259 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5260 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5261 else \
a90ef4bf 5262 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5263 $(MAKE) stage2-start; \
5264 fi; \
a90ef4bf 5265 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5266 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5267@endif binutils-bootstrap
d545f33b
PB
5268
5269
a90ef4bf
JM
5270.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5271.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5272maybe-all-stage3-binutils:
5273maybe-clean-stage3-binutils:
5274@if binutils-bootstrap
5275maybe-all-stage3-binutils: all-stage3-binutils
5276all-stage3: all-stage3-binutils
5277TARGET-stage3-binutils = $(TARGET-binutils)
5278all-stage3-binutils: configure-stage3-binutils
c52c6897 5279 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5280 @r=`${PWD_COMMAND}`; export r; \
5281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5282 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5283 $(HOST_EXPORTS) \
1f53ca9a 5284 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5285 cd $(HOST_SUBDIR)/binutils && \
05a13254 5286 \
7f6ef0c0 5287 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5288 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5289 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5290 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5291 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5292 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5293 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5294 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5295 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5296 $(TARGET-stage3-binutils)
d545f33b 5297
a90ef4bf
JM
5298maybe-clean-stage3-binutils: clean-stage3-binutils
5299clean-stage3: clean-stage3-binutils
5300clean-stage3-binutils:
9dbaa842 5301 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5302 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5303 else \
a90ef4bf 5304 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5305 $(MAKE) stage3-start; \
5306 fi; \
a90ef4bf 5307 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5308 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5309@endif binutils-bootstrap
d545f33b
PB
5310
5311
a90ef4bf
JM
5312.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5313.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5314maybe-all-stage4-binutils:
5315maybe-clean-stage4-binutils:
5316@if binutils-bootstrap
5317maybe-all-stage4-binutils: all-stage4-binutils
5318all-stage4: all-stage4-binutils
5319TARGET-stage4-binutils = $(TARGET-binutils)
5320all-stage4-binutils: configure-stage4-binutils
c52c6897 5321 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5322 @r=`${PWD_COMMAND}`; export r; \
5323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5324 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5325 $(HOST_EXPORTS) \
1f53ca9a 5326 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5327 cd $(HOST_SUBDIR)/binutils && \
05a13254 5328 \
7f6ef0c0 5329 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5330 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5331 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5332 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5333 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5334 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5335 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5336 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5337 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5338 $(TARGET-stage4-binutils)
d545f33b 5339
a90ef4bf
JM
5340maybe-clean-stage4-binutils: clean-stage4-binutils
5341clean-stage4: clean-stage4-binutils
5342clean-stage4-binutils:
9dbaa842 5343 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5344 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5345 else \
a90ef4bf 5346 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5347 $(MAKE) stage4-start; \
5348 fi; \
a90ef4bf 5349 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5350 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5351@endif binutils-bootstrap
d545f33b
PB
5352
5353
a90ef4bf
JM
5354.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5355.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5356maybe-all-stageprofile-binutils:
5357maybe-clean-stageprofile-binutils:
5358@if binutils-bootstrap
5359maybe-all-stageprofile-binutils: all-stageprofile-binutils
5360all-stageprofile: all-stageprofile-binutils
5361TARGET-stageprofile-binutils = $(TARGET-binutils)
5362all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5363 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5364 @r=`${PWD_COMMAND}`; export r; \
5365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5366 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5367 $(HOST_EXPORTS) \
1f53ca9a 5368 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5369 cd $(HOST_SUBDIR)/binutils && \
05a13254 5370 \
7f6ef0c0 5371 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5372 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5373 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5374 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5375 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5376 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5377 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5378 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5379 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5380 $(TARGET-stageprofile-binutils)
d545f33b 5381
a90ef4bf
JM
5382maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5383clean-stageprofile: clean-stageprofile-binutils
5384clean-stageprofile-binutils:
9dbaa842 5385 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5386 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5387 else \
a90ef4bf 5388 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5389 $(MAKE) stageprofile-start; \
5390 fi; \
a90ef4bf 5391 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5392 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5393@endif binutils-bootstrap
d545f33b
PB
5394
5395
a90ef4bf
JM
5396.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5397.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5398maybe-all-stagefeedback-binutils:
5399maybe-clean-stagefeedback-binutils:
5400@if binutils-bootstrap
5401maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5402all-stagefeedback: all-stagefeedback-binutils
5403TARGET-stagefeedback-binutils = $(TARGET-binutils)
5404all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5405 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5406 @r=`${PWD_COMMAND}`; export r; \
5407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5408 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5409 $(HOST_EXPORTS) \
1f53ca9a 5410 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5411 cd $(HOST_SUBDIR)/binutils && \
05a13254 5412 \
7f6ef0c0 5413 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5414 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5415 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5416 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5417 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5418 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5419 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5420 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5421 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5422 $(TARGET-stagefeedback-binutils)
d545f33b 5423
a90ef4bf
JM
5424maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5425clean-stagefeedback: clean-stagefeedback-binutils
5426clean-stagefeedback-binutils:
9dbaa842 5427 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5428 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5429 else \
a90ef4bf 5430 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5431 $(MAKE) stagefeedback-start; \
5432 fi; \
a90ef4bf 5433 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5434 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5435@endif binutils-bootstrap
d545f33b
PB
5436
5437
5438
5439
5440
a90ef4bf
JM
5441.PHONY: check-binutils maybe-check-binutils
5442maybe-check-binutils:
5443@if binutils
5444maybe-check-binutils: check-binutils
2a4cbe27 5445
a90ef4bf 5446check-binutils:
0aed8855 5447 @: $(MAKE); $(unstage)
4fa63067 5448 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5450 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 5451 (cd $(HOST_SUBDIR)/binutils && \
f91ca6bc 5452 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 5453
a90ef4bf 5454@endif binutils
2a4cbe27 5455
a90ef4bf
JM
5456.PHONY: install-binutils maybe-install-binutils
5457maybe-install-binutils:
5458@if binutils
5459maybe-install-binutils: install-binutils
2a4cbe27 5460
a90ef4bf 5461install-binutils: installdirs
0aed8855 5462 @: $(MAKE); $(unstage)
4fa63067 5463 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5465 $(HOST_EXPORTS) \
a90ef4bf 5466 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5467 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5468
a90ef4bf 5469@endif binutils
2a4cbe27 5470
a90ef4bf
JM
5471.PHONY: install-strip-binutils maybe-install-strip-binutils
5472maybe-install-strip-binutils:
5473@if binutils
5474maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5475
a90ef4bf 5476install-strip-binutils: installdirs
9b980aa1
RW
5477 @: $(MAKE); $(unstage)
5478 @r=`${PWD_COMMAND}`; export r; \
5479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5480 $(HOST_EXPORTS) \
a90ef4bf 5481 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5482 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5483
a90ef4bf 5484@endif binutils
9b980aa1 5485
56a8fe78 5486# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5487
a90ef4bf
JM
5488.PHONY: maybe-info-binutils info-binutils
5489maybe-info-binutils:
5490@if binutils
5491maybe-info-binutils: info-binutils
4fa63067 5492
a90ef4bf
JM
5493info-binutils: \
5494 configure-binutils
5495 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5496 r=`${PWD_COMMAND}`; export r; \
5497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5498 $(HOST_EXPORTS) \
b813574b 5499 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5501 done; \
22121df0 5502 echo "Doing info in binutils"; \
a90ef4bf 5503 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5506 "RANLIB=$${RANLIB}" \
0c24b341 5507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5508 info) \
2a4cbe27
NN
5509 || exit 1
5510
a90ef4bf 5511@endif binutils
2a4cbe27 5512
a90ef4bf
JM
5513.PHONY: maybe-dvi-binutils dvi-binutils
5514maybe-dvi-binutils:
5515@if binutils
5516maybe-dvi-binutils: dvi-binutils
2a4cbe27 5517
a90ef4bf
JM
5518dvi-binutils: \
5519 configure-binutils
5520 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5521 r=`${PWD_COMMAND}`; export r; \
5522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5523 $(HOST_EXPORTS) \
b813574b 5524 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5526 done; \
22121df0 5527 echo "Doing dvi in binutils"; \
a90ef4bf 5528 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5531 "RANLIB=$${RANLIB}" \
0c24b341 5532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5533 dvi) \
2a4cbe27
NN
5534 || exit 1
5535
a90ef4bf 5536@endif binutils
2a4cbe27 5537
a90ef4bf
JM
5538.PHONY: maybe-pdf-binutils pdf-binutils
5539maybe-pdf-binutils:
5540@if binutils
5541maybe-pdf-binutils: pdf-binutils
56a8fe78 5542
a90ef4bf
JM
5543pdf-binutils: \
5544 configure-binutils
5545 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5546 r=`${PWD_COMMAND}`; export r; \
5547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5548 $(HOST_EXPORTS) \
5549 for flag in $(EXTRA_HOST_FLAGS) ; do \
5550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5551 done; \
22121df0 5552 echo "Doing pdf in binutils"; \
a90ef4bf 5553 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5556 "RANLIB=$${RANLIB}" \
0c24b341 5557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5558 pdf) \
5559 || exit 1
5560
a90ef4bf 5561@endif binutils
56a8fe78 5562
a90ef4bf
JM
5563.PHONY: maybe-html-binutils html-binutils
5564maybe-html-binutils:
5565@if binutils
5566maybe-html-binutils: html-binutils
6d389afc 5567
a90ef4bf
JM
5568html-binutils: \
5569 configure-binutils
5570 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5571 r=`${PWD_COMMAND}`; export r; \
5572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5573 $(HOST_EXPORTS) \
5574 for flag in $(EXTRA_HOST_FLAGS) ; do \
5575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5576 done; \
22121df0 5577 echo "Doing html in binutils"; \
a90ef4bf 5578 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5581 "RANLIB=$${RANLIB}" \
0c24b341 5582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5583 html) \
5584 || exit 1
5585
a90ef4bf 5586@endif binutils
6d389afc 5587
a90ef4bf
JM
5588.PHONY: maybe-TAGS-binutils TAGS-binutils
5589maybe-TAGS-binutils:
5590@if binutils
5591maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5592
a90ef4bf
JM
5593TAGS-binutils: \
5594 configure-binutils
5595 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5596 r=`${PWD_COMMAND}`; export r; \
5597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5598 $(HOST_EXPORTS) \
b813574b 5599 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5601 done; \
22121df0 5602 echo "Doing TAGS in binutils"; \
a90ef4bf 5603 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5606 "RANLIB=$${RANLIB}" \
0c24b341 5607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5608 TAGS) \
2a4cbe27
NN
5609 || exit 1
5610
a90ef4bf 5611@endif binutils
2a4cbe27 5612
a90ef4bf
JM
5613.PHONY: maybe-install-info-binutils install-info-binutils
5614maybe-install-info-binutils:
5615@if binutils
5616maybe-install-info-binutils: install-info-binutils
2a4cbe27 5617
a90ef4bf
JM
5618install-info-binutils: \
5619 configure-binutils \
5620 info-binutils
5621 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5622 r=`${PWD_COMMAND}`; export r; \
5623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5624 $(HOST_EXPORTS) \
b813574b 5625 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5627 done; \
22121df0 5628 echo "Doing install-info in binutils"; \
a90ef4bf 5629 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5632 "RANLIB=$${RANLIB}" \
0c24b341 5633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5634 install-info) \
2a4cbe27
NN
5635 || exit 1
5636
a90ef4bf 5637@endif binutils
2a4cbe27 5638
a90ef4bf
JM
5639.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5640maybe-install-pdf-binutils:
5641@if binutils
5642maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5643
a90ef4bf
JM
5644install-pdf-binutils: \
5645 configure-binutils \
5646 pdf-binutils
5647 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5648 r=`${PWD_COMMAND}`; export r; \
5649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5650 $(HOST_EXPORTS) \
5651 for flag in $(EXTRA_HOST_FLAGS) ; do \
5652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5653 done; \
22121df0 5654 echo "Doing install-pdf in binutils"; \
a90ef4bf 5655 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5658 "RANLIB=$${RANLIB}" \
0c24b341 5659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5660 install-pdf) \
5661 || exit 1
5662
a90ef4bf 5663@endif binutils
a3ca38d2 5664
a90ef4bf
JM
5665.PHONY: maybe-install-html-binutils install-html-binutils
5666maybe-install-html-binutils:
5667@if binutils
5668maybe-install-html-binutils: install-html-binutils
108a6f8e 5669
a90ef4bf
JM
5670install-html-binutils: \
5671 configure-binutils \
5672 html-binutils
5673 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5674 r=`${PWD_COMMAND}`; export r; \
5675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5676 $(HOST_EXPORTS) \
5677 for flag in $(EXTRA_HOST_FLAGS) ; do \
5678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5679 done; \
22121df0 5680 echo "Doing install-html in binutils"; \
a90ef4bf 5681 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
5682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5684 "RANLIB=$${RANLIB}" \
0c24b341 5685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
5686 install-html) \
5687 || exit 1
5688
a90ef4bf 5689@endif binutils
108a6f8e 5690
a90ef4bf
JM
5691.PHONY: maybe-installcheck-binutils installcheck-binutils
5692maybe-installcheck-binutils:
5693@if binutils
5694maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5695
a90ef4bf
JM
5696installcheck-binutils: \
5697 configure-binutils
5698 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5699 r=`${PWD_COMMAND}`; export r; \
5700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5701 $(HOST_EXPORTS) \
b813574b 5702 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5704 done; \
22121df0 5705 echo "Doing installcheck in binutils"; \
a90ef4bf 5706 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5709 "RANLIB=$${RANLIB}" \
0c24b341 5710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5711 installcheck) \
2a4cbe27
NN
5712 || exit 1
5713
a90ef4bf 5714@endif binutils
2a4cbe27 5715
a90ef4bf
JM
5716.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5717maybe-mostlyclean-binutils:
5718@if binutils
5719maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5720
a90ef4bf
JM
5721mostlyclean-binutils:
5722 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5723 r=`${PWD_COMMAND}`; export r; \
5724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5725 $(HOST_EXPORTS) \
b813574b 5726 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5728 done; \
22121df0 5729 echo "Doing mostlyclean in binutils"; \
a90ef4bf 5730 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5733 "RANLIB=$${RANLIB}" \
0c24b341 5734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5735 mostlyclean) \
2a4cbe27
NN
5736 || exit 1
5737
a90ef4bf 5738@endif binutils
2a4cbe27 5739
a90ef4bf
JM
5740.PHONY: maybe-clean-binutils clean-binutils
5741maybe-clean-binutils:
5742@if binutils
5743maybe-clean-binutils: clean-binutils
2a4cbe27 5744
a90ef4bf
JM
5745clean-binutils:
5746 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5747 r=`${PWD_COMMAND}`; export r; \
5748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5749 $(HOST_EXPORTS) \
b813574b 5750 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5752 done; \
22121df0 5753 echo "Doing clean in binutils"; \
a90ef4bf 5754 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5757 "RANLIB=$${RANLIB}" \
0c24b341 5758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5759 clean) \
2a4cbe27
NN
5760 || exit 1
5761
a90ef4bf 5762@endif binutils
2a4cbe27 5763
a90ef4bf
JM
5764.PHONY: maybe-distclean-binutils distclean-binutils
5765maybe-distclean-binutils:
5766@if binutils
5767maybe-distclean-binutils: distclean-binutils
2a4cbe27 5768
a90ef4bf
JM
5769distclean-binutils:
5770 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5771 r=`${PWD_COMMAND}`; export r; \
5772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5773 $(HOST_EXPORTS) \
b813574b 5774 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5776 done; \
22121df0 5777 echo "Doing distclean in binutils"; \
a90ef4bf 5778 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5781 "RANLIB=$${RANLIB}" \
0c24b341 5782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5783 distclean) \
2a4cbe27
NN
5784 || exit 1
5785
a90ef4bf 5786@endif binutils
2a4cbe27 5787
a90ef4bf
JM
5788.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5789maybe-maintainer-clean-binutils:
5790@if binutils
5791maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5792
a90ef4bf
JM
5793maintainer-clean-binutils:
5794 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5795 r=`${PWD_COMMAND}`; export r; \
5796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5797 $(HOST_EXPORTS) \
b813574b 5798 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5800 done; \
22121df0 5801 echo "Doing maintainer-clean in binutils"; \
a90ef4bf 5802 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5805 "RANLIB=$${RANLIB}" \
0c24b341 5806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5807 maintainer-clean) \
a2592b1b
DD
5808 || exit 1
5809
a90ef4bf 5810@endif binutils
a2592b1b 5811
2a4cbe27 5812
a7254363 5813
a90ef4bf
JM
5814.PHONY: configure-bison maybe-configure-bison
5815maybe-configure-bison:
4f0ef2d8 5816@if gcc-bootstrap
a90ef4bf 5817configure-bison: stage_current
4f0ef2d8 5818@endif gcc-bootstrap
a90ef4bf
JM
5819@if bison
5820maybe-configure-bison: configure-bison
5821configure-bison:
5822 @: $(MAKE); $(unstage)
c52c6897
PB
5823 @r=`${PWD_COMMAND}`; export r; \
5824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 5825 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
22121df0 5826 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison; \
1f53ca9a 5827 $(HOST_EXPORTS) \
a90ef4bf
JM
5828 echo Configuring in $(HOST_SUBDIR)/bison; \
5829 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5830 case $(srcdir) in \
b00612cc 5831 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5832 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5833 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5834 esac; \
1b6c0831
L
5835 module_srcdir=bison; \
5836 $(SHELL) \
5837 $$s/$$module_srcdir/configure \
5838 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5839 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5840 --target=${target_alias} \
4fa63067 5841 || exit 1
a90ef4bf 5842@endif bison
2a4cbe27 5843
a7254363
PB
5844
5845
d545f33b 5846
8520c408 5847
a90ef4bf
JM
5848.PHONY: all-bison maybe-all-bison
5849maybe-all-bison:
5850@if gcc-bootstrap
5851all-bison: stage_current
5852@endif gcc-bootstrap
5853@if bison
5854TARGET-bison=all
5855maybe-all-bison: all-bison
5856all-bison: configure-bison
5857 @: $(MAKE); $(unstage)
c52c6897
PB
5858 @r=`${PWD_COMMAND}`; export r; \
5859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5860 $(HOST_EXPORTS) \
5861 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5862 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5863 $(TARGET-bison))
5864@endif bison
8520c408 5865
d545f33b 5866
d545f33b 5867
d545f33b 5868
a90ef4bf
JM
5869.PHONY: check-bison maybe-check-bison
5870maybe-check-bison:
5871@if bison
5872maybe-check-bison: check-bison
d545f33b 5873
a90ef4bf
JM
5874# This module is only tested in a native toolchain.
5875check-bison:
5876 @: $(MAKE); $(unstage)
22121df0 5877 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
5878 r=`${PWD_COMMAND}`; export r; \
5879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5880 $(HOST_EXPORTS) \
a90ef4bf 5881 (cd $(HOST_SUBDIR)/bison && \
f91ca6bc 5882 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 5883 fi
d545f33b 5884
a90ef4bf 5885@endif bison
d545f33b 5886
a90ef4bf
JM
5887.PHONY: install-bison maybe-install-bison
5888maybe-install-bison:
5889@if bison
5890maybe-install-bison: install-bison
d545f33b 5891
a90ef4bf
JM
5892install-bison: installdirs
5893 @: $(MAKE); $(unstage)
c52c6897 5894 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5896 $(HOST_EXPORTS) \
5897 (cd $(HOST_SUBDIR)/bison && \
5898 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5899
a90ef4bf 5900@endif bison
a7254363 5901
a90ef4bf
JM
5902.PHONY: install-strip-bison maybe-install-strip-bison
5903maybe-install-strip-bison:
5904@if bison
5905maybe-install-strip-bison: install-strip-bison
d545f33b 5906
a90ef4bf
JM
5907install-strip-bison: installdirs
5908 @: $(MAKE); $(unstage)
d545f33b
PB
5909 @r=`${PWD_COMMAND}`; export r; \
5910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5911 $(HOST_EXPORTS) \
5912 (cd $(HOST_SUBDIR)/bison && \
5913 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 5914
a90ef4bf 5915@endif bison
d545f33b 5916
a90ef4bf 5917# Other targets (info, dvi, pdf, etc.)
d545f33b 5918
a90ef4bf
JM
5919.PHONY: maybe-info-bison info-bison
5920maybe-info-bison:
5921@if bison
5922maybe-info-bison: info-bison
5923
5924info-bison: \
5925 configure-bison
5926 @: $(MAKE); $(unstage)
5927 @[ -f ./bison/Makefile ] || exit 0; \
5928 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5930 $(HOST_EXPORTS) \
a90ef4bf
JM
5931 for flag in $(EXTRA_HOST_FLAGS) ; do \
5932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5933 done; \
22121df0 5934 echo "Doing info in bison"; \
a90ef4bf
JM
5935 (cd $(HOST_SUBDIR)/bison && \
5936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5938 "RANLIB=$${RANLIB}" \
5939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5940 info) \
5941 || exit 1
d545f33b 5942
a90ef4bf 5943@endif bison
d545f33b 5944
a90ef4bf
JM
5945.PHONY: maybe-dvi-bison dvi-bison
5946maybe-dvi-bison:
5947@if bison
5948maybe-dvi-bison: dvi-bison
d545f33b 5949
a90ef4bf
JM
5950dvi-bison: \
5951 configure-bison
5952 @: $(MAKE); $(unstage)
5953 @[ -f ./bison/Makefile ] || exit 0; \
5954 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5956 $(HOST_EXPORTS) \
a90ef4bf
JM
5957 for flag in $(EXTRA_HOST_FLAGS) ; do \
5958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5959 done; \
22121df0 5960 echo "Doing dvi in bison"; \
a90ef4bf
JM
5961 (cd $(HOST_SUBDIR)/bison && \
5962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5964 "RANLIB=$${RANLIB}" \
5965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5966 dvi) \
5967 || exit 1
d545f33b 5968
a90ef4bf 5969@endif bison
d545f33b 5970
a90ef4bf
JM
5971.PHONY: maybe-pdf-bison pdf-bison
5972maybe-pdf-bison:
5973@if bison
5974maybe-pdf-bison: pdf-bison
d545f33b 5975
a90ef4bf
JM
5976pdf-bison: \
5977 configure-bison
5978 @: $(MAKE); $(unstage)
5979 @[ -f ./bison/Makefile ] || exit 0; \
5980 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5982 $(HOST_EXPORTS) \
a90ef4bf
JM
5983 for flag in $(EXTRA_HOST_FLAGS) ; do \
5984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5985 done; \
22121df0 5986 echo "Doing pdf in bison"; \
a90ef4bf
JM
5987 (cd $(HOST_SUBDIR)/bison && \
5988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5990 "RANLIB=$${RANLIB}" \
5991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5992 pdf) \
5993 || exit 1
d545f33b 5994
a90ef4bf 5995@endif bison
d545f33b 5996
a90ef4bf
JM
5997.PHONY: maybe-html-bison html-bison
5998maybe-html-bison:
5999@if bison
6000maybe-html-bison: html-bison
d545f33b 6001
a90ef4bf
JM
6002html-bison: \
6003 configure-bison
6004 @: $(MAKE); $(unstage)
6005 @[ -f ./bison/Makefile ] || exit 0; \
6006 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6008 $(HOST_EXPORTS) \
a90ef4bf
JM
6009 for flag in $(EXTRA_HOST_FLAGS) ; do \
6010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6011 done; \
22121df0 6012 echo "Doing html in bison"; \
a90ef4bf
JM
6013 (cd $(HOST_SUBDIR)/bison && \
6014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6016 "RANLIB=$${RANLIB}" \
6017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6018 html) \
6019 || exit 1
d545f33b 6020
a90ef4bf 6021@endif bison
2a4cbe27 6022
a90ef4bf
JM
6023.PHONY: maybe-TAGS-bison TAGS-bison
6024maybe-TAGS-bison:
6025@if bison
6026maybe-TAGS-bison: TAGS-bison
2a4cbe27 6027
a90ef4bf
JM
6028TAGS-bison: \
6029 configure-bison
0aed8855 6030 @: $(MAKE); $(unstage)
a90ef4bf
JM
6031 @[ -f ./bison/Makefile ] || exit 0; \
6032 r=`${PWD_COMMAND}`; export r; \
4fa63067 6033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6034 $(HOST_EXPORTS) \
a90ef4bf
JM
6035 for flag in $(EXTRA_HOST_FLAGS) ; do \
6036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6037 done; \
22121df0 6038 echo "Doing TAGS in bison"; \
a90ef4bf
JM
6039 (cd $(HOST_SUBDIR)/bison && \
6040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6042 "RANLIB=$${RANLIB}" \
6043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6044 TAGS) \
6045 || exit 1
4fa63067 6046
a90ef4bf 6047@endif bison
4fa63067 6048
a90ef4bf
JM
6049.PHONY: maybe-install-info-bison install-info-bison
6050maybe-install-info-bison:
6051@if bison
6052maybe-install-info-bison: install-info-bison
9b980aa1 6053
a90ef4bf
JM
6054install-info-bison: \
6055 configure-bison \
6056 info-bison
9b980aa1 6057 @: $(MAKE); $(unstage)
a90ef4bf 6058 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6059 r=`${PWD_COMMAND}`; export r; \
6060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6061 $(HOST_EXPORTS) \
b813574b 6062 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6064 done; \
22121df0 6065 echo "Doing install-info in bison"; \
a90ef4bf 6066 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6069 "RANLIB=$${RANLIB}" \
0c24b341 6070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6071 install-info) \
2a4cbe27
NN
6072 || exit 1
6073
a90ef4bf 6074@endif bison
2a4cbe27 6075
a90ef4bf
JM
6076.PHONY: maybe-install-pdf-bison install-pdf-bison
6077maybe-install-pdf-bison:
6078@if bison
6079maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6080
a90ef4bf
JM
6081install-pdf-bison: \
6082 configure-bison \
6083 pdf-bison
6084 @: $(MAKE); $(unstage)
6085 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6086 r=`${PWD_COMMAND}`; export r; \
6087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6088 $(HOST_EXPORTS) \
b813574b 6089 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6091 done; \
22121df0 6092 echo "Doing install-pdf in bison"; \
a90ef4bf 6093 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6096 "RANLIB=$${RANLIB}" \
0c24b341 6097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6098 install-pdf) \
2a4cbe27
NN
6099 || exit 1
6100
a90ef4bf 6101@endif bison
2a4cbe27 6102
a90ef4bf
JM
6103.PHONY: maybe-install-html-bison install-html-bison
6104maybe-install-html-bison:
6105@if bison
6106maybe-install-html-bison: install-html-bison
56a8fe78 6107
a90ef4bf
JM
6108install-html-bison: \
6109 configure-bison \
6110 html-bison
6111 @: $(MAKE); $(unstage)
6112 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6113 r=`${PWD_COMMAND}`; export r; \
6114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6115 $(HOST_EXPORTS) \
6116 for flag in $(EXTRA_HOST_FLAGS) ; do \
6117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6118 done; \
22121df0 6119 echo "Doing install-html in bison"; \
a90ef4bf 6120 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6123 "RANLIB=$${RANLIB}" \
0c24b341 6124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6125 install-html) \
56a8fe78
DD
6126 || exit 1
6127
a90ef4bf 6128@endif bison
56a8fe78 6129
a90ef4bf
JM
6130.PHONY: maybe-installcheck-bison installcheck-bison
6131maybe-installcheck-bison:
6132@if bison
6133maybe-installcheck-bison: installcheck-bison
6d389afc 6134
a90ef4bf
JM
6135installcheck-bison: \
6136 configure-bison
6137 @: $(MAKE); $(unstage)
6138 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6139 r=`${PWD_COMMAND}`; export r; \
6140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6141 $(HOST_EXPORTS) \
6142 for flag in $(EXTRA_HOST_FLAGS) ; do \
6143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6144 done; \
22121df0 6145 echo "Doing installcheck in bison"; \
a90ef4bf 6146 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6149 "RANLIB=$${RANLIB}" \
0c24b341 6150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6151 installcheck) \
6d389afc
MS
6152 || exit 1
6153
a90ef4bf 6154@endif bison
6d389afc 6155
a90ef4bf
JM
6156.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6157maybe-mostlyclean-bison:
6158@if bison
6159maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6160
a90ef4bf
JM
6161mostlyclean-bison:
6162 @: $(MAKE); $(unstage)
6163 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6164 r=`${PWD_COMMAND}`; export r; \
6165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6166 $(HOST_EXPORTS) \
b813574b 6167 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6169 done; \
22121df0 6170 echo "Doing mostlyclean in bison"; \
a90ef4bf 6171 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6174 "RANLIB=$${RANLIB}" \
0c24b341 6175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6176 mostlyclean) \
2a4cbe27
NN
6177 || exit 1
6178
a90ef4bf 6179@endif bison
2a4cbe27 6180
a90ef4bf
JM
6181.PHONY: maybe-clean-bison clean-bison
6182maybe-clean-bison:
6183@if bison
6184maybe-clean-bison: clean-bison
2a4cbe27 6185
a90ef4bf
JM
6186clean-bison:
6187 @: $(MAKE); $(unstage)
6188 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6189 r=`${PWD_COMMAND}`; export r; \
6190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6191 $(HOST_EXPORTS) \
b813574b 6192 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6194 done; \
22121df0 6195 echo "Doing clean in bison"; \
a90ef4bf 6196 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6199 "RANLIB=$${RANLIB}" \
0c24b341 6200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6201 clean) \
2a4cbe27
NN
6202 || exit 1
6203
a90ef4bf 6204@endif bison
2a4cbe27 6205
a90ef4bf
JM
6206.PHONY: maybe-distclean-bison distclean-bison
6207maybe-distclean-bison:
6208@if bison
6209maybe-distclean-bison: distclean-bison
a3ca38d2 6210
a90ef4bf
JM
6211distclean-bison:
6212 @: $(MAKE); $(unstage)
6213 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
6214 r=`${PWD_COMMAND}`; export r; \
6215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6216 $(HOST_EXPORTS) \
6217 for flag in $(EXTRA_HOST_FLAGS) ; do \
6218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6219 done; \
22121df0 6220 echo "Doing distclean in bison"; \
a90ef4bf 6221 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
6222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6224 "RANLIB=$${RANLIB}" \
0c24b341 6225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6226 distclean) \
a3ca38d2
DD
6227 || exit 1
6228
a90ef4bf 6229@endif bison
a3ca38d2 6230
a90ef4bf
JM
6231.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6232maybe-maintainer-clean-bison:
6233@if bison
6234maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6235
a90ef4bf
JM
6236maintainer-clean-bison:
6237 @: $(MAKE); $(unstage)
6238 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6239 r=`${PWD_COMMAND}`; export r; \
6240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6241 $(HOST_EXPORTS) \
6242 for flag in $(EXTRA_HOST_FLAGS) ; do \
6243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6244 done; \
22121df0 6245 echo "Doing maintainer-clean in bison"; \
a90ef4bf 6246 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6249 "RANLIB=$${RANLIB}" \
0c24b341 6250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6251 maintainer-clean) \
108a6f8e
CD
6252 || exit 1
6253
a90ef4bf 6254@endif bison
108a6f8e 6255
2a4cbe27 6256
a90ef4bf
JM
6257
6258.PHONY: configure-cgen maybe-configure-cgen
6259maybe-configure-cgen:
6260@if gcc-bootstrap
6261configure-cgen: stage_current
6262@endif gcc-bootstrap
6263@if cgen
6264maybe-configure-cgen: configure-cgen
6265configure-cgen:
6266 @: $(MAKE); $(unstage)
6267 @r=`${PWD_COMMAND}`; export r; \
6268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6269 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
22121df0 6270 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen; \
a90ef4bf
JM
6271 $(HOST_EXPORTS) \
6272 echo Configuring in $(HOST_SUBDIR)/cgen; \
6273 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6274 case $(srcdir) in \
6275 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6276 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6277 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6278 esac; \
1b6c0831
L
6279 module_srcdir=cgen; \
6280 $(SHELL) \
6281 $$s/$$module_srcdir/configure \
6282 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 6283 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6284 --target=${target_alias} \
a90ef4bf
JM
6285 || exit 1
6286@endif cgen
6287
6288
6289
6290
6291
6292.PHONY: all-cgen maybe-all-cgen
6293maybe-all-cgen:
6294@if gcc-bootstrap
6295all-cgen: stage_current
6296@endif gcc-bootstrap
6297@if cgen
6298TARGET-cgen=all
6299maybe-all-cgen: all-cgen
6300all-cgen: configure-cgen
6301 @: $(MAKE); $(unstage)
6302 @r=`${PWD_COMMAND}`; export r; \
6303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6304 $(HOST_EXPORTS) \
6305 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6306 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6307 $(TARGET-cgen))
6308@endif cgen
6309
6310
6311
6312
6313.PHONY: check-cgen maybe-check-cgen
6314maybe-check-cgen:
6315@if cgen
6316maybe-check-cgen: check-cgen
6317
6318check-cgen:
6319 @: $(MAKE); $(unstage)
6320 @r=`${PWD_COMMAND}`; export r; \
6321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6322 $(HOST_EXPORTS) \
a90ef4bf
JM
6323 (cd $(HOST_SUBDIR)/cgen && \
6324 $(MAKE) $(FLAGS_TO_PASS) check)
6325
6326@endif cgen
6327
6328.PHONY: install-cgen maybe-install-cgen
6329maybe-install-cgen:
6330@if cgen
6331maybe-install-cgen: install-cgen
6332
6333install-cgen: installdirs
6334 @: $(MAKE); $(unstage)
6335 @r=`${PWD_COMMAND}`; export r; \
6336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6337 $(HOST_EXPORTS) \
6338 (cd $(HOST_SUBDIR)/cgen && \
6339 $(MAKE) $(FLAGS_TO_PASS) install)
6340
6341@endif cgen
6342
6343.PHONY: install-strip-cgen maybe-install-strip-cgen
6344maybe-install-strip-cgen:
6345@if cgen
6346maybe-install-strip-cgen: install-strip-cgen
6347
6348install-strip-cgen: installdirs
6349 @: $(MAKE); $(unstage)
6350 @r=`${PWD_COMMAND}`; export r; \
6351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6352 $(HOST_EXPORTS) \
6353 (cd $(HOST_SUBDIR)/cgen && \
6354 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6355
6356@endif cgen
6357
6358# Other targets (info, dvi, pdf, etc.)
6359
6360.PHONY: maybe-info-cgen info-cgen
6361maybe-info-cgen:
6362@if cgen
6363maybe-info-cgen: info-cgen
6364
6365info-cgen: \
6366 configure-cgen
6367 @: $(MAKE); $(unstage)
6368 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6369 r=`${PWD_COMMAND}`; export r; \
6370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6371 $(HOST_EXPORTS) \
b813574b 6372 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6374 done; \
22121df0 6375 echo "Doing info in cgen"; \
a90ef4bf 6376 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6379 "RANLIB=$${RANLIB}" \
0c24b341 6380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6381 info) \
2a4cbe27
NN
6382 || exit 1
6383
a90ef4bf 6384@endif cgen
2a4cbe27 6385
a90ef4bf
JM
6386.PHONY: maybe-dvi-cgen dvi-cgen
6387maybe-dvi-cgen:
6388@if cgen
6389maybe-dvi-cgen: dvi-cgen
2a4cbe27 6390
a90ef4bf
JM
6391dvi-cgen: \
6392 configure-cgen
6393 @: $(MAKE); $(unstage)
6394 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6395 r=`${PWD_COMMAND}`; export r; \
6396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6397 $(HOST_EXPORTS) \
b813574b 6398 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6400 done; \
22121df0 6401 echo "Doing dvi in cgen"; \
a90ef4bf 6402 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6405 "RANLIB=$${RANLIB}" \
0c24b341 6406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6407 dvi) \
2a4cbe27
NN
6408 || exit 1
6409
a90ef4bf 6410@endif cgen
2a4cbe27 6411
a90ef4bf
JM
6412.PHONY: maybe-pdf-cgen pdf-cgen
6413maybe-pdf-cgen:
6414@if cgen
6415maybe-pdf-cgen: pdf-cgen
2a4cbe27 6416
a90ef4bf
JM
6417pdf-cgen: \
6418 configure-cgen
6419 @: $(MAKE); $(unstage)
6420 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6421 r=`${PWD_COMMAND}`; export r; \
6422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6423 $(HOST_EXPORTS) \
b813574b 6424 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6426 done; \
22121df0 6427 echo "Doing pdf in cgen"; \
a90ef4bf 6428 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6431 "RANLIB=$${RANLIB}" \
0c24b341 6432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6433 pdf) \
2a4cbe27
NN
6434 || exit 1
6435
a90ef4bf 6436@endif cgen
2a4cbe27 6437
a90ef4bf
JM
6438.PHONY: maybe-html-cgen html-cgen
6439maybe-html-cgen:
6440@if cgen
6441maybe-html-cgen: html-cgen
2a4cbe27 6442
a90ef4bf
JM
6443html-cgen: \
6444 configure-cgen
6445 @: $(MAKE); $(unstage)
6446 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6447 r=`${PWD_COMMAND}`; export r; \
6448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6449 $(HOST_EXPORTS) \
b813574b 6450 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6452 done; \
22121df0 6453 echo "Doing html in cgen"; \
a90ef4bf 6454 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6457 "RANLIB=$${RANLIB}" \
0c24b341 6458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6459 html) \
2a4cbe27
NN
6460 || exit 1
6461
a90ef4bf 6462@endif cgen
2a4cbe27 6463
a90ef4bf
JM
6464.PHONY: maybe-TAGS-cgen TAGS-cgen
6465maybe-TAGS-cgen:
6466@if cgen
6467maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6468
a90ef4bf
JM
6469TAGS-cgen: \
6470 configure-cgen
6471 @: $(MAKE); $(unstage)
6472 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6473 r=`${PWD_COMMAND}`; export r; \
6474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6475 $(HOST_EXPORTS) \
b813574b 6476 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6478 done; \
22121df0 6479 echo "Doing TAGS in cgen"; \
a90ef4bf 6480 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6483 "RANLIB=$${RANLIB}" \
0c24b341 6484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6485 TAGS) \
2a4cbe27
NN
6486 || exit 1
6487
a90ef4bf 6488@endif cgen
2a4cbe27 6489
a90ef4bf
JM
6490.PHONY: maybe-install-info-cgen install-info-cgen
6491maybe-install-info-cgen:
6492@if cgen
6493maybe-install-info-cgen: install-info-cgen
2a4cbe27 6494
a90ef4bf
JM
6495install-info-cgen: \
6496 configure-cgen \
6497 info-cgen
6498 @: $(MAKE); $(unstage)
6499 @[ -f ./cgen/Makefile ] || exit 0; \
6500 r=`${PWD_COMMAND}`; export r; \
6501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6502 $(HOST_EXPORTS) \
6503 for flag in $(EXTRA_HOST_FLAGS) ; do \
6504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6505 done; \
22121df0 6506 echo "Doing install-info in cgen"; \
a90ef4bf
JM
6507 (cd $(HOST_SUBDIR)/cgen && \
6508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6510 "RANLIB=$${RANLIB}" \
6511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6512 install-info) \
6513 || exit 1
a7254363 6514
a90ef4bf
JM
6515@endif cgen
6516
6517.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6518maybe-install-pdf-cgen:
6519@if cgen
6520maybe-install-pdf-cgen: install-pdf-cgen
6521
6522install-pdf-cgen: \
6523 configure-cgen \
6524 pdf-cgen
6525 @: $(MAKE); $(unstage)
6526 @[ -f ./cgen/Makefile ] || exit 0; \
6527 r=`${PWD_COMMAND}`; export r; \
c52c6897 6528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6529 $(HOST_EXPORTS) \
6530 for flag in $(EXTRA_HOST_FLAGS) ; do \
6531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6532 done; \
22121df0 6533 echo "Doing install-pdf in cgen"; \
a90ef4bf
JM
6534 (cd $(HOST_SUBDIR)/cgen && \
6535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6537 "RANLIB=$${RANLIB}" \
6538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6539 install-pdf) \
2a4cbe27
NN
6540 || exit 1
6541
a90ef4bf 6542@endif cgen
a7254363 6543
a90ef4bf
JM
6544.PHONY: maybe-install-html-cgen install-html-cgen
6545maybe-install-html-cgen:
6546@if cgen
6547maybe-install-html-cgen: install-html-cgen
a7254363 6548
a90ef4bf
JM
6549install-html-cgen: \
6550 configure-cgen \
6551 html-cgen
6552 @: $(MAKE); $(unstage)
6553 @[ -f ./cgen/Makefile ] || exit 0; \
6554 r=`${PWD_COMMAND}`; export r; \
c52c6897 6555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6556 $(HOST_EXPORTS) \
a90ef4bf
JM
6557 for flag in $(EXTRA_HOST_FLAGS) ; do \
6558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6559 done; \
22121df0 6560 echo "Doing install-html in cgen"; \
a90ef4bf
JM
6561 (cd $(HOST_SUBDIR)/cgen && \
6562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6564 "RANLIB=$${RANLIB}" \
6565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6566 install-html) \
6567 || exit 1
d545f33b 6568
a90ef4bf
JM
6569@endif cgen
6570
6571.PHONY: maybe-installcheck-cgen installcheck-cgen
6572maybe-installcheck-cgen:
6573@if cgen
6574maybe-installcheck-cgen: installcheck-cgen
6575
6576installcheck-cgen: \
6577 configure-cgen
6578 @: $(MAKE); $(unstage)
6579 @[ -f ./cgen/Makefile ] || exit 0; \
6580 r=`${PWD_COMMAND}`; export r; \
c52c6897 6581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6582 $(HOST_EXPORTS) \
a90ef4bf
JM
6583 for flag in $(EXTRA_HOST_FLAGS) ; do \
6584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6585 done; \
22121df0 6586 echo "Doing installcheck in cgen"; \
a90ef4bf
JM
6587 (cd $(HOST_SUBDIR)/cgen && \
6588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6590 "RANLIB=$${RANLIB}" \
6591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6592 installcheck) \
6593 || exit 1
8520c408 6594
a90ef4bf
JM
6595@endif cgen
6596
6597.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6598maybe-mostlyclean-cgen:
6599@if cgen
6600maybe-mostlyclean-cgen: mostlyclean-cgen
6601
6602mostlyclean-cgen:
6603 @: $(MAKE); $(unstage)
6604 @[ -f ./cgen/Makefile ] || exit 0; \
6605 r=`${PWD_COMMAND}`; export r; \
c52c6897 6606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6607 $(HOST_EXPORTS) \
a90ef4bf
JM
6608 for flag in $(EXTRA_HOST_FLAGS) ; do \
6609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6610 done; \
22121df0 6611 echo "Doing mostlyclean in cgen"; \
a90ef4bf
JM
6612 (cd $(HOST_SUBDIR)/cgen && \
6613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6615 "RANLIB=$${RANLIB}" \
6616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6617 mostlyclean) \
6618 || exit 1
8520c408 6619
a90ef4bf
JM
6620@endif cgen
6621
6622.PHONY: maybe-clean-cgen clean-cgen
6623maybe-clean-cgen:
6624@if cgen
6625maybe-clean-cgen: clean-cgen
6626
6627clean-cgen:
6628 @: $(MAKE); $(unstage)
6629 @[ -f ./cgen/Makefile ] || exit 0; \
6630 r=`${PWD_COMMAND}`; export r; \
c52c6897 6631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6632 $(HOST_EXPORTS) \
a90ef4bf
JM
6633 for flag in $(EXTRA_HOST_FLAGS) ; do \
6634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6635 done; \
22121df0 6636 echo "Doing clean in cgen"; \
a90ef4bf
JM
6637 (cd $(HOST_SUBDIR)/cgen && \
6638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6640 "RANLIB=$${RANLIB}" \
6641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6642 clean) \
6643 || exit 1
d545f33b 6644
a90ef4bf
JM
6645@endif cgen
6646
6647.PHONY: maybe-distclean-cgen distclean-cgen
6648maybe-distclean-cgen:
6649@if cgen
6650maybe-distclean-cgen: distclean-cgen
6651
6652distclean-cgen:
6653 @: $(MAKE); $(unstage)
6654 @[ -f ./cgen/Makefile ] || exit 0; \
6655 r=`${PWD_COMMAND}`; export r; \
c52c6897 6656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6657 $(HOST_EXPORTS) \
a90ef4bf
JM
6658 for flag in $(EXTRA_HOST_FLAGS) ; do \
6659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6660 done; \
22121df0 6661 echo "Doing distclean in cgen"; \
a90ef4bf
JM
6662 (cd $(HOST_SUBDIR)/cgen && \
6663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6665 "RANLIB=$${RANLIB}" \
6666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6667 distclean) \
6668 || exit 1
d545f33b 6669
a90ef4bf
JM
6670@endif cgen
6671
6672.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6673maybe-maintainer-clean-cgen:
6674@if cgen
6675maybe-maintainer-clean-cgen: maintainer-clean-cgen
6676
6677maintainer-clean-cgen:
6678 @: $(MAKE); $(unstage)
6679 @[ -f ./cgen/Makefile ] || exit 0; \
6680 r=`${PWD_COMMAND}`; export r; \
c52c6897 6681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6682 $(HOST_EXPORTS) \
a90ef4bf
JM
6683 for flag in $(EXTRA_HOST_FLAGS) ; do \
6684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6685 done; \
22121df0 6686 echo "Doing maintainer-clean in cgen"; \
a90ef4bf
JM
6687 (cd $(HOST_SUBDIR)/cgen && \
6688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6690 "RANLIB=$${RANLIB}" \
6691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6692 maintainer-clean) \
6693 || exit 1
6694
6695@endif cgen
6696
6697
6698
6699.PHONY: configure-dejagnu maybe-configure-dejagnu
6700maybe-configure-dejagnu:
6701@if gcc-bootstrap
6702configure-dejagnu: stage_current
6703@endif gcc-bootstrap
6704@if dejagnu
6705maybe-configure-dejagnu: configure-dejagnu
6706configure-dejagnu:
6707 @: $(MAKE); $(unstage)
6708 @r=`${PWD_COMMAND}`; export r; \
6709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6710 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
22121df0 6711 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu; \
a90ef4bf
JM
6712 $(HOST_EXPORTS) \
6713 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6714 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6715 case $(srcdir) in \
6716 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6717 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6718 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6719 esac; \
1b6c0831
L
6720 module_srcdir=dejagnu; \
6721 $(SHELL) \
6722 $$s/$$module_srcdir/configure \
6723 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6724 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6725 --target=${target_alias} \
a90ef4bf
JM
6726 || exit 1
6727@endif dejagnu
d545f33b
PB
6728
6729
6730
6731
6732
a90ef4bf
JM
6733.PHONY: all-dejagnu maybe-all-dejagnu
6734maybe-all-dejagnu:
4f0ef2d8 6735@if gcc-bootstrap
a90ef4bf 6736all-dejagnu: stage_current
4f0ef2d8 6737@endif gcc-bootstrap
a90ef4bf
JM
6738@if dejagnu
6739TARGET-dejagnu=all
6740maybe-all-dejagnu: all-dejagnu
6741all-dejagnu: configure-dejagnu
6742 @: $(MAKE); $(unstage)
c52c6897 6743 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6745 $(HOST_EXPORTS) \
a90ef4bf 6746 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6747 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6748 $(TARGET-dejagnu))
6749@endif dejagnu
4fa63067 6750
a7254363 6751
4fa63067 6752
a90ef4bf
JM
6753
6754.PHONY: check-dejagnu maybe-check-dejagnu
6755maybe-check-dejagnu:
6756@if dejagnu
6757maybe-check-dejagnu: check-dejagnu
6758
6759check-dejagnu:
6760 @: $(MAKE); $(unstage)
4fa63067
NN
6761 @r=`${PWD_COMMAND}`; export r; \
6762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6763 $(HOST_EXPORTS) \
a90ef4bf
JM
6764 (cd $(HOST_SUBDIR)/dejagnu && \
6765 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6766
a90ef4bf 6767@endif dejagnu
2a4cbe27 6768
a90ef4bf
JM
6769.PHONY: install-dejagnu maybe-install-dejagnu
6770maybe-install-dejagnu:
6771@if dejagnu
6772maybe-install-dejagnu: install-dejagnu
2a4cbe27 6773
a90ef4bf
JM
6774install-dejagnu: installdirs
6775 @: $(MAKE); $(unstage)
4fa63067 6776 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6778 $(HOST_EXPORTS) \
a90ef4bf
JM
6779 (cd $(HOST_SUBDIR)/dejagnu && \
6780 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6781
a90ef4bf 6782@endif dejagnu
d545f33b 6783
a90ef4bf
JM
6784.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6785maybe-install-strip-dejagnu:
6786@if dejagnu
6787maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6788
a90ef4bf 6789install-strip-dejagnu: installdirs
9b980aa1
RW
6790 @: $(MAKE); $(unstage)
6791 @r=`${PWD_COMMAND}`; export r; \
6792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6793 $(HOST_EXPORTS) \
a90ef4bf 6794 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6795 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6796
a90ef4bf 6797@endif dejagnu
9b980aa1 6798
56a8fe78 6799# Other targets (info, dvi, pdf, etc.)
d545f33b 6800
a90ef4bf
JM
6801.PHONY: maybe-info-dejagnu info-dejagnu
6802maybe-info-dejagnu:
6803@if dejagnu
6804maybe-info-dejagnu: info-dejagnu
d545f33b 6805
a90ef4bf
JM
6806info-dejagnu: \
6807 configure-dejagnu
6808 @: $(MAKE); $(unstage)
6809 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6810 r=`${PWD_COMMAND}`; export r; \
6811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6812 $(HOST_EXPORTS) \
6813 for flag in $(EXTRA_HOST_FLAGS) ; do \
6814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6815 done; \
22121df0 6816 echo "Doing info in dejagnu"; \
a90ef4bf 6817 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6820 "RANLIB=$${RANLIB}" \
0c24b341 6821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6822 info) \
6823 || exit 1
6824
a90ef4bf 6825@endif dejagnu
d545f33b 6826
a90ef4bf
JM
6827.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6828maybe-dvi-dejagnu:
6829@if dejagnu
6830maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6831
a90ef4bf
JM
6832dvi-dejagnu: \
6833 configure-dejagnu
6834 @: $(MAKE); $(unstage)
6835 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6836 r=`${PWD_COMMAND}`; export r; \
6837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6838 $(HOST_EXPORTS) \
6839 for flag in $(EXTRA_HOST_FLAGS) ; do \
6840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6841 done; \
22121df0 6842 echo "Doing dvi in dejagnu"; \
a90ef4bf 6843 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6846 "RANLIB=$${RANLIB}" \
0c24b341 6847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6848 dvi) \
2a4cbe27
NN
6849 || exit 1
6850
a90ef4bf 6851@endif dejagnu
2a4cbe27 6852
a90ef4bf
JM
6853.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6854maybe-pdf-dejagnu:
6855@if dejagnu
6856maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6857
a90ef4bf
JM
6858pdf-dejagnu: \
6859 configure-dejagnu
6860 @: $(MAKE); $(unstage)
6861 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6862 r=`${PWD_COMMAND}`; export r; \
6863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6864 $(HOST_EXPORTS) \
6865 for flag in $(EXTRA_HOST_FLAGS) ; do \
6866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6867 done; \
22121df0 6868 echo "Doing pdf in dejagnu"; \
a90ef4bf 6869 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6872 "RANLIB=$${RANLIB}" \
0c24b341 6873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6874 pdf) \
6875 || exit 1
6876
a90ef4bf 6877@endif dejagnu
56a8fe78 6878
a90ef4bf
JM
6879.PHONY: maybe-html-dejagnu html-dejagnu
6880maybe-html-dejagnu:
6881@if dejagnu
6882maybe-html-dejagnu: html-dejagnu
6d389afc 6883
a90ef4bf
JM
6884html-dejagnu: \
6885 configure-dejagnu
6886 @: $(MAKE); $(unstage)
6887 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6888 r=`${PWD_COMMAND}`; export r; \
6889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6890 $(HOST_EXPORTS) \
6891 for flag in $(EXTRA_HOST_FLAGS) ; do \
6892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6893 done; \
22121df0 6894 echo "Doing html in dejagnu"; \
a90ef4bf 6895 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
6896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6898 "RANLIB=$${RANLIB}" \
0c24b341 6899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6900 html) \
6901 || exit 1
6902
a90ef4bf 6903@endif dejagnu
6d389afc 6904
a90ef4bf
JM
6905.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6906maybe-TAGS-dejagnu:
6907@if dejagnu
6908maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 6909
a90ef4bf
JM
6910TAGS-dejagnu: \
6911 configure-dejagnu
6912 @: $(MAKE); $(unstage)
6913 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6914 r=`${PWD_COMMAND}`; export r; \
6915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6916 $(HOST_EXPORTS) \
b813574b 6917 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6919 done; \
22121df0 6920 echo "Doing TAGS in dejagnu"; \
a90ef4bf 6921 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6924 "RANLIB=$${RANLIB}" \
0c24b341 6925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6926 TAGS) \
2a4cbe27
NN
6927 || exit 1
6928
a90ef4bf 6929@endif dejagnu
2a4cbe27 6930
a90ef4bf
JM
6931.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6932maybe-install-info-dejagnu:
6933@if dejagnu
6934maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 6935
a90ef4bf
JM
6936install-info-dejagnu: \
6937 configure-dejagnu \
6938 info-dejagnu
6939 @: $(MAKE); $(unstage)
6940 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6941 r=`${PWD_COMMAND}`; export r; \
6942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6943 $(HOST_EXPORTS) \
b813574b 6944 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6946 done; \
22121df0 6947 echo "Doing install-info in dejagnu"; \
a90ef4bf 6948 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6951 "RANLIB=$${RANLIB}" \
0c24b341 6952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6953 install-info) \
2a4cbe27
NN
6954 || exit 1
6955
a90ef4bf 6956@endif dejagnu
2a4cbe27 6957
a90ef4bf
JM
6958.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6959maybe-install-pdf-dejagnu:
6960@if dejagnu
6961maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 6962
a90ef4bf
JM
6963install-pdf-dejagnu: \
6964 configure-dejagnu \
6965 pdf-dejagnu
6966 @: $(MAKE); $(unstage)
6967 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
6968 r=`${PWD_COMMAND}`; export r; \
6969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6970 $(HOST_EXPORTS) \
6971 for flag in $(EXTRA_HOST_FLAGS) ; do \
6972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6973 done; \
22121df0 6974 echo "Doing install-pdf in dejagnu"; \
a90ef4bf 6975 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
6976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6978 "RANLIB=$${RANLIB}" \
0c24b341 6979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
6980 install-pdf) \
6981 || exit 1
6982
a90ef4bf 6983@endif dejagnu
a3ca38d2 6984
a90ef4bf
JM
6985.PHONY: maybe-install-html-dejagnu install-html-dejagnu
6986maybe-install-html-dejagnu:
6987@if dejagnu
6988maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 6989
a90ef4bf
JM
6990install-html-dejagnu: \
6991 configure-dejagnu \
6992 html-dejagnu
6993 @: $(MAKE); $(unstage)
6994 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
6995 r=`${PWD_COMMAND}`; export r; \
6996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6997 $(HOST_EXPORTS) \
6998 for flag in $(EXTRA_HOST_FLAGS) ; do \
6999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7000 done; \
22121df0 7001 echo "Doing install-html in dejagnu"; \
a90ef4bf 7002 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
7003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7005 "RANLIB=$${RANLIB}" \
0c24b341 7006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7007 install-html) \
7008 || exit 1
7009
a90ef4bf 7010@endif dejagnu
108a6f8e 7011
a90ef4bf
JM
7012.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
7013maybe-installcheck-dejagnu:
7014@if dejagnu
7015maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 7016
a90ef4bf
JM
7017installcheck-dejagnu: \
7018 configure-dejagnu
7019 @: $(MAKE); $(unstage)
7020 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7021 r=`${PWD_COMMAND}`; export r; \
7022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7023 $(HOST_EXPORTS) \
b813574b 7024 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7026 done; \
22121df0 7027 echo "Doing installcheck in dejagnu"; \
a90ef4bf 7028 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7031 "RANLIB=$${RANLIB}" \
0c24b341 7032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7033 installcheck) \
2a4cbe27
NN
7034 || exit 1
7035
a90ef4bf 7036@endif dejagnu
2a4cbe27 7037
a90ef4bf
JM
7038.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7039maybe-mostlyclean-dejagnu:
7040@if dejagnu
7041maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 7042
a90ef4bf
JM
7043mostlyclean-dejagnu:
7044 @: $(MAKE); $(unstage)
7045 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7046 r=`${PWD_COMMAND}`; export r; \
7047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7048 $(HOST_EXPORTS) \
b813574b 7049 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7051 done; \
22121df0 7052 echo "Doing mostlyclean in dejagnu"; \
a90ef4bf 7053 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7056 "RANLIB=$${RANLIB}" \
0c24b341 7057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7058 mostlyclean) \
2a4cbe27
NN
7059 || exit 1
7060
a90ef4bf 7061@endif dejagnu
2a4cbe27 7062
a90ef4bf
JM
7063.PHONY: maybe-clean-dejagnu clean-dejagnu
7064maybe-clean-dejagnu:
7065@if dejagnu
7066maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7067
a90ef4bf
JM
7068clean-dejagnu:
7069 @: $(MAKE); $(unstage)
7070 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7071 r=`${PWD_COMMAND}`; export r; \
7072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7073 $(HOST_EXPORTS) \
b813574b 7074 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7076 done; \
22121df0 7077 echo "Doing clean in dejagnu"; \
a90ef4bf 7078 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7081 "RANLIB=$${RANLIB}" \
0c24b341 7082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7083 clean) \
2a4cbe27
NN
7084 || exit 1
7085
a90ef4bf 7086@endif dejagnu
2a4cbe27 7087
a90ef4bf
JM
7088.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7089maybe-distclean-dejagnu:
7090@if dejagnu
7091maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7092
a90ef4bf
JM
7093distclean-dejagnu:
7094 @: $(MAKE); $(unstage)
7095 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7096 r=`${PWD_COMMAND}`; export r; \
7097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7098 $(HOST_EXPORTS) \
b813574b 7099 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7101 done; \
22121df0 7102 echo "Doing distclean in dejagnu"; \
a90ef4bf 7103 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7106 "RANLIB=$${RANLIB}" \
0c24b341 7107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7108 distclean) \
2a4cbe27
NN
7109 || exit 1
7110
a90ef4bf 7111@endif dejagnu
2a4cbe27 7112
a90ef4bf
JM
7113.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7114maybe-maintainer-clean-dejagnu:
7115@if dejagnu
7116maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7117
a90ef4bf
JM
7118maintainer-clean-dejagnu:
7119 @: $(MAKE); $(unstage)
7120 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7121 r=`${PWD_COMMAND}`; export r; \
7122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7123 $(HOST_EXPORTS) \
b813574b 7124 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7126 done; \
22121df0 7127 echo "Doing maintainer-clean in dejagnu"; \
a90ef4bf 7128 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7131 "RANLIB=$${RANLIB}" \
0c24b341 7132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7133 maintainer-clean) \
2a4cbe27
NN
7134 || exit 1
7135
a90ef4bf 7136@endif dejagnu
2a4cbe27 7137
2a4cbe27 7138
a7254363 7139
a90ef4bf
JM
7140.PHONY: configure-etc maybe-configure-etc
7141maybe-configure-etc:
4f0ef2d8 7142@if gcc-bootstrap
a90ef4bf 7143configure-etc: stage_current
4f0ef2d8 7144@endif gcc-bootstrap
a90ef4bf
JM
7145@if etc
7146maybe-configure-etc: configure-etc
7147configure-etc:
0aed8855 7148 @: $(MAKE); $(unstage)
c52c6897 7149 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7151 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
22121df0 7152 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc; \
1f53ca9a 7153 $(HOST_EXPORTS) \
a90ef4bf
JM
7154 echo Configuring in $(HOST_SUBDIR)/etc; \
7155 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7156 case $(srcdir) in \
b00612cc 7157 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7158 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7159 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7160 esac; \
1b6c0831
L
7161 module_srcdir=etc; \
7162 $(SHELL) \
7163 $$s/$$module_srcdir/configure \
7164 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7165 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7166 --target=${target_alias} \
2a4cbe27 7167 || exit 1
a90ef4bf 7168@endif etc
2a4cbe27 7169
a7254363
PB
7170
7171
d545f33b
PB
7172
7173
a90ef4bf
JM
7174.PHONY: all-etc maybe-all-etc
7175maybe-all-etc:
4f0ef2d8 7176@if gcc-bootstrap
a90ef4bf 7177all-etc: stage_current
4f0ef2d8 7178@endif gcc-bootstrap
a90ef4bf
JM
7179@if etc
7180TARGET-etc=all
7181maybe-all-etc: all-etc
7182all-etc: configure-etc
0aed8855 7183 @: $(MAKE); $(unstage)
4fa63067
NN
7184 @r=`${PWD_COMMAND}`; export r; \
7185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7186 $(HOST_EXPORTS) \
a90ef4bf 7187 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7188 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7189 $(TARGET-etc))
7190@endif etc
2a4cbe27 7191
a7254363 7192
d545f33b
PB
7193
7194
a90ef4bf
JM
7195.PHONY: check-etc maybe-check-etc
7196maybe-check-etc:
7197@if etc
7198maybe-check-etc: check-etc
2a4cbe27 7199
a90ef4bf 7200check-etc:
0aed8855 7201 @: $(MAKE); $(unstage)
a90ef4bf
JM
7202 @r=`${PWD_COMMAND}`; export r; \
7203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7204 $(HOST_EXPORTS) \
a90ef4bf
JM
7205 (cd $(HOST_SUBDIR)/etc && \
7206 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7207
a90ef4bf 7208@endif etc
4fa63067 7209
a90ef4bf
JM
7210.PHONY: install-etc maybe-install-etc
7211maybe-install-etc:
7212@if etc
7213maybe-install-etc: install-etc
4fa63067 7214
a90ef4bf 7215install-etc: installdirs
0aed8855 7216 @: $(MAKE); $(unstage)
4fa63067 7217 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7219 $(HOST_EXPORTS) \
a90ef4bf 7220 (cd $(HOST_SUBDIR)/etc && \
2da12f12 7221 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7222
a90ef4bf 7223@endif etc
2a4cbe27 7224
a90ef4bf
JM
7225.PHONY: install-strip-etc maybe-install-strip-etc
7226maybe-install-strip-etc:
7227@if etc
7228maybe-install-strip-etc: install-strip-etc
9b980aa1 7229
a90ef4bf 7230install-strip-etc: installdirs
9b980aa1
RW
7231 @: $(MAKE); $(unstage)
7232 @r=`${PWD_COMMAND}`; export r; \
7233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7234 $(HOST_EXPORTS) \
a90ef4bf 7235 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7236 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7237
a90ef4bf 7238@endif etc
9b980aa1 7239
56a8fe78 7240# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7241
a90ef4bf
JM
7242.PHONY: maybe-info-etc info-etc
7243maybe-info-etc:
7244@if etc
7245maybe-info-etc: info-etc
4fa63067 7246
a90ef4bf
JM
7247info-etc: \
7248 configure-etc
0aed8855 7249 @: $(MAKE); $(unstage)
a90ef4bf 7250 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7251 r=`${PWD_COMMAND}`; export r; \
7252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7253 $(HOST_EXPORTS) \
b813574b 7254 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7256 done; \
22121df0 7257 echo "Doing info in etc"; \
a90ef4bf 7258 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7261 "RANLIB=$${RANLIB}" \
0c24b341 7262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7263 info) \
2a4cbe27
NN
7264 || exit 1
7265
a90ef4bf 7266@endif etc
2a4cbe27 7267
a90ef4bf
JM
7268.PHONY: maybe-dvi-etc dvi-etc
7269maybe-dvi-etc:
7270@if etc
7271maybe-dvi-etc: dvi-etc
2a4cbe27 7272
a90ef4bf
JM
7273dvi-etc: \
7274 configure-etc
0aed8855 7275 @: $(MAKE); $(unstage)
a90ef4bf 7276 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7277 r=`${PWD_COMMAND}`; export r; \
7278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7279 $(HOST_EXPORTS) \
b813574b 7280 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7282 done; \
22121df0 7283 echo "Doing dvi in etc"; \
a90ef4bf 7284 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7287 "RANLIB=$${RANLIB}" \
0c24b341 7288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7289 dvi) \
2a4cbe27
NN
7290 || exit 1
7291
a90ef4bf 7292@endif etc
2a4cbe27 7293
a90ef4bf
JM
7294.PHONY: maybe-pdf-etc pdf-etc
7295maybe-pdf-etc:
7296@if etc
7297maybe-pdf-etc: pdf-etc
56a8fe78 7298
a90ef4bf
JM
7299pdf-etc: \
7300 configure-etc
56a8fe78 7301 @: $(MAKE); $(unstage)
a90ef4bf 7302 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7303 r=`${PWD_COMMAND}`; export r; \
7304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7305 $(HOST_EXPORTS) \
7306 for flag in $(EXTRA_HOST_FLAGS) ; do \
7307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7308 done; \
22121df0 7309 echo "Doing pdf in etc"; \
a90ef4bf 7310 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
7311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7313 "RANLIB=$${RANLIB}" \
0c24b341 7314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7315 pdf) \
7316 || exit 1
7317
a90ef4bf 7318@endif etc
56a8fe78 7319
a90ef4bf
JM
7320.PHONY: maybe-html-etc html-etc
7321maybe-html-etc:
7322@if etc
7323maybe-html-etc: html-etc
6d389afc 7324
a90ef4bf
JM
7325html-etc: \
7326 configure-etc
0aed8855 7327 @: $(MAKE); $(unstage)
a90ef4bf 7328 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7329 r=`${PWD_COMMAND}`; export r; \
7330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7331 $(HOST_EXPORTS) \
7332 for flag in $(EXTRA_HOST_FLAGS) ; do \
7333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7334 done; \
22121df0 7335 echo "Doing html in etc"; \
a90ef4bf 7336 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7339 "RANLIB=$${RANLIB}" \
0c24b341 7340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7341 html) \
7342 || exit 1
7343
a90ef4bf 7344@endif etc
6d389afc 7345
a90ef4bf
JM
7346.PHONY: maybe-TAGS-etc TAGS-etc
7347maybe-TAGS-etc:
7348@if etc
7349maybe-TAGS-etc: TAGS-etc
2a4cbe27 7350
a90ef4bf
JM
7351TAGS-etc: \
7352 configure-etc
0aed8855 7353 @: $(MAKE); $(unstage)
a90ef4bf 7354 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7355 r=`${PWD_COMMAND}`; export r; \
7356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7357 $(HOST_EXPORTS) \
b813574b 7358 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7360 done; \
22121df0 7361 echo "Doing TAGS in etc"; \
a90ef4bf 7362 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7365 "RANLIB=$${RANLIB}" \
0c24b341 7366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7367 TAGS) \
2a4cbe27
NN
7368 || exit 1
7369
a90ef4bf 7370@endif etc
2a4cbe27 7371
a90ef4bf
JM
7372.PHONY: maybe-install-info-etc install-info-etc
7373maybe-install-info-etc:
7374@if etc
7375maybe-install-info-etc: install-info-etc
2a4cbe27 7376
a90ef4bf
JM
7377install-info-etc: \
7378 configure-etc \
7379 info-etc
0aed8855 7380 @: $(MAKE); $(unstage)
a90ef4bf 7381 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7382 r=`${PWD_COMMAND}`; export r; \
7383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7384 $(HOST_EXPORTS) \
b813574b 7385 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7387 done; \
22121df0 7388 echo "Doing install-info in etc"; \
a90ef4bf 7389 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7392 "RANLIB=$${RANLIB}" \
0c24b341 7393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7394 install-info) \
2a4cbe27
NN
7395 || exit 1
7396
a90ef4bf 7397@endif etc
2a4cbe27 7398
a90ef4bf
JM
7399.PHONY: maybe-install-pdf-etc install-pdf-etc
7400maybe-install-pdf-etc:
7401@if etc
7402maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7403
a90ef4bf
JM
7404install-pdf-etc: \
7405 configure-etc \
7406 pdf-etc
a3ca38d2 7407 @: $(MAKE); $(unstage)
a90ef4bf 7408 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7409 r=`${PWD_COMMAND}`; export r; \
7410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7411 $(HOST_EXPORTS) \
7412 for flag in $(EXTRA_HOST_FLAGS) ; do \
7413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7414 done; \
22121df0 7415 echo "Doing install-pdf in etc"; \
a90ef4bf 7416 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7419 "RANLIB=$${RANLIB}" \
0c24b341 7420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7421 install-pdf) \
7422 || exit 1
7423
a90ef4bf 7424@endif etc
a3ca38d2 7425
a90ef4bf
JM
7426.PHONY: maybe-install-html-etc install-html-etc
7427maybe-install-html-etc:
7428@if etc
7429maybe-install-html-etc: install-html-etc
108a6f8e 7430
a90ef4bf
JM
7431install-html-etc: \
7432 configure-etc \
7433 html-etc
108a6f8e 7434 @: $(MAKE); $(unstage)
a90ef4bf 7435 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7436 r=`${PWD_COMMAND}`; export r; \
7437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7438 $(HOST_EXPORTS) \
7439 for flag in $(EXTRA_HOST_FLAGS) ; do \
7440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7441 done; \
22121df0 7442 echo "Doing install-html in etc"; \
a90ef4bf 7443 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7446 "RANLIB=$${RANLIB}" \
0c24b341 7447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7448 install-html) \
7449 || exit 1
7450
a90ef4bf 7451@endif etc
108a6f8e 7452
a90ef4bf
JM
7453.PHONY: maybe-installcheck-etc installcheck-etc
7454maybe-installcheck-etc:
7455@if etc
7456maybe-installcheck-etc: installcheck-etc
2a4cbe27 7457
a90ef4bf
JM
7458installcheck-etc: \
7459 configure-etc
0aed8855 7460 @: $(MAKE); $(unstage)
a90ef4bf 7461 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7462 r=`${PWD_COMMAND}`; export r; \
7463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7464 $(HOST_EXPORTS) \
b813574b 7465 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7467 done; \
22121df0 7468 echo "Doing installcheck in etc"; \
a90ef4bf 7469 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7472 "RANLIB=$${RANLIB}" \
0c24b341 7473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7474 installcheck) \
2a4cbe27
NN
7475 || exit 1
7476
a90ef4bf 7477@endif etc
2a4cbe27 7478
a90ef4bf
JM
7479.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7480maybe-mostlyclean-etc:
7481@if etc
7482maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7483
a90ef4bf 7484mostlyclean-etc:
0aed8855 7485 @: $(MAKE); $(unstage)
a90ef4bf 7486 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7487 r=`${PWD_COMMAND}`; export r; \
7488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7489 $(HOST_EXPORTS) \
b813574b 7490 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7492 done; \
22121df0 7493 echo "Doing mostlyclean in etc"; \
a90ef4bf 7494 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7497 "RANLIB=$${RANLIB}" \
0c24b341 7498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7499 mostlyclean) \
2a4cbe27
NN
7500 || exit 1
7501
a90ef4bf 7502@endif etc
2a4cbe27 7503
a90ef4bf
JM
7504.PHONY: maybe-clean-etc clean-etc
7505maybe-clean-etc:
7506@if etc
7507maybe-clean-etc: clean-etc
2a4cbe27 7508
a90ef4bf 7509clean-etc:
0aed8855 7510 @: $(MAKE); $(unstage)
a90ef4bf 7511 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7512 r=`${PWD_COMMAND}`; export r; \
7513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7514 $(HOST_EXPORTS) \
b813574b 7515 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7517 done; \
22121df0 7518 echo "Doing clean in etc"; \
a90ef4bf 7519 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7522 "RANLIB=$${RANLIB}" \
0c24b341 7523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7524 clean) \
2a4cbe27
NN
7525 || exit 1
7526
a90ef4bf 7527@endif etc
2a4cbe27 7528
a90ef4bf
JM
7529.PHONY: maybe-distclean-etc distclean-etc
7530maybe-distclean-etc:
7531@if etc
7532maybe-distclean-etc: distclean-etc
2a4cbe27 7533
a90ef4bf 7534distclean-etc:
0aed8855 7535 @: $(MAKE); $(unstage)
a90ef4bf 7536 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7537 r=`${PWD_COMMAND}`; export r; \
7538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7539 $(HOST_EXPORTS) \
b813574b 7540 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7542 done; \
22121df0 7543 echo "Doing distclean in etc"; \
a90ef4bf 7544 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7547 "RANLIB=$${RANLIB}" \
0c24b341 7548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7549 distclean) \
2a4cbe27
NN
7550 || exit 1
7551
a90ef4bf 7552@endif etc
2a4cbe27 7553
a90ef4bf
JM
7554.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7555maybe-maintainer-clean-etc:
7556@if etc
7557maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7558
a90ef4bf 7559maintainer-clean-etc:
0aed8855 7560 @: $(MAKE); $(unstage)
a90ef4bf 7561 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7562 r=`${PWD_COMMAND}`; export r; \
7563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7564 $(HOST_EXPORTS) \
b813574b 7565 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7567 done; \
22121df0 7568 echo "Doing maintainer-clean in etc"; \
a90ef4bf 7569 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7572 "RANLIB=$${RANLIB}" \
0c24b341 7573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7574 maintainer-clean) \
2a4cbe27
NN
7575 || exit 1
7576
a90ef4bf 7577@endif etc
2a4cbe27 7578
2a4cbe27 7579
a7254363 7580
a90ef4bf
JM
7581.PHONY: configure-fastjar maybe-configure-fastjar
7582maybe-configure-fastjar:
4f0ef2d8 7583@if gcc-bootstrap
a90ef4bf 7584configure-fastjar: stage_current
4f0ef2d8 7585@endif gcc-bootstrap
a90ef4bf
JM
7586@if fastjar
7587maybe-configure-fastjar: configure-fastjar
7588configure-fastjar:
0aed8855 7589 @: $(MAKE); $(unstage)
c52c6897 7590 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7592 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
22121df0 7593 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar; \
1f53ca9a 7594 $(HOST_EXPORTS) \
a90ef4bf
JM
7595 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7596 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7597 case $(srcdir) in \
b00612cc 7598 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7599 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7600 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7601 esac; \
1b6c0831
L
7602 module_srcdir=fastjar; \
7603 $(SHELL) \
7604 $$s/$$module_srcdir/configure \
7605 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7606 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7607 --target=${target_alias} \
4fa63067 7608 || exit 1
a90ef4bf 7609@endif fastjar
4fa63067 7610
a7254363
PB
7611
7612
d545f33b
PB
7613
7614
a90ef4bf
JM
7615.PHONY: all-fastjar maybe-all-fastjar
7616maybe-all-fastjar:
4f0ef2d8 7617@if gcc-bootstrap
a90ef4bf 7618all-fastjar: stage_current
4f0ef2d8 7619@endif gcc-bootstrap
a90ef4bf
JM
7620@if fastjar
7621TARGET-fastjar=all
7622maybe-all-fastjar: all-fastjar
7623all-fastjar: configure-fastjar
0aed8855 7624 @: $(MAKE); $(unstage)
4fa63067
NN
7625 @r=`${PWD_COMMAND}`; export r; \
7626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7627 $(HOST_EXPORTS) \
a90ef4bf 7628 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7629 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7630 $(TARGET-fastjar))
7631@endif fastjar
4fa63067 7632
a7254363 7633
d545f33b
PB
7634
7635
a90ef4bf
JM
7636.PHONY: check-fastjar maybe-check-fastjar
7637maybe-check-fastjar:
7638@if fastjar
7639maybe-check-fastjar: check-fastjar
4fa63067
NN
7640
7641# This module is only tested in a native toolchain.
a90ef4bf 7642check-fastjar:
0aed8855 7643 @: $(MAKE); $(unstage)
22121df0 7644 @if [ '$(host)' = '$(target)' ]; then \
4fa63067
NN
7645 r=`${PWD_COMMAND}`; export r; \
7646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7647 $(HOST_EXPORTS) \
a90ef4bf 7648 (cd $(HOST_SUBDIR)/fastjar && \
f91ca6bc 7649 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067
NN
7650 fi
7651
a90ef4bf 7652@endif fastjar
4fa63067 7653
a90ef4bf
JM
7654.PHONY: install-fastjar maybe-install-fastjar
7655maybe-install-fastjar:
7656@if fastjar
7657maybe-install-fastjar: install-fastjar
4fa63067 7658
a90ef4bf 7659install-fastjar: installdirs
0aed8855 7660 @: $(MAKE); $(unstage)
4fa63067
NN
7661 @r=`${PWD_COMMAND}`; export r; \
7662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7663 $(HOST_EXPORTS) \
a90ef4bf 7664 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7665 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7666
a90ef4bf 7667@endif fastjar
4fa63067 7668
a90ef4bf
JM
7669.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7670maybe-install-strip-fastjar:
7671@if fastjar
7672maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7673
a90ef4bf 7674install-strip-fastjar: installdirs
9b980aa1
RW
7675 @: $(MAKE); $(unstage)
7676 @r=`${PWD_COMMAND}`; export r; \
7677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7678 $(HOST_EXPORTS) \
a90ef4bf 7679 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7680 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7681
a90ef4bf 7682@endif fastjar
9b980aa1 7683
56a8fe78 7684# Other targets (info, dvi, pdf, etc.)
4fa63067 7685
a90ef4bf
JM
7686.PHONY: maybe-info-fastjar info-fastjar
7687maybe-info-fastjar:
7688@if fastjar
7689maybe-info-fastjar: info-fastjar
4fa63067 7690
a90ef4bf
JM
7691info-fastjar: \
7692 configure-fastjar
0aed8855 7693 @: $(MAKE); $(unstage)
a90ef4bf 7694 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7695 r=`${PWD_COMMAND}`; export r; \
7696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7697 $(HOST_EXPORTS) \
b813574b 7698 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7700 done; \
22121df0 7701 echo "Doing info in fastjar"; \
a90ef4bf 7702 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7705 "RANLIB=$${RANLIB}" \
0c24b341 7706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7707 info) \
2a4cbe27
NN
7708 || exit 1
7709
a90ef4bf 7710@endif fastjar
2a4cbe27 7711
a90ef4bf
JM
7712.PHONY: maybe-dvi-fastjar dvi-fastjar
7713maybe-dvi-fastjar:
7714@if fastjar
7715maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7716
a90ef4bf
JM
7717dvi-fastjar: \
7718 configure-fastjar
0aed8855 7719 @: $(MAKE); $(unstage)
a90ef4bf 7720 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7721 r=`${PWD_COMMAND}`; export r; \
7722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7723 $(HOST_EXPORTS) \
b813574b 7724 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7726 done; \
22121df0 7727 echo "Doing dvi in fastjar"; \
a90ef4bf 7728 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7731 "RANLIB=$${RANLIB}" \
0c24b341 7732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7733 dvi) \
2a4cbe27
NN
7734 || exit 1
7735
a90ef4bf 7736@endif fastjar
2a4cbe27 7737
a90ef4bf
JM
7738.PHONY: maybe-pdf-fastjar pdf-fastjar
7739maybe-pdf-fastjar:
7740@if fastjar
7741maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7742
a90ef4bf
JM
7743pdf-fastjar: \
7744 configure-fastjar
56a8fe78 7745 @: $(MAKE); $(unstage)
a90ef4bf 7746 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7747 r=`${PWD_COMMAND}`; export r; \
7748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7749 $(HOST_EXPORTS) \
7750 for flag in $(EXTRA_HOST_FLAGS) ; do \
7751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7752 done; \
22121df0 7753 echo "Doing pdf in fastjar"; \
a90ef4bf 7754 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
7755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7757 "RANLIB=$${RANLIB}" \
0c24b341 7758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7759 pdf) \
7760 || exit 1
7761
a90ef4bf 7762@endif fastjar
56a8fe78 7763
a90ef4bf
JM
7764.PHONY: maybe-html-fastjar html-fastjar
7765maybe-html-fastjar:
7766@if fastjar
7767maybe-html-fastjar: html-fastjar
6d389afc 7768
a90ef4bf
JM
7769html-fastjar: \
7770 configure-fastjar
0aed8855 7771 @: $(MAKE); $(unstage)
a90ef4bf 7772 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7773 r=`${PWD_COMMAND}`; export r; \
7774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7775 $(HOST_EXPORTS) \
7776 for flag in $(EXTRA_HOST_FLAGS) ; do \
7777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7778 done; \
22121df0 7779 echo "Doing html in fastjar"; \
a90ef4bf 7780 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7783 "RANLIB=$${RANLIB}" \
0c24b341 7784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7785 html) \
7786 || exit 1
7787
a90ef4bf 7788@endif fastjar
6d389afc 7789
a90ef4bf
JM
7790.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7791maybe-TAGS-fastjar:
7792@if fastjar
7793maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7794
a90ef4bf
JM
7795TAGS-fastjar: \
7796 configure-fastjar
0aed8855 7797 @: $(MAKE); $(unstage)
a90ef4bf 7798 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7799 r=`${PWD_COMMAND}`; export r; \
7800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7801 $(HOST_EXPORTS) \
b813574b 7802 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7804 done; \
22121df0 7805 echo "Doing TAGS in fastjar"; \
a90ef4bf 7806 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7809 "RANLIB=$${RANLIB}" \
0c24b341 7810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7811 TAGS) \
2a4cbe27
NN
7812 || exit 1
7813
a90ef4bf 7814@endif fastjar
2a4cbe27 7815
a90ef4bf
JM
7816.PHONY: maybe-install-info-fastjar install-info-fastjar
7817maybe-install-info-fastjar:
7818@if fastjar
7819maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7820
a90ef4bf
JM
7821install-info-fastjar: \
7822 configure-fastjar \
7823 info-fastjar
0aed8855 7824 @: $(MAKE); $(unstage)
a90ef4bf 7825 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7826 r=`${PWD_COMMAND}`; export r; \
7827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7828 $(HOST_EXPORTS) \
b813574b 7829 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7831 done; \
22121df0 7832 echo "Doing install-info in fastjar"; \
a90ef4bf 7833 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7836 "RANLIB=$${RANLIB}" \
0c24b341 7837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7838 install-info) \
2a4cbe27
NN
7839 || exit 1
7840
a90ef4bf 7841@endif fastjar
2a4cbe27 7842
a90ef4bf
JM
7843.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7844maybe-install-pdf-fastjar:
7845@if fastjar
7846maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7847
a90ef4bf
JM
7848install-pdf-fastjar: \
7849 configure-fastjar \
7850 pdf-fastjar
a3ca38d2 7851 @: $(MAKE); $(unstage)
a90ef4bf 7852 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7853 r=`${PWD_COMMAND}`; export r; \
7854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7855 $(HOST_EXPORTS) \
7856 for flag in $(EXTRA_HOST_FLAGS) ; do \
7857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7858 done; \
22121df0 7859 echo "Doing install-pdf in fastjar"; \
a90ef4bf 7860 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7863 "RANLIB=$${RANLIB}" \
0c24b341 7864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7865 install-pdf) \
7866 || exit 1
7867
a90ef4bf 7868@endif fastjar
a3ca38d2 7869
a90ef4bf
JM
7870.PHONY: maybe-install-html-fastjar install-html-fastjar
7871maybe-install-html-fastjar:
7872@if fastjar
7873maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7874
a90ef4bf
JM
7875install-html-fastjar: \
7876 configure-fastjar \
7877 html-fastjar
108a6f8e 7878 @: $(MAKE); $(unstage)
a90ef4bf 7879 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7880 r=`${PWD_COMMAND}`; export r; \
7881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7882 $(HOST_EXPORTS) \
7883 for flag in $(EXTRA_HOST_FLAGS) ; do \
7884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7885 done; \
22121df0 7886 echo "Doing install-html in fastjar"; \
a90ef4bf 7887 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
7888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7890 "RANLIB=$${RANLIB}" \
0c24b341 7891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7892 install-html) \
7893 || exit 1
7894
a90ef4bf 7895@endif fastjar
108a6f8e 7896
a90ef4bf
JM
7897.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7898maybe-installcheck-fastjar:
7899@if fastjar
7900maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7901
a90ef4bf
JM
7902installcheck-fastjar: \
7903 configure-fastjar
0aed8855 7904 @: $(MAKE); $(unstage)
a90ef4bf 7905 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7906 r=`${PWD_COMMAND}`; export r; \
7907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7908 $(HOST_EXPORTS) \
b813574b 7909 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7911 done; \
22121df0 7912 echo "Doing installcheck in fastjar"; \
a90ef4bf 7913 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7916 "RANLIB=$${RANLIB}" \
0c24b341 7917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7918 installcheck) \
2a4cbe27
NN
7919 || exit 1
7920
a90ef4bf 7921@endif fastjar
2a4cbe27 7922
a90ef4bf
JM
7923.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7924maybe-mostlyclean-fastjar:
7925@if fastjar
7926maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 7927
a90ef4bf 7928mostlyclean-fastjar:
0aed8855 7929 @: $(MAKE); $(unstage)
a90ef4bf 7930 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7931 r=`${PWD_COMMAND}`; export r; \
7932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7933 $(HOST_EXPORTS) \
b813574b 7934 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7936 done; \
22121df0 7937 echo "Doing mostlyclean in fastjar"; \
a90ef4bf 7938 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7941 "RANLIB=$${RANLIB}" \
0c24b341 7942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7943 mostlyclean) \
2a4cbe27
NN
7944 || exit 1
7945
a90ef4bf 7946@endif fastjar
2a4cbe27 7947
a90ef4bf
JM
7948.PHONY: maybe-clean-fastjar clean-fastjar
7949maybe-clean-fastjar:
7950@if fastjar
7951maybe-clean-fastjar: clean-fastjar
2a4cbe27 7952
a90ef4bf 7953clean-fastjar:
0aed8855 7954 @: $(MAKE); $(unstage)
a90ef4bf 7955 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7956 r=`${PWD_COMMAND}`; export r; \
7957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7958 $(HOST_EXPORTS) \
b813574b 7959 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7961 done; \
22121df0 7962 echo "Doing clean in fastjar"; \
a90ef4bf 7963 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7966 "RANLIB=$${RANLIB}" \
0c24b341 7967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7968 clean) \
2a4cbe27
NN
7969 || exit 1
7970
a90ef4bf 7971@endif fastjar
2a4cbe27 7972
a90ef4bf
JM
7973.PHONY: maybe-distclean-fastjar distclean-fastjar
7974maybe-distclean-fastjar:
7975@if fastjar
7976maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 7977
a90ef4bf 7978distclean-fastjar:
0aed8855 7979 @: $(MAKE); $(unstage)
a90ef4bf 7980 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7981 r=`${PWD_COMMAND}`; export r; \
7982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7983 $(HOST_EXPORTS) \
b813574b 7984 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7986 done; \
22121df0 7987 echo "Doing distclean in fastjar"; \
a90ef4bf 7988 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7991 "RANLIB=$${RANLIB}" \
0c24b341 7992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7993 distclean) \
2a4cbe27
NN
7994 || exit 1
7995
a90ef4bf 7996@endif fastjar
2a4cbe27 7997
a90ef4bf
JM
7998.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7999maybe-maintainer-clean-fastjar:
8000@if fastjar
8001maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
8002
8003maintainer-clean-fastjar:
0aed8855 8004 @: $(MAKE); $(unstage)
a90ef4bf 8005 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8006 r=`${PWD_COMMAND}`; export r; \
8007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8008 $(HOST_EXPORTS) \
b813574b 8009 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8011 done; \
22121df0 8012 echo "Doing maintainer-clean in fastjar"; \
a90ef4bf 8013 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8016 "RANLIB=$${RANLIB}" \
0c24b341 8017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8018 maintainer-clean) \
2a4cbe27
NN
8019 || exit 1
8020
a90ef4bf 8021@endif fastjar
2a4cbe27 8022
2a4cbe27 8023
a7254363 8024
a90ef4bf
JM
8025.PHONY: configure-fixincludes maybe-configure-fixincludes
8026maybe-configure-fixincludes:
4f0ef2d8 8027@if gcc-bootstrap
a90ef4bf 8028configure-fixincludes: stage_current
4f0ef2d8 8029@endif gcc-bootstrap
a90ef4bf
JM
8030@if fixincludes
8031maybe-configure-fixincludes: configure-fixincludes
8032configure-fixincludes:
c52c6897 8033 @r=`${PWD_COMMAND}`; export r; \
4fa63067 8034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8035 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 8036 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
1f53ca9a 8037 $(HOST_EXPORTS) \
a90ef4bf
JM
8038 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
8039 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 8040 case $(srcdir) in \
b00612cc 8041 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8042 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 8043 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8044 esac; \
1b6c0831
L
8045 module_srcdir=fixincludes; \
8046 $(SHELL) \
8047 $$s/$$module_srcdir/configure \
8048 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8049 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8050 --target=${target_alias} \
4fa63067 8051 || exit 1
a90ef4bf 8052@endif fixincludes
4fa63067 8053
a7254363
PB
8054
8055
201f096f 8056.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8057maybe-configure-stage1-fixincludes:
8058@if fixincludes-bootstrap
8059maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8060configure-stage1-fixincludes:
8061 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8062 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8063 @r=`${PWD_COMMAND}`; export r; \
8064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8065 TFLAGS="$(STAGE1_TFLAGS)"; \
8066 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8067 $(HOST_EXPORTS) \
8068 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8069 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8070 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
8071 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes; \
8072 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8073 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8074 case $(srcdir) in \
8075 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8076 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8077 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8078 esac; \
1b6c0831
L
8079 module_srcdir=fixincludes; \
8080 $(SHELL) $$s/$$module_srcdir/configure \
8081 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8082 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8083 --target=${target_alias} \
8084 \
201f096f 8085 $(STAGE1_CONFIGURE_FLAGS)
8086@endif fixincludes-bootstrap
8087
8088.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8089maybe-configure-stage2-fixincludes:
8090@if fixincludes-bootstrap
8091maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8092configure-stage2-fixincludes:
8093 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8094 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8095 @r=`${PWD_COMMAND}`; export r; \
8096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8097 TFLAGS="$(STAGE2_TFLAGS)"; \
8098 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8099 $(HOST_EXPORTS) \
8100 $(POSTSTAGE1_HOST_EXPORTS) \
8101 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8102 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8103 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8104 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes; \
8105 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8106 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8107 case $(srcdir) in \
8108 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8109 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8110 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8111 esac; \
1b6c0831
L
8112 module_srcdir=fixincludes; \
8113 $(SHELL) $$s/$$module_srcdir/configure \
8114 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8115 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8116 --target=${target_alias} \
22121df0 8117 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8118 $(STAGE2_CONFIGURE_FLAGS)
8119@endif fixincludes-bootstrap
8120
8121.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8122maybe-configure-stage3-fixincludes:
8123@if fixincludes-bootstrap
8124maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8125configure-stage3-fixincludes:
8126 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8127 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8128 @r=`${PWD_COMMAND}`; export r; \
8129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8130 TFLAGS="$(STAGE3_TFLAGS)"; \
8131 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8132 $(HOST_EXPORTS) \
8133 $(POSTSTAGE1_HOST_EXPORTS) \
8134 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8135 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8136 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8137 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes; \
8138 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8139 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8140 case $(srcdir) in \
8141 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8142 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8143 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8144 esac; \
1b6c0831
L
8145 module_srcdir=fixincludes; \
8146 $(SHELL) $$s/$$module_srcdir/configure \
8147 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8148 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8149 --target=${target_alias} \
22121df0 8150 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8151 $(STAGE3_CONFIGURE_FLAGS)
8152@endif fixincludes-bootstrap
8153
8154.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8155maybe-configure-stage4-fixincludes:
8156@if fixincludes-bootstrap
8157maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8158configure-stage4-fixincludes:
8159 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8160 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8161 @r=`${PWD_COMMAND}`; export r; \
8162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8163 TFLAGS="$(STAGE4_TFLAGS)"; \
8164 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8165 $(HOST_EXPORTS) \
8166 $(POSTSTAGE1_HOST_EXPORTS) \
8167 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8168 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8169 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8170 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes; \
8171 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8172 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8173 case $(srcdir) in \
8174 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8175 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8176 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8177 esac; \
1b6c0831
L
8178 module_srcdir=fixincludes; \
8179 $(SHELL) $$s/$$module_srcdir/configure \
8180 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8181 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8182 --target=${target_alias} \
22121df0 8183 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8184 $(STAGE4_CONFIGURE_FLAGS)
8185@endif fixincludes-bootstrap
8186
8187.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8188maybe-configure-stageprofile-fixincludes:
8189@if fixincludes-bootstrap
8190maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8191configure-stageprofile-fixincludes:
8192 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8193 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8194 @r=`${PWD_COMMAND}`; export r; \
8195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8196 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8197 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8198 $(HOST_EXPORTS) \
8199 $(POSTSTAGE1_HOST_EXPORTS) \
8200 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8201 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8202 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8203 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes; \
8204 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8205 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8206 case $(srcdir) in \
8207 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8208 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8209 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8210 esac; \
1b6c0831
L
8211 module_srcdir=fixincludes; \
8212 $(SHELL) $$s/$$module_srcdir/configure \
8213 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8214 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8215 --target=${target_alias} \
22121df0 8216 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8217 $(STAGEprofile_CONFIGURE_FLAGS)
8218@endif fixincludes-bootstrap
8219
8220.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
8221maybe-configure-stagefeedback-fixincludes:
8222@if fixincludes-bootstrap
8223maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8224configure-stagefeedback-fixincludes:
8225 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8226 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8227 @r=`${PWD_COMMAND}`; export r; \
8228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8229 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8230 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8231 $(HOST_EXPORTS) \
8232 $(POSTSTAGE1_HOST_EXPORTS) \
8233 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8234 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8235 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8236 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes; \
8237 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8238 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8239 case $(srcdir) in \
8240 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8241 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8242 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8243 esac; \
1b6c0831
L
8244 module_srcdir=fixincludes; \
8245 $(SHELL) $$s/$$module_srcdir/configure \
8246 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8247 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8248 --target=${target_alias} \
22121df0 8249 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8250 $(STAGEfeedback_CONFIGURE_FLAGS)
8251@endif fixincludes-bootstrap
8252
8253
8254
d545f33b
PB
8255
8256
a90ef4bf
JM
8257.PHONY: all-fixincludes maybe-all-fixincludes
8258maybe-all-fixincludes:
4f0ef2d8 8259@if gcc-bootstrap
a90ef4bf 8260all-fixincludes: stage_current
4f0ef2d8 8261@endif gcc-bootstrap
a90ef4bf
JM
8262@if fixincludes
8263TARGET-fixincludes=all
8264maybe-all-fixincludes: all-fixincludes
8265all-fixincludes: configure-fixincludes
4fa63067
NN
8266 @r=`${PWD_COMMAND}`; export r; \
8267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8268 $(HOST_EXPORTS) \
a90ef4bf 8269 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 8270 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8271 $(TARGET-fixincludes))
8272@endif fixincludes
4fa63067 8273
a7254363 8274
d545f33b 8275
201f096f 8276.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
8277.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
8278maybe-all-stage1-fixincludes:
8279maybe-clean-stage1-fixincludes:
8280@if fixincludes-bootstrap
8281maybe-all-stage1-fixincludes: all-stage1-fixincludes
8282all-stage1: all-stage1-fixincludes
8283TARGET-stage1-fixincludes = $(TARGET-fixincludes)
8284all-stage1-fixincludes: configure-stage1-fixincludes
8285 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8286 @r=`${PWD_COMMAND}`; export r; \
8287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8288 TFLAGS="$(STAGE1_TFLAGS)"; \
8289 $(HOST_EXPORTS) \
8290 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8291 \
201f096f 8292 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8293 CFLAGS="$(STAGE1_CFLAGS)" \
8294 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8295 LIBCFLAGS="$(LIBCFLAGS)" \
8296 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8297 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8298 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8299 $(EXTRA_HOST_FLAGS) \
8300 $(STAGE1_FLAGS_TO_PASS) \
05a13254 8301 TFLAGS="$(STAGE1_TFLAGS)" \
201f096f 8302 $(TARGET-stage1-fixincludes)
8303
8304maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
8305clean-stage1: clean-stage1-fixincludes
8306clean-stage1-fixincludes:
8307 @if [ $(current_stage) = stage1 ]; then \
8308 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8309 else \
8310 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
8311 $(MAKE) stage1-start; \
8312 fi; \
8313 cd $(HOST_SUBDIR)/fixincludes && \
8314 $(MAKE) $(EXTRA_HOST_FLAGS) \
8315 $(STAGE1_FLAGS_TO_PASS) clean
8316@endif fixincludes-bootstrap
8317
8318
8319.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
8320.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
8321maybe-all-stage2-fixincludes:
8322maybe-clean-stage2-fixincludes:
8323@if fixincludes-bootstrap
8324maybe-all-stage2-fixincludes: all-stage2-fixincludes
8325all-stage2: all-stage2-fixincludes
8326TARGET-stage2-fixincludes = $(TARGET-fixincludes)
8327all-stage2-fixincludes: configure-stage2-fixincludes
8328 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8329 @r=`${PWD_COMMAND}`; export r; \
8330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8331 TFLAGS="$(STAGE2_TFLAGS)"; \
8332 $(HOST_EXPORTS) \
8333 $(POSTSTAGE1_HOST_EXPORTS) \
8334 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8335 \
201f096f 8336 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8337 CFLAGS="$(STAGE2_CFLAGS)" \
8338 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8339 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8340 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8341 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8342 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8343 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8344 TFLAGS="$(STAGE2_TFLAGS)" \
201f096f 8345 $(TARGET-stage2-fixincludes)
8346
8347maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
8348clean-stage2: clean-stage2-fixincludes
8349clean-stage2-fixincludes:
8350 @if [ $(current_stage) = stage2 ]; then \
8351 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8352 else \
8353 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
8354 $(MAKE) stage2-start; \
8355 fi; \
8356 cd $(HOST_SUBDIR)/fixincludes && \
8357 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8358@endif fixincludes-bootstrap
8359
8360
8361.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
8362.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
8363maybe-all-stage3-fixincludes:
8364maybe-clean-stage3-fixincludes:
8365@if fixincludes-bootstrap
8366maybe-all-stage3-fixincludes: all-stage3-fixincludes
8367all-stage3: all-stage3-fixincludes
8368TARGET-stage3-fixincludes = $(TARGET-fixincludes)
8369all-stage3-fixincludes: configure-stage3-fixincludes
8370 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8371 @r=`${PWD_COMMAND}`; export r; \
8372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8373 TFLAGS="$(STAGE3_TFLAGS)"; \
8374 $(HOST_EXPORTS) \
8375 $(POSTSTAGE1_HOST_EXPORTS) \
8376 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8377 \
201f096f 8378 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8379 CFLAGS="$(STAGE3_CFLAGS)" \
8380 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8381 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8382 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8383 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8384 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8385 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8386 TFLAGS="$(STAGE3_TFLAGS)" \
201f096f 8387 $(TARGET-stage3-fixincludes)
8388
8389maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
8390clean-stage3: clean-stage3-fixincludes
8391clean-stage3-fixincludes:
8392 @if [ $(current_stage) = stage3 ]; then \
8393 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8394 else \
8395 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
8396 $(MAKE) stage3-start; \
8397 fi; \
8398 cd $(HOST_SUBDIR)/fixincludes && \
8399 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8400@endif fixincludes-bootstrap
8401
8402
8403.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
8404.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
8405maybe-all-stage4-fixincludes:
8406maybe-clean-stage4-fixincludes:
8407@if fixincludes-bootstrap
8408maybe-all-stage4-fixincludes: all-stage4-fixincludes
8409all-stage4: all-stage4-fixincludes
8410TARGET-stage4-fixincludes = $(TARGET-fixincludes)
8411all-stage4-fixincludes: configure-stage4-fixincludes
8412 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8413 @r=`${PWD_COMMAND}`; export r; \
8414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8415 TFLAGS="$(STAGE4_TFLAGS)"; \
8416 $(HOST_EXPORTS) \
8417 $(POSTSTAGE1_HOST_EXPORTS) \
8418 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8419 \
201f096f 8420 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8421 CFLAGS="$(STAGE4_CFLAGS)" \
8422 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8423 LIBCFLAGS="$(STAGE4_CFLAGS)" \
8424 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8425 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8426 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8427 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8428 TFLAGS="$(STAGE4_TFLAGS)" \
201f096f 8429 $(TARGET-stage4-fixincludes)
8430
8431maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
8432clean-stage4: clean-stage4-fixincludes
8433clean-stage4-fixincludes:
8434 @if [ $(current_stage) = stage4 ]; then \
8435 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8436 else \
8437 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
8438 $(MAKE) stage4-start; \
8439 fi; \
8440 cd $(HOST_SUBDIR)/fixincludes && \
8441 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8442@endif fixincludes-bootstrap
8443
8444
8445.PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
8446.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
8447maybe-all-stageprofile-fixincludes:
8448maybe-clean-stageprofile-fixincludes:
8449@if fixincludes-bootstrap
8450maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
8451all-stageprofile: all-stageprofile-fixincludes
8452TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
8453all-stageprofile-fixincludes: configure-stageprofile-fixincludes
8454 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8455 @r=`${PWD_COMMAND}`; export r; \
8456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8457 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8458 $(HOST_EXPORTS) \
8459 $(POSTSTAGE1_HOST_EXPORTS) \
8460 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8461 \
201f096f 8462 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8463 CFLAGS="$(STAGEprofile_CFLAGS)" \
8464 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
8465 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
8466 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8467 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8468 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8469 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8470 TFLAGS="$(STAGEprofile_TFLAGS)" \
201f096f 8471 $(TARGET-stageprofile-fixincludes)
8472
8473maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
8474clean-stageprofile: clean-stageprofile-fixincludes
8475clean-stageprofile-fixincludes:
8476 @if [ $(current_stage) = stageprofile ]; then \
8477 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8478 else \
8479 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
8480 $(MAKE) stageprofile-start; \
8481 fi; \
8482 cd $(HOST_SUBDIR)/fixincludes && \
8483 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8484@endif fixincludes-bootstrap
8485
8486
8487.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
8488.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
8489maybe-all-stagefeedback-fixincludes:
8490maybe-clean-stagefeedback-fixincludes:
8491@if fixincludes-bootstrap
8492maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
8493all-stagefeedback: all-stagefeedback-fixincludes
8494TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
8495all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8496 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8497 @r=`${PWD_COMMAND}`; export r; \
8498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8499 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8500 $(HOST_EXPORTS) \
8501 $(POSTSTAGE1_HOST_EXPORTS) \
8502 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8503 \
201f096f 8504 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8505 CFLAGS="$(STAGEfeedback_CFLAGS)" \
8506 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
8507 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
8508 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8509 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8510 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8511 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8512 TFLAGS="$(STAGEfeedback_TFLAGS)" \
201f096f 8513 $(TARGET-stagefeedback-fixincludes)
8514
8515maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
8516clean-stagefeedback: clean-stagefeedback-fixincludes
8517clean-stagefeedback-fixincludes:
8518 @if [ $(current_stage) = stagefeedback ]; then \
8519 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8520 else \
8521 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
8522 $(MAKE) stagefeedback-start; \
8523 fi; \
8524 cd $(HOST_SUBDIR)/fixincludes && \
8525 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8526@endif fixincludes-bootstrap
8527
8528
8529
8530
d545f33b 8531
a90ef4bf
JM
8532.PHONY: check-fixincludes maybe-check-fixincludes
8533maybe-check-fixincludes:
8534@if fixincludes
8535maybe-check-fixincludes: check-fixincludes
4fa63067 8536
a90ef4bf 8537check-fixincludes:
0aed8855 8538 @: $(MAKE); $(unstage)
4fa63067
NN
8539 @r=`${PWD_COMMAND}`; export r; \
8540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8541 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 8542 (cd $(HOST_SUBDIR)/fixincludes && \
f91ca6bc 8543 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 8544
a90ef4bf 8545@endif fixincludes
4fa63067 8546
a90ef4bf
JM
8547.PHONY: install-fixincludes maybe-install-fixincludes
8548maybe-install-fixincludes:
8549@if fixincludes
8550maybe-install-fixincludes: install-fixincludes
4fa63067 8551
a90ef4bf 8552install-fixincludes: installdirs
0aed8855 8553 @: $(MAKE); $(unstage)
4fa63067
NN
8554 @r=`${PWD_COMMAND}`; export r; \
8555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8556 $(HOST_EXPORTS) \
a90ef4bf 8557 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 8558 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8559
a90ef4bf 8560@endif fixincludes
4fa63067 8561
a90ef4bf
JM
8562.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
8563maybe-install-strip-fixincludes:
8564@if fixincludes
8565maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 8566
a90ef4bf 8567install-strip-fixincludes: installdirs
9b980aa1
RW
8568 @: $(MAKE); $(unstage)
8569 @r=`${PWD_COMMAND}`; export r; \
8570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8571 $(HOST_EXPORTS) \
a90ef4bf 8572 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
8573 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8574
a90ef4bf 8575@endif fixincludes
9b980aa1 8576
56a8fe78 8577# Other targets (info, dvi, pdf, etc.)
4fa63067 8578
a90ef4bf
JM
8579.PHONY: maybe-info-fixincludes info-fixincludes
8580maybe-info-fixincludes:
8581@if fixincludes
8582maybe-info-fixincludes: info-fixincludes
4fa63067 8583
a90ef4bf
JM
8584info-fixincludes: \
8585 configure-fixincludes
a90ef4bf 8586 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8587 r=`${PWD_COMMAND}`; export r; \
8588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8589 $(HOST_EXPORTS) \
b813574b 8590 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8592 done; \
22121df0 8593 echo "Doing info in fixincludes"; \
a90ef4bf 8594 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8597 "RANLIB=$${RANLIB}" \
0c24b341 8598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8599 info) \
2a4cbe27
NN
8600 || exit 1
8601
a90ef4bf 8602@endif fixincludes
2a4cbe27 8603
a90ef4bf
JM
8604.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8605maybe-dvi-fixincludes:
8606@if fixincludes
8607maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 8608
a90ef4bf
JM
8609dvi-fixincludes: \
8610 configure-fixincludes
a90ef4bf 8611 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8612 r=`${PWD_COMMAND}`; export r; \
8613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8614 $(HOST_EXPORTS) \
b813574b 8615 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8617 done; \
22121df0 8618 echo "Doing dvi in fixincludes"; \
a90ef4bf 8619 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8622 "RANLIB=$${RANLIB}" \
0c24b341 8623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8624 dvi) \
2a4cbe27
NN
8625 || exit 1
8626
a90ef4bf 8627@endif fixincludes
2a4cbe27 8628
a90ef4bf
JM
8629.PHONY: maybe-pdf-fixincludes pdf-fixincludes
8630maybe-pdf-fixincludes:
8631@if fixincludes
8632maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 8633
a90ef4bf
JM
8634pdf-fixincludes: \
8635 configure-fixincludes
a90ef4bf 8636 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
8637 r=`${PWD_COMMAND}`; export r; \
8638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8639 $(HOST_EXPORTS) \
8640 for flag in $(EXTRA_HOST_FLAGS) ; do \
8641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8642 done; \
22121df0 8643 echo "Doing pdf in fixincludes"; \
a90ef4bf 8644 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
8645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8647 "RANLIB=$${RANLIB}" \
0c24b341 8648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8649 pdf) \
8650 || exit 1
8651
a90ef4bf 8652@endif fixincludes
56a8fe78 8653
a90ef4bf
JM
8654.PHONY: maybe-html-fixincludes html-fixincludes
8655maybe-html-fixincludes:
8656@if fixincludes
8657maybe-html-fixincludes: html-fixincludes
6d389afc 8658
a90ef4bf
JM
8659html-fixincludes: \
8660 configure-fixincludes
a90ef4bf 8661 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
8662 r=`${PWD_COMMAND}`; export r; \
8663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8664 $(HOST_EXPORTS) \
8665 for flag in $(EXTRA_HOST_FLAGS) ; do \
8666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8667 done; \
22121df0 8668 echo "Doing html in fixincludes"; \
a90ef4bf 8669 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
8670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8672 "RANLIB=$${RANLIB}" \
0c24b341 8673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8674 html) \
8675 || exit 1
8676
a90ef4bf 8677@endif fixincludes
6d389afc 8678
a90ef4bf
JM
8679.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8680maybe-TAGS-fixincludes:
8681@if fixincludes
8682maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8683
a90ef4bf
JM
8684# fixincludes doesn't support TAGS.
8685TAGS-fixincludes:
2a4cbe27 8686
a90ef4bf 8687@endif fixincludes
2a4cbe27 8688
a90ef4bf
JM
8689.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8690maybe-install-info-fixincludes:
8691@if fixincludes
8692maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8693
a90ef4bf
JM
8694install-info-fixincludes: \
8695 configure-fixincludes \
8696 info-fixincludes
a90ef4bf 8697 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8698 r=`${PWD_COMMAND}`; export r; \
8699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8700 $(HOST_EXPORTS) \
b813574b 8701 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8703 done; \
22121df0 8704 echo "Doing install-info in fixincludes"; \
a90ef4bf 8705 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8708 "RANLIB=$${RANLIB}" \
0c24b341 8709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8710 install-info) \
2a4cbe27
NN
8711 || exit 1
8712
a90ef4bf 8713@endif fixincludes
2a4cbe27 8714
a90ef4bf
JM
8715.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8716maybe-install-pdf-fixincludes:
8717@if fixincludes
8718maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8719
a90ef4bf
JM
8720install-pdf-fixincludes: \
8721 configure-fixincludes \
8722 pdf-fixincludes
a90ef4bf 8723 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8724 r=`${PWD_COMMAND}`; export r; \
8725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8726 $(HOST_EXPORTS) \
8727 for flag in $(EXTRA_HOST_FLAGS) ; do \
8728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8729 done; \
22121df0 8730 echo "Doing install-pdf in fixincludes"; \
a90ef4bf 8731 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8734 "RANLIB=$${RANLIB}" \
0c24b341 8735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8736 install-pdf) \
8737 || exit 1
8738
a90ef4bf 8739@endif fixincludes
a3ca38d2 8740
a90ef4bf
JM
8741.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8742maybe-install-html-fixincludes:
8743@if fixincludes
8744maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8745
a90ef4bf
JM
8746install-html-fixincludes: \
8747 configure-fixincludes \
8748 html-fixincludes
a90ef4bf 8749 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8750 r=`${PWD_COMMAND}`; export r; \
8751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8752 $(HOST_EXPORTS) \
8753 for flag in $(EXTRA_HOST_FLAGS) ; do \
8754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8755 done; \
22121df0 8756 echo "Doing install-html in fixincludes"; \
a90ef4bf 8757 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
8758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8760 "RANLIB=$${RANLIB}" \
0c24b341 8761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8762 install-html) \
8763 || exit 1
8764
a90ef4bf 8765@endif fixincludes
108a6f8e 8766
a90ef4bf
JM
8767.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8768maybe-installcheck-fixincludes:
8769@if fixincludes
8770maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8771
a90ef4bf
JM
8772installcheck-fixincludes: \
8773 configure-fixincludes
a90ef4bf 8774 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8775 r=`${PWD_COMMAND}`; export r; \
8776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8777 $(HOST_EXPORTS) \
b813574b 8778 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8780 done; \
22121df0 8781 echo "Doing installcheck in fixincludes"; \
a90ef4bf 8782 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8785 "RANLIB=$${RANLIB}" \
0c24b341 8786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8787 installcheck) \
2a4cbe27
NN
8788 || exit 1
8789
a90ef4bf 8790@endif fixincludes
2a4cbe27 8791
a90ef4bf
JM
8792.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8793maybe-mostlyclean-fixincludes:
8794@if fixincludes
8795maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8796
a90ef4bf 8797mostlyclean-fixincludes:
a90ef4bf 8798 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8799 r=`${PWD_COMMAND}`; export r; \
8800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8801 $(HOST_EXPORTS) \
b813574b 8802 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8804 done; \
22121df0 8805 echo "Doing mostlyclean in fixincludes"; \
a90ef4bf 8806 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8809 "RANLIB=$${RANLIB}" \
0c24b341 8810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8811 mostlyclean) \
2a4cbe27
NN
8812 || exit 1
8813
a90ef4bf 8814@endif fixincludes
2a4cbe27 8815
a90ef4bf
JM
8816.PHONY: maybe-clean-fixincludes clean-fixincludes
8817maybe-clean-fixincludes:
8818@if fixincludes
8819maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8820
a90ef4bf 8821clean-fixincludes:
a90ef4bf 8822 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8823 r=`${PWD_COMMAND}`; export r; \
8824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8825 $(HOST_EXPORTS) \
b813574b 8826 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8828 done; \
22121df0 8829 echo "Doing clean in fixincludes"; \
a90ef4bf 8830 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8833 "RANLIB=$${RANLIB}" \
0c24b341 8834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8835 clean) \
2a4cbe27
NN
8836 || exit 1
8837
a90ef4bf 8838@endif fixincludes
2a4cbe27 8839
a90ef4bf
JM
8840.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8841maybe-distclean-fixincludes:
8842@if fixincludes
8843maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8844
a90ef4bf 8845distclean-fixincludes:
a90ef4bf 8846 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8847 r=`${PWD_COMMAND}`; export r; \
8848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8849 $(HOST_EXPORTS) \
b813574b 8850 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8852 done; \
22121df0 8853 echo "Doing distclean in fixincludes"; \
a90ef4bf 8854 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8857 "RANLIB=$${RANLIB}" \
0c24b341 8858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8859 distclean) \
2a4cbe27
NN
8860 || exit 1
8861
a90ef4bf 8862@endif fixincludes
2a4cbe27 8863
a90ef4bf
JM
8864.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8865maybe-maintainer-clean-fixincludes:
8866@if fixincludes
8867maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8868
a90ef4bf 8869maintainer-clean-fixincludes:
a90ef4bf 8870 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8871 r=`${PWD_COMMAND}`; export r; \
8872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8873 $(HOST_EXPORTS) \
b813574b 8874 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8876 done; \
22121df0 8877 echo "Doing maintainer-clean in fixincludes"; \
a90ef4bf 8878 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8881 "RANLIB=$${RANLIB}" \
0c24b341 8882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8883 maintainer-clean) \
2a4cbe27
NN
8884 || exit 1
8885
a90ef4bf 8886@endif fixincludes
2a4cbe27 8887
2a4cbe27 8888
a7254363 8889
a90ef4bf
JM
8890.PHONY: configure-flex maybe-configure-flex
8891maybe-configure-flex:
f9806fa5 8892@if gcc-bootstrap
a90ef4bf 8893configure-flex: stage_current
f9806fa5 8894@endif gcc-bootstrap
a90ef4bf
JM
8895@if flex
8896maybe-configure-flex: configure-flex
8897configure-flex:
f9806fa5
DE
8898 @: $(MAKE); $(unstage)
8899 @r=`${PWD_COMMAND}`; export r; \
8900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8901 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
22121df0 8902 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex; \
1f53ca9a 8903 $(HOST_EXPORTS) \
a90ef4bf
JM
8904 echo Configuring in $(HOST_SUBDIR)/flex; \
8905 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
8906 case $(srcdir) in \
8907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8908 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
8909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8910 esac; \
1b6c0831
L
8911 module_srcdir=flex; \
8912 $(SHELL) \
8913 $$s/$$module_srcdir/configure \
8914 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 8915 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8916 --target=${target_alias} \
f9806fa5 8917 || exit 1
a90ef4bf 8918@endif flex
f9806fa5
DE
8919
8920
8921
8922
8923
a90ef4bf
JM
8924.PHONY: all-flex maybe-all-flex
8925maybe-all-flex:
f9806fa5 8926@if gcc-bootstrap
a90ef4bf 8927all-flex: stage_current
f9806fa5 8928@endif gcc-bootstrap
a90ef4bf
JM
8929@if flex
8930TARGET-flex=all
8931maybe-all-flex: all-flex
8932all-flex: configure-flex
f9806fa5
DE
8933 @: $(MAKE); $(unstage)
8934 @r=`${PWD_COMMAND}`; export r; \
8935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8936 $(HOST_EXPORTS) \
a90ef4bf 8937 (cd $(HOST_SUBDIR)/flex && \
b3676d82 8938 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8939 $(TARGET-flex))
8940@endif flex
f9806fa5
DE
8941
8942
8943
8944
a90ef4bf
JM
8945.PHONY: check-flex maybe-check-flex
8946maybe-check-flex:
8947@if flex
8948maybe-check-flex: check-flex
f9806fa5 8949
a90ef4bf
JM
8950# This module is only tested in a native toolchain.
8951check-flex:
f9806fa5 8952 @: $(MAKE); $(unstage)
22121df0 8953 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
8954 r=`${PWD_COMMAND}`; export r; \
8955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8956 $(HOST_EXPORTS) \
a90ef4bf 8957 (cd $(HOST_SUBDIR)/flex && \
f91ca6bc 8958 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 8959 fi
f9806fa5 8960
a90ef4bf 8961@endif flex
f9806fa5 8962
a90ef4bf
JM
8963.PHONY: install-flex maybe-install-flex
8964maybe-install-flex:
8965@if flex
8966maybe-install-flex: install-flex
f9806fa5 8967
a90ef4bf 8968install-flex: installdirs
f9806fa5
DE
8969 @: $(MAKE); $(unstage)
8970 @r=`${PWD_COMMAND}`; export r; \
8971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8972 $(HOST_EXPORTS) \
a90ef4bf 8973 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8974 $(MAKE) $(FLAGS_TO_PASS) install)
8975
a90ef4bf 8976@endif flex
f9806fa5 8977
a90ef4bf
JM
8978.PHONY: install-strip-flex maybe-install-strip-flex
8979maybe-install-strip-flex:
8980@if flex
8981maybe-install-strip-flex: install-strip-flex
9b980aa1 8982
a90ef4bf 8983install-strip-flex: installdirs
9b980aa1
RW
8984 @: $(MAKE); $(unstage)
8985 @r=`${PWD_COMMAND}`; export r; \
8986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8987 $(HOST_EXPORTS) \
a90ef4bf 8988 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
8989 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8990
a90ef4bf 8991@endif flex
9b980aa1 8992
f9806fa5
DE
8993# Other targets (info, dvi, pdf, etc.)
8994
a90ef4bf
JM
8995.PHONY: maybe-info-flex info-flex
8996maybe-info-flex:
8997@if flex
8998maybe-info-flex: info-flex
f9806fa5 8999
a90ef4bf
JM
9000info-flex: \
9001 configure-flex
f9806fa5 9002 @: $(MAKE); $(unstage)
a90ef4bf 9003 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9004 r=`${PWD_COMMAND}`; export r; \
9005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9006 $(HOST_EXPORTS) \
9007 for flag in $(EXTRA_HOST_FLAGS) ; do \
9008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9009 done; \
22121df0 9010 echo "Doing info in flex"; \
a90ef4bf 9011 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9014 "RANLIB=$${RANLIB}" \
9015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9016 info) \
9017 || exit 1
9018
a90ef4bf 9019@endif flex
f9806fa5 9020
a90ef4bf
JM
9021.PHONY: maybe-dvi-flex dvi-flex
9022maybe-dvi-flex:
9023@if flex
9024maybe-dvi-flex: dvi-flex
f9806fa5 9025
a90ef4bf
JM
9026dvi-flex: \
9027 configure-flex
f9806fa5 9028 @: $(MAKE); $(unstage)
a90ef4bf 9029 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9030 r=`${PWD_COMMAND}`; export r; \
9031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9032 $(HOST_EXPORTS) \
9033 for flag in $(EXTRA_HOST_FLAGS) ; do \
9034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9035 done; \
22121df0 9036 echo "Doing dvi in flex"; \
a90ef4bf 9037 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9040 "RANLIB=$${RANLIB}" \
9041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9042 dvi) \
9043 || exit 1
9044
a90ef4bf 9045@endif flex
f9806fa5 9046
a90ef4bf
JM
9047.PHONY: maybe-pdf-flex pdf-flex
9048maybe-pdf-flex:
9049@if flex
9050maybe-pdf-flex: pdf-flex
f9806fa5 9051
a90ef4bf
JM
9052pdf-flex: \
9053 configure-flex
f9806fa5 9054 @: $(MAKE); $(unstage)
a90ef4bf 9055 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9056 r=`${PWD_COMMAND}`; export r; \
9057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9058 $(HOST_EXPORTS) \
9059 for flag in $(EXTRA_HOST_FLAGS) ; do \
9060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9061 done; \
22121df0 9062 echo "Doing pdf in flex"; \
a90ef4bf 9063 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9066 "RANLIB=$${RANLIB}" \
9067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9068 pdf) \
9069 || exit 1
9070
a90ef4bf 9071@endif flex
f9806fa5 9072
a90ef4bf
JM
9073.PHONY: maybe-html-flex html-flex
9074maybe-html-flex:
9075@if flex
9076maybe-html-flex: html-flex
f9806fa5 9077
a90ef4bf
JM
9078html-flex: \
9079 configure-flex
f9806fa5 9080 @: $(MAKE); $(unstage)
a90ef4bf 9081 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9082 r=`${PWD_COMMAND}`; export r; \
9083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9084 $(HOST_EXPORTS) \
9085 for flag in $(EXTRA_HOST_FLAGS) ; do \
9086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9087 done; \
22121df0 9088 echo "Doing html in flex"; \
a90ef4bf 9089 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9092 "RANLIB=$${RANLIB}" \
9093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9094 html) \
9095 || exit 1
9096
a90ef4bf 9097@endif flex
f9806fa5 9098
a90ef4bf
JM
9099.PHONY: maybe-TAGS-flex TAGS-flex
9100maybe-TAGS-flex:
9101@if flex
9102maybe-TAGS-flex: TAGS-flex
f9806fa5 9103
a90ef4bf
JM
9104TAGS-flex: \
9105 configure-flex
f9806fa5 9106 @: $(MAKE); $(unstage)
a90ef4bf 9107 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9108 r=`${PWD_COMMAND}`; export r; \
9109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9110 $(HOST_EXPORTS) \
9111 for flag in $(EXTRA_HOST_FLAGS) ; do \
9112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9113 done; \
22121df0 9114 echo "Doing TAGS in flex"; \
a90ef4bf 9115 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9118 "RANLIB=$${RANLIB}" \
9119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9120 TAGS) \
9121 || exit 1
9122
a90ef4bf 9123@endif flex
f9806fa5 9124
a90ef4bf
JM
9125.PHONY: maybe-install-info-flex install-info-flex
9126maybe-install-info-flex:
9127@if flex
9128maybe-install-info-flex: install-info-flex
f9806fa5 9129
a90ef4bf
JM
9130install-info-flex: \
9131 configure-flex \
9132 info-flex
f9806fa5 9133 @: $(MAKE); $(unstage)
a90ef4bf 9134 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9135 r=`${PWD_COMMAND}`; export r; \
9136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9137 $(HOST_EXPORTS) \
9138 for flag in $(EXTRA_HOST_FLAGS) ; do \
9139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9140 done; \
22121df0 9141 echo "Doing install-info in flex"; \
a90ef4bf 9142 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9145 "RANLIB=$${RANLIB}" \
9146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9147 install-info) \
9148 || exit 1
9149
a90ef4bf 9150@endif flex
f9806fa5 9151
a90ef4bf
JM
9152.PHONY: maybe-install-pdf-flex install-pdf-flex
9153maybe-install-pdf-flex:
9154@if flex
9155maybe-install-pdf-flex: install-pdf-flex
f9806fa5 9156
a90ef4bf
JM
9157install-pdf-flex: \
9158 configure-flex \
9159 pdf-flex
f9806fa5 9160 @: $(MAKE); $(unstage)
a90ef4bf 9161 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9162 r=`${PWD_COMMAND}`; export r; \
9163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9164 $(HOST_EXPORTS) \
9165 for flag in $(EXTRA_HOST_FLAGS) ; do \
9166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9167 done; \
22121df0 9168 echo "Doing install-pdf in flex"; \
a90ef4bf 9169 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9172 "RANLIB=$${RANLIB}" \
9173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9174 install-pdf) \
9175 || exit 1
9176
a90ef4bf 9177@endif flex
f9806fa5 9178
a90ef4bf
JM
9179.PHONY: maybe-install-html-flex install-html-flex
9180maybe-install-html-flex:
9181@if flex
9182maybe-install-html-flex: install-html-flex
f9806fa5 9183
a90ef4bf
JM
9184install-html-flex: \
9185 configure-flex \
9186 html-flex
f9806fa5 9187 @: $(MAKE); $(unstage)
a90ef4bf 9188 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9189 r=`${PWD_COMMAND}`; export r; \
9190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9191 $(HOST_EXPORTS) \
9192 for flag in $(EXTRA_HOST_FLAGS) ; do \
9193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9194 done; \
22121df0 9195 echo "Doing install-html in flex"; \
a90ef4bf 9196 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9199 "RANLIB=$${RANLIB}" \
9200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9201 install-html) \
9202 || exit 1
9203
a90ef4bf 9204@endif flex
f9806fa5 9205
a90ef4bf
JM
9206.PHONY: maybe-installcheck-flex installcheck-flex
9207maybe-installcheck-flex:
9208@if flex
9209maybe-installcheck-flex: installcheck-flex
f9806fa5 9210
a90ef4bf
JM
9211installcheck-flex: \
9212 configure-flex
f9806fa5 9213 @: $(MAKE); $(unstage)
a90ef4bf 9214 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9215 r=`${PWD_COMMAND}`; export r; \
9216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9217 $(HOST_EXPORTS) \
9218 for flag in $(EXTRA_HOST_FLAGS) ; do \
9219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9220 done; \
22121df0 9221 echo "Doing installcheck in flex"; \
a90ef4bf 9222 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9225 "RANLIB=$${RANLIB}" \
9226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9227 installcheck) \
9228 || exit 1
9229
a90ef4bf 9230@endif flex
f9806fa5 9231
a90ef4bf
JM
9232.PHONY: maybe-mostlyclean-flex mostlyclean-flex
9233maybe-mostlyclean-flex:
9234@if flex
9235maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 9236
a90ef4bf 9237mostlyclean-flex:
f9806fa5 9238 @: $(MAKE); $(unstage)
a90ef4bf 9239 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9240 r=`${PWD_COMMAND}`; export r; \
9241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9242 $(HOST_EXPORTS) \
9243 for flag in $(EXTRA_HOST_FLAGS) ; do \
9244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9245 done; \
22121df0 9246 echo "Doing mostlyclean in flex"; \
a90ef4bf 9247 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9250 "RANLIB=$${RANLIB}" \
9251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9252 mostlyclean) \
9253 || exit 1
9254
a90ef4bf 9255@endif flex
f9806fa5 9256
a90ef4bf
JM
9257.PHONY: maybe-clean-flex clean-flex
9258maybe-clean-flex:
9259@if flex
9260maybe-clean-flex: clean-flex
f9806fa5 9261
a90ef4bf 9262clean-flex:
f9806fa5 9263 @: $(MAKE); $(unstage)
a90ef4bf 9264 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9265 r=`${PWD_COMMAND}`; export r; \
9266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9267 $(HOST_EXPORTS) \
9268 for flag in $(EXTRA_HOST_FLAGS) ; do \
9269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9270 done; \
22121df0 9271 echo "Doing clean in flex"; \
a90ef4bf 9272 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9275 "RANLIB=$${RANLIB}" \
9276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9277 clean) \
9278 || exit 1
9279
a90ef4bf 9280@endif flex
f9806fa5 9281
a90ef4bf
JM
9282.PHONY: maybe-distclean-flex distclean-flex
9283maybe-distclean-flex:
9284@if flex
9285maybe-distclean-flex: distclean-flex
f9806fa5 9286
a90ef4bf 9287distclean-flex:
f9806fa5 9288 @: $(MAKE); $(unstage)
a90ef4bf 9289 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9290 r=`${PWD_COMMAND}`; export r; \
9291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9292 $(HOST_EXPORTS) \
9293 for flag in $(EXTRA_HOST_FLAGS) ; do \
9294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9295 done; \
22121df0 9296 echo "Doing distclean in flex"; \
a90ef4bf 9297 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9300 "RANLIB=$${RANLIB}" \
9301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9302 distclean) \
9303 || exit 1
9304
a90ef4bf 9305@endif flex
f9806fa5 9306
a90ef4bf
JM
9307.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
9308maybe-maintainer-clean-flex:
9309@if flex
9310maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 9311
a90ef4bf 9312maintainer-clean-flex:
f9806fa5 9313 @: $(MAKE); $(unstage)
a90ef4bf 9314 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9315 r=`${PWD_COMMAND}`; export r; \
9316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9317 $(HOST_EXPORTS) \
9318 for flag in $(EXTRA_HOST_FLAGS) ; do \
9319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9320 done; \
22121df0 9321 echo "Doing maintainer-clean in flex"; \
a90ef4bf 9322 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9325 "RANLIB=$${RANLIB}" \
9326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9327 maintainer-clean) \
9328 || exit 1
9329
a90ef4bf 9330@endif flex
f9806fa5
DE
9331
9332
9333
a90ef4bf
JM
9334.PHONY: configure-gas maybe-configure-gas
9335maybe-configure-gas:
4f0ef2d8 9336@if gcc-bootstrap
a90ef4bf 9337configure-gas: stage_current
4f0ef2d8 9338@endif gcc-bootstrap
a90ef4bf
JM
9339@if gas
9340maybe-configure-gas: configure-gas
9341configure-gas:
c52c6897 9342 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9344 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
22121df0 9345 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
1f53ca9a 9346 $(HOST_EXPORTS) \
a90ef4bf
JM
9347 echo Configuring in $(HOST_SUBDIR)/gas; \
9348 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 9349 case $(srcdir) in \
b00612cc 9350 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9351 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 9352 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9353 esac; \
1b6c0831
L
9354 module_srcdir=gas; \
9355 $(SHELL) \
9356 $$s/$$module_srcdir/configure \
9357 --srcdir=$${topdir}/$$module_srcdir \
4b900473 9358 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9359 --target=${target_alias} \
4fa63067 9360 || exit 1
a90ef4bf 9361@endif gas
a7254363 9362
d545f33b
PB
9363
9364
a90ef4bf
JM
9365.PHONY: configure-stage1-gas maybe-configure-stage1-gas
9366maybe-configure-stage1-gas:
9367@if gas-bootstrap
9368maybe-configure-stage1-gas: configure-stage1-gas
9369configure-stage1-gas:
9370 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9371 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9372 @r=`${PWD_COMMAND}`; export r; \
9373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9374 TFLAGS="$(STAGE1_TFLAGS)"; \
9375 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9376 $(HOST_EXPORTS) \
9377 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9378 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9379 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
9380 echo Configuring stage 1 in $(HOST_SUBDIR)/gas; \
9381 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9382 cd $(HOST_SUBDIR)/gas || exit 1; \
9383 case $(srcdir) in \
9384 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9385 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9386 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9387 esac; \
1b6c0831
L
9388 module_srcdir=gas; \
9389 $(SHELL) $$s/$$module_srcdir/configure \
9390 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9391 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9392 --target=${target_alias} \
9393 \
a90ef4bf
JM
9394 $(STAGE1_CONFIGURE_FLAGS)
9395@endif gas-bootstrap
4fa63067 9396
a90ef4bf
JM
9397.PHONY: configure-stage2-gas maybe-configure-stage2-gas
9398maybe-configure-stage2-gas:
9399@if gas-bootstrap
9400maybe-configure-stage2-gas: configure-stage2-gas
9401configure-stage2-gas:
9402 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9403 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9404 @r=`${PWD_COMMAND}`; export r; \
9405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9406 TFLAGS="$(STAGE2_TFLAGS)"; \
9407 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9408 $(HOST_EXPORTS) \
a90ef4bf
JM
9409 $(POSTSTAGE1_HOST_EXPORTS) \
9410 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9411 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9412 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9413 echo Configuring stage 2 in $(HOST_SUBDIR)/gas; \
9414 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9415 cd $(HOST_SUBDIR)/gas || exit 1; \
9416 case $(srcdir) in \
9417 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9418 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9419 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9420 esac; \
1b6c0831
L
9421 module_srcdir=gas; \
9422 $(SHELL) $$s/$$module_srcdir/configure \
9423 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9424 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9425 --target=${target_alias} \
22121df0 9426 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9427 $(STAGE2_CONFIGURE_FLAGS)
9428@endif gas-bootstrap
4fa63067 9429
a90ef4bf
JM
9430.PHONY: configure-stage3-gas maybe-configure-stage3-gas
9431maybe-configure-stage3-gas:
9432@if gas-bootstrap
9433maybe-configure-stage3-gas: configure-stage3-gas
9434configure-stage3-gas:
9435 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9436 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9437 @r=`${PWD_COMMAND}`; export r; \
9438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9439 TFLAGS="$(STAGE3_TFLAGS)"; \
9440 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9441 $(HOST_EXPORTS) \
a90ef4bf
JM
9442 $(POSTSTAGE1_HOST_EXPORTS) \
9443 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9444 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9445 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9446 echo Configuring stage 3 in $(HOST_SUBDIR)/gas; \
9447 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9448 cd $(HOST_SUBDIR)/gas || exit 1; \
9449 case $(srcdir) in \
9450 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9451 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9452 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9453 esac; \
1b6c0831
L
9454 module_srcdir=gas; \
9455 $(SHELL) $$s/$$module_srcdir/configure \
9456 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9457 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9458 --target=${target_alias} \
22121df0 9459 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9460 $(STAGE3_CONFIGURE_FLAGS)
9461@endif gas-bootstrap
9b980aa1 9462
a90ef4bf
JM
9463.PHONY: configure-stage4-gas maybe-configure-stage4-gas
9464maybe-configure-stage4-gas:
9465@if gas-bootstrap
9466maybe-configure-stage4-gas: configure-stage4-gas
9467configure-stage4-gas:
9468 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9469 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
9470 @r=`${PWD_COMMAND}`; export r; \
9471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9472 TFLAGS="$(STAGE4_TFLAGS)"; \
9473 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 9474 $(HOST_EXPORTS) \
a90ef4bf
JM
9475 $(POSTSTAGE1_HOST_EXPORTS) \
9476 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9477 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9478 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9479 echo Configuring stage 4 in $(HOST_SUBDIR)/gas; \
9480 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9481 cd $(HOST_SUBDIR)/gas || exit 1; \
9482 case $(srcdir) in \
9483 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9484 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9485 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9486 esac; \
1b6c0831
L
9487 module_srcdir=gas; \
9488 $(SHELL) $$s/$$module_srcdir/configure \
9489 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9490 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9491 --target=${target_alias} \
22121df0 9492 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9493 $(STAGE4_CONFIGURE_FLAGS)
9494@endif gas-bootstrap
4fa63067 9495
a90ef4bf
JM
9496.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
9497maybe-configure-stageprofile-gas:
9498@if gas-bootstrap
9499maybe-configure-stageprofile-gas: configure-stageprofile-gas
9500configure-stageprofile-gas:
9501 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9502 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9503 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9505 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9506 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9507 $(HOST_EXPORTS) \
a90ef4bf
JM
9508 $(POSTSTAGE1_HOST_EXPORTS) \
9509 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9510 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9511 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9512 echo Configuring stage profile in $(HOST_SUBDIR)/gas; \
9513 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9514 cd $(HOST_SUBDIR)/gas || exit 1; \
9515 case $(srcdir) in \
9516 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9517 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9518 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9519 esac; \
1b6c0831
L
9520 module_srcdir=gas; \
9521 $(SHELL) $$s/$$module_srcdir/configure \
9522 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9523 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9524 --target=${target_alias} \
22121df0 9525 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9526 $(STAGEprofile_CONFIGURE_FLAGS)
9527@endif gas-bootstrap
2a4cbe27 9528
a90ef4bf
JM
9529.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
9530maybe-configure-stagefeedback-gas:
9531@if gas-bootstrap
9532maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9533configure-stagefeedback-gas:
9534 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9535 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9536 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9538 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9539 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9540 $(HOST_EXPORTS) \
a90ef4bf
JM
9541 $(POSTSTAGE1_HOST_EXPORTS) \
9542 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9543 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9544 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9545 echo Configuring stage feedback in $(HOST_SUBDIR)/gas; \
9546 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9547 cd $(HOST_SUBDIR)/gas || exit 1; \
9548 case $(srcdir) in \
9549 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9550 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9551 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9552 esac; \
1b6c0831
L
9553 module_srcdir=gas; \
9554 $(SHELL) $$s/$$module_srcdir/configure \
9555 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9556 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9557 --target=${target_alias} \
22121df0 9558 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9559 $(STAGEfeedback_CONFIGURE_FLAGS)
9560@endif gas-bootstrap
2a4cbe27 9561
56a8fe78 9562
56a8fe78 9563
56a8fe78 9564
6d389afc 9565
a90ef4bf
JM
9566.PHONY: all-gas maybe-all-gas
9567maybe-all-gas:
9568@if gcc-bootstrap
9569all-gas: stage_current
9570@endif gcc-bootstrap
9571@if gas
9572TARGET-gas=all
9573maybe-all-gas: all-gas
9574all-gas: configure-gas
9575 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9577 $(HOST_EXPORTS) \
9578 (cd $(HOST_SUBDIR)/gas && \
b3676d82 9579 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9580 $(TARGET-gas))
9581@endif gas
6d389afc 9582
6d389afc 9583
2a4cbe27 9584
a90ef4bf
JM
9585.PHONY: all-stage1-gas maybe-all-stage1-gas
9586.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9587maybe-all-stage1-gas:
9588maybe-clean-stage1-gas:
9589@if gas-bootstrap
9590maybe-all-stage1-gas: all-stage1-gas
9591all-stage1: all-stage1-gas
9592TARGET-stage1-gas = $(TARGET-gas)
9593all-stage1-gas: configure-stage1-gas
9594 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9595 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9597 TFLAGS="$(STAGE1_TFLAGS)"; \
9598 $(HOST_EXPORTS) \
9599 cd $(HOST_SUBDIR)/gas && \
05a13254 9600 \
a90ef4bf
JM
9601 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9602 CFLAGS="$(STAGE1_CFLAGS)" \
9603 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9604 LIBCFLAGS="$(LIBCFLAGS)" \
9605 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9606 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9607 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9608 $(EXTRA_HOST_FLAGS) \
9609 $(STAGE1_FLAGS_TO_PASS) \
05a13254 9610 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 9611 $(TARGET-stage1-gas)
2a4cbe27 9612
a90ef4bf
JM
9613maybe-clean-stage1-gas: clean-stage1-gas
9614clean-stage1: clean-stage1-gas
9615clean-stage1-gas:
9616 @if [ $(current_stage) = stage1 ]; then \
9617 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9618 else \
9619 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
9620 $(MAKE) stage1-start; \
9621 fi; \
9622 cd $(HOST_SUBDIR)/gas && \
9623 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9624 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9625@endif gas-bootstrap
2a4cbe27 9626
2a4cbe27 9627
a90ef4bf
JM
9628.PHONY: all-stage2-gas maybe-all-stage2-gas
9629.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9630maybe-all-stage2-gas:
9631maybe-clean-stage2-gas:
9632@if gas-bootstrap
9633maybe-all-stage2-gas: all-stage2-gas
9634all-stage2: all-stage2-gas
9635TARGET-stage2-gas = $(TARGET-gas)
9636all-stage2-gas: configure-stage2-gas
9637 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9638 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9640 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 9641 $(HOST_EXPORTS) \
a90ef4bf
JM
9642 $(POSTSTAGE1_HOST_EXPORTS) \
9643 cd $(HOST_SUBDIR)/gas && \
05a13254 9644 \
a90ef4bf
JM
9645 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9646 CFLAGS="$(STAGE2_CFLAGS)" \
9647 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9648 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9649 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9650 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9651 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9652 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9653 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 9654 $(TARGET-stage2-gas)
2a4cbe27 9655
a90ef4bf
JM
9656maybe-clean-stage2-gas: clean-stage2-gas
9657clean-stage2: clean-stage2-gas
9658clean-stage2-gas:
9659 @if [ $(current_stage) = stage2 ]; then \
9660 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9661 else \
9662 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
9663 $(MAKE) stage2-start; \
9664 fi; \
9665 cd $(HOST_SUBDIR)/gas && \
b3676d82 9666 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9667@endif gas-bootstrap
2a4cbe27 9668
2a4cbe27 9669
a90ef4bf
JM
9670.PHONY: all-stage3-gas maybe-all-stage3-gas
9671.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9672maybe-all-stage3-gas:
9673maybe-clean-stage3-gas:
9674@if gas-bootstrap
9675maybe-all-stage3-gas: all-stage3-gas
9676all-stage3: all-stage3-gas
9677TARGET-stage3-gas = $(TARGET-gas)
9678all-stage3-gas: configure-stage3-gas
9679 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9680 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9682 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9683 $(HOST_EXPORTS) \
a90ef4bf
JM
9684 $(POSTSTAGE1_HOST_EXPORTS) \
9685 cd $(HOST_SUBDIR)/gas && \
05a13254 9686 \
a90ef4bf
JM
9687 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9688 CFLAGS="$(STAGE3_CFLAGS)" \
9689 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9690 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9691 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9692 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9693 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9694 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9695 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 9696 $(TARGET-stage3-gas)
2a4cbe27 9697
a90ef4bf
JM
9698maybe-clean-stage3-gas: clean-stage3-gas
9699clean-stage3: clean-stage3-gas
9700clean-stage3-gas:
9701 @if [ $(current_stage) = stage3 ]; then \
9702 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9703 else \
9704 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9705 $(MAKE) stage3-start; \
9706 fi; \
9707 cd $(HOST_SUBDIR)/gas && \
b3676d82 9708 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9709@endif gas-bootstrap
2a4cbe27 9710
2a4cbe27 9711
a90ef4bf
JM
9712.PHONY: all-stage4-gas maybe-all-stage4-gas
9713.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9714maybe-all-stage4-gas:
9715maybe-clean-stage4-gas:
9716@if gas-bootstrap
9717maybe-all-stage4-gas: all-stage4-gas
9718all-stage4: all-stage4-gas
9719TARGET-stage4-gas = $(TARGET-gas)
9720all-stage4-gas: configure-stage4-gas
9721 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9722 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9724 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9725 $(HOST_EXPORTS) \
a90ef4bf
JM
9726 $(POSTSTAGE1_HOST_EXPORTS) \
9727 cd $(HOST_SUBDIR)/gas && \
05a13254 9728 \
a90ef4bf
JM
9729 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9730 CFLAGS="$(STAGE4_CFLAGS)" \
9731 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9732 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9733 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9734 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9735 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9736 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9737 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 9738 $(TARGET-stage4-gas)
2a4cbe27 9739
a90ef4bf
JM
9740maybe-clean-stage4-gas: clean-stage4-gas
9741clean-stage4: clean-stage4-gas
9742clean-stage4-gas:
9743 @if [ $(current_stage) = stage4 ]; then \
9744 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9745 else \
9746 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9747 $(MAKE) stage4-start; \
9748 fi; \
9749 cd $(HOST_SUBDIR)/gas && \
b3676d82 9750 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9751@endif gas-bootstrap
2a4cbe27 9752
2a4cbe27 9753
a90ef4bf
JM
9754.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9755.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9756maybe-all-stageprofile-gas:
9757maybe-clean-stageprofile-gas:
9758@if gas-bootstrap
9759maybe-all-stageprofile-gas: all-stageprofile-gas
9760all-stageprofile: all-stageprofile-gas
9761TARGET-stageprofile-gas = $(TARGET-gas)
9762all-stageprofile-gas: configure-stageprofile-gas
9763 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9764 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9766 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9767 $(HOST_EXPORTS) \
a90ef4bf
JM
9768 $(POSTSTAGE1_HOST_EXPORTS) \
9769 cd $(HOST_SUBDIR)/gas && \
05a13254 9770 \
a90ef4bf
JM
9771 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9772 CFLAGS="$(STAGEprofile_CFLAGS)" \
9773 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9774 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9775 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9776 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9777 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9778 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9779 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 9780 $(TARGET-stageprofile-gas)
4fa63067 9781
a90ef4bf
JM
9782maybe-clean-stageprofile-gas: clean-stageprofile-gas
9783clean-stageprofile: clean-stageprofile-gas
9784clean-stageprofile-gas:
9785 @if [ $(current_stage) = stageprofile ]; then \
9786 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9787 else \
9788 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9789 $(MAKE) stageprofile-start; \
9790 fi; \
9791 cd $(HOST_SUBDIR)/gas && \
b3676d82 9792 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9793@endif gas-bootstrap
4fa63067 9794
a7254363 9795
a90ef4bf
JM
9796.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9797.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9798maybe-all-stagefeedback-gas:
9799maybe-clean-stagefeedback-gas:
9800@if gas-bootstrap
9801maybe-all-stagefeedback-gas: all-stagefeedback-gas
9802all-stagefeedback: all-stagefeedback-gas
9803TARGET-stagefeedback-gas = $(TARGET-gas)
9804all-stagefeedback-gas: configure-stagefeedback-gas
9805 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9806 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9808 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9809 $(HOST_EXPORTS) \
9810 $(POSTSTAGE1_HOST_EXPORTS) \
9811 cd $(HOST_SUBDIR)/gas && \
05a13254 9812 \
a90ef4bf
JM
9813 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9814 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9815 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9816 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9817 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9818 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9819 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9820 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9821 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 9822 $(TARGET-stagefeedback-gas)
d545f33b 9823
a90ef4bf
JM
9824maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9825clean-stagefeedback: clean-stagefeedback-gas
9826clean-stagefeedback-gas:
9827 @if [ $(current_stage) = stagefeedback ]; then \
9828 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9829 else \
9830 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9831 $(MAKE) stagefeedback-start; \
9832 fi; \
9833 cd $(HOST_SUBDIR)/gas && \
b3676d82 9834 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9835@endif gas-bootstrap
d545f33b 9836
2a4cbe27 9837
a7254363 9838
d545f33b
PB
9839
9840
a90ef4bf
JM
9841.PHONY: check-gas maybe-check-gas
9842maybe-check-gas:
9843@if gas
9844maybe-check-gas: check-gas
2a4cbe27 9845
a90ef4bf 9846check-gas:
0aed8855 9847 @: $(MAKE); $(unstage)
4fa63067 9848 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9850 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 9851 (cd $(HOST_SUBDIR)/gas && \
f91ca6bc 9852 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 9853
a90ef4bf 9854@endif gas
2a4cbe27 9855
a90ef4bf
JM
9856.PHONY: install-gas maybe-install-gas
9857maybe-install-gas:
9858@if gas
9859maybe-install-gas: install-gas
2a4cbe27 9860
a90ef4bf 9861install-gas: installdirs
0aed8855 9862 @: $(MAKE); $(unstage)
4fa63067 9863 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9865 $(HOST_EXPORTS) \
a90ef4bf 9866 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9867 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9868
a90ef4bf 9869@endif gas
2a4cbe27 9870
a90ef4bf
JM
9871.PHONY: install-strip-gas maybe-install-strip-gas
9872maybe-install-strip-gas:
9873@if gas
9874maybe-install-strip-gas: install-strip-gas
9b980aa1 9875
a90ef4bf 9876install-strip-gas: installdirs
9b980aa1
RW
9877 @: $(MAKE); $(unstage)
9878 @r=`${PWD_COMMAND}`; export r; \
9879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9880 $(HOST_EXPORTS) \
a90ef4bf 9881 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9882 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9883
a90ef4bf 9884@endif gas
9b980aa1 9885
56a8fe78 9886# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9887
a90ef4bf
JM
9888.PHONY: maybe-info-gas info-gas
9889maybe-info-gas:
9890@if gas
9891maybe-info-gas: info-gas
2a4cbe27 9892
a90ef4bf
JM
9893info-gas: \
9894 configure-gas
9895 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9896 r=`${PWD_COMMAND}`; export r; \
9897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9898 $(HOST_EXPORTS) \
b813574b 9899 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9901 done; \
22121df0 9902 echo "Doing info in gas"; \
a90ef4bf 9903 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9906 "RANLIB=$${RANLIB}" \
0c24b341 9907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9908 info) \
2a4cbe27
NN
9909 || exit 1
9910
a90ef4bf 9911@endif gas
2a4cbe27 9912
a90ef4bf
JM
9913.PHONY: maybe-dvi-gas dvi-gas
9914maybe-dvi-gas:
9915@if gas
9916maybe-dvi-gas: dvi-gas
2a4cbe27 9917
a90ef4bf
JM
9918dvi-gas: \
9919 configure-gas
9920 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9921 r=`${PWD_COMMAND}`; export r; \
9922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9923 $(HOST_EXPORTS) \
b813574b 9924 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9926 done; \
22121df0 9927 echo "Doing dvi in gas"; \
a90ef4bf 9928 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9931 "RANLIB=$${RANLIB}" \
0c24b341 9932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9933 dvi) \
2a4cbe27
NN
9934 || exit 1
9935
a90ef4bf 9936@endif gas
2a4cbe27 9937
a90ef4bf
JM
9938.PHONY: maybe-pdf-gas pdf-gas
9939maybe-pdf-gas:
9940@if gas
9941maybe-pdf-gas: pdf-gas
56a8fe78 9942
a90ef4bf
JM
9943pdf-gas: \
9944 configure-gas
9945 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
9946 r=`${PWD_COMMAND}`; export r; \
9947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9948 $(HOST_EXPORTS) \
9949 for flag in $(EXTRA_HOST_FLAGS) ; do \
9950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9951 done; \
22121df0 9952 echo "Doing pdf in gas"; \
a90ef4bf 9953 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
9954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9956 "RANLIB=$${RANLIB}" \
0c24b341 9957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
9958 pdf) \
9959 || exit 1
9960
a90ef4bf 9961@endif gas
56a8fe78 9962
a90ef4bf
JM
9963.PHONY: maybe-html-gas html-gas
9964maybe-html-gas:
9965@if gas
9966maybe-html-gas: html-gas
6d389afc 9967
a90ef4bf
JM
9968html-gas: \
9969 configure-gas
9970 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
9971 r=`${PWD_COMMAND}`; export r; \
9972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
9973 $(HOST_EXPORTS) \
9974 for flag in $(EXTRA_HOST_FLAGS) ; do \
9975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9976 done; \
22121df0 9977 echo "Doing html in gas"; \
a90ef4bf 9978 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
9979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9981 "RANLIB=$${RANLIB}" \
0c24b341 9982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
9983 html) \
9984 || exit 1
9985
a90ef4bf 9986@endif gas
6d389afc 9987
a90ef4bf
JM
9988.PHONY: maybe-TAGS-gas TAGS-gas
9989maybe-TAGS-gas:
9990@if gas
9991maybe-TAGS-gas: TAGS-gas
2a4cbe27 9992
a90ef4bf
JM
9993TAGS-gas: \
9994 configure-gas
9995 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9996 r=`${PWD_COMMAND}`; export r; \
9997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9998 $(HOST_EXPORTS) \
b813574b 9999 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10001 done; \
22121df0 10002 echo "Doing TAGS in gas"; \
a90ef4bf 10003 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10006 "RANLIB=$${RANLIB}" \
0c24b341 10007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10008 TAGS) \
2a4cbe27
NN
10009 || exit 1
10010
a90ef4bf 10011@endif gas
2a4cbe27 10012
a90ef4bf
JM
10013.PHONY: maybe-install-info-gas install-info-gas
10014maybe-install-info-gas:
10015@if gas
10016maybe-install-info-gas: install-info-gas
2a4cbe27 10017
a90ef4bf
JM
10018install-info-gas: \
10019 configure-gas \
10020 info-gas
10021 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10022 r=`${PWD_COMMAND}`; export r; \
10023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10024 $(HOST_EXPORTS) \
b813574b 10025 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10027 done; \
22121df0 10028 echo "Doing install-info in gas"; \
a90ef4bf 10029 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10032 "RANLIB=$${RANLIB}" \
0c24b341 10033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10034 install-info) \
2a4cbe27
NN
10035 || exit 1
10036
a90ef4bf 10037@endif gas
2a4cbe27 10038
a90ef4bf
JM
10039.PHONY: maybe-install-pdf-gas install-pdf-gas
10040maybe-install-pdf-gas:
10041@if gas
10042maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 10043
a90ef4bf
JM
10044install-pdf-gas: \
10045 configure-gas \
10046 pdf-gas
10047 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
10048 r=`${PWD_COMMAND}`; export r; \
10049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10050 $(HOST_EXPORTS) \
10051 for flag in $(EXTRA_HOST_FLAGS) ; do \
10052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10053 done; \
22121df0 10054 echo "Doing install-pdf in gas"; \
a90ef4bf 10055 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
10056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10058 "RANLIB=$${RANLIB}" \
0c24b341 10059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10060 install-pdf) \
10061 || exit 1
10062
a90ef4bf 10063@endif gas
a3ca38d2 10064
a90ef4bf
JM
10065.PHONY: maybe-install-html-gas install-html-gas
10066maybe-install-html-gas:
10067@if gas
10068maybe-install-html-gas: install-html-gas
108a6f8e 10069
a90ef4bf
JM
10070install-html-gas: \
10071 configure-gas \
10072 html-gas
10073 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
10074 r=`${PWD_COMMAND}`; export r; \
10075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10076 $(HOST_EXPORTS) \
10077 for flag in $(EXTRA_HOST_FLAGS) ; do \
10078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10079 done; \
22121df0 10080 echo "Doing install-html in gas"; \
a90ef4bf 10081 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
10082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10084 "RANLIB=$${RANLIB}" \
0c24b341 10085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10086 install-html) \
10087 || exit 1
10088
a90ef4bf 10089@endif gas
108a6f8e 10090
a90ef4bf
JM
10091.PHONY: maybe-installcheck-gas installcheck-gas
10092maybe-installcheck-gas:
10093@if gas
10094maybe-installcheck-gas: installcheck-gas
2a4cbe27 10095
a90ef4bf
JM
10096installcheck-gas: \
10097 configure-gas
10098 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10099 r=`${PWD_COMMAND}`; export r; \
10100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10101 $(HOST_EXPORTS) \
b813574b 10102 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10104 done; \
22121df0 10105 echo "Doing installcheck in gas"; \
a90ef4bf 10106 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10109 "RANLIB=$${RANLIB}" \
0c24b341 10110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10111 installcheck) \
2a4cbe27
NN
10112 || exit 1
10113
a90ef4bf 10114@endif gas
2a4cbe27 10115
a90ef4bf
JM
10116.PHONY: maybe-mostlyclean-gas mostlyclean-gas
10117maybe-mostlyclean-gas:
10118@if gas
10119maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 10120
a90ef4bf
JM
10121mostlyclean-gas:
10122 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10123 r=`${PWD_COMMAND}`; export r; \
10124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10125 $(HOST_EXPORTS) \
b813574b 10126 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10128 done; \
22121df0 10129 echo "Doing mostlyclean in gas"; \
a90ef4bf 10130 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10133 "RANLIB=$${RANLIB}" \
0c24b341 10134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10135 mostlyclean) \
2a4cbe27
NN
10136 || exit 1
10137
a90ef4bf 10138@endif gas
2a4cbe27 10139
a90ef4bf
JM
10140.PHONY: maybe-clean-gas clean-gas
10141maybe-clean-gas:
10142@if gas
10143maybe-clean-gas: clean-gas
2a4cbe27 10144
a90ef4bf
JM
10145clean-gas:
10146 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10147 r=`${PWD_COMMAND}`; export r; \
10148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10149 $(HOST_EXPORTS) \
b813574b 10150 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10152 done; \
22121df0 10153 echo "Doing clean in gas"; \
a90ef4bf 10154 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10157 "RANLIB=$${RANLIB}" \
0c24b341 10158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10159 clean) \
2a4cbe27
NN
10160 || exit 1
10161
a90ef4bf 10162@endif gas
2a4cbe27 10163
a90ef4bf
JM
10164.PHONY: maybe-distclean-gas distclean-gas
10165maybe-distclean-gas:
10166@if gas
10167maybe-distclean-gas: distclean-gas
2a4cbe27 10168
a90ef4bf
JM
10169distclean-gas:
10170 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10171 r=`${PWD_COMMAND}`; export r; \
10172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10173 $(HOST_EXPORTS) \
b813574b 10174 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10176 done; \
22121df0 10177 echo "Doing distclean in gas"; \
a90ef4bf 10178 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10181 "RANLIB=$${RANLIB}" \
0c24b341 10182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10183 distclean) \
2a4cbe27
NN
10184 || exit 1
10185
a90ef4bf 10186@endif gas
2a4cbe27 10187
a90ef4bf
JM
10188.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
10189maybe-maintainer-clean-gas:
10190@if gas
10191maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 10192
a90ef4bf
JM
10193maintainer-clean-gas:
10194 @[ -f ./gas/Makefile ] || exit 0; \
10195 r=`${PWD_COMMAND}`; export r; \
b40e3958 10196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10197 $(HOST_EXPORTS) \
b813574b 10198 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10200 done; \
22121df0 10201 echo "Doing maintainer-clean in gas"; \
a90ef4bf 10202 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10205 "RANLIB=$${RANLIB}" \
0c24b341 10206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10207 maintainer-clean) \
2a4cbe27
NN
10208 || exit 1
10209
a90ef4bf 10210@endif gas
2a4cbe27 10211
2a4cbe27 10212
a7254363 10213
a90ef4bf
JM
10214.PHONY: configure-gcc maybe-configure-gcc
10215maybe-configure-gcc:
4f0ef2d8 10216@if gcc-bootstrap
a90ef4bf 10217configure-gcc: stage_current
4f0ef2d8 10218@endif gcc-bootstrap
a90ef4bf
JM
10219@if gcc
10220maybe-configure-gcc: configure-gcc
10221configure-gcc:
c52c6897 10222 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10224 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
22121df0 10225 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
1f53ca9a 10226 $(HOST_EXPORTS) \
a90ef4bf
JM
10227 echo Configuring in $(HOST_SUBDIR)/gcc; \
10228 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 10229 case $(srcdir) in \
b00612cc 10230 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10231 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 10232 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10233 esac; \
1b6c0831
L
10234 module_srcdir=gcc; \
10235 $(SHELL) \
10236 $$s/$$module_srcdir/configure \
10237 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10238 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10239 --target=${target_alias} \
4fa63067 10240 || exit 1
a90ef4bf 10241@endif gcc
a7254363 10242
d545f33b
PB
10243
10244
a90ef4bf
JM
10245.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
10246maybe-configure-stage1-gcc:
4f0ef2d8 10247@if gcc-bootstrap
a90ef4bf
JM
10248maybe-configure-stage1-gcc: configure-stage1-gcc
10249configure-stage1-gcc:
10250 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10251 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
10252 @r=`${PWD_COMMAND}`; export r; \
10253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10254 TFLAGS="$(STAGE1_TFLAGS)"; \
10255 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10256 $(HOST_EXPORTS) \
10257 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10258 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10259 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
10260 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \
10261 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10262 cd $(HOST_SUBDIR)/gcc || exit 1; \
10263 case $(srcdir) in \
10264 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10265 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10266 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10267 esac; \
1b6c0831
L
10268 module_srcdir=gcc; \
10269 $(SHELL) $$s/$$module_srcdir/configure \
10270 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10271 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10272 --target=${target_alias} \
10273 \
a90ef4bf
JM
10274 $(STAGE1_CONFIGURE_FLAGS)
10275@endif gcc-bootstrap
4fa63067 10276
a90ef4bf
JM
10277.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
10278maybe-configure-stage2-gcc:
10279@if gcc-bootstrap
10280maybe-configure-stage2-gcc: configure-stage2-gcc
10281configure-stage2-gcc:
10282 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10283 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 10284 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10286 TFLAGS="$(STAGE2_TFLAGS)"; \
10287 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10288 $(HOST_EXPORTS) \
a90ef4bf
JM
10289 $(POSTSTAGE1_HOST_EXPORTS) \
10290 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10291 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10292 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10293 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \
10294 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10295 cd $(HOST_SUBDIR)/gcc || exit 1; \
10296 case $(srcdir) in \
10297 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10298 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10299 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10300 esac; \
1b6c0831
L
10301 module_srcdir=gcc; \
10302 $(SHELL) $$s/$$module_srcdir/configure \
10303 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10304 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10305 --target=${target_alias} \
22121df0 10306 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10307 $(STAGE2_CONFIGURE_FLAGS)
10308@endif gcc-bootstrap
9b980aa1 10309
a90ef4bf
JM
10310.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
10311maybe-configure-stage3-gcc:
10312@if gcc-bootstrap
10313maybe-configure-stage3-gcc: configure-stage3-gcc
10314configure-stage3-gcc:
10315 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10316 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
10317 @r=`${PWD_COMMAND}`; export r; \
10318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10319 TFLAGS="$(STAGE3_TFLAGS)"; \
10320 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 10321 $(HOST_EXPORTS) \
a90ef4bf
JM
10322 $(POSTSTAGE1_HOST_EXPORTS) \
10323 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10324 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10325 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10326 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \
10327 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10328 cd $(HOST_SUBDIR)/gcc || exit 1; \
10329 case $(srcdir) in \
10330 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10331 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10332 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10333 esac; \
1b6c0831
L
10334 module_srcdir=gcc; \
10335 $(SHELL) $$s/$$module_srcdir/configure \
10336 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10337 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10338 --target=${target_alias} \
22121df0 10339 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10340 $(STAGE3_CONFIGURE_FLAGS)
10341@endif gcc-bootstrap
4fa63067 10342
a90ef4bf
JM
10343.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
10344maybe-configure-stage4-gcc:
10345@if gcc-bootstrap
10346maybe-configure-stage4-gcc: configure-stage4-gcc
10347configure-stage4-gcc:
10348 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10349 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10350 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10352 TFLAGS="$(STAGE4_TFLAGS)"; \
10353 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10354 $(HOST_EXPORTS) \
a90ef4bf
JM
10355 $(POSTSTAGE1_HOST_EXPORTS) \
10356 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10357 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10358 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10359 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \
10360 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10361 cd $(HOST_SUBDIR)/gcc || exit 1; \
10362 case $(srcdir) in \
10363 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10364 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10365 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10366 esac; \
1b6c0831
L
10367 module_srcdir=gcc; \
10368 $(SHELL) $$s/$$module_srcdir/configure \
10369 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10370 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10371 --target=${target_alias} \
22121df0 10372 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10373 $(STAGE4_CONFIGURE_FLAGS)
10374@endif gcc-bootstrap
2a4cbe27 10375
a90ef4bf
JM
10376.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
10377maybe-configure-stageprofile-gcc:
10378@if gcc-bootstrap
10379maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
10380configure-stageprofile-gcc:
10381 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10382 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10383 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10385 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10386 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10387 $(HOST_EXPORTS) \
a90ef4bf
JM
10388 $(POSTSTAGE1_HOST_EXPORTS) \
10389 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10390 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10391 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10392 echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \
10393 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10394 cd $(HOST_SUBDIR)/gcc || exit 1; \
10395 case $(srcdir) in \
10396 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10397 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10398 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10399 esac; \
1b6c0831
L
10400 module_srcdir=gcc; \
10401 $(SHELL) $$s/$$module_srcdir/configure \
10402 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10403 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10404 --target=${target_alias} \
22121df0 10405 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10406 $(STAGEprofile_CONFIGURE_FLAGS)
10407@endif gcc-bootstrap
56a8fe78 10408
a90ef4bf
JM
10409.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
10410maybe-configure-stagefeedback-gcc:
10411@if gcc-bootstrap
10412maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
10413configure-stagefeedback-gcc:
10414 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10415 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10416 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10418 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10419 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 10420 $(HOST_EXPORTS) \
a90ef4bf
JM
10421 $(POSTSTAGE1_HOST_EXPORTS) \
10422 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10423 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10424 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10425 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \
10426 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10427 cd $(HOST_SUBDIR)/gcc || exit 1; \
10428 case $(srcdir) in \
10429 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10430 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10431 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10432 esac; \
1b6c0831
L
10433 module_srcdir=gcc; \
10434 $(SHELL) $$s/$$module_srcdir/configure \
10435 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10436 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10437 --target=${target_alias} \
22121df0 10438 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10439 $(STAGEfeedback_CONFIGURE_FLAGS)
10440@endif gcc-bootstrap
56a8fe78 10441
2a4cbe27 10442
2a4cbe27
NN
10443
10444
2a4cbe27 10445
a90ef4bf
JM
10446.PHONY: all-gcc maybe-all-gcc
10447maybe-all-gcc:
10448@if gcc-bootstrap
10449all-gcc: stage_current
10450@endif gcc-bootstrap
10451@if gcc
10452TARGET-gcc=all
10453maybe-all-gcc: all-gcc
10454all-gcc: configure-gcc
10455 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10457 $(HOST_EXPORTS) \
10458 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 10459 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10460 $(TARGET-gcc))
10461@endif gcc
6d389afc 10462
6d389afc 10463
6d389afc 10464
a90ef4bf
JM
10465.PHONY: all-stage1-gcc maybe-all-stage1-gcc
10466.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
10467maybe-all-stage1-gcc:
10468maybe-clean-stage1-gcc:
10469@if gcc-bootstrap
10470maybe-all-stage1-gcc: all-stage1-gcc
10471all-stage1: all-stage1-gcc
10472TARGET-stage1-gcc = $(TARGET-gcc)
10473all-stage1-gcc: configure-stage1-gcc
10474 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10475 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10477 TFLAGS="$(STAGE1_TFLAGS)"; \
10478 $(HOST_EXPORTS) \
10479 cd $(HOST_SUBDIR)/gcc && \
05a13254 10480 \
a90ef4bf
JM
10481 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10482 CFLAGS="$(STAGE1_CFLAGS)" \
10483 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10484 LIBCFLAGS="$(LIBCFLAGS)" \
10485 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10486 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10487 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10488 $(EXTRA_HOST_FLAGS) \
10489 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10490 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 10491 $(TARGET-stage1-gcc)
2a4cbe27 10492
a90ef4bf
JM
10493maybe-clean-stage1-gcc: clean-stage1-gcc
10494clean-stage1: clean-stage1-gcc
10495clean-stage1-gcc:
10496 @if [ $(current_stage) = stage1 ]; then \
10497 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10498 else \
10499 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
10500 $(MAKE) stage1-start; \
10501 fi; \
10502 cd $(HOST_SUBDIR)/gcc && \
10503 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10504 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10505@endif gcc-bootstrap
2a4cbe27 10506
a3ca38d2 10507
a90ef4bf
JM
10508.PHONY: all-stage2-gcc maybe-all-stage2-gcc
10509.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
10510maybe-all-stage2-gcc:
10511maybe-clean-stage2-gcc:
10512@if gcc-bootstrap
10513maybe-all-stage2-gcc: all-stage2-gcc
10514all-stage2: all-stage2-gcc
10515TARGET-stage2-gcc = $(TARGET-gcc)
10516all-stage2-gcc: configure-stage2-gcc
10517 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10518 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 10519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10520 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 10521 $(HOST_EXPORTS) \
a90ef4bf
JM
10522 $(POSTSTAGE1_HOST_EXPORTS) \
10523 cd $(HOST_SUBDIR)/gcc && \
05a13254 10524 \
a90ef4bf
JM
10525 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10526 CFLAGS="$(STAGE2_CFLAGS)" \
10527 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10528 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10529 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10530 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10531 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10532 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10533 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 10534 $(TARGET-stage2-gcc)
a3ca38d2 10535
a90ef4bf
JM
10536maybe-clean-stage2-gcc: clean-stage2-gcc
10537clean-stage2: clean-stage2-gcc
10538clean-stage2-gcc:
10539 @if [ $(current_stage) = stage2 ]; then \
10540 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10541 else \
10542 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
10543 $(MAKE) stage2-start; \
10544 fi; \
10545 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10546 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10547@endif gcc-bootstrap
a3ca38d2 10548
108a6f8e 10549
a90ef4bf
JM
10550.PHONY: all-stage3-gcc maybe-all-stage3-gcc
10551.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
10552maybe-all-stage3-gcc:
10553maybe-clean-stage3-gcc:
10554@if gcc-bootstrap
10555maybe-all-stage3-gcc: all-stage3-gcc
10556all-stage3: all-stage3-gcc
10557TARGET-stage3-gcc = $(TARGET-gcc)
10558all-stage3-gcc: configure-stage3-gcc
10559 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10560 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 10561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10562 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 10563 $(HOST_EXPORTS) \
a90ef4bf
JM
10564 $(POSTSTAGE1_HOST_EXPORTS) \
10565 cd $(HOST_SUBDIR)/gcc && \
05a13254 10566 \
a90ef4bf
JM
10567 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10568 CFLAGS="$(STAGE3_CFLAGS)" \
10569 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10570 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10571 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10572 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10573 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10574 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10575 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 10576 $(TARGET-stage3-gcc)
108a6f8e 10577
a90ef4bf
JM
10578maybe-clean-stage3-gcc: clean-stage3-gcc
10579clean-stage3: clean-stage3-gcc
10580clean-stage3-gcc:
10581 @if [ $(current_stage) = stage3 ]; then \
10582 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10583 else \
10584 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
10585 $(MAKE) stage3-start; \
10586 fi; \
10587 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10588 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10589@endif gcc-bootstrap
108a6f8e 10590
2a4cbe27 10591
a90ef4bf
JM
10592.PHONY: all-stage4-gcc maybe-all-stage4-gcc
10593.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
10594maybe-all-stage4-gcc:
10595maybe-clean-stage4-gcc:
10596@if gcc-bootstrap
10597maybe-all-stage4-gcc: all-stage4-gcc
10598all-stage4: all-stage4-gcc
10599TARGET-stage4-gcc = $(TARGET-gcc)
10600all-stage4-gcc: configure-stage4-gcc
10601 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10602 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10604 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10605 $(HOST_EXPORTS) \
a90ef4bf
JM
10606 $(POSTSTAGE1_HOST_EXPORTS) \
10607 cd $(HOST_SUBDIR)/gcc && \
05a13254 10608 \
a90ef4bf
JM
10609 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10610 CFLAGS="$(STAGE4_CFLAGS)" \
10611 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10612 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10613 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10614 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10615 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10616 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10617 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 10618 $(TARGET-stage4-gcc)
2a4cbe27 10619
a90ef4bf
JM
10620maybe-clean-stage4-gcc: clean-stage4-gcc
10621clean-stage4: clean-stage4-gcc
10622clean-stage4-gcc:
10623 @if [ $(current_stage) = stage4 ]; then \
10624 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10625 else \
10626 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
10627 $(MAKE) stage4-start; \
10628 fi; \
10629 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10630 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10631@endif gcc-bootstrap
2a4cbe27 10632
a2592b1b 10633
a90ef4bf
JM
10634.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
10635.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
10636maybe-all-stageprofile-gcc:
10637maybe-clean-stageprofile-gcc:
10638@if gcc-bootstrap
10639maybe-all-stageprofile-gcc: all-stageprofile-gcc
10640all-stageprofile: all-stageprofile-gcc
10641TARGET-stageprofile-gcc = $(TARGET-gcc)
10642all-stageprofile-gcc: configure-stageprofile-gcc
10643 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10644 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 10645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10646 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10647 $(HOST_EXPORTS) \
a90ef4bf
JM
10648 $(POSTSTAGE1_HOST_EXPORTS) \
10649 cd $(HOST_SUBDIR)/gcc && \
05a13254 10650 \
a90ef4bf
JM
10651 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10652 CFLAGS="$(STAGEprofile_CFLAGS)" \
10653 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10654 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10655 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10656 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10657 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10658 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10659 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 10660 $(TARGET-stageprofile-gcc)
2a4cbe27 10661
a90ef4bf
JM
10662maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
10663clean-stageprofile: clean-stageprofile-gcc
10664clean-stageprofile-gcc:
10665 @if [ $(current_stage) = stageprofile ]; then \
10666 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10667 else \
10668 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
10669 $(MAKE) stageprofile-start; \
10670 fi; \
10671 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10672 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10673@endif gcc-bootstrap
2a4cbe27 10674
a7254363 10675
a90ef4bf
JM
10676.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
10677.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
10678maybe-all-stagefeedback-gcc:
10679maybe-clean-stagefeedback-gcc:
4f0ef2d8 10680@if gcc-bootstrap
a90ef4bf
JM
10681maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
10682all-stagefeedback: all-stagefeedback-gcc
10683TARGET-stagefeedback-gcc = $(TARGET-gcc)
10684all-stagefeedback-gcc: configure-stagefeedback-gcc
10685 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10686 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10688 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10689 $(HOST_EXPORTS) \
10690 $(POSTSTAGE1_HOST_EXPORTS) \
10691 cd $(HOST_SUBDIR)/gcc && \
05a13254 10692 \
a90ef4bf
JM
10693 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10694 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10695 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10696 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10697 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10698 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10699 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10700 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10701 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 10702 $(TARGET-stagefeedback-gcc)
d545f33b 10703
a90ef4bf
JM
10704maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10705clean-stagefeedback: clean-stagefeedback-gcc
10706clean-stagefeedback-gcc:
10707 @if [ $(current_stage) = stagefeedback ]; then \
10708 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10709 else \
10710 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10711 $(MAKE) stagefeedback-start; \
10712 fi; \
10713 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10714 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10715@endif gcc-bootstrap
4fa63067 10716
a7254363 10717
d545f33b
PB
10718
10719
4fa63067 10720
a90ef4bf
JM
10721.PHONY: check-gcc maybe-check-gcc
10722maybe-check-gcc:
10723@if gcc
10724maybe-check-gcc: check-gcc
10725
10726check-gcc:
0aed8855 10727 @: $(MAKE); $(unstage)
4fa63067
NN
10728 @r=`${PWD_COMMAND}`; export r; \
10729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 10730 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 10731 (cd $(HOST_SUBDIR)/gcc && \
f91ca6bc 10732 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 10733
a90ef4bf 10734@endif gcc
4fa63067 10735
a90ef4bf
JM
10736.PHONY: install-gcc maybe-install-gcc
10737maybe-install-gcc:
10738@if gcc
10739maybe-install-gcc: install-gcc
4fa63067 10740
a90ef4bf 10741install-gcc: installdirs
0aed8855 10742 @: $(MAKE); $(unstage)
4fa63067
NN
10743 @r=`${PWD_COMMAND}`; export r; \
10744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10745 $(HOST_EXPORTS) \
a90ef4bf
JM
10746 (cd $(HOST_SUBDIR)/gcc && \
10747 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10748
a90ef4bf 10749@endif gcc
4fa63067 10750
a90ef4bf
JM
10751.PHONY: install-strip-gcc maybe-install-strip-gcc
10752maybe-install-strip-gcc:
10753@if gcc
10754maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10755
a90ef4bf 10756install-strip-gcc: installdirs
9b980aa1
RW
10757 @: $(MAKE); $(unstage)
10758 @r=`${PWD_COMMAND}`; export r; \
10759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10760 $(HOST_EXPORTS) \
a90ef4bf
JM
10761 (cd $(HOST_SUBDIR)/gcc && \
10762 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10763
a90ef4bf 10764@endif gcc
9b980aa1 10765
56a8fe78 10766# Other targets (info, dvi, pdf, etc.)
4fa63067 10767
a90ef4bf
JM
10768.PHONY: maybe-info-gcc info-gcc
10769maybe-info-gcc:
10770@if gcc
10771maybe-info-gcc: info-gcc
4fa63067 10772
a90ef4bf
JM
10773info-gcc: \
10774 configure-gcc
10775 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10776 r=`${PWD_COMMAND}`; export r; \
10777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10778 $(HOST_EXPORTS) \
a90ef4bf 10779 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10781 done; \
22121df0 10782 echo "Doing info in gcc"; \
a90ef4bf 10783 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10786 "RANLIB=$${RANLIB}" \
0c24b341 10787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10788 info) \
2a4cbe27
NN
10789 || exit 1
10790
a90ef4bf 10791@endif gcc
2a4cbe27 10792
a90ef4bf
JM
10793.PHONY: maybe-dvi-gcc dvi-gcc
10794maybe-dvi-gcc:
10795@if gcc
10796maybe-dvi-gcc: dvi-gcc
2a4cbe27 10797
a90ef4bf
JM
10798dvi-gcc: \
10799 configure-gcc
10800 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10801 r=`${PWD_COMMAND}`; export r; \
10802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10803 $(HOST_EXPORTS) \
a90ef4bf 10804 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10806 done; \
22121df0 10807 echo "Doing dvi in gcc"; \
a90ef4bf 10808 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10811 "RANLIB=$${RANLIB}" \
0c24b341 10812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10813 dvi) \
2a4cbe27
NN
10814 || exit 1
10815
a90ef4bf 10816@endif gcc
2a4cbe27 10817
a90ef4bf
JM
10818.PHONY: maybe-pdf-gcc pdf-gcc
10819maybe-pdf-gcc:
10820@if gcc
10821maybe-pdf-gcc: pdf-gcc
56a8fe78 10822
a90ef4bf
JM
10823pdf-gcc: \
10824 configure-gcc
10825 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10826 r=`${PWD_COMMAND}`; export r; \
10827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10828 $(HOST_EXPORTS) \
a90ef4bf 10829 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10831 done; \
22121df0 10832 echo "Doing pdf in gcc"; \
a90ef4bf 10833 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
10834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10836 "RANLIB=$${RANLIB}" \
0c24b341 10837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10838 pdf) \
10839 || exit 1
10840
a90ef4bf 10841@endif gcc
56a8fe78 10842
a90ef4bf
JM
10843.PHONY: maybe-html-gcc html-gcc
10844maybe-html-gcc:
10845@if gcc
10846maybe-html-gcc: html-gcc
6d389afc 10847
a90ef4bf
JM
10848html-gcc: \
10849 configure-gcc
10850 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10851 r=`${PWD_COMMAND}`; export r; \
10852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10853 $(HOST_EXPORTS) \
a90ef4bf 10854 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10856 done; \
22121df0 10857 echo "Doing html in gcc"; \
a90ef4bf 10858 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10861 "RANLIB=$${RANLIB}" \
0c24b341 10862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10863 html) \
10864 || exit 1
10865
a90ef4bf 10866@endif gcc
6d389afc 10867
a90ef4bf
JM
10868.PHONY: maybe-TAGS-gcc TAGS-gcc
10869maybe-TAGS-gcc:
10870@if gcc
10871maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10872
a90ef4bf
JM
10873TAGS-gcc: \
10874 configure-gcc
10875 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10876 r=`${PWD_COMMAND}`; export r; \
10877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10878 $(HOST_EXPORTS) \
a90ef4bf 10879 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10881 done; \
22121df0 10882 echo "Doing TAGS in gcc"; \
a90ef4bf 10883 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10886 "RANLIB=$${RANLIB}" \
0c24b341 10887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10888 TAGS) \
2a4cbe27
NN
10889 || exit 1
10890
a90ef4bf 10891@endif gcc
2a4cbe27 10892
a90ef4bf
JM
10893.PHONY: maybe-install-info-gcc install-info-gcc
10894maybe-install-info-gcc:
10895@if gcc
10896maybe-install-info-gcc: install-info-gcc
2a4cbe27 10897
a90ef4bf
JM
10898install-info-gcc: \
10899 configure-gcc \
10900 info-gcc
10901 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10902 r=`${PWD_COMMAND}`; export r; \
10903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10904 $(HOST_EXPORTS) \
a90ef4bf 10905 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10907 done; \
22121df0 10908 echo "Doing install-info in gcc"; \
a90ef4bf 10909 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10912 "RANLIB=$${RANLIB}" \
0c24b341 10913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10914 install-info) \
2a4cbe27
NN
10915 || exit 1
10916
a90ef4bf 10917@endif gcc
2a4cbe27 10918
a90ef4bf
JM
10919.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10920maybe-install-pdf-gcc:
10921@if gcc
10922maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 10923
a90ef4bf
JM
10924install-pdf-gcc: \
10925 configure-gcc \
10926 pdf-gcc
10927 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
10928 r=`${PWD_COMMAND}`; export r; \
10929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10930 $(HOST_EXPORTS) \
a90ef4bf 10931 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
10932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10933 done; \
22121df0 10934 echo "Doing install-pdf in gcc"; \
a90ef4bf 10935 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
10936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10938 "RANLIB=$${RANLIB}" \
0c24b341 10939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10940 install-pdf) \
10941 || exit 1
10942
a90ef4bf 10943@endif gcc
a3ca38d2 10944
a90ef4bf
JM
10945.PHONY: maybe-install-html-gcc install-html-gcc
10946maybe-install-html-gcc:
10947@if gcc
10948maybe-install-html-gcc: install-html-gcc
108a6f8e 10949
a90ef4bf
JM
10950install-html-gcc: \
10951 configure-gcc \
10952 html-gcc
10953 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
10954 r=`${PWD_COMMAND}`; export r; \
10955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10956 $(HOST_EXPORTS) \
a90ef4bf 10957 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
10958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10959 done; \
22121df0 10960 echo "Doing install-html in gcc"; \
a90ef4bf 10961 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
10962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10964 "RANLIB=$${RANLIB}" \
0c24b341 10965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10966 install-html) \
10967 || exit 1
10968
a90ef4bf 10969@endif gcc
108a6f8e 10970
a90ef4bf
JM
10971.PHONY: maybe-installcheck-gcc installcheck-gcc
10972maybe-installcheck-gcc:
10973@if gcc
10974maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 10975
a90ef4bf
JM
10976installcheck-gcc: \
10977 configure-gcc
10978 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10979 r=`${PWD_COMMAND}`; export r; \
10980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10981 $(HOST_EXPORTS) \
a90ef4bf 10982 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10984 done; \
22121df0 10985 echo "Doing installcheck in gcc"; \
a90ef4bf 10986 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10989 "RANLIB=$${RANLIB}" \
0c24b341 10990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10991 installcheck) \
2a4cbe27
NN
10992 || exit 1
10993
a90ef4bf 10994@endif gcc
2a4cbe27 10995
a90ef4bf
JM
10996.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
10997maybe-mostlyclean-gcc:
10998@if gcc
10999maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 11000
a90ef4bf
JM
11001mostlyclean-gcc:
11002 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11003 r=`${PWD_COMMAND}`; export r; \
11004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11005 $(HOST_EXPORTS) \
a90ef4bf 11006 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11008 done; \
22121df0 11009 echo "Doing mostlyclean in gcc"; \
a90ef4bf 11010 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11013 "RANLIB=$${RANLIB}" \
0c24b341 11014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11015 mostlyclean) \
2a4cbe27
NN
11016 || exit 1
11017
a90ef4bf 11018@endif gcc
2a4cbe27 11019
a90ef4bf
JM
11020.PHONY: maybe-clean-gcc clean-gcc
11021maybe-clean-gcc:
11022@if gcc
11023maybe-clean-gcc: clean-gcc
2a4cbe27 11024
a90ef4bf
JM
11025clean-gcc:
11026 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11027 r=`${PWD_COMMAND}`; export r; \
11028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11029 $(HOST_EXPORTS) \
a90ef4bf 11030 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11032 done; \
22121df0 11033 echo "Doing clean in gcc"; \
a90ef4bf 11034 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11037 "RANLIB=$${RANLIB}" \
0c24b341 11038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11039 clean) \
2a4cbe27
NN
11040 || exit 1
11041
a90ef4bf 11042@endif gcc
2a4cbe27 11043
a90ef4bf
JM
11044.PHONY: maybe-distclean-gcc distclean-gcc
11045maybe-distclean-gcc:
11046@if gcc
11047maybe-distclean-gcc: distclean-gcc
2a4cbe27 11048
a90ef4bf
JM
11049distclean-gcc:
11050 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11051 r=`${PWD_COMMAND}`; export r; \
11052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11053 $(HOST_EXPORTS) \
a90ef4bf 11054 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11056 done; \
22121df0 11057 echo "Doing distclean in gcc"; \
a90ef4bf 11058 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11061 "RANLIB=$${RANLIB}" \
0c24b341 11062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11063 distclean) \
2a4cbe27
NN
11064 || exit 1
11065
a90ef4bf 11066@endif gcc
2a4cbe27 11067
a90ef4bf
JM
11068.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
11069maybe-maintainer-clean-gcc:
11070@if gcc
11071maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 11072
a90ef4bf
JM
11073maintainer-clean-gcc:
11074 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11075 r=`${PWD_COMMAND}`; export r; \
11076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11077 $(HOST_EXPORTS) \
a90ef4bf 11078 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11080 done; \
22121df0 11081 echo "Doing maintainer-clean in gcc"; \
a90ef4bf 11082 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11085 "RANLIB=$${RANLIB}" \
0c24b341 11086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11087 maintainer-clean) \
2a4cbe27
NN
11088 || exit 1
11089
a90ef4bf 11090@endif gcc
2a4cbe27 11091
2a4cbe27 11092
a7254363 11093
a90ef4bf
JM
11094.PHONY: configure-gmp maybe-configure-gmp
11095maybe-configure-gmp:
4f0ef2d8 11096@if gcc-bootstrap
a90ef4bf 11097configure-gmp: stage_current
4f0ef2d8 11098@endif gcc-bootstrap
a90ef4bf
JM
11099@if gmp
11100maybe-configure-gmp: configure-gmp
11101configure-gmp:
c52c6897 11102 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11104 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
22121df0 11105 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
1f53ca9a 11106 $(HOST_EXPORTS) \
a90ef4bf
JM
11107 echo Configuring in $(HOST_SUBDIR)/gmp; \
11108 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 11109 case $(srcdir) in \
b00612cc 11110 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11111 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 11112 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11113 esac; \
1b6c0831
L
11114 module_srcdir=gmp; \
11115 $(SHELL) \
11116 $$s/$$module_srcdir/configure \
11117 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11118 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11119 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 11120 || exit 1
a90ef4bf 11121@endif gmp
a7254363 11122
d545f33b
PB
11123
11124
a90ef4bf
JM
11125.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
11126maybe-configure-stage1-gmp:
11127@if gmp-bootstrap
11128maybe-configure-stage1-gmp: configure-stage1-gmp
11129configure-stage1-gmp:
11130 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11131 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
11132 @r=`${PWD_COMMAND}`; export r; \
11133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11134 TFLAGS="$(STAGE1_TFLAGS)"; \
11135 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11136 $(HOST_EXPORTS) \
11137 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11138 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11139 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11140 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp; \
11141 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11142 cd $(HOST_SUBDIR)/gmp || exit 1; \
11143 case $(srcdir) in \
11144 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11145 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11146 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11147 esac; \
1b6c0831
L
11148 module_srcdir=gmp; \
11149 $(SHELL) $$s/$$module_srcdir/configure \
11150 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11151 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11152 --target=none-${host_vendor}-${host_os} \
11153 \
a90ef4bf 11154 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 11155 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11156@endif gmp-bootstrap
4fa63067 11157
a90ef4bf
JM
11158.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
11159maybe-configure-stage2-gmp:
11160@if gmp-bootstrap
11161maybe-configure-stage2-gmp: configure-stage2-gmp
11162configure-stage2-gmp:
11163 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11164 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11165 @r=`${PWD_COMMAND}`; export r; \
11166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11167 TFLAGS="$(STAGE2_TFLAGS)"; \
11168 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11169 $(HOST_EXPORTS) \
11170 $(POSTSTAGE1_HOST_EXPORTS) \
11171 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11172 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11173 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11174 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp; \
11175 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11176 cd $(HOST_SUBDIR)/gmp || exit 1; \
11177 case $(srcdir) in \
11178 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11179 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11180 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11181 esac; \
1b6c0831
L
11182 module_srcdir=gmp; \
11183 $(SHELL) $$s/$$module_srcdir/configure \
11184 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11185 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11186 --target=none-${host_vendor}-${host_os} \
22121df0 11187 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11188 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 11189 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11190@endif gmp-bootstrap
4fa63067 11191
a90ef4bf
JM
11192.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
11193maybe-configure-stage3-gmp:
11194@if gmp-bootstrap
11195maybe-configure-stage3-gmp: configure-stage3-gmp
11196configure-stage3-gmp:
11197 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11198 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 11199 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11201 TFLAGS="$(STAGE3_TFLAGS)"; \
11202 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 11203 $(HOST_EXPORTS) \
a90ef4bf
JM
11204 $(POSTSTAGE1_HOST_EXPORTS) \
11205 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11206 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11207 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11208 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp; \
11209 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11210 cd $(HOST_SUBDIR)/gmp || exit 1; \
11211 case $(srcdir) in \
11212 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11213 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11214 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11215 esac; \
1b6c0831
L
11216 module_srcdir=gmp; \
11217 $(SHELL) $$s/$$module_srcdir/configure \
11218 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11219 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11220 --target=none-${host_vendor}-${host_os} \
22121df0 11221 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11222 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 11223 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11224@endif gmp-bootstrap
2a4cbe27 11225
a90ef4bf
JM
11226.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
11227maybe-configure-stage4-gmp:
11228@if gmp-bootstrap
11229maybe-configure-stage4-gmp: configure-stage4-gmp
11230configure-stage4-gmp:
11231 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11232 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11233 @r=`${PWD_COMMAND}`; export r; \
11234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11235 TFLAGS="$(STAGE4_TFLAGS)"; \
11236 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11237 $(HOST_EXPORTS) \
11238 $(POSTSTAGE1_HOST_EXPORTS) \
11239 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11240 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11241 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11242 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp; \
11243 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11244 cd $(HOST_SUBDIR)/gmp || exit 1; \
11245 case $(srcdir) in \
11246 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11247 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11248 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11249 esac; \
1b6c0831
L
11250 module_srcdir=gmp; \
11251 $(SHELL) $$s/$$module_srcdir/configure \
11252 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11253 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11254 --target=none-${host_vendor}-${host_os} \
22121df0 11255 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11256 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 11257 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11258@endif gmp-bootstrap
2a4cbe27 11259
a90ef4bf
JM
11260.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
11261maybe-configure-stageprofile-gmp:
11262@if gmp-bootstrap
11263maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
11264configure-stageprofile-gmp:
11265 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11266 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11267 @r=`${PWD_COMMAND}`; export r; \
11268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11269 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11270 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11271 $(HOST_EXPORTS) \
11272 $(POSTSTAGE1_HOST_EXPORTS) \
11273 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11274 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11275 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11276 echo Configuring stage profile in $(HOST_SUBDIR)/gmp; \
11277 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11278 cd $(HOST_SUBDIR)/gmp || exit 1; \
11279 case $(srcdir) in \
11280 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11281 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11282 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11283 esac; \
1b6c0831
L
11284 module_srcdir=gmp; \
11285 $(SHELL) $$s/$$module_srcdir/configure \
11286 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11287 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11288 --target=none-${host_vendor}-${host_os} \
22121df0 11289 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11290 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 11291 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11292@endif gmp-bootstrap
9b980aa1 11293
a90ef4bf
JM
11294.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
11295maybe-configure-stagefeedback-gmp:
11296@if gmp-bootstrap
11297maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
11298configure-stagefeedback-gmp:
11299 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11300 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
11301 @r=`${PWD_COMMAND}`; export r; \
11302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11303 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11304 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 11305 $(HOST_EXPORTS) \
a90ef4bf
JM
11306 $(POSTSTAGE1_HOST_EXPORTS) \
11307 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11308 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11309 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11310 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp; \
11311 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11312 cd $(HOST_SUBDIR)/gmp || exit 1; \
11313 case $(srcdir) in \
11314 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11315 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11316 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11317 esac; \
1b6c0831
L
11318 module_srcdir=gmp; \
11319 $(SHELL) $$s/$$module_srcdir/configure \
11320 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11321 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11322 --target=none-${host_vendor}-${host_os} \
22121df0 11323 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11324 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 11325 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11326@endif gmp-bootstrap
9b980aa1 11327
9b980aa1 11328
2a4cbe27 11329
4fa63067 11330
a90ef4bf
JM
11331
11332.PHONY: all-gmp maybe-all-gmp
11333maybe-all-gmp:
11334@if gcc-bootstrap
11335all-gmp: stage_current
11336@endif gcc-bootstrap
11337@if gmp
11338TARGET-gmp=all
11339maybe-all-gmp: all-gmp
11340all-gmp: configure-gmp
11341 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11343 $(HOST_EXPORTS) \
11344 (cd $(HOST_SUBDIR)/gmp && \
05a13254 11345 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
11346 $(TARGET-gmp))
11347@endif gmp
2a4cbe27
NN
11348
11349
2a4cbe27 11350
a90ef4bf
JM
11351.PHONY: all-stage1-gmp maybe-all-stage1-gmp
11352.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
11353maybe-all-stage1-gmp:
11354maybe-clean-stage1-gmp:
11355@if gmp-bootstrap
11356maybe-all-stage1-gmp: all-stage1-gmp
11357all-stage1: all-stage1-gmp
11358TARGET-stage1-gmp = $(TARGET-gmp)
11359all-stage1-gmp: configure-stage1-gmp
11360 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11361 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11363 TFLAGS="$(STAGE1_TFLAGS)"; \
11364 $(HOST_EXPORTS) \
11365 cd $(HOST_SUBDIR)/gmp && \
05a13254 11366 \
a90ef4bf
JM
11367 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11368 CFLAGS="$(STAGE1_CFLAGS)" \
11369 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11370 LIBCFLAGS="$(LIBCFLAGS)" \
11371 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11372 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11373 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 11374 $(EXTRA_HOST_FLAGS) \
05a13254
NC
11375 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11376 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 11377 $(TARGET-stage1-gmp)
2a4cbe27 11378
a90ef4bf
JM
11379maybe-clean-stage1-gmp: clean-stage1-gmp
11380clean-stage1: clean-stage1-gmp
11381clean-stage1-gmp:
11382 @if [ $(current_stage) = stage1 ]; then \
11383 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11384 else \
11385 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
11386 $(MAKE) stage1-start; \
11387 fi; \
11388 cd $(HOST_SUBDIR)/gmp && \
11389 $(MAKE) $(EXTRA_HOST_FLAGS) \
05a13254 11390 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11391@endif gmp-bootstrap
2a4cbe27 11392
56a8fe78 11393
a90ef4bf
JM
11394.PHONY: all-stage2-gmp maybe-all-stage2-gmp
11395.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
11396maybe-all-stage2-gmp:
11397maybe-clean-stage2-gmp:
11398@if gmp-bootstrap
11399maybe-all-stage2-gmp: all-stage2-gmp
11400all-stage2: all-stage2-gmp
11401TARGET-stage2-gmp = $(TARGET-gmp)
11402all-stage2-gmp: configure-stage2-gmp
11403 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11404 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11406 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 11407 $(HOST_EXPORTS) \
a90ef4bf
JM
11408 $(POSTSTAGE1_HOST_EXPORTS) \
11409 cd $(HOST_SUBDIR)/gmp && \
05a13254 11410 \
a90ef4bf
JM
11411 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11412 CFLAGS="$(STAGE2_CFLAGS)" \
11413 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11414 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11415 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11416 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11417 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11418 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11419 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 11420 $(TARGET-stage2-gmp)
56a8fe78 11421
a90ef4bf
JM
11422maybe-clean-stage2-gmp: clean-stage2-gmp
11423clean-stage2: clean-stage2-gmp
11424clean-stage2-gmp:
11425 @if [ $(current_stage) = stage2 ]; then \
11426 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11427 else \
11428 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
11429 $(MAKE) stage2-start; \
11430 fi; \
11431 cd $(HOST_SUBDIR)/gmp && \
05a13254 11432 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11433@endif gmp-bootstrap
56a8fe78 11434
6d389afc 11435
a90ef4bf
JM
11436.PHONY: all-stage3-gmp maybe-all-stage3-gmp
11437.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
11438maybe-all-stage3-gmp:
11439maybe-clean-stage3-gmp:
11440@if gmp-bootstrap
11441maybe-all-stage3-gmp: all-stage3-gmp
11442all-stage3: all-stage3-gmp
11443TARGET-stage3-gmp = $(TARGET-gmp)
11444all-stage3-gmp: configure-stage3-gmp
11445 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11446 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11448 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 11449 $(HOST_EXPORTS) \
a90ef4bf
JM
11450 $(POSTSTAGE1_HOST_EXPORTS) \
11451 cd $(HOST_SUBDIR)/gmp && \
05a13254 11452 \
a90ef4bf
JM
11453 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11454 CFLAGS="$(STAGE3_CFLAGS)" \
11455 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11456 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11457 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11458 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11459 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11460 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11461 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 11462 $(TARGET-stage3-gmp)
6d389afc 11463
a90ef4bf
JM
11464maybe-clean-stage3-gmp: clean-stage3-gmp
11465clean-stage3: clean-stage3-gmp
11466clean-stage3-gmp:
11467 @if [ $(current_stage) = stage3 ]; then \
11468 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11469 else \
11470 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
11471 $(MAKE) stage3-start; \
11472 fi; \
11473 cd $(HOST_SUBDIR)/gmp && \
05a13254 11474 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11475@endif gmp-bootstrap
6d389afc 11476
2a4cbe27 11477
a90ef4bf
JM
11478.PHONY: all-stage4-gmp maybe-all-stage4-gmp
11479.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
11480maybe-all-stage4-gmp:
11481maybe-clean-stage4-gmp:
11482@if gmp-bootstrap
11483maybe-all-stage4-gmp: all-stage4-gmp
11484all-stage4: all-stage4-gmp
11485TARGET-stage4-gmp = $(TARGET-gmp)
11486all-stage4-gmp: configure-stage4-gmp
11487 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11488 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11490 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11491 $(HOST_EXPORTS) \
a90ef4bf
JM
11492 $(POSTSTAGE1_HOST_EXPORTS) \
11493 cd $(HOST_SUBDIR)/gmp && \
05a13254 11494 \
a90ef4bf
JM
11495 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11496 CFLAGS="$(STAGE4_CFLAGS)" \
11497 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11498 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11499 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11500 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11501 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11502 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11503 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 11504 $(TARGET-stage4-gmp)
2a4cbe27 11505
a90ef4bf
JM
11506maybe-clean-stage4-gmp: clean-stage4-gmp
11507clean-stage4: clean-stage4-gmp
11508clean-stage4-gmp:
11509 @if [ $(current_stage) = stage4 ]; then \
11510 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11511 else \
11512 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
11513 $(MAKE) stage4-start; \
11514 fi; \
11515 cd $(HOST_SUBDIR)/gmp && \
05a13254 11516 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11517@endif gmp-bootstrap
2a4cbe27 11518
2a4cbe27 11519
a90ef4bf
JM
11520.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
11521.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
11522maybe-all-stageprofile-gmp:
11523maybe-clean-stageprofile-gmp:
11524@if gmp-bootstrap
11525maybe-all-stageprofile-gmp: all-stageprofile-gmp
11526all-stageprofile: all-stageprofile-gmp
11527TARGET-stageprofile-gmp = $(TARGET-gmp)
11528all-stageprofile-gmp: configure-stageprofile-gmp
11529 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11530 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11532 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11533 $(HOST_EXPORTS) \
a90ef4bf
JM
11534 $(POSTSTAGE1_HOST_EXPORTS) \
11535 cd $(HOST_SUBDIR)/gmp && \
05a13254 11536 \
a90ef4bf
JM
11537 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11538 CFLAGS="$(STAGEprofile_CFLAGS)" \
11539 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11540 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11541 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11542 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11543 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11544 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11545 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 11546 $(TARGET-stageprofile-gmp)
2a4cbe27 11547
a90ef4bf
JM
11548maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
11549clean-stageprofile: clean-stageprofile-gmp
11550clean-stageprofile-gmp:
11551 @if [ $(current_stage) = stageprofile ]; then \
11552 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11553 else \
11554 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
11555 $(MAKE) stageprofile-start; \
11556 fi; \
11557 cd $(HOST_SUBDIR)/gmp && \
05a13254 11558 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11559@endif gmp-bootstrap
2a4cbe27 11560
a7254363 11561
a90ef4bf
JM
11562.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
11563.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
11564maybe-all-stagefeedback-gmp:
11565maybe-clean-stagefeedback-gmp:
11566@if gmp-bootstrap
11567maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
11568all-stagefeedback: all-stagefeedback-gmp
11569TARGET-stagefeedback-gmp = $(TARGET-gmp)
11570all-stagefeedback-gmp: configure-stagefeedback-gmp
11571 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11572 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11574 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11575 $(HOST_EXPORTS) \
11576 $(POSTSTAGE1_HOST_EXPORTS) \
11577 cd $(HOST_SUBDIR)/gmp && \
05a13254 11578 \
a90ef4bf
JM
11579 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11580 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11581 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11582 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11583 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11584 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11585 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11586 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11587 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 11588 $(TARGET-stagefeedback-gmp)
d545f33b 11589
a90ef4bf
JM
11590maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
11591clean-stagefeedback: clean-stagefeedback-gmp
11592clean-stagefeedback-gmp:
11593 @if [ $(current_stage) = stagefeedback ]; then \
11594 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11595 else \
11596 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
11597 $(MAKE) stagefeedback-start; \
11598 fi; \
11599 cd $(HOST_SUBDIR)/gmp && \
05a13254 11600 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11601@endif gmp-bootstrap
d545f33b 11602
4fa63067 11603
a7254363 11604
d545f33b
PB
11605
11606
a90ef4bf
JM
11607.PHONY: check-gmp maybe-check-gmp
11608maybe-check-gmp:
11609@if gmp
11610maybe-check-gmp: check-gmp
4fa63067 11611
a90ef4bf 11612check-gmp:
0aed8855 11613 @: $(MAKE); $(unstage)
4fa63067
NN
11614 @r=`${PWD_COMMAND}`; export r; \
11615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 11616 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 11617 (cd $(HOST_SUBDIR)/gmp && \
05a13254 11618 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 11619
a90ef4bf 11620@endif gmp
2a4cbe27 11621
a90ef4bf
JM
11622.PHONY: install-gmp maybe-install-gmp
11623maybe-install-gmp:
11624@if gmp
11625maybe-install-gmp: install-gmp
2a4cbe27 11626
a90ef4bf 11627install-gmp:
2a4cbe27 11628
a90ef4bf 11629@endif gmp
2a4cbe27 11630
a90ef4bf
JM
11631.PHONY: install-strip-gmp maybe-install-strip-gmp
11632maybe-install-strip-gmp:
11633@if gmp
11634maybe-install-strip-gmp: install-strip-gmp
9b980aa1 11635
a90ef4bf 11636install-strip-gmp:
9b980aa1 11637
a90ef4bf 11638@endif gmp
9b980aa1 11639
56a8fe78 11640# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11641
a90ef4bf
JM
11642.PHONY: maybe-info-gmp info-gmp
11643maybe-info-gmp:
11644@if gmp
11645maybe-info-gmp: info-gmp
4fa63067 11646
a90ef4bf
JM
11647info-gmp: \
11648 configure-gmp
11649 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11650 r=`${PWD_COMMAND}`; export r; \
11651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11652 $(HOST_EXPORTS) \
05a13254 11653 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11655 done; \
22121df0 11656 echo "Doing info in gmp"; \
a90ef4bf 11657 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11660 "RANLIB=$${RANLIB}" \
0c24b341 11661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11662 info) \
2a4cbe27
NN
11663 || exit 1
11664
a90ef4bf 11665@endif gmp
2a4cbe27 11666
a90ef4bf
JM
11667.PHONY: maybe-dvi-gmp dvi-gmp
11668maybe-dvi-gmp:
11669@if gmp
11670maybe-dvi-gmp: dvi-gmp
2a4cbe27 11671
a90ef4bf
JM
11672dvi-gmp: \
11673 configure-gmp
11674 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11675 r=`${PWD_COMMAND}`; export r; \
11676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11677 $(HOST_EXPORTS) \
05a13254 11678 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11680 done; \
22121df0 11681 echo "Doing dvi in gmp"; \
a90ef4bf 11682 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11685 "RANLIB=$${RANLIB}" \
0c24b341 11686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11687 dvi) \
2a4cbe27
NN
11688 || exit 1
11689
a90ef4bf 11690@endif gmp
2a4cbe27 11691
a90ef4bf
JM
11692.PHONY: maybe-pdf-gmp pdf-gmp
11693maybe-pdf-gmp:
11694@if gmp
11695maybe-pdf-gmp: pdf-gmp
56a8fe78 11696
a90ef4bf
JM
11697pdf-gmp: \
11698 configure-gmp
11699 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11700 r=`${PWD_COMMAND}`; export r; \
11701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11702 $(HOST_EXPORTS) \
05a13254 11703 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
11704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11705 done; \
22121df0 11706 echo "Doing pdf in gmp"; \
a90ef4bf 11707 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11710 "RANLIB=$${RANLIB}" \
0c24b341 11711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11712 pdf) \
11713 || exit 1
11714
a90ef4bf 11715@endif gmp
56a8fe78 11716
a90ef4bf
JM
11717.PHONY: maybe-html-gmp html-gmp
11718maybe-html-gmp:
11719@if gmp
11720maybe-html-gmp: html-gmp
6d389afc 11721
a90ef4bf
JM
11722html-gmp: \
11723 configure-gmp
11724 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11725 r=`${PWD_COMMAND}`; export r; \
11726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 11727 $(HOST_EXPORTS) \
05a13254 11728 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
11729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11730 done; \
22121df0 11731 echo "Doing html in gmp"; \
a90ef4bf 11732 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11735 "RANLIB=$${RANLIB}" \
0c24b341 11736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11737 html) \
11738 || exit 1
11739
a90ef4bf 11740@endif gmp
6d389afc 11741
a90ef4bf
JM
11742.PHONY: maybe-TAGS-gmp TAGS-gmp
11743maybe-TAGS-gmp:
11744@if gmp
11745maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11746
a90ef4bf
JM
11747TAGS-gmp: \
11748 configure-gmp
11749 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11750 r=`${PWD_COMMAND}`; export r; \
11751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11752 $(HOST_EXPORTS) \
05a13254 11753 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11755 done; \
22121df0 11756 echo "Doing TAGS in gmp"; \
a90ef4bf 11757 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11760 "RANLIB=$${RANLIB}" \
0c24b341 11761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11762 TAGS) \
2a4cbe27
NN
11763 || exit 1
11764
a90ef4bf 11765@endif gmp
2a4cbe27 11766
a90ef4bf
JM
11767.PHONY: maybe-install-info-gmp install-info-gmp
11768maybe-install-info-gmp:
11769@if gmp
11770maybe-install-info-gmp: install-info-gmp
2a4cbe27 11771
a90ef4bf
JM
11772install-info-gmp: \
11773 configure-gmp \
11774 info-gmp
11775 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11776 r=`${PWD_COMMAND}`; export r; \
11777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11778 $(HOST_EXPORTS) \
05a13254 11779 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11781 done; \
22121df0 11782 echo "Doing install-info in gmp"; \
a90ef4bf 11783 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11786 "RANLIB=$${RANLIB}" \
0c24b341 11787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11788 install-info) \
2a4cbe27
NN
11789 || exit 1
11790
a90ef4bf 11791@endif gmp
2a4cbe27 11792
a90ef4bf
JM
11793.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11794maybe-install-pdf-gmp:
11795@if gmp
11796maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11797
a90ef4bf
JM
11798install-pdf-gmp: \
11799 configure-gmp \
11800 pdf-gmp
11801 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11802 r=`${PWD_COMMAND}`; export r; \
11803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11804 $(HOST_EXPORTS) \
05a13254 11805 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
11806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11807 done; \
22121df0 11808 echo "Doing install-pdf in gmp"; \
a90ef4bf 11809 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11812 "RANLIB=$${RANLIB}" \
0c24b341 11813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11814 install-pdf) \
11815 || exit 1
11816
a90ef4bf 11817@endif gmp
a3ca38d2 11818
a90ef4bf
JM
11819.PHONY: maybe-install-html-gmp install-html-gmp
11820maybe-install-html-gmp:
11821@if gmp
11822maybe-install-html-gmp: install-html-gmp
108a6f8e 11823
a90ef4bf
JM
11824install-html-gmp: \
11825 configure-gmp \
11826 html-gmp
11827 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11828 r=`${PWD_COMMAND}`; export r; \
11829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11830 $(HOST_EXPORTS) \
05a13254 11831 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
11832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11833 done; \
22121df0 11834 echo "Doing install-html in gmp"; \
a90ef4bf 11835 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
11836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11838 "RANLIB=$${RANLIB}" \
0c24b341 11839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11840 install-html) \
11841 || exit 1
11842
a90ef4bf 11843@endif gmp
108a6f8e 11844
a90ef4bf
JM
11845.PHONY: maybe-installcheck-gmp installcheck-gmp
11846maybe-installcheck-gmp:
11847@if gmp
11848maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11849
a90ef4bf
JM
11850installcheck-gmp: \
11851 configure-gmp
11852 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11853 r=`${PWD_COMMAND}`; export r; \
11854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11855 $(HOST_EXPORTS) \
05a13254 11856 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11858 done; \
22121df0 11859 echo "Doing installcheck in gmp"; \
a90ef4bf 11860 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11863 "RANLIB=$${RANLIB}" \
0c24b341 11864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11865 installcheck) \
2a4cbe27
NN
11866 || exit 1
11867
a90ef4bf 11868@endif gmp
2a4cbe27 11869
a90ef4bf
JM
11870.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11871maybe-mostlyclean-gmp:
11872@if gmp
11873maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11874
a90ef4bf
JM
11875mostlyclean-gmp:
11876 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11877 r=`${PWD_COMMAND}`; export r; \
11878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11879 $(HOST_EXPORTS) \
05a13254 11880 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11882 done; \
22121df0 11883 echo "Doing mostlyclean in gmp"; \
a90ef4bf 11884 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11887 "RANLIB=$${RANLIB}" \
0c24b341 11888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11889 mostlyclean) \
2a4cbe27
NN
11890 || exit 1
11891
a90ef4bf 11892@endif gmp
2a4cbe27 11893
a90ef4bf
JM
11894.PHONY: maybe-clean-gmp clean-gmp
11895maybe-clean-gmp:
11896@if gmp
11897maybe-clean-gmp: clean-gmp
2a4cbe27 11898
a90ef4bf
JM
11899clean-gmp:
11900 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11901 r=`${PWD_COMMAND}`; export r; \
11902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11903 $(HOST_EXPORTS) \
05a13254 11904 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11906 done; \
22121df0 11907 echo "Doing clean in gmp"; \
a90ef4bf 11908 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11911 "RANLIB=$${RANLIB}" \
0c24b341 11912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11913 clean) \
2a4cbe27
NN
11914 || exit 1
11915
a90ef4bf 11916@endif gmp
2a4cbe27 11917
a90ef4bf
JM
11918.PHONY: maybe-distclean-gmp distclean-gmp
11919maybe-distclean-gmp:
11920@if gmp
11921maybe-distclean-gmp: distclean-gmp
2a4cbe27 11922
a90ef4bf
JM
11923distclean-gmp:
11924 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11925 r=`${PWD_COMMAND}`; export r; \
11926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11927 $(HOST_EXPORTS) \
05a13254 11928 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11930 done; \
22121df0 11931 echo "Doing distclean in gmp"; \
a90ef4bf 11932 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11935 "RANLIB=$${RANLIB}" \
0c24b341 11936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11937 distclean) \
2a4cbe27
NN
11938 || exit 1
11939
a90ef4bf 11940@endif gmp
2a4cbe27 11941
a90ef4bf
JM
11942.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11943maybe-maintainer-clean-gmp:
11944@if gmp
11945maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 11946
a90ef4bf
JM
11947maintainer-clean-gmp:
11948 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11949 r=`${PWD_COMMAND}`; export r; \
11950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11951 $(HOST_EXPORTS) \
05a13254 11952 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11954 done; \
22121df0 11955 echo "Doing maintainer-clean in gmp"; \
a90ef4bf 11956 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11959 "RANLIB=$${RANLIB}" \
0c24b341 11960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11961 maintainer-clean) \
2a4cbe27
NN
11962 || exit 1
11963
a90ef4bf 11964@endif gmp
2a4cbe27 11965
2a4cbe27 11966
a7254363 11967
a90ef4bf
JM
11968.PHONY: configure-mpfr maybe-configure-mpfr
11969maybe-configure-mpfr:
4f0ef2d8 11970@if gcc-bootstrap
a90ef4bf 11971configure-mpfr: stage_current
4f0ef2d8 11972@endif gcc-bootstrap
a90ef4bf
JM
11973@if mpfr
11974maybe-configure-mpfr: configure-mpfr
11975configure-mpfr:
11976 @r=`${PWD_COMMAND}`; export r; \
11977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11978 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
22121df0 11979 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
1f53ca9a 11980 $(HOST_EXPORTS) \
a90ef4bf
JM
11981 echo Configuring in $(HOST_SUBDIR)/mpfr; \
11982 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 11983 case $(srcdir) in \
b00612cc 11984 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11985 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 11986 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11987 esac; \
1b6c0831
L
11988 module_srcdir=mpfr; \
11989 $(SHELL) \
11990 $$s/$$module_srcdir/configure \
11991 --srcdir=$${topdir}/$$module_srcdir \
4b900473 11992 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11993 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 11994 || exit 1
a90ef4bf 11995@endif mpfr
d545f33b
PB
11996
11997
2a4cbe27 11998
a90ef4bf
JM
11999.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
12000maybe-configure-stage1-mpfr:
12001@if mpfr-bootstrap
12002maybe-configure-stage1-mpfr: configure-stage1-mpfr
12003configure-stage1-mpfr:
12004 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12005 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 12006 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12008 TFLAGS="$(STAGE1_TFLAGS)"; \
12009 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12010 $(HOST_EXPORTS) \
a90ef4bf
JM
12011 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12012 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12013 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12014 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr; \
12015 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12016 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12017 case $(srcdir) in \
12018 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12019 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12020 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12021 esac; \
1b6c0831
L
12022 module_srcdir=mpfr; \
12023 $(SHELL) $$s/$$module_srcdir/configure \
12024 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12025 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12026 --target=${target_alias} \
12027 \
a90ef4bf
JM
12028 $(STAGE1_CONFIGURE_FLAGS) \
12029 --disable-shared @extra_mpfr_configure_flags@
12030@endif mpfr-bootstrap
2a4cbe27 12031
a90ef4bf
JM
12032.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
12033maybe-configure-stage2-mpfr:
12034@if mpfr-bootstrap
12035maybe-configure-stage2-mpfr: configure-stage2-mpfr
12036configure-stage2-mpfr:
12037 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12038 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 12039 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12041 TFLAGS="$(STAGE2_TFLAGS)"; \
12042 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12043 $(HOST_EXPORTS) \
a90ef4bf
JM
12044 $(POSTSTAGE1_HOST_EXPORTS) \
12045 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12046 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12047 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12048 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr; \
12049 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12050 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12051 case $(srcdir) in \
12052 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12053 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12054 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12055 esac; \
1b6c0831
L
12056 module_srcdir=mpfr; \
12057 $(SHELL) $$s/$$module_srcdir/configure \
12058 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12059 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12060 --target=${target_alias} \
22121df0 12061 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12062 $(STAGE2_CONFIGURE_FLAGS) \
12063 --disable-shared @extra_mpfr_configure_flags@
12064@endif mpfr-bootstrap
9b980aa1 12065
a90ef4bf
JM
12066.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
12067maybe-configure-stage3-mpfr:
12068@if mpfr-bootstrap
12069maybe-configure-stage3-mpfr: configure-stage3-mpfr
12070configure-stage3-mpfr:
12071 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12072 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
12073 @r=`${PWD_COMMAND}`; export r; \
12074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12075 TFLAGS="$(STAGE3_TFLAGS)"; \
12076 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 12077 $(HOST_EXPORTS) \
a90ef4bf
JM
12078 $(POSTSTAGE1_HOST_EXPORTS) \
12079 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12080 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12081 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12082 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr; \
12083 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12084 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12085 case $(srcdir) in \
12086 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12087 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12088 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12089 esac; \
1b6c0831
L
12090 module_srcdir=mpfr; \
12091 $(SHELL) $$s/$$module_srcdir/configure \
12092 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12093 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12094 --target=${target_alias} \
22121df0 12095 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12096 $(STAGE3_CONFIGURE_FLAGS) \
12097 --disable-shared @extra_mpfr_configure_flags@
12098@endif mpfr-bootstrap
2a4cbe27 12099
a90ef4bf
JM
12100.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
12101maybe-configure-stage4-mpfr:
12102@if mpfr-bootstrap
12103maybe-configure-stage4-mpfr: configure-stage4-mpfr
12104configure-stage4-mpfr:
12105 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12106 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12107 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12109 TFLAGS="$(STAGE4_TFLAGS)"; \
12110 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12111 $(HOST_EXPORTS) \
a90ef4bf
JM
12112 $(POSTSTAGE1_HOST_EXPORTS) \
12113 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12114 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12115 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12116 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr; \
12117 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12118 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12119 case $(srcdir) in \
12120 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12121 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12122 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12123 esac; \
1b6c0831
L
12124 module_srcdir=mpfr; \
12125 $(SHELL) $$s/$$module_srcdir/configure \
12126 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12127 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12128 --target=${target_alias} \
22121df0 12129 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12130 $(STAGE4_CONFIGURE_FLAGS) \
12131 --disable-shared @extra_mpfr_configure_flags@
12132@endif mpfr-bootstrap
2a4cbe27 12133
a90ef4bf
JM
12134.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
12135maybe-configure-stageprofile-mpfr:
12136@if mpfr-bootstrap
12137maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
12138configure-stageprofile-mpfr:
12139 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12140 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12141 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12143 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12144 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12145 $(HOST_EXPORTS) \
a90ef4bf
JM
12146 $(POSTSTAGE1_HOST_EXPORTS) \
12147 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12148 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12149 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12150 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr; \
12151 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12152 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12153 case $(srcdir) in \
12154 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12155 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12156 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12157 esac; \
1b6c0831
L
12158 module_srcdir=mpfr; \
12159 $(SHELL) $$s/$$module_srcdir/configure \
12160 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12161 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12162 --target=${target_alias} \
22121df0 12163 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12164 $(STAGEprofile_CONFIGURE_FLAGS) \
12165 --disable-shared @extra_mpfr_configure_flags@
12166@endif mpfr-bootstrap
56a8fe78 12167
a90ef4bf
JM
12168.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
12169maybe-configure-stagefeedback-mpfr:
12170@if mpfr-bootstrap
12171maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
12172configure-stagefeedback-mpfr:
12173 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12174 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12175 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 12176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12177 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12178 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 12179 $(HOST_EXPORTS) \
a90ef4bf
JM
12180 $(POSTSTAGE1_HOST_EXPORTS) \
12181 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12182 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12183 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12184 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr; \
12185 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12186 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12187 case $(srcdir) in \
12188 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12189 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12190 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12191 esac; \
1b6c0831
L
12192 module_srcdir=mpfr; \
12193 $(SHELL) $$s/$$module_srcdir/configure \
12194 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12195 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12196 --target=${target_alias} \
22121df0 12197 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12198 $(STAGEfeedback_CONFIGURE_FLAGS) \
12199 --disable-shared @extra_mpfr_configure_flags@
12200@endif mpfr-bootstrap
56a8fe78 12201
6d389afc 12202
6d389afc 12203
6d389afc 12204
2a4cbe27 12205
a90ef4bf
JM
12206.PHONY: all-mpfr maybe-all-mpfr
12207maybe-all-mpfr:
12208@if gcc-bootstrap
12209all-mpfr: stage_current
12210@endif gcc-bootstrap
12211@if mpfr
12212TARGET-mpfr=all
12213maybe-all-mpfr: all-mpfr
12214all-mpfr: configure-mpfr
12215 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12217 $(HOST_EXPORTS) \
12218 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12219 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12220 $(TARGET-mpfr))
12221@endif mpfr
2a4cbe27
NN
12222
12223
2a4cbe27 12224
a90ef4bf
JM
12225.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
12226.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
12227maybe-all-stage1-mpfr:
12228maybe-clean-stage1-mpfr:
12229@if mpfr-bootstrap
12230maybe-all-stage1-mpfr: all-stage1-mpfr
12231all-stage1: all-stage1-mpfr
12232TARGET-stage1-mpfr = $(TARGET-mpfr)
12233all-stage1-mpfr: configure-stage1-mpfr
12234 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12235 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12237 TFLAGS="$(STAGE1_TFLAGS)"; \
12238 $(HOST_EXPORTS) \
12239 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12240 \
a90ef4bf
JM
12241 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12242 CFLAGS="$(STAGE1_CFLAGS)" \
12243 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12244 LIBCFLAGS="$(LIBCFLAGS)" \
12245 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12246 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12247 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 12248 $(EXTRA_HOST_FLAGS) \
ce5e165e 12249 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12250 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 12251 $(TARGET-stage1-mpfr)
2a4cbe27 12252
a90ef4bf
JM
12253maybe-clean-stage1-mpfr: clean-stage1-mpfr
12254clean-stage1: clean-stage1-mpfr
12255clean-stage1-mpfr:
12256 @if [ $(current_stage) = stage1 ]; then \
12257 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12258 else \
12259 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
12260 $(MAKE) stage1-start; \
12261 fi; \
12262 cd $(HOST_SUBDIR)/mpfr && \
12263 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce5e165e 12264 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12265@endif mpfr-bootstrap
2a4cbe27 12266
a3ca38d2 12267
a90ef4bf
JM
12268.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
12269.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
12270maybe-all-stage2-mpfr:
12271maybe-clean-stage2-mpfr:
12272@if mpfr-bootstrap
12273maybe-all-stage2-mpfr: all-stage2-mpfr
12274all-stage2: all-stage2-mpfr
12275TARGET-stage2-mpfr = $(TARGET-mpfr)
12276all-stage2-mpfr: configure-stage2-mpfr
12277 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12278 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 12279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12280 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 12281 $(HOST_EXPORTS) \
a90ef4bf
JM
12282 $(POSTSTAGE1_HOST_EXPORTS) \
12283 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12284 \
a90ef4bf
JM
12285 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12286 CFLAGS="$(STAGE2_CFLAGS)" \
12287 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12288 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12289 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12290 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12291 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12292 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12293 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 12294 $(TARGET-stage2-mpfr)
a3ca38d2 12295
a90ef4bf
JM
12296maybe-clean-stage2-mpfr: clean-stage2-mpfr
12297clean-stage2: clean-stage2-mpfr
12298clean-stage2-mpfr:
12299 @if [ $(current_stage) = stage2 ]; then \
12300 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12301 else \
12302 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
12303 $(MAKE) stage2-start; \
12304 fi; \
12305 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12306 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12307@endif mpfr-bootstrap
a3ca38d2 12308
108a6f8e 12309
a90ef4bf
JM
12310.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
12311.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
12312maybe-all-stage3-mpfr:
12313maybe-clean-stage3-mpfr:
12314@if mpfr-bootstrap
12315maybe-all-stage3-mpfr: all-stage3-mpfr
12316all-stage3: all-stage3-mpfr
12317TARGET-stage3-mpfr = $(TARGET-mpfr)
12318all-stage3-mpfr: configure-stage3-mpfr
12319 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12320 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 12321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12322 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 12323 $(HOST_EXPORTS) \
a90ef4bf
JM
12324 $(POSTSTAGE1_HOST_EXPORTS) \
12325 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12326 \
a90ef4bf
JM
12327 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12328 CFLAGS="$(STAGE3_CFLAGS)" \
12329 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12330 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12331 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12332 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12333 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12334 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12335 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 12336 $(TARGET-stage3-mpfr)
108a6f8e 12337
a90ef4bf
JM
12338maybe-clean-stage3-mpfr: clean-stage3-mpfr
12339clean-stage3: clean-stage3-mpfr
12340clean-stage3-mpfr:
12341 @if [ $(current_stage) = stage3 ]; then \
12342 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12343 else \
12344 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
12345 $(MAKE) stage3-start; \
12346 fi; \
12347 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12348 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12349@endif mpfr-bootstrap
108a6f8e 12350
2a4cbe27 12351
a90ef4bf
JM
12352.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
12353.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
12354maybe-all-stage4-mpfr:
12355maybe-clean-stage4-mpfr:
12356@if mpfr-bootstrap
12357maybe-all-stage4-mpfr: all-stage4-mpfr
12358all-stage4: all-stage4-mpfr
12359TARGET-stage4-mpfr = $(TARGET-mpfr)
12360all-stage4-mpfr: configure-stage4-mpfr
12361 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12362 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12364 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 12365 $(HOST_EXPORTS) \
a90ef4bf
JM
12366 $(POSTSTAGE1_HOST_EXPORTS) \
12367 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12368 \
a90ef4bf
JM
12369 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12370 CFLAGS="$(STAGE4_CFLAGS)" \
12371 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12372 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12373 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12374 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12375 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12376 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12377 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 12378 $(TARGET-stage4-mpfr)
2a4cbe27 12379
a90ef4bf
JM
12380maybe-clean-stage4-mpfr: clean-stage4-mpfr
12381clean-stage4: clean-stage4-mpfr
12382clean-stage4-mpfr:
12383 @if [ $(current_stage) = stage4 ]; then \
12384 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12385 else \
12386 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
12387 $(MAKE) stage4-start; \
12388 fi; \
12389 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12390 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12391@endif mpfr-bootstrap
2a4cbe27 12392
2a4cbe27 12393
a90ef4bf
JM
12394.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
12395.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
12396maybe-all-stageprofile-mpfr:
12397maybe-clean-stageprofile-mpfr:
12398@if mpfr-bootstrap
12399maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
12400all-stageprofile: all-stageprofile-mpfr
12401TARGET-stageprofile-mpfr = $(TARGET-mpfr)
12402all-stageprofile-mpfr: configure-stageprofile-mpfr
12403 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12404 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12406 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12407 $(HOST_EXPORTS) \
a90ef4bf
JM
12408 $(POSTSTAGE1_HOST_EXPORTS) \
12409 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12410 \
a90ef4bf
JM
12411 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12412 CFLAGS="$(STAGEprofile_CFLAGS)" \
12413 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12414 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12415 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12416 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12417 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12418 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12419 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 12420 $(TARGET-stageprofile-mpfr)
2a4cbe27 12421
a90ef4bf
JM
12422maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
12423clean-stageprofile: clean-stageprofile-mpfr
12424clean-stageprofile-mpfr:
12425 @if [ $(current_stage) = stageprofile ]; then \
12426 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12427 else \
12428 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
12429 $(MAKE) stageprofile-start; \
12430 fi; \
12431 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12432 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12433@endif mpfr-bootstrap
2a4cbe27 12434
a7254363 12435
a90ef4bf
JM
12436.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
12437.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
12438maybe-all-stagefeedback-mpfr:
12439maybe-clean-stagefeedback-mpfr:
12440@if mpfr-bootstrap
12441maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
12442all-stagefeedback: all-stagefeedback-mpfr
12443TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
12444all-stagefeedback-mpfr: configure-stagefeedback-mpfr
12445 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12446 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12448 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12449 $(HOST_EXPORTS) \
12450 $(POSTSTAGE1_HOST_EXPORTS) \
12451 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12452 \
a90ef4bf
JM
12453 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12454 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12455 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12456 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12457 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12458 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12459 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12460 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12461 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 12462 $(TARGET-stagefeedback-mpfr)
d545f33b 12463
a90ef4bf
JM
12464maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
12465clean-stagefeedback: clean-stagefeedback-mpfr
12466clean-stagefeedback-mpfr:
12467 @if [ $(current_stage) = stagefeedback ]; then \
12468 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12469 else \
12470 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
12471 $(MAKE) stagefeedback-start; \
12472 fi; \
12473 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12474 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12475@endif mpfr-bootstrap
d545f33b 12476
2a4cbe27 12477
a7254363 12478
d545f33b
PB
12479
12480
a90ef4bf
JM
12481.PHONY: check-mpfr maybe-check-mpfr
12482maybe-check-mpfr:
12483@if mpfr
12484maybe-check-mpfr: check-mpfr
2a4cbe27 12485
a90ef4bf 12486check-mpfr:
0aed8855 12487 @: $(MAKE); $(unstage)
4fa63067 12488 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 12490 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 12491 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12492 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 12493
a90ef4bf 12494@endif mpfr
2a4cbe27 12495
a90ef4bf
JM
12496.PHONY: install-mpfr maybe-install-mpfr
12497maybe-install-mpfr:
12498@if mpfr
12499maybe-install-mpfr: install-mpfr
2a4cbe27 12500
a90ef4bf 12501install-mpfr:
4fa63067 12502
a90ef4bf 12503@endif mpfr
4fa63067 12504
a90ef4bf
JM
12505.PHONY: install-strip-mpfr maybe-install-strip-mpfr
12506maybe-install-strip-mpfr:
12507@if mpfr
12508maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 12509
a90ef4bf 12510install-strip-mpfr:
9b980aa1 12511
a90ef4bf 12512@endif mpfr
9b980aa1 12513
56a8fe78 12514# Other targets (info, dvi, pdf, etc.)
4fa63067 12515
a90ef4bf
JM
12516.PHONY: maybe-info-mpfr info-mpfr
12517maybe-info-mpfr:
12518@if mpfr
12519maybe-info-mpfr: info-mpfr
4fa63067 12520
a90ef4bf
JM
12521info-mpfr: \
12522 configure-mpfr
12523 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12524 r=`${PWD_COMMAND}`; export r; \
12525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12526 $(HOST_EXPORTS) \
ce5e165e 12527 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12529 done; \
22121df0 12530 echo "Doing info in mpfr"; \
a90ef4bf 12531 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12534 "RANLIB=$${RANLIB}" \
0c24b341 12535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12536 info) \
2a4cbe27
NN
12537 || exit 1
12538
a90ef4bf 12539@endif mpfr
2a4cbe27 12540
a90ef4bf
JM
12541.PHONY: maybe-dvi-mpfr dvi-mpfr
12542maybe-dvi-mpfr:
12543@if mpfr
12544maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 12545
a90ef4bf
JM
12546dvi-mpfr: \
12547 configure-mpfr
12548 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12549 r=`${PWD_COMMAND}`; export r; \
12550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12551 $(HOST_EXPORTS) \
ce5e165e 12552 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12554 done; \
22121df0 12555 echo "Doing dvi in mpfr"; \
a90ef4bf 12556 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12559 "RANLIB=$${RANLIB}" \
0c24b341 12560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12561 dvi) \
2a4cbe27
NN
12562 || exit 1
12563
a90ef4bf 12564@endif mpfr
2a4cbe27 12565
a90ef4bf
JM
12566.PHONY: maybe-pdf-mpfr pdf-mpfr
12567maybe-pdf-mpfr:
12568@if mpfr
12569maybe-pdf-mpfr: pdf-mpfr
56a8fe78 12570
a90ef4bf
JM
12571pdf-mpfr: \
12572 configure-mpfr
12573 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
12574 r=`${PWD_COMMAND}`; export r; \
12575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12576 $(HOST_EXPORTS) \
ce5e165e 12577 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
12578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12579 done; \
22121df0 12580 echo "Doing pdf in mpfr"; \
a90ef4bf 12581 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
12582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12584 "RANLIB=$${RANLIB}" \
0c24b341 12585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12586 pdf) \
12587 || exit 1
12588
a90ef4bf 12589@endif mpfr
56a8fe78 12590
a90ef4bf
JM
12591.PHONY: maybe-html-mpfr html-mpfr
12592maybe-html-mpfr:
12593@if mpfr
12594maybe-html-mpfr: html-mpfr
6d389afc 12595
a90ef4bf
JM
12596html-mpfr: \
12597 configure-mpfr
12598 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
12599 r=`${PWD_COMMAND}`; export r; \
12600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 12601 $(HOST_EXPORTS) \
ce5e165e 12602 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
12603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12604 done; \
22121df0 12605 echo "Doing html in mpfr"; \
a90ef4bf 12606 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
12607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12609 "RANLIB=$${RANLIB}" \
0c24b341 12610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12611 html) \
12612 || exit 1
12613
a90ef4bf 12614@endif mpfr
6d389afc 12615
a90ef4bf
JM
12616.PHONY: maybe-TAGS-mpfr TAGS-mpfr
12617maybe-TAGS-mpfr:
12618@if mpfr
12619maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 12620
a90ef4bf
JM
12621TAGS-mpfr: \
12622 configure-mpfr
12623 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12624 r=`${PWD_COMMAND}`; export r; \
12625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12626 $(HOST_EXPORTS) \
ce5e165e 12627 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12629 done; \
22121df0 12630 echo "Doing TAGS in mpfr"; \
a90ef4bf 12631 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12634 "RANLIB=$${RANLIB}" \
0c24b341 12635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12636 TAGS) \
2a4cbe27
NN
12637 || exit 1
12638
a90ef4bf 12639@endif mpfr
2a4cbe27 12640
a90ef4bf
JM
12641.PHONY: maybe-install-info-mpfr install-info-mpfr
12642maybe-install-info-mpfr:
12643@if mpfr
12644maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 12645
a90ef4bf
JM
12646install-info-mpfr: \
12647 configure-mpfr \
12648 info-mpfr
12649 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12650 r=`${PWD_COMMAND}`; export r; \
12651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12652 $(HOST_EXPORTS) \
ce5e165e 12653 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12655 done; \
22121df0 12656 echo "Doing install-info in mpfr"; \
a90ef4bf 12657 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12660 "RANLIB=$${RANLIB}" \
0c24b341 12661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12662 install-info) \
2a4cbe27
NN
12663 || exit 1
12664
a90ef4bf 12665@endif mpfr
2a4cbe27 12666
a90ef4bf
JM
12667.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
12668maybe-install-pdf-mpfr:
12669@if mpfr
12670maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 12671
a90ef4bf
JM
12672install-pdf-mpfr: \
12673 configure-mpfr \
12674 pdf-mpfr
12675 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
12676 r=`${PWD_COMMAND}`; export r; \
12677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12678 $(HOST_EXPORTS) \
ce5e165e 12679 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
12680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12681 done; \
22121df0 12682 echo "Doing install-pdf in mpfr"; \
a90ef4bf 12683 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
12684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12686 "RANLIB=$${RANLIB}" \
0c24b341 12687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12688 install-pdf) \
12689 || exit 1
12690
a90ef4bf 12691@endif mpfr
a3ca38d2 12692
a90ef4bf
JM
12693.PHONY: maybe-install-html-mpfr install-html-mpfr
12694maybe-install-html-mpfr:
12695@if mpfr
12696maybe-install-html-mpfr: install-html-mpfr
108a6f8e 12697
a90ef4bf
JM
12698install-html-mpfr: \
12699 configure-mpfr \
12700 html-mpfr
12701 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
12702 r=`${PWD_COMMAND}`; export r; \
12703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12704 $(HOST_EXPORTS) \
ce5e165e 12705 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
12706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12707 done; \
22121df0 12708 echo "Doing install-html in mpfr"; \
a90ef4bf 12709 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
12710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12712 "RANLIB=$${RANLIB}" \
0c24b341 12713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12714 install-html) \
12715 || exit 1
12716
a90ef4bf 12717@endif mpfr
108a6f8e 12718
a90ef4bf
JM
12719.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12720maybe-installcheck-mpfr:
12721@if mpfr
12722maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12723
a90ef4bf
JM
12724installcheck-mpfr: \
12725 configure-mpfr
12726 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12727 r=`${PWD_COMMAND}`; export r; \
12728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12729 $(HOST_EXPORTS) \
ce5e165e 12730 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12732 done; \
22121df0 12733 echo "Doing installcheck in mpfr"; \
a90ef4bf 12734 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12737 "RANLIB=$${RANLIB}" \
0c24b341 12738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12739 installcheck) \
2a4cbe27
NN
12740 || exit 1
12741
a90ef4bf 12742@endif mpfr
2a4cbe27 12743
a90ef4bf
JM
12744.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12745maybe-mostlyclean-mpfr:
12746@if mpfr
12747maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12748
a90ef4bf
JM
12749mostlyclean-mpfr:
12750 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12751 r=`${PWD_COMMAND}`; export r; \
12752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12753 $(HOST_EXPORTS) \
ce5e165e 12754 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12756 done; \
22121df0 12757 echo "Doing mostlyclean in mpfr"; \
a90ef4bf 12758 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12761 "RANLIB=$${RANLIB}" \
0c24b341 12762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12763 mostlyclean) \
2a4cbe27
NN
12764 || exit 1
12765
a90ef4bf 12766@endif mpfr
2a4cbe27 12767
a90ef4bf
JM
12768.PHONY: maybe-clean-mpfr clean-mpfr
12769maybe-clean-mpfr:
12770@if mpfr
12771maybe-clean-mpfr: clean-mpfr
2a4cbe27 12772
a90ef4bf
JM
12773clean-mpfr:
12774 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12775 r=`${PWD_COMMAND}`; export r; \
12776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12777 $(HOST_EXPORTS) \
ce5e165e 12778 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12780 done; \
22121df0 12781 echo "Doing clean in mpfr"; \
a90ef4bf 12782 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12785 "RANLIB=$${RANLIB}" \
0c24b341 12786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12787 clean) \
2a4cbe27
NN
12788 || exit 1
12789
a90ef4bf 12790@endif mpfr
2a4cbe27 12791
a90ef4bf
JM
12792.PHONY: maybe-distclean-mpfr distclean-mpfr
12793maybe-distclean-mpfr:
12794@if mpfr
12795maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12796
a90ef4bf
JM
12797distclean-mpfr:
12798 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12799 r=`${PWD_COMMAND}`; export r; \
12800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12801 $(HOST_EXPORTS) \
ce5e165e 12802 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12804 done; \
22121df0 12805 echo "Doing distclean in mpfr"; \
a90ef4bf 12806 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12809 "RANLIB=$${RANLIB}" \
0c24b341 12810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12811 distclean) \
2a4cbe27
NN
12812 || exit 1
12813
a90ef4bf 12814@endif mpfr
2a4cbe27 12815
a90ef4bf
JM
12816.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12817maybe-maintainer-clean-mpfr:
12818@if mpfr
12819maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12820
a90ef4bf
JM
12821maintainer-clean-mpfr:
12822 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12823 r=`${PWD_COMMAND}`; export r; \
12824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12825 $(HOST_EXPORTS) \
ce5e165e 12826 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12828 done; \
22121df0 12829 echo "Doing maintainer-clean in mpfr"; \
a90ef4bf 12830 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12833 "RANLIB=$${RANLIB}" \
0c24b341 12834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12835 maintainer-clean) \
2a4cbe27
NN
12836 || exit 1
12837
a90ef4bf 12838@endif mpfr
2a4cbe27 12839
2a4cbe27 12840
a7254363 12841
a90ef4bf
JM
12842.PHONY: configure-mpc maybe-configure-mpc
12843maybe-configure-mpc:
4f0ef2d8 12844@if gcc-bootstrap
a90ef4bf 12845configure-mpc: stage_current
4f0ef2d8 12846@endif gcc-bootstrap
a90ef4bf
JM
12847@if mpc
12848maybe-configure-mpc: configure-mpc
12849configure-mpc:
c52c6897 12850 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12852 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
22121df0 12853 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
1f53ca9a 12854 $(HOST_EXPORTS) \
a90ef4bf
JM
12855 echo Configuring in $(HOST_SUBDIR)/mpc; \
12856 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12857 case $(srcdir) in \
b00612cc 12858 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12859 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12860 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12861 esac; \
1b6c0831
L
12862 module_srcdir=mpc; \
12863 $(SHELL) \
12864 $$s/$$module_srcdir/configure \
12865 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12866 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e3f56a99 12867 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12868 || exit 1
a90ef4bf 12869@endif mpc
d545f33b
PB
12870
12871
d3ed111c 12872
a90ef4bf
JM
12873.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12874maybe-configure-stage1-mpc:
12875@if mpc-bootstrap
12876maybe-configure-stage1-mpc: configure-stage1-mpc
12877configure-stage1-mpc:
12878 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12879 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12880 @r=`${PWD_COMMAND}`; export r; \
12881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12882 TFLAGS="$(STAGE1_TFLAGS)"; \
12883 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12884 $(HOST_EXPORTS) \
a90ef4bf
JM
12885 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12886 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12887 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12888 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc; \
12889 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12890 cd $(HOST_SUBDIR)/mpc || exit 1; \
12891 case $(srcdir) in \
12892 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12893 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12894 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12895 esac; \
1b6c0831
L
12896 module_srcdir=mpc; \
12897 $(SHELL) $$s/$$module_srcdir/configure \
12898 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12899 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12900 --target=${target_alias} \
12901 \
a90ef4bf 12902 $(STAGE1_CONFIGURE_FLAGS) \
e3f56a99 12903 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12904@endif mpc-bootstrap
d3ed111c 12905
a90ef4bf
JM
12906.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12907maybe-configure-stage2-mpc:
12908@if mpc-bootstrap
12909maybe-configure-stage2-mpc: configure-stage2-mpc
12910configure-stage2-mpc:
12911 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12912 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12913 @r=`${PWD_COMMAND}`; export r; \
12914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12915 TFLAGS="$(STAGE2_TFLAGS)"; \
12916 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12917 $(HOST_EXPORTS) \
a90ef4bf
JM
12918 $(POSTSTAGE1_HOST_EXPORTS) \
12919 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12920 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12921 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12922 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc; \
12923 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12924 cd $(HOST_SUBDIR)/mpc || exit 1; \
12925 case $(srcdir) in \
12926 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12927 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12928 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12929 esac; \
1b6c0831
L
12930 module_srcdir=mpc; \
12931 $(SHELL) $$s/$$module_srcdir/configure \
12932 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12933 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12934 --target=${target_alias} \
22121df0 12935 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12936 $(STAGE2_CONFIGURE_FLAGS) \
e3f56a99 12937 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12938@endif mpc-bootstrap
9b980aa1 12939
a90ef4bf
JM
12940.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12941maybe-configure-stage3-mpc:
12942@if mpc-bootstrap
12943maybe-configure-stage3-mpc: configure-stage3-mpc
12944configure-stage3-mpc:
12945 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12946 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
12947 @r=`${PWD_COMMAND}`; export r; \
12948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12949 TFLAGS="$(STAGE3_TFLAGS)"; \
12950 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 12951 $(HOST_EXPORTS) \
a90ef4bf
JM
12952 $(POSTSTAGE1_HOST_EXPORTS) \
12953 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12954 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12955 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12956 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc; \
12957 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12958 cd $(HOST_SUBDIR)/mpc || exit 1; \
12959 case $(srcdir) in \
12960 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12961 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12962 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12963 esac; \
1b6c0831
L
12964 module_srcdir=mpc; \
12965 $(SHELL) $$s/$$module_srcdir/configure \
12966 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12967 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12968 --target=${target_alias} \
22121df0 12969 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12970 $(STAGE3_CONFIGURE_FLAGS) \
e3f56a99 12971 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12972@endif mpc-bootstrap
d3ed111c 12973
a90ef4bf
JM
12974.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
12975maybe-configure-stage4-mpc:
12976@if mpc-bootstrap
12977maybe-configure-stage4-mpc: configure-stage4-mpc
12978configure-stage4-mpc:
12979 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12980 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12981 @r=`${PWD_COMMAND}`; export r; \
12982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12983 TFLAGS="$(STAGE4_TFLAGS)"; \
12984 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12985 $(HOST_EXPORTS) \
12986 $(POSTSTAGE1_HOST_EXPORTS) \
12987 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12988 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12989 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12990 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc; \
12991 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12992 cd $(HOST_SUBDIR)/mpc || exit 1; \
12993 case $(srcdir) in \
12994 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12995 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12996 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12997 esac; \
1b6c0831
L
12998 module_srcdir=mpc; \
12999 $(SHELL) $$s/$$module_srcdir/configure \
13000 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13001 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13002 --target=${target_alias} \
22121df0 13003 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13004 $(STAGE4_CONFIGURE_FLAGS) \
e3f56a99 13005 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13006@endif mpc-bootstrap
13007
13008.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
13009maybe-configure-stageprofile-mpc:
13010@if mpc-bootstrap
13011maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
13012configure-stageprofile-mpc:
13013 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13014 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13015 @r=`${PWD_COMMAND}`; export r; \
13016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13017 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13018 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13019 $(HOST_EXPORTS) \
13020 $(POSTSTAGE1_HOST_EXPORTS) \
13021 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13022 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13023 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13024 echo Configuring stage profile in $(HOST_SUBDIR)/mpc; \
13025 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13026 cd $(HOST_SUBDIR)/mpc || exit 1; \
13027 case $(srcdir) in \
13028 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13029 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13030 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13031 esac; \
1b6c0831
L
13032 module_srcdir=mpc; \
13033 $(SHELL) $$s/$$module_srcdir/configure \
13034 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13035 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13036 --target=${target_alias} \
22121df0 13037 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13038 $(STAGEprofile_CONFIGURE_FLAGS) \
e3f56a99 13039 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13040@endif mpc-bootstrap
13041
13042.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
13043maybe-configure-stagefeedback-mpc:
13044@if mpc-bootstrap
13045maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
13046configure-stagefeedback-mpc:
13047 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13048 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13049 @r=`${PWD_COMMAND}`; export r; \
13050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13051 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13052 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13053 $(HOST_EXPORTS) \
13054 $(POSTSTAGE1_HOST_EXPORTS) \
13055 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13056 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13057 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13058 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc; \
13059 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13060 cd $(HOST_SUBDIR)/mpc || exit 1; \
13061 case $(srcdir) in \
13062 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13063 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13064 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13065 esac; \
1b6c0831
L
13066 module_srcdir=mpc; \
13067 $(SHELL) $$s/$$module_srcdir/configure \
13068 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13069 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13070 --target=${target_alias} \
22121df0 13071 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13072 $(STAGEfeedback_CONFIGURE_FLAGS) \
e3f56a99 13073 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13074@endif mpc-bootstrap
13075
13076
13077
13078
13079
13080.PHONY: all-mpc maybe-all-mpc
13081maybe-all-mpc:
13082@if gcc-bootstrap
13083all-mpc: stage_current
13084@endif gcc-bootstrap
13085@if mpc
13086TARGET-mpc=all
13087maybe-all-mpc: all-mpc
13088all-mpc: configure-mpc
13089 @r=`${PWD_COMMAND}`; export r; \
13090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13091 $(HOST_EXPORTS) \
13092 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 13093 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13094 $(TARGET-mpc))
13095@endif mpc
13096
13097
13098
13099.PHONY: all-stage1-mpc maybe-all-stage1-mpc
13100.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
13101maybe-all-stage1-mpc:
13102maybe-clean-stage1-mpc:
13103@if mpc-bootstrap
13104maybe-all-stage1-mpc: all-stage1-mpc
13105all-stage1: all-stage1-mpc
13106TARGET-stage1-mpc = $(TARGET-mpc)
13107all-stage1-mpc: configure-stage1-mpc
13108 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13109 @r=`${PWD_COMMAND}`; export r; \
13110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13111 TFLAGS="$(STAGE1_TFLAGS)"; \
13112 $(HOST_EXPORTS) \
13113 cd $(HOST_SUBDIR)/mpc && \
05a13254 13114 \
a90ef4bf
JM
13115 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13116 CFLAGS="$(STAGE1_CFLAGS)" \
13117 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13118 LIBCFLAGS="$(LIBCFLAGS)" \
13119 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13120 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13121 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13122 $(EXTRA_HOST_FLAGS) \
13123 $(STAGE1_FLAGS_TO_PASS) \
05a13254 13124 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
13125 $(TARGET-stage1-mpc)
13126
13127maybe-clean-stage1-mpc: clean-stage1-mpc
13128clean-stage1: clean-stage1-mpc
13129clean-stage1-mpc:
13130 @if [ $(current_stage) = stage1 ]; then \
13131 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13132 else \
13133 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
13134 $(MAKE) stage1-start; \
13135 fi; \
13136 cd $(HOST_SUBDIR)/mpc && \
13137 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13138 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13139@endif mpc-bootstrap
13140
13141
13142.PHONY: all-stage2-mpc maybe-all-stage2-mpc
13143.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
13144maybe-all-stage2-mpc:
13145maybe-clean-stage2-mpc:
13146@if mpc-bootstrap
13147maybe-all-stage2-mpc: all-stage2-mpc
13148all-stage2: all-stage2-mpc
13149TARGET-stage2-mpc = $(TARGET-mpc)
13150all-stage2-mpc: configure-stage2-mpc
13151 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13152 @r=`${PWD_COMMAND}`; export r; \
13153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13154 TFLAGS="$(STAGE2_TFLAGS)"; \
13155 $(HOST_EXPORTS) \
13156 $(POSTSTAGE1_HOST_EXPORTS) \
13157 cd $(HOST_SUBDIR)/mpc && \
05a13254 13158 \
a90ef4bf
JM
13159 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13160 CFLAGS="$(STAGE2_CFLAGS)" \
13161 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13162 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13163 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13164 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13165 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13166 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13167 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
13168 $(TARGET-stage2-mpc)
13169
13170maybe-clean-stage2-mpc: clean-stage2-mpc
13171clean-stage2: clean-stage2-mpc
13172clean-stage2-mpc:
13173 @if [ $(current_stage) = stage2 ]; then \
13174 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13175 else \
13176 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
13177 $(MAKE) stage2-start; \
13178 fi; \
13179 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13180 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13181@endif mpc-bootstrap
13182
13183
13184.PHONY: all-stage3-mpc maybe-all-stage3-mpc
13185.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
13186maybe-all-stage3-mpc:
13187maybe-clean-stage3-mpc:
13188@if mpc-bootstrap
13189maybe-all-stage3-mpc: all-stage3-mpc
13190all-stage3: all-stage3-mpc
13191TARGET-stage3-mpc = $(TARGET-mpc)
13192all-stage3-mpc: configure-stage3-mpc
13193 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13194 @r=`${PWD_COMMAND}`; export r; \
13195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13196 TFLAGS="$(STAGE3_TFLAGS)"; \
13197 $(HOST_EXPORTS) \
13198 $(POSTSTAGE1_HOST_EXPORTS) \
13199 cd $(HOST_SUBDIR)/mpc && \
05a13254 13200 \
a90ef4bf
JM
13201 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13202 CFLAGS="$(STAGE3_CFLAGS)" \
13203 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13204 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13205 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13206 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13207 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13208 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13209 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
13210 $(TARGET-stage3-mpc)
13211
13212maybe-clean-stage3-mpc: clean-stage3-mpc
13213clean-stage3: clean-stage3-mpc
13214clean-stage3-mpc:
13215 @if [ $(current_stage) = stage3 ]; then \
13216 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13217 else \
13218 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
13219 $(MAKE) stage3-start; \
13220 fi; \
13221 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13222 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13223@endif mpc-bootstrap
13224
13225
13226.PHONY: all-stage4-mpc maybe-all-stage4-mpc
13227.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
13228maybe-all-stage4-mpc:
13229maybe-clean-stage4-mpc:
13230@if mpc-bootstrap
13231maybe-all-stage4-mpc: all-stage4-mpc
13232all-stage4: all-stage4-mpc
13233TARGET-stage4-mpc = $(TARGET-mpc)
13234all-stage4-mpc: configure-stage4-mpc
13235 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13236 @r=`${PWD_COMMAND}`; export r; \
13237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13238 TFLAGS="$(STAGE4_TFLAGS)"; \
13239 $(HOST_EXPORTS) \
13240 $(POSTSTAGE1_HOST_EXPORTS) \
13241 cd $(HOST_SUBDIR)/mpc && \
05a13254 13242 \
a90ef4bf
JM
13243 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13244 CFLAGS="$(STAGE4_CFLAGS)" \
13245 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13246 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13247 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13248 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13249 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13250 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13251 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
13252 $(TARGET-stage4-mpc)
13253
13254maybe-clean-stage4-mpc: clean-stage4-mpc
13255clean-stage4: clean-stage4-mpc
13256clean-stage4-mpc:
13257 @if [ $(current_stage) = stage4 ]; then \
13258 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13259 else \
13260 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
13261 $(MAKE) stage4-start; \
13262 fi; \
13263 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13264 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13265@endif mpc-bootstrap
13266
13267
13268.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
13269.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
13270maybe-all-stageprofile-mpc:
13271maybe-clean-stageprofile-mpc:
13272@if mpc-bootstrap
13273maybe-all-stageprofile-mpc: all-stageprofile-mpc
13274all-stageprofile: all-stageprofile-mpc
13275TARGET-stageprofile-mpc = $(TARGET-mpc)
13276all-stageprofile-mpc: configure-stageprofile-mpc
13277 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13278 @r=`${PWD_COMMAND}`; export r; \
13279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13280 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13281 $(HOST_EXPORTS) \
13282 $(POSTSTAGE1_HOST_EXPORTS) \
13283 cd $(HOST_SUBDIR)/mpc && \
05a13254 13284 \
a90ef4bf
JM
13285 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13286 CFLAGS="$(STAGEprofile_CFLAGS)" \
13287 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13288 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13289 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13290 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13291 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13292 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13293 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
13294 $(TARGET-stageprofile-mpc)
13295
13296maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
13297clean-stageprofile: clean-stageprofile-mpc
13298clean-stageprofile-mpc:
13299 @if [ $(current_stage) = stageprofile ]; then \
13300 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13301 else \
13302 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
13303 $(MAKE) stageprofile-start; \
13304 fi; \
13305 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13306 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13307@endif mpc-bootstrap
13308
13309
13310.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
13311.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
13312maybe-all-stagefeedback-mpc:
13313maybe-clean-stagefeedback-mpc:
13314@if mpc-bootstrap
13315maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
13316all-stagefeedback: all-stagefeedback-mpc
13317TARGET-stagefeedback-mpc = $(TARGET-mpc)
13318all-stagefeedback-mpc: configure-stagefeedback-mpc
13319 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13320 @r=`${PWD_COMMAND}`; export r; \
13321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13322 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13323 $(HOST_EXPORTS) \
13324 $(POSTSTAGE1_HOST_EXPORTS) \
13325 cd $(HOST_SUBDIR)/mpc && \
05a13254 13326 \
a90ef4bf
JM
13327 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13328 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13329 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13330 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13331 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13332 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13333 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13334 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13335 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
13336 $(TARGET-stagefeedback-mpc)
13337
13338maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
13339clean-stagefeedback: clean-stagefeedback-mpc
13340clean-stagefeedback-mpc:
13341 @if [ $(current_stage) = stagefeedback ]; then \
13342 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13343 else \
13344 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
13345 $(MAKE) stagefeedback-start; \
13346 fi; \
13347 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13348 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13349@endif mpc-bootstrap
13350
13351
13352
13353
13354
13355.PHONY: check-mpc maybe-check-mpc
13356maybe-check-mpc:
13357@if mpc
13358maybe-check-mpc: check-mpc
13359
13360check-mpc:
13361 @: $(MAKE); $(unstage)
13362 @r=`${PWD_COMMAND}`; export r; \
13363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 13364 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 13365 (cd $(HOST_SUBDIR)/mpc && \
f91ca6bc 13366 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf
JM
13367
13368@endif mpc
13369
13370.PHONY: install-mpc maybe-install-mpc
13371maybe-install-mpc:
13372@if mpc
13373maybe-install-mpc: install-mpc
13374
13375install-mpc:
13376
13377@endif mpc
13378
13379.PHONY: install-strip-mpc maybe-install-strip-mpc
13380maybe-install-strip-mpc:
13381@if mpc
13382maybe-install-strip-mpc: install-strip-mpc
13383
13384install-strip-mpc:
13385
13386@endif mpc
13387
13388# Other targets (info, dvi, pdf, etc.)
13389
13390.PHONY: maybe-info-mpc info-mpc
13391maybe-info-mpc:
13392@if mpc
13393maybe-info-mpc: info-mpc
13394
13395info-mpc: \
13396 configure-mpc
13397 @[ -f ./mpc/Makefile ] || exit 0; \
13398 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
13399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13400 $(HOST_EXPORTS) \
13401 for flag in $(EXTRA_HOST_FLAGS) ; do \
13402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13403 done; \
22121df0 13404 echo "Doing info in mpc"; \
a90ef4bf 13405 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13408 "RANLIB=$${RANLIB}" \
0c24b341 13409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13410 info) \
13411 || exit 1
d3ed111c 13412
a90ef4bf 13413@endif mpc
d3ed111c 13414
a90ef4bf
JM
13415.PHONY: maybe-dvi-mpc dvi-mpc
13416maybe-dvi-mpc:
13417@if mpc
13418maybe-dvi-mpc: dvi-mpc
d3ed111c 13419
a90ef4bf
JM
13420dvi-mpc: \
13421 configure-mpc
13422 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13423 r=`${PWD_COMMAND}`; export r; \
13424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13425 $(HOST_EXPORTS) \
13426 for flag in $(EXTRA_HOST_FLAGS) ; do \
13427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13428 done; \
22121df0 13429 echo "Doing dvi in mpc"; \
a90ef4bf 13430 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13433 "RANLIB=$${RANLIB}" \
0c24b341 13434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13435 dvi) \
13436 || exit 1
d3ed111c 13437
a90ef4bf 13438@endif mpc
d3ed111c 13439
a90ef4bf
JM
13440.PHONY: maybe-pdf-mpc pdf-mpc
13441maybe-pdf-mpc:
13442@if mpc
13443maybe-pdf-mpc: pdf-mpc
56a8fe78 13444
a90ef4bf
JM
13445pdf-mpc: \
13446 configure-mpc
13447 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13448 r=`${PWD_COMMAND}`; export r; \
13449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13450 $(HOST_EXPORTS) \
13451 for flag in $(EXTRA_HOST_FLAGS) ; do \
13452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13453 done; \
22121df0 13454 echo "Doing pdf in mpc"; \
a90ef4bf 13455 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13458 "RANLIB=$${RANLIB}" \
0c24b341 13459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13460 pdf) \
13461 || exit 1
56a8fe78 13462
a90ef4bf 13463@endif mpc
56a8fe78 13464
a90ef4bf
JM
13465.PHONY: maybe-html-mpc html-mpc
13466maybe-html-mpc:
13467@if mpc
13468maybe-html-mpc: html-mpc
6d389afc 13469
a90ef4bf
JM
13470html-mpc: \
13471 configure-mpc
13472 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
13473 r=`${PWD_COMMAND}`; export r; \
13474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
13475 $(HOST_EXPORTS) \
13476 for flag in $(EXTRA_HOST_FLAGS) ; do \
13477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13478 done; \
22121df0 13479 echo "Doing html in mpc"; \
a90ef4bf 13480 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
13481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13483 "RANLIB=$${RANLIB}" \
0c24b341 13484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13485 html) \
13486 || exit 1
13487
a90ef4bf 13488@endif mpc
d3ed111c 13489
a90ef4bf
JM
13490.PHONY: maybe-TAGS-mpc TAGS-mpc
13491maybe-TAGS-mpc:
13492@if mpc
13493maybe-TAGS-mpc: TAGS-mpc
d3ed111c 13494
a90ef4bf
JM
13495TAGS-mpc: \
13496 configure-mpc
13497 @[ -f ./mpc/Makefile ] || exit 0; \
13498 r=`${PWD_COMMAND}`; export r; \
13499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
13500 $(HOST_EXPORTS) \
13501 for flag in $(EXTRA_HOST_FLAGS) ; do \
13502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13503 done; \
22121df0 13504 echo "Doing TAGS in mpc"; \
a90ef4bf
JM
13505 (cd $(HOST_SUBDIR)/mpc && \
13506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13508 "RANLIB=$${RANLIB}" \
13509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
13510 TAGS) \
13511 || exit 1
13512
13513@endif mpc
13514
13515.PHONY: maybe-install-info-mpc install-info-mpc
13516maybe-install-info-mpc:
13517@if mpc
13518maybe-install-info-mpc: install-info-mpc
13519
13520install-info-mpc: \
13521 configure-mpc \
13522 info-mpc
13523 @[ -f ./mpc/Makefile ] || exit 0; \
13524 r=`${PWD_COMMAND}`; export r; \
13525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13526 $(HOST_EXPORTS) \
13527 for flag in $(EXTRA_HOST_FLAGS) ; do \
13528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13529 done; \
22121df0 13530 echo "Doing install-info in mpc"; \
a90ef4bf 13531 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13534 "RANLIB=$${RANLIB}" \
0c24b341 13535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13536 install-info) \
13537 || exit 1
d3ed111c 13538
a90ef4bf 13539@endif mpc
d3ed111c 13540
a90ef4bf
JM
13541.PHONY: maybe-install-pdf-mpc install-pdf-mpc
13542maybe-install-pdf-mpc:
13543@if mpc
13544maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 13545
a90ef4bf
JM
13546install-pdf-mpc: \
13547 configure-mpc \
13548 pdf-mpc
13549 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13550 r=`${PWD_COMMAND}`; export r; \
13551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13552 $(HOST_EXPORTS) \
13553 for flag in $(EXTRA_HOST_FLAGS) ; do \
13554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13555 done; \
22121df0 13556 echo "Doing install-pdf in mpc"; \
a90ef4bf 13557 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13560 "RANLIB=$${RANLIB}" \
0c24b341 13561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13562 install-pdf) \
13563 || exit 1
a3ca38d2 13564
a90ef4bf 13565@endif mpc
a3ca38d2 13566
a90ef4bf
JM
13567.PHONY: maybe-install-html-mpc install-html-mpc
13568maybe-install-html-mpc:
13569@if mpc
13570maybe-install-html-mpc: install-html-mpc
108a6f8e 13571
a90ef4bf
JM
13572install-html-mpc: \
13573 configure-mpc \
13574 html-mpc
13575 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
13576 r=`${PWD_COMMAND}`; export r; \
13577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13578 $(HOST_EXPORTS) \
13579 for flag in $(EXTRA_HOST_FLAGS) ; do \
13580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13581 done; \
22121df0 13582 echo "Doing install-html in mpc"; \
a90ef4bf 13583 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
13584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13586 "RANLIB=$${RANLIB}" \
0c24b341 13587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13588 install-html) \
13589 || exit 1
13590
a90ef4bf 13591@endif mpc
108a6f8e 13592
a90ef4bf
JM
13593.PHONY: maybe-installcheck-mpc installcheck-mpc
13594maybe-installcheck-mpc:
13595@if mpc
13596maybe-installcheck-mpc: installcheck-mpc
d3ed111c 13597
a90ef4bf
JM
13598installcheck-mpc: \
13599 configure-mpc
13600 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13601 r=`${PWD_COMMAND}`; export r; \
13602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13603 $(HOST_EXPORTS) \
13604 for flag in $(EXTRA_HOST_FLAGS) ; do \
13605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13606 done; \
22121df0 13607 echo "Doing installcheck in mpc"; \
a90ef4bf 13608 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13611 "RANLIB=$${RANLIB}" \
0c24b341 13612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13613 installcheck) \
13614 || exit 1
d3ed111c 13615
a90ef4bf 13616@endif mpc
d3ed111c 13617
a90ef4bf
JM
13618.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
13619maybe-mostlyclean-mpc:
13620@if mpc
13621maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 13622
a90ef4bf
JM
13623mostlyclean-mpc:
13624 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13625 r=`${PWD_COMMAND}`; export r; \
13626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13627 $(HOST_EXPORTS) \
13628 for flag in $(EXTRA_HOST_FLAGS) ; do \
13629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13630 done; \
22121df0 13631 echo "Doing mostlyclean in mpc"; \
a90ef4bf 13632 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13635 "RANLIB=$${RANLIB}" \
0c24b341 13636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13637 mostlyclean) \
13638 || exit 1
13639
a90ef4bf 13640@endif mpc
d3ed111c 13641
a90ef4bf
JM
13642.PHONY: maybe-clean-mpc clean-mpc
13643maybe-clean-mpc:
13644@if mpc
13645maybe-clean-mpc: clean-mpc
d3ed111c 13646
a90ef4bf
JM
13647clean-mpc:
13648 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13649 r=`${PWD_COMMAND}`; export r; \
13650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13651 $(HOST_EXPORTS) \
13652 for flag in $(EXTRA_HOST_FLAGS) ; do \
13653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13654 done; \
22121df0 13655 echo "Doing clean in mpc"; \
a90ef4bf 13656 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13659 "RANLIB=$${RANLIB}" \
0c24b341 13660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13661 clean) \
13662 || exit 1
13663
a90ef4bf 13664@endif mpc
d3ed111c 13665
a90ef4bf
JM
13666.PHONY: maybe-distclean-mpc distclean-mpc
13667maybe-distclean-mpc:
13668@if mpc
13669maybe-distclean-mpc: distclean-mpc
d3ed111c 13670
a90ef4bf
JM
13671distclean-mpc:
13672 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13673 r=`${PWD_COMMAND}`; export r; \
13674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13675 $(HOST_EXPORTS) \
13676 for flag in $(EXTRA_HOST_FLAGS) ; do \
13677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13678 done; \
22121df0 13679 echo "Doing distclean in mpc"; \
a90ef4bf 13680 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13683 "RANLIB=$${RANLIB}" \
0c24b341 13684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13685 distclean) \
13686 || exit 1
13687
a90ef4bf 13688@endif mpc
d3ed111c 13689
a90ef4bf
JM
13690.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
13691maybe-maintainer-clean-mpc:
13692@if mpc
13693maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 13694
a90ef4bf
JM
13695maintainer-clean-mpc:
13696 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13697 r=`${PWD_COMMAND}`; export r; \
13698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13699 $(HOST_EXPORTS) \
13700 for flag in $(EXTRA_HOST_FLAGS) ; do \
13701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13702 done; \
22121df0 13703 echo "Doing maintainer-clean in mpc"; \
a90ef4bf 13704 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13707 "RANLIB=$${RANLIB}" \
0c24b341 13708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13709 maintainer-clean) \
13710 || exit 1
13711
a90ef4bf 13712@endif mpc
d3ed111c
GK
13713
13714
a7254363 13715
7ec59b9e
L
13716.PHONY: configure-isl maybe-configure-isl
13717maybe-configure-isl:
4f0ef2d8 13718@if gcc-bootstrap
7ec59b9e 13719configure-isl: stage_current
4f0ef2d8 13720@endif gcc-bootstrap
7ec59b9e
L
13721@if isl
13722maybe-configure-isl: configure-isl
13723configure-isl:
c52c6897 13724 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e 13726 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
22121df0 13727 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
1f53ca9a 13728 $(HOST_EXPORTS) \
7ec59b9e
L
13729 echo Configuring in $(HOST_SUBDIR)/isl; \
13730 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13731 case $(srcdir) in \
b00612cc 13732 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13733 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13734 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13735 esac; \
1b6c0831
L
13736 module_srcdir=isl; \
13737 $(SHELL) \
13738 $$s/$$module_srcdir/configure \
13739 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13740 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13741 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13742 || exit 1
7ec59b9e 13743@endif isl
4fa63067 13744
a7254363
PB
13745
13746
7ec59b9e
L
13747.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13748maybe-configure-stage1-isl:
13749@if isl-bootstrap
13750maybe-configure-stage1-isl: configure-stage1-isl
13751configure-stage1-isl:
a90ef4bf 13752 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13753 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13754 @r=`${PWD_COMMAND}`; export r; \
13755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13756 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13757 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13758 $(HOST_EXPORTS) \
13759 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13760 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13761 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
13762 echo Configuring stage 1 in $(HOST_SUBDIR)/isl; \
13763 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13764 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13765 case $(srcdir) in \
13766 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13767 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13768 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13769 esac; \
1b6c0831
L
13770 module_srcdir=isl; \
13771 $(SHELL) $$s/$$module_srcdir/configure \
13772 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13773 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13774 --target=${target_alias} \
13775 \
a90ef4bf 13776 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13777 --disable-shared @extra_isl_gmp_configure_flags@
13778@endif isl-bootstrap
13779
13780.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13781maybe-configure-stage2-isl:
13782@if isl-bootstrap
13783maybe-configure-stage2-isl: configure-stage2-isl
13784configure-stage2-isl:
a90ef4bf 13785 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13786 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13787 @r=`${PWD_COMMAND}`; export r; \
13788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13789 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13790 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13791 $(HOST_EXPORTS) \
13792 $(POSTSTAGE1_HOST_EXPORTS) \
13793 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13794 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13795 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13796 echo Configuring stage 2 in $(HOST_SUBDIR)/isl; \
13797 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13798 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13799 case $(srcdir) in \
13800 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13801 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13802 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13803 esac; \
1b6c0831
L
13804 module_srcdir=isl; \
13805 $(SHELL) $$s/$$module_srcdir/configure \
13806 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13807 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13808 --target=${target_alias} \
22121df0 13809 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13810 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13811 --disable-shared @extra_isl_gmp_configure_flags@
13812@endif isl-bootstrap
13813
13814.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13815maybe-configure-stage3-isl:
13816@if isl-bootstrap
13817maybe-configure-stage3-isl: configure-stage3-isl
13818configure-stage3-isl:
a90ef4bf 13819 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13820 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13821 @r=`${PWD_COMMAND}`; export r; \
13822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13823 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13824 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13825 $(HOST_EXPORTS) \
13826 $(POSTSTAGE1_HOST_EXPORTS) \
13827 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13828 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13829 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13830 echo Configuring stage 3 in $(HOST_SUBDIR)/isl; \
13831 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13832 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13833 case $(srcdir) in \
13834 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13835 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13836 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13837 esac; \
1b6c0831
L
13838 module_srcdir=isl; \
13839 $(SHELL) $$s/$$module_srcdir/configure \
13840 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13841 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13842 --target=${target_alias} \
22121df0 13843 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13844 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13845 --disable-shared @extra_isl_gmp_configure_flags@
13846@endif isl-bootstrap
13847
13848.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13849maybe-configure-stage4-isl:
13850@if isl-bootstrap
13851maybe-configure-stage4-isl: configure-stage4-isl
13852configure-stage4-isl:
a90ef4bf 13853 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13854 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13855 @r=`${PWD_COMMAND}`; export r; \
13856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13857 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13858 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13859 $(HOST_EXPORTS) \
13860 $(POSTSTAGE1_HOST_EXPORTS) \
13861 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13862 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13863 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13864 echo Configuring stage 4 in $(HOST_SUBDIR)/isl; \
13865 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13866 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13867 case $(srcdir) in \
13868 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13869 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13870 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13871 esac; \
1b6c0831
L
13872 module_srcdir=isl; \
13873 $(SHELL) $$s/$$module_srcdir/configure \
13874 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13875 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13876 --target=${target_alias} \
22121df0 13877 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13878 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13879 --disable-shared @extra_isl_gmp_configure_flags@
13880@endif isl-bootstrap
13881
13882.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13883maybe-configure-stageprofile-isl:
13884@if isl-bootstrap
13885maybe-configure-stageprofile-isl: configure-stageprofile-isl
13886configure-stageprofile-isl:
a90ef4bf 13887 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13888 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13889 @r=`${PWD_COMMAND}`; export r; \
13890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13891 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13892 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13893 $(HOST_EXPORTS) \
13894 $(POSTSTAGE1_HOST_EXPORTS) \
13895 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13896 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13897 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13898 echo Configuring stage profile in $(HOST_SUBDIR)/isl; \
13899 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13900 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13901 case $(srcdir) in \
13902 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13903 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13904 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13905 esac; \
1b6c0831
L
13906 module_srcdir=isl; \
13907 $(SHELL) $$s/$$module_srcdir/configure \
13908 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13909 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13910 --target=${target_alias} \
22121df0 13911 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13912 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
13913 --disable-shared @extra_isl_gmp_configure_flags@
13914@endif isl-bootstrap
13915
13916.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
13917maybe-configure-stagefeedback-isl:
13918@if isl-bootstrap
13919maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
13920configure-stagefeedback-isl:
a90ef4bf 13921 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 13922 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13923 @r=`${PWD_COMMAND}`; export r; \
13924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13925 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 13926 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13927 $(HOST_EXPORTS) \
13928 $(POSTSTAGE1_HOST_EXPORTS) \
13929 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13930 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13931 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13932 echo Configuring stage feedback in $(HOST_SUBDIR)/isl; \
13933 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13934 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13935 case $(srcdir) in \
13936 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13937 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13938 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13939 esac; \
1b6c0831
L
13940 module_srcdir=isl; \
13941 $(SHELL) $$s/$$module_srcdir/configure \
13942 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13943 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13944 --target=${target_alias} \
22121df0 13945 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13946 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
13947 --disable-shared @extra_isl_gmp_configure_flags@
13948@endif isl-bootstrap
d545f33b 13949
4fa63067 13950
4fa63067
NN
13951
13952
4fa63067 13953
7ec59b9e
L
13954.PHONY: all-isl maybe-all-isl
13955maybe-all-isl:
a90ef4bf 13956@if gcc-bootstrap
7ec59b9e 13957all-isl: stage_current
a90ef4bf 13958@endif gcc-bootstrap
7ec59b9e
L
13959@if isl
13960TARGET-isl=all
13961maybe-all-isl: all-isl
13962all-isl: configure-isl
4fa63067
NN
13963 @r=`${PWD_COMMAND}`; export r; \
13964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13965 $(HOST_EXPORTS) \
7ec59b9e 13966 (cd $(HOST_SUBDIR)/isl && \
b3676d82 13967 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
13968 $(TARGET-isl))
13969@endif isl
13970
13971
13972
13973.PHONY: all-stage1-isl maybe-all-stage1-isl
13974.PHONY: clean-stage1-isl maybe-clean-stage1-isl
13975maybe-all-stage1-isl:
13976maybe-clean-stage1-isl:
13977@if isl-bootstrap
13978maybe-all-stage1-isl: all-stage1-isl
13979all-stage1: all-stage1-isl
13980TARGET-stage1-isl = $(TARGET-isl)
13981all-stage1-isl: configure-stage1-isl
a90ef4bf 13982 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
13983 @r=`${PWD_COMMAND}`; export r; \
13984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13985 TFLAGS="$(STAGE1_TFLAGS)"; \
13986 $(HOST_EXPORTS) \
7ec59b9e 13987 cd $(HOST_SUBDIR)/isl && \
05a13254 13988 \
a90ef4bf
JM
13989 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13990 CFLAGS="$(STAGE1_CFLAGS)" \
13991 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13992 LIBCFLAGS="$(LIBCFLAGS)" \
13993 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13994 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13995 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13996 $(EXTRA_HOST_FLAGS) \
13997 $(STAGE1_FLAGS_TO_PASS) V=1 \
05a13254 13998 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 13999 $(TARGET-stage1-isl)
9b980aa1 14000
7ec59b9e
L
14001maybe-clean-stage1-isl: clean-stage1-isl
14002clean-stage1: clean-stage1-isl
14003clean-stage1-isl:
a90ef4bf 14004 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 14005 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14006 else \
7ec59b9e 14007 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14008 $(MAKE) stage1-start; \
14009 fi; \
7ec59b9e 14010 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 14011 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14012 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14013@endif isl-bootstrap
14014
14015
14016.PHONY: all-stage2-isl maybe-all-stage2-isl
14017.PHONY: clean-stage2-isl maybe-clean-stage2-isl
14018maybe-all-stage2-isl:
14019maybe-clean-stage2-isl:
14020@if isl-bootstrap
14021maybe-all-stage2-isl: all-stage2-isl
14022all-stage2: all-stage2-isl
14023TARGET-stage2-isl = $(TARGET-isl)
14024all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
14025 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
14026 @r=`${PWD_COMMAND}`; export r; \
14027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14028 TFLAGS="$(STAGE2_TFLAGS)"; \
14029 $(HOST_EXPORTS) \
14030 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14031 cd $(HOST_SUBDIR)/isl && \
05a13254 14032 \
a90ef4bf
JM
14033 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14034 CFLAGS="$(STAGE2_CFLAGS)" \
14035 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
14036 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14037 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14038 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14039 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14040 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14041 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 14042 $(TARGET-stage2-isl)
a90ef4bf 14043
7ec59b9e
L
14044maybe-clean-stage2-isl: clean-stage2-isl
14045clean-stage2: clean-stage2-isl
14046clean-stage2-isl:
a90ef4bf 14047 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 14048 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14049 else \
7ec59b9e 14050 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14051 $(MAKE) stage2-start; \
14052 fi; \
7ec59b9e 14053 cd $(HOST_SUBDIR)/isl && \
b3676d82 14054 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14055@endif isl-bootstrap
14056
14057
14058.PHONY: all-stage3-isl maybe-all-stage3-isl
14059.PHONY: clean-stage3-isl maybe-clean-stage3-isl
14060maybe-all-stage3-isl:
14061maybe-clean-stage3-isl:
14062@if isl-bootstrap
14063maybe-all-stage3-isl: all-stage3-isl
14064all-stage3: all-stage3-isl
14065TARGET-stage3-isl = $(TARGET-isl)
14066all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
14067 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
14068 @r=`${PWD_COMMAND}`; export r; \
14069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14070 TFLAGS="$(STAGE3_TFLAGS)"; \
14071 $(HOST_EXPORTS) \
14072 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14073 cd $(HOST_SUBDIR)/isl && \
05a13254 14074 \
a90ef4bf
JM
14075 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14076 CFLAGS="$(STAGE3_CFLAGS)" \
14077 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
14078 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14079 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14080 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14081 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14082 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14083 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 14084 $(TARGET-stage3-isl)
a90ef4bf 14085
7ec59b9e
L
14086maybe-clean-stage3-isl: clean-stage3-isl
14087clean-stage3: clean-stage3-isl
14088clean-stage3-isl:
a90ef4bf 14089 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 14090 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14091 else \
7ec59b9e 14092 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14093 $(MAKE) stage3-start; \
14094 fi; \
7ec59b9e 14095 cd $(HOST_SUBDIR)/isl && \
b3676d82 14096 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14097@endif isl-bootstrap
14098
14099
14100.PHONY: all-stage4-isl maybe-all-stage4-isl
14101.PHONY: clean-stage4-isl maybe-clean-stage4-isl
14102maybe-all-stage4-isl:
14103maybe-clean-stage4-isl:
14104@if isl-bootstrap
14105maybe-all-stage4-isl: all-stage4-isl
14106all-stage4: all-stage4-isl
14107TARGET-stage4-isl = $(TARGET-isl)
14108all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
14109 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14110 @r=`${PWD_COMMAND}`; export r; \
14111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14112 TFLAGS="$(STAGE4_TFLAGS)"; \
14113 $(HOST_EXPORTS) \
14114 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14115 cd $(HOST_SUBDIR)/isl && \
05a13254 14116 \
a90ef4bf
JM
14117 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14118 CFLAGS="$(STAGE4_CFLAGS)" \
14119 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14120 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14121 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14122 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14123 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14124 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14125 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 14126 $(TARGET-stage4-isl)
a90ef4bf 14127
7ec59b9e
L
14128maybe-clean-stage4-isl: clean-stage4-isl
14129clean-stage4: clean-stage4-isl
14130clean-stage4-isl:
a90ef4bf 14131 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 14132 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14133 else \
7ec59b9e 14134 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14135 $(MAKE) stage4-start; \
14136 fi; \
7ec59b9e 14137 cd $(HOST_SUBDIR)/isl && \
b3676d82 14138 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14139@endif isl-bootstrap
14140
14141
14142.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
14143.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
14144maybe-all-stageprofile-isl:
14145maybe-clean-stageprofile-isl:
14146@if isl-bootstrap
14147maybe-all-stageprofile-isl: all-stageprofile-isl
14148all-stageprofile: all-stageprofile-isl
14149TARGET-stageprofile-isl = $(TARGET-isl)
14150all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
14151 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14152 @r=`${PWD_COMMAND}`; export r; \
14153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14154 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14155 $(HOST_EXPORTS) \
14156 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14157 cd $(HOST_SUBDIR)/isl && \
05a13254 14158 \
a90ef4bf
JM
14159 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14160 CFLAGS="$(STAGEprofile_CFLAGS)" \
14161 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14162 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14163 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14164 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14165 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14166 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14167 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 14168 $(TARGET-stageprofile-isl)
a90ef4bf 14169
7ec59b9e
L
14170maybe-clean-stageprofile-isl: clean-stageprofile-isl
14171clean-stageprofile: clean-stageprofile-isl
14172clean-stageprofile-isl:
a90ef4bf 14173 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 14174 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14175 else \
7ec59b9e 14176 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14177 $(MAKE) stageprofile-start; \
14178 fi; \
7ec59b9e 14179 cd $(HOST_SUBDIR)/isl && \
b3676d82 14180 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14181@endif isl-bootstrap
14182
14183
14184.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
14185.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
14186maybe-all-stagefeedback-isl:
14187maybe-clean-stagefeedback-isl:
14188@if isl-bootstrap
14189maybe-all-stagefeedback-isl: all-stagefeedback-isl
14190all-stagefeedback: all-stagefeedback-isl
14191TARGET-stagefeedback-isl = $(TARGET-isl)
14192all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
14193 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
14194 @r=`${PWD_COMMAND}`; export r; \
14195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14196 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14197 $(HOST_EXPORTS) \
14198 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14199 cd $(HOST_SUBDIR)/isl && \
05a13254 14200 \
a90ef4bf
JM
14201 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14202 CFLAGS="$(STAGEfeedback_CFLAGS)" \
14203 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14204 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14205 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14206 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14207 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14208 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14209 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 14210 $(TARGET-stagefeedback-isl)
a90ef4bf 14211
7ec59b9e
L
14212maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
14213clean-stagefeedback: clean-stagefeedback-isl
14214clean-stagefeedback-isl:
a90ef4bf 14215 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 14216 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14217 else \
7ec59b9e 14218 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14219 $(MAKE) stagefeedback-start; \
14220 fi; \
7ec59b9e 14221 cd $(HOST_SUBDIR)/isl && \
b3676d82 14222 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 14223@endif isl-bootstrap
a90ef4bf
JM
14224
14225
14226
14227
14228
7ec59b9e
L
14229.PHONY: check-isl maybe-check-isl
14230maybe-check-isl:
14231@if isl
14232maybe-check-isl: check-isl
a90ef4bf 14233
7ec59b9e 14234check-isl:
0aed8855 14235 @: $(MAKE); $(unstage)
a90ef4bf
JM
14236 @r=`${PWD_COMMAND}`; export r; \
14237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 14238 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
7ec59b9e 14239 (cd $(HOST_SUBDIR)/isl && \
f91ca6bc 14240 $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf 14241
7ec59b9e 14242@endif isl
a90ef4bf 14243
7ec59b9e
L
14244.PHONY: install-isl maybe-install-isl
14245maybe-install-isl:
14246@if isl
14247maybe-install-isl: install-isl
a90ef4bf 14248
7ec59b9e 14249install-isl:
a90ef4bf 14250
7ec59b9e 14251@endif isl
a90ef4bf 14252
7ec59b9e
L
14253.PHONY: install-strip-isl maybe-install-strip-isl
14254maybe-install-strip-isl:
14255@if isl
14256maybe-install-strip-isl: install-strip-isl
a90ef4bf 14257
7ec59b9e 14258install-strip-isl:
a90ef4bf 14259
7ec59b9e 14260@endif isl
a90ef4bf
JM
14261
14262# Other targets (info, dvi, pdf, etc.)
14263
7ec59b9e
L
14264.PHONY: maybe-info-isl info-isl
14265maybe-info-isl:
14266@if isl
14267maybe-info-isl: info-isl
a90ef4bf 14268
7ec59b9e
L
14269info-isl: \
14270 configure-isl
14271 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14272 r=`${PWD_COMMAND}`; export r; \
14273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14274 $(HOST_EXPORTS) \
7ec59b9e 14275 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14277 done; \
22121df0 14278 echo "Doing info in isl"; \
7ec59b9e 14279 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14282 "RANLIB=$${RANLIB}" \
0c24b341 14283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14284 info) \
2a4cbe27
NN
14285 || exit 1
14286
7ec59b9e 14287@endif isl
2a4cbe27 14288
7ec59b9e
L
14289.PHONY: maybe-dvi-isl dvi-isl
14290maybe-dvi-isl:
14291@if isl
14292maybe-dvi-isl: dvi-isl
2a4cbe27 14293
7ec59b9e
L
14294dvi-isl: \
14295 configure-isl
14296 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14297 r=`${PWD_COMMAND}`; export r; \
14298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14299 $(HOST_EXPORTS) \
7ec59b9e 14300 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14302 done; \
22121df0 14303 echo "Doing dvi in isl"; \
7ec59b9e 14304 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14307 "RANLIB=$${RANLIB}" \
0c24b341 14308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14309 dvi) \
2a4cbe27
NN
14310 || exit 1
14311
7ec59b9e 14312@endif isl
2a4cbe27 14313
7ec59b9e
L
14314.PHONY: maybe-pdf-isl pdf-isl
14315maybe-pdf-isl:
14316@if isl
14317maybe-pdf-isl: pdf-isl
56a8fe78 14318
7ec59b9e
L
14319pdf-isl: \
14320 configure-isl
14321 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
14322 r=`${PWD_COMMAND}`; export r; \
14323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14324 $(HOST_EXPORTS) \
7ec59b9e 14325 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
14326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14327 done; \
22121df0 14328 echo "Doing pdf in isl"; \
7ec59b9e 14329 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
14330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14332 "RANLIB=$${RANLIB}" \
0c24b341 14333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14334 pdf) \
14335 || exit 1
14336
7ec59b9e 14337@endif isl
56a8fe78 14338
7ec59b9e
L
14339.PHONY: maybe-html-isl html-isl
14340maybe-html-isl:
14341@if isl
14342maybe-html-isl: html-isl
6d389afc 14343
7ec59b9e
L
14344html-isl: \
14345 configure-isl
14346 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
14347 r=`${PWD_COMMAND}`; export r; \
14348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14349 $(HOST_EXPORTS) \
7ec59b9e 14350 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
14351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14352 done; \
22121df0 14353 echo "Doing html in isl"; \
7ec59b9e 14354 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
14355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14357 "RANLIB=$${RANLIB}" \
0c24b341 14358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14359 html) \
14360 || exit 1
14361
7ec59b9e 14362@endif isl
6d389afc 14363
7ec59b9e
L
14364.PHONY: maybe-TAGS-isl TAGS-isl
14365maybe-TAGS-isl:
14366@if isl
14367maybe-TAGS-isl: TAGS-isl
2a4cbe27 14368
7ec59b9e
L
14369TAGS-isl: \
14370 configure-isl
14371 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14372 r=`${PWD_COMMAND}`; export r; \
14373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14374 $(HOST_EXPORTS) \
7ec59b9e 14375 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14377 done; \
22121df0 14378 echo "Doing TAGS in isl"; \
7ec59b9e 14379 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14382 "RANLIB=$${RANLIB}" \
0c24b341 14383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14384 TAGS) \
2a4cbe27
NN
14385 || exit 1
14386
7ec59b9e 14387@endif isl
2a4cbe27 14388
7ec59b9e
L
14389.PHONY: maybe-install-info-isl install-info-isl
14390maybe-install-info-isl:
14391@if isl
14392maybe-install-info-isl: install-info-isl
2a4cbe27 14393
7ec59b9e
L
14394install-info-isl: \
14395 configure-isl \
14396 info-isl
14397 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14398 r=`${PWD_COMMAND}`; export r; \
14399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14400 $(HOST_EXPORTS) \
7ec59b9e 14401 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14403 done; \
22121df0 14404 echo "Doing install-info in isl"; \
7ec59b9e 14405 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14408 "RANLIB=$${RANLIB}" \
0c24b341 14409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14410 install-info) \
2a4cbe27
NN
14411 || exit 1
14412
7ec59b9e 14413@endif isl
2a4cbe27 14414
7ec59b9e
L
14415.PHONY: maybe-install-pdf-isl install-pdf-isl
14416maybe-install-pdf-isl:
14417@if isl
14418maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 14419
7ec59b9e
L
14420install-pdf-isl: \
14421 configure-isl \
14422 pdf-isl
14423 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
14424 r=`${PWD_COMMAND}`; export r; \
14425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14426 $(HOST_EXPORTS) \
7ec59b9e 14427 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
14428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14429 done; \
22121df0 14430 echo "Doing install-pdf in isl"; \
7ec59b9e 14431 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
14432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14434 "RANLIB=$${RANLIB}" \
0c24b341 14435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14436 install-pdf) \
14437 || exit 1
14438
7ec59b9e 14439@endif isl
a3ca38d2 14440
7ec59b9e
L
14441.PHONY: maybe-install-html-isl install-html-isl
14442maybe-install-html-isl:
14443@if isl
14444maybe-install-html-isl: install-html-isl
108a6f8e 14445
7ec59b9e
L
14446install-html-isl: \
14447 configure-isl \
14448 html-isl
14449 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
14450 r=`${PWD_COMMAND}`; export r; \
14451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14452 $(HOST_EXPORTS) \
7ec59b9e 14453 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
14454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14455 done; \
22121df0 14456 echo "Doing install-html in isl"; \
7ec59b9e 14457 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
14458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14460 "RANLIB=$${RANLIB}" \
0c24b341 14461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14462 install-html) \
14463 || exit 1
14464
7ec59b9e 14465@endif isl
108a6f8e 14466
7ec59b9e
L
14467.PHONY: maybe-installcheck-isl installcheck-isl
14468maybe-installcheck-isl:
14469@if isl
14470maybe-installcheck-isl: installcheck-isl
2a4cbe27 14471
7ec59b9e
L
14472installcheck-isl: \
14473 configure-isl
14474 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14475 r=`${PWD_COMMAND}`; export r; \
14476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14477 $(HOST_EXPORTS) \
7ec59b9e 14478 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14480 done; \
22121df0 14481 echo "Doing installcheck in isl"; \
7ec59b9e 14482 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14485 "RANLIB=$${RANLIB}" \
0c24b341 14486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14487 installcheck) \
2a4cbe27
NN
14488 || exit 1
14489
7ec59b9e 14490@endif isl
2a4cbe27 14491
7ec59b9e
L
14492.PHONY: maybe-mostlyclean-isl mostlyclean-isl
14493maybe-mostlyclean-isl:
14494@if isl
14495maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 14496
7ec59b9e
L
14497mostlyclean-isl:
14498 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14499 r=`${PWD_COMMAND}`; export r; \
14500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14501 $(HOST_EXPORTS) \
7ec59b9e 14502 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14504 done; \
22121df0 14505 echo "Doing mostlyclean in isl"; \
7ec59b9e 14506 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14509 "RANLIB=$${RANLIB}" \
0c24b341 14510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14511 mostlyclean) \
2a4cbe27
NN
14512 || exit 1
14513
7ec59b9e 14514@endif isl
2a4cbe27 14515
7ec59b9e
L
14516.PHONY: maybe-clean-isl clean-isl
14517maybe-clean-isl:
14518@if isl
14519maybe-clean-isl: clean-isl
2a4cbe27 14520
7ec59b9e
L
14521clean-isl:
14522 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14523 r=`${PWD_COMMAND}`; export r; \
14524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14525 $(HOST_EXPORTS) \
7ec59b9e 14526 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14528 done; \
22121df0 14529 echo "Doing clean in isl"; \
7ec59b9e 14530 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14533 "RANLIB=$${RANLIB}" \
0c24b341 14534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14535 clean) \
2a4cbe27
NN
14536 || exit 1
14537
7ec59b9e 14538@endif isl
2a4cbe27 14539
7ec59b9e
L
14540.PHONY: maybe-distclean-isl distclean-isl
14541maybe-distclean-isl:
14542@if isl
14543maybe-distclean-isl: distclean-isl
2a4cbe27 14544
7ec59b9e
L
14545distclean-isl:
14546 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14547 r=`${PWD_COMMAND}`; export r; \
14548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14549 $(HOST_EXPORTS) \
7ec59b9e 14550 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14552 done; \
22121df0 14553 echo "Doing distclean in isl"; \
7ec59b9e 14554 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14557 "RANLIB=$${RANLIB}" \
0c24b341 14558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14559 distclean) \
2a4cbe27
NN
14560 || exit 1
14561
7ec59b9e 14562@endif isl
2a4cbe27 14563
7ec59b9e
L
14564.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
14565maybe-maintainer-clean-isl:
14566@if isl
14567maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 14568
7ec59b9e
L
14569maintainer-clean-isl:
14570 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14571 r=`${PWD_COMMAND}`; export r; \
14572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14573 $(HOST_EXPORTS) \
7ec59b9e 14574 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14576 done; \
22121df0 14577 echo "Doing maintainer-clean in isl"; \
7ec59b9e 14578 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14581 "RANLIB=$${RANLIB}" \
0c24b341 14582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14583 maintainer-clean) \
2a4cbe27
NN
14584 || exit 1
14585
7ec59b9e 14586@endif isl
2a4cbe27 14587
2a4cbe27 14588
a7254363 14589
a90ef4bf
JM
14590.PHONY: configure-libelf maybe-configure-libelf
14591maybe-configure-libelf:
c52c6897 14592@if gcc-bootstrap
a90ef4bf 14593configure-libelf: stage_current
c52c6897 14594@endif gcc-bootstrap
a90ef4bf
JM
14595@if libelf
14596maybe-configure-libelf: configure-libelf
14597configure-libelf:
c52c6897
PB
14598 @r=`${PWD_COMMAND}`; export r; \
14599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14600 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
22121df0 14601 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
1f53ca9a 14602 $(HOST_EXPORTS) \
a90ef4bf
JM
14603 echo Configuring in $(HOST_SUBDIR)/libelf; \
14604 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14605 case $(srcdir) in \
b00612cc 14606 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14607 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14608 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14609 esac; \
1b6c0831
L
14610 module_srcdir=libelf; \
14611 $(SHELL) \
14612 $$s/$$module_srcdir/configure \
14613 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14614 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14615 --target=${target_alias} --disable-shared \
4fa63067 14616 || exit 1
a90ef4bf 14617@endif libelf
4fa63067 14618
a7254363
PB
14619
14620
a90ef4bf
JM
14621.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14622maybe-configure-stage1-libelf:
14623@if libelf-bootstrap
14624maybe-configure-stage1-libelf: configure-stage1-libelf
14625configure-stage1-libelf:
c52c6897 14626 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14627 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14628 @r=`${PWD_COMMAND}`; export r; \
14629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14630 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14631 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14632 $(HOST_EXPORTS) \
8ee82aff 14633 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14634 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14635 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
14636 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf; \
14637 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14638 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14639 case $(srcdir) in \
14640 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14641 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14642 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14643 esac; \
1b6c0831
L
14644 module_srcdir=libelf; \
14645 $(SHELL) $$s/$$module_srcdir/configure \
14646 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14647 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14648 --target=${target_alias} \
14649 \
a90ef4bf
JM
14650 $(STAGE1_CONFIGURE_FLAGS) \
14651 --disable-shared
14652@endif libelf-bootstrap
d545f33b 14653
a90ef4bf
JM
14654.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14655maybe-configure-stage2-libelf:
14656@if libelf-bootstrap
14657maybe-configure-stage2-libelf: configure-stage2-libelf
14658configure-stage2-libelf:
c52c6897 14659 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14660 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14661 @r=`${PWD_COMMAND}`; export r; \
14662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14663 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14664 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14665 $(HOST_EXPORTS) \
1b05fbbd 14666 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14667 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14668 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14669 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14670 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf; \
14671 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14672 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14673 case $(srcdir) in \
14674 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14675 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14676 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14677 esac; \
1b6c0831
L
14678 module_srcdir=libelf; \
14679 $(SHELL) $$s/$$module_srcdir/configure \
14680 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14681 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14682 --target=${target_alias} \
22121df0 14683 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14684 $(STAGE2_CONFIGURE_FLAGS) \
14685 --disable-shared
14686@endif libelf-bootstrap
8520c408 14687
a90ef4bf
JM
14688.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14689maybe-configure-stage3-libelf:
14690@if libelf-bootstrap
14691maybe-configure-stage3-libelf: configure-stage3-libelf
14692configure-stage3-libelf:
c52c6897 14693 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14694 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14695 @r=`${PWD_COMMAND}`; export r; \
14696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14697 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14698 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14699 $(HOST_EXPORTS) \
1b05fbbd 14700 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14701 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14702 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14703 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14704 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf; \
14705 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14706 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14707 case $(srcdir) in \
14708 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14709 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14710 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14711 esac; \
1b6c0831
L
14712 module_srcdir=libelf; \
14713 $(SHELL) $$s/$$module_srcdir/configure \
14714 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14715 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14716 --target=${target_alias} \
22121df0 14717 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14718 $(STAGE3_CONFIGURE_FLAGS) \
14719 --disable-shared
14720@endif libelf-bootstrap
8520c408 14721
a90ef4bf
JM
14722.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14723maybe-configure-stage4-libelf:
14724@if libelf-bootstrap
14725maybe-configure-stage4-libelf: configure-stage4-libelf
14726configure-stage4-libelf:
c52c6897 14727 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14728 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14729 @r=`${PWD_COMMAND}`; export r; \
14730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14731 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14732 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14733 $(HOST_EXPORTS) \
1b05fbbd 14734 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14735 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14736 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14737 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14738 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf; \
14739 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14740 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14741 case $(srcdir) in \
14742 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14743 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14744 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14745 esac; \
1b6c0831
L
14746 module_srcdir=libelf; \
14747 $(SHELL) $$s/$$module_srcdir/configure \
14748 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14749 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14750 --target=${target_alias} \
22121df0 14751 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14752 $(STAGE4_CONFIGURE_FLAGS) \
14753 --disable-shared
14754@endif libelf-bootstrap
d545f33b 14755
a90ef4bf
JM
14756.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14757maybe-configure-stageprofile-libelf:
14758@if libelf-bootstrap
14759maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14760configure-stageprofile-libelf:
c52c6897 14761 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14762 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14763 @r=`${PWD_COMMAND}`; export r; \
14764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14765 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14766 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14767 $(HOST_EXPORTS) \
1b05fbbd
AO
14768 $(POSTSTAGE1_HOST_EXPORTS) \
14769 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14770 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14771 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14772 echo Configuring stage profile in $(HOST_SUBDIR)/libelf; \
14773 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14774 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14775 case $(srcdir) in \
14776 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14777 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14778 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14779 esac; \
1b6c0831
L
14780 module_srcdir=libelf; \
14781 $(SHELL) $$s/$$module_srcdir/configure \
14782 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14783 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14784 --target=${target_alias} \
22121df0 14785 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14786 $(STAGEprofile_CONFIGURE_FLAGS) \
14787 --disable-shared
14788@endif libelf-bootstrap
d545f33b 14789
a90ef4bf
JM
14790.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14791maybe-configure-stagefeedback-libelf:
14792@if libelf-bootstrap
14793maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14794configure-stagefeedback-libelf:
c52c6897 14795 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14796 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14797 @r=`${PWD_COMMAND}`; export r; \
14798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14799 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14800 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14801 $(HOST_EXPORTS) \
1b05fbbd
AO
14802 $(POSTSTAGE1_HOST_EXPORTS) \
14803 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14804 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14805 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14806 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf; \
14807 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14808 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14809 case $(srcdir) in \
14810 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14811 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14812 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14813 esac; \
1b6c0831
L
14814 module_srcdir=libelf; \
14815 $(SHELL) $$s/$$module_srcdir/configure \
14816 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14817 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14818 --target=${target_alias} \
22121df0 14819 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14820 $(STAGEfeedback_CONFIGURE_FLAGS) \
14821 --disable-shared
14822@endif libelf-bootstrap
d545f33b
PB
14823
14824
14825
14826
14827
a90ef4bf
JM
14828.PHONY: all-libelf maybe-all-libelf
14829maybe-all-libelf:
4f0ef2d8 14830@if gcc-bootstrap
a90ef4bf 14831all-libelf: stage_current
4f0ef2d8 14832@endif gcc-bootstrap
a90ef4bf
JM
14833@if libelf
14834TARGET-libelf=all
14835maybe-all-libelf: all-libelf
14836all-libelf: configure-libelf
c52c6897 14837 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14839 $(HOST_EXPORTS) \
a90ef4bf 14840 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14841 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14842 $(TARGET-libelf))
14843@endif libelf
4fa63067 14844
a7254363 14845
d545f33b 14846
a90ef4bf
JM
14847.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14848.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14849maybe-all-stage1-libelf:
14850maybe-clean-stage1-libelf:
14851@if libelf-bootstrap
14852maybe-all-stage1-libelf: all-stage1-libelf
14853all-stage1: all-stage1-libelf
14854TARGET-stage1-libelf = $(TARGET-libelf)
14855all-stage1-libelf: configure-stage1-libelf
c52c6897 14856 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14857 @r=`${PWD_COMMAND}`; export r; \
14858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14859 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 14860 $(HOST_EXPORTS) \
a90ef4bf 14861 cd $(HOST_SUBDIR)/libelf && \
05a13254 14862 \
7f6ef0c0 14863 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14864 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14865 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14866 LIBCFLAGS="$(LIBCFLAGS)" \
14867 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14868 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14869 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14870 $(EXTRA_HOST_FLAGS) \
14871 $(STAGE1_FLAGS_TO_PASS) \
05a13254 14872 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14873 $(TARGET-stage1-libelf)
d545f33b 14874
a90ef4bf
JM
14875maybe-clean-stage1-libelf: clean-stage1-libelf
14876clean-stage1: clean-stage1-libelf
14877clean-stage1-libelf:
9dbaa842 14878 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14879 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14880 else \
a90ef4bf 14881 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14882 $(MAKE) stage1-start; \
14883 fi; \
a90ef4bf 14884 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14885 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14886 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14887@endif libelf-bootstrap
d545f33b
PB
14888
14889
a90ef4bf
JM
14890.PHONY: all-stage2-libelf maybe-all-stage2-libelf
14891.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
14892maybe-all-stage2-libelf:
14893maybe-clean-stage2-libelf:
14894@if libelf-bootstrap
14895maybe-all-stage2-libelf: all-stage2-libelf
14896all-stage2: all-stage2-libelf
14897TARGET-stage2-libelf = $(TARGET-libelf)
14898all-stage2-libelf: configure-stage2-libelf
c52c6897 14899 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14900 @r=`${PWD_COMMAND}`; export r; \
14901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14902 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 14903 $(HOST_EXPORTS) \
1f53ca9a 14904 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14905 cd $(HOST_SUBDIR)/libelf && \
05a13254 14906 \
7f6ef0c0 14907 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14908 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 14909 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
14910 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14911 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14912 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14913 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14914 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14915 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14916 $(TARGET-stage2-libelf)
d545f33b 14917
a90ef4bf
JM
14918maybe-clean-stage2-libelf: clean-stage2-libelf
14919clean-stage2: clean-stage2-libelf
14920clean-stage2-libelf:
9dbaa842 14921 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 14922 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14923 else \
a90ef4bf 14924 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14925 $(MAKE) stage2-start; \
14926 fi; \
a90ef4bf 14927 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14928 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14929@endif libelf-bootstrap
d545f33b
PB
14930
14931
a90ef4bf
JM
14932.PHONY: all-stage3-libelf maybe-all-stage3-libelf
14933.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
14934maybe-all-stage3-libelf:
14935maybe-clean-stage3-libelf:
14936@if libelf-bootstrap
14937maybe-all-stage3-libelf: all-stage3-libelf
14938all-stage3: all-stage3-libelf
14939TARGET-stage3-libelf = $(TARGET-libelf)
14940all-stage3-libelf: configure-stage3-libelf
c52c6897 14941 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
14942 @r=`${PWD_COMMAND}`; export r; \
14943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14944 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 14945 $(HOST_EXPORTS) \
1f53ca9a 14946 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14947 cd $(HOST_SUBDIR)/libelf && \
05a13254 14948 \
7f6ef0c0 14949 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14950 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 14951 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
14952 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14953 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14954 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14955 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14956 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14957 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14958 $(TARGET-stage3-libelf)
d545f33b 14959
a90ef4bf
JM
14960maybe-clean-stage3-libelf: clean-stage3-libelf
14961clean-stage3: clean-stage3-libelf
14962clean-stage3-libelf:
9dbaa842 14963 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 14964 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14965 else \
a90ef4bf 14966 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14967 $(MAKE) stage3-start; \
14968 fi; \
a90ef4bf 14969 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14970 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14971@endif libelf-bootstrap
d545f33b
PB
14972
14973
a90ef4bf
JM
14974.PHONY: all-stage4-libelf maybe-all-stage4-libelf
14975.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
14976maybe-all-stage4-libelf:
14977maybe-clean-stage4-libelf:
14978@if libelf-bootstrap
14979maybe-all-stage4-libelf: all-stage4-libelf
14980all-stage4: all-stage4-libelf
14981TARGET-stage4-libelf = $(TARGET-libelf)
14982all-stage4-libelf: configure-stage4-libelf
c52c6897 14983 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
14984 @r=`${PWD_COMMAND}`; export r; \
14985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14986 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 14987 $(HOST_EXPORTS) \
1f53ca9a 14988 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14989 cd $(HOST_SUBDIR)/libelf && \
05a13254 14990 \
7f6ef0c0 14991 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14992 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 14993 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 14994 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
14995 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14996 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14997 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14998 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14999 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 15000 $(TARGET-stage4-libelf)
d545f33b 15001
a90ef4bf
JM
15002maybe-clean-stage4-libelf: clean-stage4-libelf
15003clean-stage4: clean-stage4-libelf
15004clean-stage4-libelf:
9dbaa842 15005 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 15006 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15007 else \
a90ef4bf 15008 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15009 $(MAKE) stage4-start; \
15010 fi; \
a90ef4bf 15011 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15012 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15013@endif libelf-bootstrap
d545f33b
PB
15014
15015
a90ef4bf
JM
15016.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
15017.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
15018maybe-all-stageprofile-libelf:
15019maybe-clean-stageprofile-libelf:
15020@if libelf-bootstrap
15021maybe-all-stageprofile-libelf: all-stageprofile-libelf
15022all-stageprofile: all-stageprofile-libelf
15023TARGET-stageprofile-libelf = $(TARGET-libelf)
15024all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 15025 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
15026 @r=`${PWD_COMMAND}`; export r; \
15027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15028 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 15029 $(HOST_EXPORTS) \
1f53ca9a 15030 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15031 cd $(HOST_SUBDIR)/libelf && \
05a13254 15032 \
7f6ef0c0 15033 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15034 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 15035 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
15036 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15037 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15038 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15039 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15040 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15041 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 15042 $(TARGET-stageprofile-libelf)
d545f33b 15043
a90ef4bf
JM
15044maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
15045clean-stageprofile: clean-stageprofile-libelf
15046clean-stageprofile-libelf:
9dbaa842 15047 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 15048 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15049 else \
a90ef4bf 15050 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15051 $(MAKE) stageprofile-start; \
15052 fi; \
a90ef4bf 15053 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15054 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15055@endif libelf-bootstrap
d545f33b
PB
15056
15057
a90ef4bf
JM
15058.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
15059.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
15060maybe-all-stagefeedback-libelf:
15061maybe-clean-stagefeedback-libelf:
15062@if libelf-bootstrap
15063maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
15064all-stagefeedback: all-stagefeedback-libelf
15065TARGET-stagefeedback-libelf = $(TARGET-libelf)
15066all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 15067 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
15068 @r=`${PWD_COMMAND}`; export r; \
15069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15070 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 15071 $(HOST_EXPORTS) \
1f53ca9a 15072 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15073 cd $(HOST_SUBDIR)/libelf && \
05a13254 15074 \
7f6ef0c0 15075 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15076 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 15077 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
15078 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15079 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15080 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15081 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15082 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15083 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15084 $(TARGET-stagefeedback-libelf)
d545f33b 15085
a90ef4bf
JM
15086maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
15087clean-stagefeedback: clean-stagefeedback-libelf
15088clean-stagefeedback-libelf:
9dbaa842 15089 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 15090 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15091 else \
a90ef4bf 15092 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15093 $(MAKE) stagefeedback-start; \
15094 fi; \
a90ef4bf 15095 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15096 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15097@endif libelf-bootstrap
d545f33b
PB
15098
15099
15100
15101
15102
a90ef4bf
JM
15103.PHONY: check-libelf maybe-check-libelf
15104maybe-check-libelf:
15105@if libelf
15106maybe-check-libelf: check-libelf
4fa63067 15107
a90ef4bf 15108check-libelf:
0aed8855 15109 @: $(MAKE); $(unstage)
4fa63067
NN
15110 @r=`${PWD_COMMAND}`; export r; \
15111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15112 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15113 (cd $(HOST_SUBDIR)/libelf && \
f91ca6bc 15114 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15115
a90ef4bf 15116@endif libelf
4fa63067 15117
a90ef4bf
JM
15118.PHONY: install-libelf maybe-install-libelf
15119maybe-install-libelf:
15120@if libelf
15121maybe-install-libelf: install-libelf
4fa63067 15122
a90ef4bf 15123install-libelf:
4fa63067 15124
a90ef4bf 15125@endif libelf
4fa63067 15126
a90ef4bf
JM
15127.PHONY: install-strip-libelf maybe-install-strip-libelf
15128maybe-install-strip-libelf:
15129@if libelf
15130maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15131
a90ef4bf 15132install-strip-libelf:
9b980aa1 15133
a90ef4bf 15134@endif libelf
9b980aa1 15135
56a8fe78 15136# Other targets (info, dvi, pdf, etc.)
4fa63067 15137
a90ef4bf
JM
15138.PHONY: maybe-info-libelf info-libelf
15139maybe-info-libelf:
15140@if libelf
15141maybe-info-libelf: info-libelf
4fa63067 15142
a90ef4bf
JM
15143info-libelf: \
15144 configure-libelf
15145 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15146 r=`${PWD_COMMAND}`; export r; \
15147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15148 $(HOST_EXPORTS) \
a90ef4bf 15149 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15151 done; \
22121df0 15152 echo "Doing info in libelf"; \
a90ef4bf 15153 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15156 "RANLIB=$${RANLIB}" \
0c24b341 15157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15158 info) \
2a4cbe27
NN
15159 || exit 1
15160
a90ef4bf 15161@endif libelf
2a4cbe27 15162
a90ef4bf
JM
15163.PHONY: maybe-dvi-libelf dvi-libelf
15164maybe-dvi-libelf:
15165@if libelf
15166maybe-dvi-libelf: dvi-libelf
2a4cbe27 15167
a90ef4bf
JM
15168dvi-libelf: \
15169 configure-libelf
15170 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15171 r=`${PWD_COMMAND}`; export r; \
15172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15173 $(HOST_EXPORTS) \
a90ef4bf 15174 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15176 done; \
22121df0 15177 echo "Doing dvi in libelf"; \
a90ef4bf 15178 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15181 "RANLIB=$${RANLIB}" \
0c24b341 15182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15183 dvi) \
2a4cbe27
NN
15184 || exit 1
15185
a90ef4bf 15186@endif libelf
2a4cbe27 15187
a90ef4bf
JM
15188.PHONY: maybe-pdf-libelf pdf-libelf
15189maybe-pdf-libelf:
15190@if libelf
15191maybe-pdf-libelf: pdf-libelf
56a8fe78 15192
a90ef4bf
JM
15193pdf-libelf: \
15194 configure-libelf
15195 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15196 r=`${PWD_COMMAND}`; export r; \
15197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15198 $(HOST_EXPORTS) \
a90ef4bf 15199 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15201 done; \
22121df0 15202 echo "Doing pdf in libelf"; \
a90ef4bf 15203 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15206 "RANLIB=$${RANLIB}" \
0c24b341 15207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15208 pdf) \
15209 || exit 1
15210
a90ef4bf 15211@endif libelf
56a8fe78 15212
a90ef4bf
JM
15213.PHONY: maybe-html-libelf html-libelf
15214maybe-html-libelf:
15215@if libelf
15216maybe-html-libelf: html-libelf
6d389afc 15217
a90ef4bf
JM
15218html-libelf: \
15219 configure-libelf
15220 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15221 r=`${PWD_COMMAND}`; export r; \
15222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15223 $(HOST_EXPORTS) \
a90ef4bf 15224 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15226 done; \
22121df0 15227 echo "Doing html in libelf"; \
a90ef4bf 15228 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15231 "RANLIB=$${RANLIB}" \
0c24b341 15232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15233 html) \
15234 || exit 1
15235
a90ef4bf 15236@endif libelf
6d389afc 15237
a90ef4bf
JM
15238.PHONY: maybe-TAGS-libelf TAGS-libelf
15239maybe-TAGS-libelf:
15240@if libelf
15241maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15242
a90ef4bf
JM
15243TAGS-libelf: \
15244 configure-libelf
15245 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15246 r=`${PWD_COMMAND}`; export r; \
15247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15248 $(HOST_EXPORTS) \
a90ef4bf 15249 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15251 done; \
22121df0 15252 echo "Doing TAGS in libelf"; \
a90ef4bf 15253 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15256 "RANLIB=$${RANLIB}" \
0c24b341 15257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15258 TAGS) \
2a4cbe27
NN
15259 || exit 1
15260
a90ef4bf 15261@endif libelf
2a4cbe27 15262
a90ef4bf
JM
15263.PHONY: maybe-install-info-libelf install-info-libelf
15264maybe-install-info-libelf:
15265@if libelf
15266maybe-install-info-libelf: install-info-libelf
a2592b1b 15267
a90ef4bf
JM
15268install-info-libelf: \
15269 configure-libelf \
15270 info-libelf
15271 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15272 r=`${PWD_COMMAND}`; export r; \
15273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15274 $(HOST_EXPORTS) \
a90ef4bf 15275 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15277 done; \
22121df0 15278 echo "Doing install-info in libelf"; \
a90ef4bf 15279 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15282 "RANLIB=$${RANLIB}" \
0c24b341 15283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15284 install-info) \
a2592b1b
DD
15285 || exit 1
15286
a90ef4bf 15287@endif libelf
a2592b1b 15288
a90ef4bf
JM
15289.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15290maybe-install-pdf-libelf:
15291@if libelf
15292maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15293
a90ef4bf
JM
15294install-pdf-libelf: \
15295 configure-libelf \
15296 pdf-libelf
15297 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15298 r=`${PWD_COMMAND}`; export r; \
15299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15300 $(HOST_EXPORTS) \
a90ef4bf 15301 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15303 done; \
22121df0 15304 echo "Doing install-pdf in libelf"; \
a90ef4bf 15305 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15308 "RANLIB=$${RANLIB}" \
0c24b341 15309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15310 install-pdf) \
15311 || exit 1
15312
a90ef4bf 15313@endif libelf
a3ca38d2 15314
a90ef4bf
JM
15315.PHONY: maybe-install-html-libelf install-html-libelf
15316maybe-install-html-libelf:
15317@if libelf
15318maybe-install-html-libelf: install-html-libelf
108a6f8e 15319
a90ef4bf
JM
15320install-html-libelf: \
15321 configure-libelf \
15322 html-libelf
15323 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15324 r=`${PWD_COMMAND}`; export r; \
15325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15326 $(HOST_EXPORTS) \
a90ef4bf 15327 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15329 done; \
22121df0 15330 echo "Doing install-html in libelf"; \
a90ef4bf 15331 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
15332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15334 "RANLIB=$${RANLIB}" \
0c24b341 15335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15336 install-html) \
15337 || exit 1
15338
a90ef4bf 15339@endif libelf
108a6f8e 15340
a90ef4bf
JM
15341.PHONY: maybe-installcheck-libelf installcheck-libelf
15342maybe-installcheck-libelf:
15343@if libelf
15344maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15345
a90ef4bf
JM
15346installcheck-libelf: \
15347 configure-libelf
15348 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15349 r=`${PWD_COMMAND}`; export r; \
15350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15351 $(HOST_EXPORTS) \
a90ef4bf 15352 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15354 done; \
22121df0 15355 echo "Doing installcheck in libelf"; \
a90ef4bf 15356 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15359 "RANLIB=$${RANLIB}" \
0c24b341 15360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15361 installcheck) \
4fa63067 15362 || exit 1
2a4cbe27 15363
a90ef4bf 15364@endif libelf
4fa63067 15365
a90ef4bf
JM
15366.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15367maybe-mostlyclean-libelf:
15368@if libelf
15369maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15370
a90ef4bf
JM
15371mostlyclean-libelf:
15372 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15373 r=`${PWD_COMMAND}`; export r; \
15374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15375 $(HOST_EXPORTS) \
a90ef4bf 15376 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15378 done; \
22121df0 15379 echo "Doing mostlyclean in libelf"; \
a90ef4bf 15380 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15383 "RANLIB=$${RANLIB}" \
0c24b341 15384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15385 mostlyclean) \
2a4cbe27
NN
15386 || exit 1
15387
a90ef4bf 15388@endif libelf
2a4cbe27 15389
a90ef4bf
JM
15390.PHONY: maybe-clean-libelf clean-libelf
15391maybe-clean-libelf:
15392@if libelf
15393maybe-clean-libelf: clean-libelf
2a4cbe27 15394
a90ef4bf
JM
15395clean-libelf:
15396 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15397 r=`${PWD_COMMAND}`; export r; \
15398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15399 $(HOST_EXPORTS) \
a90ef4bf 15400 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15402 done; \
22121df0 15403 echo "Doing clean in libelf"; \
a90ef4bf 15404 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15407 "RANLIB=$${RANLIB}" \
0c24b341 15408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15409 clean) \
2a4cbe27
NN
15410 || exit 1
15411
a90ef4bf 15412@endif libelf
2a4cbe27 15413
a90ef4bf
JM
15414.PHONY: maybe-distclean-libelf distclean-libelf
15415maybe-distclean-libelf:
15416@if libelf
15417maybe-distclean-libelf: distclean-libelf
2a4cbe27 15418
a90ef4bf
JM
15419distclean-libelf:
15420 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15421 r=`${PWD_COMMAND}`; export r; \
15422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15423 $(HOST_EXPORTS) \
a90ef4bf 15424 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15426 done; \
22121df0 15427 echo "Doing distclean in libelf"; \
a90ef4bf 15428 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15431 "RANLIB=$${RANLIB}" \
0c24b341 15432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15433 distclean) \
2a4cbe27
NN
15434 || exit 1
15435
a90ef4bf 15436@endif libelf
2a4cbe27 15437
a90ef4bf
JM
15438.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15439maybe-maintainer-clean-libelf:
15440@if libelf
15441maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15442
a90ef4bf
JM
15443maintainer-clean-libelf:
15444 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15445 r=`${PWD_COMMAND}`; export r; \
15446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15447 $(HOST_EXPORTS) \
a90ef4bf 15448 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15450 done; \
22121df0 15451 echo "Doing maintainer-clean in libelf"; \
a90ef4bf 15452 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15455 "RANLIB=$${RANLIB}" \
0c24b341 15456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15457 maintainer-clean) \
2a4cbe27
NN
15458 || exit 1
15459
a90ef4bf 15460@endif libelf
2a4cbe27 15461
2a4cbe27 15462
a7254363 15463
a90ef4bf
JM
15464.PHONY: configure-gold maybe-configure-gold
15465maybe-configure-gold:
4f0ef2d8 15466@if gcc-bootstrap
a90ef4bf 15467configure-gold: stage_current
4f0ef2d8 15468@endif gcc-bootstrap
a90ef4bf
JM
15469@if gold
15470maybe-configure-gold: configure-gold
15471configure-gold:
c52c6897 15472 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15474 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22121df0 15475 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
1f53ca9a 15476 $(HOST_EXPORTS) \
a90ef4bf
JM
15477 echo Configuring in $(HOST_SUBDIR)/gold; \
15478 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15479 case $(srcdir) in \
b00612cc 15480 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15481 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15482 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15483 esac; \
1b6c0831
L
15484 module_srcdir=gold; \
15485 $(SHELL) \
15486 $$s/$$module_srcdir/configure \
15487 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15488 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15489 --target=${target_alias} \
4fa63067 15490 || exit 1
a90ef4bf 15491@endif gold
a7254363 15492
d545f33b
PB
15493
15494
a90ef4bf
JM
15495.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15496maybe-configure-stage1-gold:
15497@if gold-bootstrap
15498maybe-configure-stage1-gold: configure-stage1-gold
15499configure-stage1-gold:
15500 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15501 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15502 @r=`${PWD_COMMAND}`; export r; \
15503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15504 TFLAGS="$(STAGE1_TFLAGS)"; \
15505 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15506 $(HOST_EXPORTS) \
15507 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15508 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15509 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
15510 echo Configuring stage 1 in $(HOST_SUBDIR)/gold; \
15511 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15512 cd $(HOST_SUBDIR)/gold || exit 1; \
15513 case $(srcdir) in \
15514 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15515 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15516 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15517 esac; \
1b6c0831
L
15518 module_srcdir=gold; \
15519 $(SHELL) $$s/$$module_srcdir/configure \
15520 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15521 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15522 --target=${target_alias} \
15523 \
a90ef4bf
JM
15524 $(STAGE1_CONFIGURE_FLAGS)
15525@endif gold-bootstrap
4fa63067 15526
a90ef4bf
JM
15527.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15528maybe-configure-stage2-gold:
15529@if gold-bootstrap
15530maybe-configure-stage2-gold: configure-stage2-gold
15531configure-stage2-gold:
15532 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15533 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15534 @r=`${PWD_COMMAND}`; export r; \
15535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15536 TFLAGS="$(STAGE2_TFLAGS)"; \
15537 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15538 $(HOST_EXPORTS) \
a90ef4bf
JM
15539 $(POSTSTAGE1_HOST_EXPORTS) \
15540 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15541 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15542 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15543 echo Configuring stage 2 in $(HOST_SUBDIR)/gold; \
15544 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15545 cd $(HOST_SUBDIR)/gold || exit 1; \
15546 case $(srcdir) in \
15547 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15548 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15549 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15550 esac; \
1b6c0831
L
15551 module_srcdir=gold; \
15552 $(SHELL) $$s/$$module_srcdir/configure \
15553 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15554 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15555 --target=${target_alias} \
22121df0 15556 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15557 $(STAGE2_CONFIGURE_FLAGS)
15558@endif gold-bootstrap
4fa63067 15559
a90ef4bf
JM
15560.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15561maybe-configure-stage3-gold:
15562@if gold-bootstrap
15563maybe-configure-stage3-gold: configure-stage3-gold
15564configure-stage3-gold:
15565 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15566 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15567 @r=`${PWD_COMMAND}`; export r; \
15568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15569 TFLAGS="$(STAGE3_TFLAGS)"; \
15570 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15571 $(HOST_EXPORTS) \
a90ef4bf
JM
15572 $(POSTSTAGE1_HOST_EXPORTS) \
15573 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15574 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15575 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15576 echo Configuring stage 3 in $(HOST_SUBDIR)/gold; \
15577 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15578 cd $(HOST_SUBDIR)/gold || exit 1; \
15579 case $(srcdir) in \
15580 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15581 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15582 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15583 esac; \
1b6c0831
L
15584 module_srcdir=gold; \
15585 $(SHELL) $$s/$$module_srcdir/configure \
15586 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15587 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15588 --target=${target_alias} \
22121df0 15589 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15590 $(STAGE3_CONFIGURE_FLAGS)
15591@endif gold-bootstrap
9b980aa1 15592
a90ef4bf
JM
15593.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15594maybe-configure-stage4-gold:
15595@if gold-bootstrap
15596maybe-configure-stage4-gold: configure-stage4-gold
15597configure-stage4-gold:
15598 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15599 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15600 @r=`${PWD_COMMAND}`; export r; \
15601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15602 TFLAGS="$(STAGE4_TFLAGS)"; \
15603 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15604 $(HOST_EXPORTS) \
a90ef4bf
JM
15605 $(POSTSTAGE1_HOST_EXPORTS) \
15606 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15607 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15608 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15609 echo Configuring stage 4 in $(HOST_SUBDIR)/gold; \
15610 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15611 cd $(HOST_SUBDIR)/gold || exit 1; \
15612 case $(srcdir) in \
15613 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15614 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15615 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15616 esac; \
1b6c0831
L
15617 module_srcdir=gold; \
15618 $(SHELL) $$s/$$module_srcdir/configure \
15619 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15620 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15621 --target=${target_alias} \
22121df0 15622 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15623 $(STAGE4_CONFIGURE_FLAGS)
15624@endif gold-bootstrap
4fa63067 15625
a90ef4bf
JM
15626.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15627maybe-configure-stageprofile-gold:
15628@if gold-bootstrap
15629maybe-configure-stageprofile-gold: configure-stageprofile-gold
15630configure-stageprofile-gold:
15631 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15632 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15633 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15635 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15636 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15637 $(HOST_EXPORTS) \
a90ef4bf
JM
15638 $(POSTSTAGE1_HOST_EXPORTS) \
15639 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15640 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15641 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15642 echo Configuring stage profile in $(HOST_SUBDIR)/gold; \
15643 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15644 cd $(HOST_SUBDIR)/gold || exit 1; \
15645 case $(srcdir) in \
15646 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15647 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15648 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15649 esac; \
1b6c0831
L
15650 module_srcdir=gold; \
15651 $(SHELL) $$s/$$module_srcdir/configure \
15652 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15653 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15654 --target=${target_alias} \
22121df0 15655 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15656 $(STAGEprofile_CONFIGURE_FLAGS)
15657@endif gold-bootstrap
2a4cbe27 15658
a90ef4bf
JM
15659.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15660maybe-configure-stagefeedback-gold:
15661@if gold-bootstrap
15662maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15663configure-stagefeedback-gold:
15664 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15665 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15666 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15668 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15669 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15670 $(HOST_EXPORTS) \
a90ef4bf
JM
15671 $(POSTSTAGE1_HOST_EXPORTS) \
15672 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15673 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15674 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15675 echo Configuring stage feedback in $(HOST_SUBDIR)/gold; \
15676 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15677 cd $(HOST_SUBDIR)/gold || exit 1; \
15678 case $(srcdir) in \
15679 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15680 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15681 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15682 esac; \
1b6c0831
L
15683 module_srcdir=gold; \
15684 $(SHELL) $$s/$$module_srcdir/configure \
15685 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15686 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15687 --target=${target_alias} \
22121df0 15688 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15689 $(STAGEfeedback_CONFIGURE_FLAGS)
15690@endif gold-bootstrap
2a4cbe27 15691
56a8fe78 15692
56a8fe78 15693
56a8fe78 15694
6d389afc 15695
a90ef4bf
JM
15696.PHONY: all-gold maybe-all-gold
15697maybe-all-gold:
15698@if gcc-bootstrap
15699all-gold: stage_current
15700@endif gcc-bootstrap
15701@if gold
15702TARGET-gold=all
15703maybe-all-gold: all-gold
15704all-gold: configure-gold
15705 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15707 $(HOST_EXPORTS) \
15708 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15709 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15710 $(TARGET-gold))
15711@endif gold
6d389afc 15712
6d389afc 15713
2a4cbe27 15714
a90ef4bf
JM
15715.PHONY: all-stage1-gold maybe-all-stage1-gold
15716.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15717maybe-all-stage1-gold:
15718maybe-clean-stage1-gold:
15719@if gold-bootstrap
15720maybe-all-stage1-gold: all-stage1-gold
15721all-stage1: all-stage1-gold
15722TARGET-stage1-gold = $(TARGET-gold)
15723all-stage1-gold: configure-stage1-gold
15724 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15725 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15727 TFLAGS="$(STAGE1_TFLAGS)"; \
15728 $(HOST_EXPORTS) \
15729 cd $(HOST_SUBDIR)/gold && \
05a13254 15730 \
a90ef4bf
JM
15731 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15732 CFLAGS="$(STAGE1_CFLAGS)" \
15733 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15734 LIBCFLAGS="$(LIBCFLAGS)" \
15735 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15736 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15737 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15738 $(EXTRA_HOST_FLAGS) \
15739 $(STAGE1_FLAGS_TO_PASS) \
05a13254 15740 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 15741 $(TARGET-stage1-gold)
2a4cbe27 15742
a90ef4bf
JM
15743maybe-clean-stage1-gold: clean-stage1-gold
15744clean-stage1: clean-stage1-gold
15745clean-stage1-gold:
15746 @if [ $(current_stage) = stage1 ]; then \
15747 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15748 else \
15749 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15750 $(MAKE) stage1-start; \
15751 fi; \
15752 cd $(HOST_SUBDIR)/gold && \
15753 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15754 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15755@endif gold-bootstrap
2a4cbe27 15756
2a4cbe27 15757
a90ef4bf
JM
15758.PHONY: all-stage2-gold maybe-all-stage2-gold
15759.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15760maybe-all-stage2-gold:
15761maybe-clean-stage2-gold:
15762@if gold-bootstrap
15763maybe-all-stage2-gold: all-stage2-gold
15764all-stage2: all-stage2-gold
15765TARGET-stage2-gold = $(TARGET-gold)
15766all-stage2-gold: configure-stage2-gold
15767 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15768 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15770 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15771 $(HOST_EXPORTS) \
a90ef4bf
JM
15772 $(POSTSTAGE1_HOST_EXPORTS) \
15773 cd $(HOST_SUBDIR)/gold && \
05a13254 15774 \
a90ef4bf
JM
15775 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15776 CFLAGS="$(STAGE2_CFLAGS)" \
15777 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15778 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15779 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15780 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15781 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15782 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15783 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 15784 $(TARGET-stage2-gold)
2a4cbe27 15785
a90ef4bf
JM
15786maybe-clean-stage2-gold: clean-stage2-gold
15787clean-stage2: clean-stage2-gold
15788clean-stage2-gold:
15789 @if [ $(current_stage) = stage2 ]; then \
15790 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15791 else \
15792 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15793 $(MAKE) stage2-start; \
15794 fi; \
15795 cd $(HOST_SUBDIR)/gold && \
b3676d82 15796 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15797@endif gold-bootstrap
2a4cbe27 15798
a3ca38d2 15799
a90ef4bf
JM
15800.PHONY: all-stage3-gold maybe-all-stage3-gold
15801.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15802maybe-all-stage3-gold:
15803maybe-clean-stage3-gold:
15804@if gold-bootstrap
15805maybe-all-stage3-gold: all-stage3-gold
15806all-stage3: all-stage3-gold
15807TARGET-stage3-gold = $(TARGET-gold)
15808all-stage3-gold: configure-stage3-gold
15809 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15810 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15812 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15813 $(HOST_EXPORTS) \
a90ef4bf
JM
15814 $(POSTSTAGE1_HOST_EXPORTS) \
15815 cd $(HOST_SUBDIR)/gold && \
05a13254 15816 \
a90ef4bf
JM
15817 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15818 CFLAGS="$(STAGE3_CFLAGS)" \
15819 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15820 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15821 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15822 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15823 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15824 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15825 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 15826 $(TARGET-stage3-gold)
2a4cbe27 15827
a90ef4bf
JM
15828maybe-clean-stage3-gold: clean-stage3-gold
15829clean-stage3: clean-stage3-gold
15830clean-stage3-gold:
15831 @if [ $(current_stage) = stage3 ]; then \
15832 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15833 else \
15834 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15835 $(MAKE) stage3-start; \
15836 fi; \
15837 cd $(HOST_SUBDIR)/gold && \
b3676d82 15838 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15839@endif gold-bootstrap
2a4cbe27 15840
2a4cbe27 15841
a90ef4bf
JM
15842.PHONY: all-stage4-gold maybe-all-stage4-gold
15843.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15844maybe-all-stage4-gold:
15845maybe-clean-stage4-gold:
15846@if gold-bootstrap
15847maybe-all-stage4-gold: all-stage4-gold
15848all-stage4: all-stage4-gold
15849TARGET-stage4-gold = $(TARGET-gold)
15850all-stage4-gold: configure-stage4-gold
15851 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15852 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15854 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15855 $(HOST_EXPORTS) \
a90ef4bf
JM
15856 $(POSTSTAGE1_HOST_EXPORTS) \
15857 cd $(HOST_SUBDIR)/gold && \
05a13254 15858 \
a90ef4bf
JM
15859 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15860 CFLAGS="$(STAGE4_CFLAGS)" \
15861 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15862 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15863 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15864 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15865 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15866 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15867 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 15868 $(TARGET-stage4-gold)
2a4cbe27 15869
a90ef4bf
JM
15870maybe-clean-stage4-gold: clean-stage4-gold
15871clean-stage4: clean-stage4-gold
15872clean-stage4-gold:
15873 @if [ $(current_stage) = stage4 ]; then \
15874 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15875 else \
15876 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
15877 $(MAKE) stage4-start; \
15878 fi; \
15879 cd $(HOST_SUBDIR)/gold && \
b3676d82 15880 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15881@endif gold-bootstrap
2a4cbe27 15882
2a4cbe27 15883
a90ef4bf
JM
15884.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
15885.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
15886maybe-all-stageprofile-gold:
15887maybe-clean-stageprofile-gold:
15888@if gold-bootstrap
15889maybe-all-stageprofile-gold: all-stageprofile-gold
15890all-stageprofile: all-stageprofile-gold
15891TARGET-stageprofile-gold = $(TARGET-gold)
15892all-stageprofile-gold: configure-stageprofile-gold
15893 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15894 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15896 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 15897 $(HOST_EXPORTS) \
a90ef4bf
JM
15898 $(POSTSTAGE1_HOST_EXPORTS) \
15899 cd $(HOST_SUBDIR)/gold && \
05a13254 15900 \
a90ef4bf
JM
15901 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15902 CFLAGS="$(STAGEprofile_CFLAGS)" \
15903 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
15904 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15905 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15906 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15907 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15908 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15909 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 15910 $(TARGET-stageprofile-gold)
2a4cbe27 15911
a90ef4bf
JM
15912maybe-clean-stageprofile-gold: clean-stageprofile-gold
15913clean-stageprofile: clean-stageprofile-gold
15914clean-stageprofile-gold:
15915 @if [ $(current_stage) = stageprofile ]; then \
15916 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15917 else \
15918 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
15919 $(MAKE) stageprofile-start; \
15920 fi; \
15921 cd $(HOST_SUBDIR)/gold && \
b3676d82 15922 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15923@endif gold-bootstrap
2a4cbe27 15924
a7254363 15925
a90ef4bf
JM
15926.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
15927.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
15928maybe-all-stagefeedback-gold:
15929maybe-clean-stagefeedback-gold:
15930@if gold-bootstrap
15931maybe-all-stagefeedback-gold: all-stagefeedback-gold
15932all-stagefeedback: all-stagefeedback-gold
15933TARGET-stagefeedback-gold = $(TARGET-gold)
15934all-stagefeedback-gold: configure-stagefeedback-gold
15935 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 15936 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15938 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15939 $(HOST_EXPORTS) \
15940 $(POSTSTAGE1_HOST_EXPORTS) \
15941 cd $(HOST_SUBDIR)/gold && \
05a13254 15942 \
a90ef4bf
JM
15943 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15944 CFLAGS="$(STAGEfeedback_CFLAGS)" \
15945 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
15946 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15947 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15948 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15949 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15950 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15951 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15952 $(TARGET-stagefeedback-gold)
d545f33b 15953
a90ef4bf
JM
15954maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
15955clean-stagefeedback: clean-stagefeedback-gold
15956clean-stagefeedback-gold:
15957 @if [ $(current_stage) = stagefeedback ]; then \
15958 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15959 else \
15960 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
15961 $(MAKE) stagefeedback-start; \
15962 fi; \
15963 cd $(HOST_SUBDIR)/gold && \
b3676d82 15964 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15965@endif gold-bootstrap
d545f33b 15966
4fa63067 15967
a7254363 15968
d545f33b
PB
15969
15970
a90ef4bf
JM
15971.PHONY: check-gold maybe-check-gold
15972maybe-check-gold:
15973@if gold
15974maybe-check-gold: check-gold
4fa63067 15975
a90ef4bf 15976check-gold:
0aed8855 15977 @: $(MAKE); $(unstage)
4fa63067
NN
15978 @r=`${PWD_COMMAND}`; export r; \
15979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15980 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15981 (cd $(HOST_SUBDIR)/gold && \
f91ca6bc 15982 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15983
a90ef4bf 15984@endif gold
4fa63067 15985
a90ef4bf
JM
15986.PHONY: install-gold maybe-install-gold
15987maybe-install-gold:
15988@if gold
15989maybe-install-gold: install-gold
4fa63067 15990
a90ef4bf 15991install-gold: installdirs
0aed8855 15992 @: $(MAKE); $(unstage)
4fa63067
NN
15993 @r=`${PWD_COMMAND}`; export r; \
15994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15995 $(HOST_EXPORTS) \
a90ef4bf 15996 (cd $(HOST_SUBDIR)/gold && \
2da12f12 15997 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 15998
a90ef4bf 15999@endif gold
4fa63067 16000
a90ef4bf
JM
16001.PHONY: install-strip-gold maybe-install-strip-gold
16002maybe-install-strip-gold:
16003@if gold
16004maybe-install-strip-gold: install-strip-gold
9b980aa1 16005
a90ef4bf 16006install-strip-gold: installdirs
9b980aa1
RW
16007 @: $(MAKE); $(unstage)
16008 @r=`${PWD_COMMAND}`; export r; \
16009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16010 $(HOST_EXPORTS) \
a90ef4bf 16011 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
16012 $(MAKE) $(FLAGS_TO_PASS) install-strip)
16013
a90ef4bf 16014@endif gold
9b980aa1 16015
56a8fe78 16016# Other targets (info, dvi, pdf, etc.)
4fa63067 16017
a90ef4bf
JM
16018.PHONY: maybe-info-gold info-gold
16019maybe-info-gold:
16020@if gold
16021maybe-info-gold: info-gold
4fa63067 16022
a90ef4bf
JM
16023info-gold: \
16024 configure-gold
16025 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16026 r=`${PWD_COMMAND}`; export r; \
16027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16028 $(HOST_EXPORTS) \
b813574b 16029 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16031 done; \
22121df0 16032 echo "Doing info in gold"; \
a90ef4bf 16033 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16036 "RANLIB=$${RANLIB}" \
0c24b341 16037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16038 info) \
2a4cbe27
NN
16039 || exit 1
16040
a90ef4bf 16041@endif gold
2a4cbe27 16042
a90ef4bf
JM
16043.PHONY: maybe-dvi-gold dvi-gold
16044maybe-dvi-gold:
16045@if gold
16046maybe-dvi-gold: dvi-gold
2a4cbe27 16047
a90ef4bf
JM
16048dvi-gold: \
16049 configure-gold
16050 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16051 r=`${PWD_COMMAND}`; export r; \
16052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16053 $(HOST_EXPORTS) \
b813574b 16054 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16056 done; \
22121df0 16057 echo "Doing dvi in gold"; \
a90ef4bf 16058 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16061 "RANLIB=$${RANLIB}" \
0c24b341 16062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16063 dvi) \
2a4cbe27
NN
16064 || exit 1
16065
a90ef4bf 16066@endif gold
2a4cbe27 16067
a90ef4bf
JM
16068.PHONY: maybe-pdf-gold pdf-gold
16069maybe-pdf-gold:
16070@if gold
16071maybe-pdf-gold: pdf-gold
56a8fe78 16072
a90ef4bf
JM
16073pdf-gold: \
16074 configure-gold
16075 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
16076 r=`${PWD_COMMAND}`; export r; \
16077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16078 $(HOST_EXPORTS) \
16079 for flag in $(EXTRA_HOST_FLAGS) ; do \
16080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16081 done; \
22121df0 16082 echo "Doing pdf in gold"; \
a90ef4bf 16083 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
16084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16086 "RANLIB=$${RANLIB}" \
0c24b341 16087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
16088 pdf) \
16089 || exit 1
16090
a90ef4bf 16091@endif gold
56a8fe78 16092
a90ef4bf
JM
16093.PHONY: maybe-html-gold html-gold
16094maybe-html-gold:
16095@if gold
16096maybe-html-gold: html-gold
6d389afc 16097
a90ef4bf
JM
16098html-gold: \
16099 configure-gold
16100 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
16101 r=`${PWD_COMMAND}`; export r; \
16102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16103 $(HOST_EXPORTS) \
16104 for flag in $(EXTRA_HOST_FLAGS) ; do \
16105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16106 done; \
22121df0 16107 echo "Doing html in gold"; \
a90ef4bf 16108 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16111 "RANLIB=$${RANLIB}" \
0c24b341 16112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16113 html) \
16114 || exit 1
16115
a90ef4bf 16116@endif gold
6d389afc 16117
a90ef4bf
JM
16118.PHONY: maybe-TAGS-gold TAGS-gold
16119maybe-TAGS-gold:
16120@if gold
16121maybe-TAGS-gold: TAGS-gold
2a4cbe27 16122
a90ef4bf
JM
16123TAGS-gold: \
16124 configure-gold
16125 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16126 r=`${PWD_COMMAND}`; export r; \
16127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16128 $(HOST_EXPORTS) \
b813574b 16129 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16131 done; \
22121df0 16132 echo "Doing TAGS in gold"; \
a90ef4bf 16133 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16136 "RANLIB=$${RANLIB}" \
0c24b341 16137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16138 TAGS) \
2a4cbe27
NN
16139 || exit 1
16140
a90ef4bf 16141@endif gold
2a4cbe27 16142
a90ef4bf
JM
16143.PHONY: maybe-install-info-gold install-info-gold
16144maybe-install-info-gold:
16145@if gold
16146maybe-install-info-gold: install-info-gold
b813574b 16147
a90ef4bf
JM
16148install-info-gold: \
16149 configure-gold \
16150 info-gold
16151 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16152 r=`${PWD_COMMAND}`; export r; \
16153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16154 $(HOST_EXPORTS) \
b813574b 16155 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16157 done; \
22121df0 16158 echo "Doing install-info in gold"; \
a90ef4bf 16159 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16162 "RANLIB=$${RANLIB}" \
0c24b341 16163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16164 install-info) \
2a4cbe27
NN
16165 || exit 1
16166
a90ef4bf 16167@endif gold
2a4cbe27 16168
a90ef4bf
JM
16169.PHONY: maybe-install-pdf-gold install-pdf-gold
16170maybe-install-pdf-gold:
16171@if gold
16172maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16173
a90ef4bf
JM
16174install-pdf-gold: \
16175 configure-gold \
16176 pdf-gold
16177 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16178 r=`${PWD_COMMAND}`; export r; \
16179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16180 $(HOST_EXPORTS) \
16181 for flag in $(EXTRA_HOST_FLAGS) ; do \
16182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16183 done; \
22121df0 16184 echo "Doing install-pdf in gold"; \
a90ef4bf 16185 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16188 "RANLIB=$${RANLIB}" \
0c24b341 16189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16190 install-pdf) \
16191 || exit 1
16192
a90ef4bf 16193@endif gold
a3ca38d2 16194
a90ef4bf
JM
16195.PHONY: maybe-install-html-gold install-html-gold
16196maybe-install-html-gold:
16197@if gold
16198maybe-install-html-gold: install-html-gold
108a6f8e 16199
a90ef4bf
JM
16200install-html-gold: \
16201 configure-gold \
16202 html-gold
16203 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16204 r=`${PWD_COMMAND}`; export r; \
16205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16206 $(HOST_EXPORTS) \
16207 for flag in $(EXTRA_HOST_FLAGS) ; do \
16208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16209 done; \
22121df0 16210 echo "Doing install-html in gold"; \
a90ef4bf 16211 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
16212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16214 "RANLIB=$${RANLIB}" \
0c24b341 16215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16216 install-html) \
16217 || exit 1
16218
a90ef4bf 16219@endif gold
108a6f8e 16220
a90ef4bf
JM
16221.PHONY: maybe-installcheck-gold installcheck-gold
16222maybe-installcheck-gold:
16223@if gold
16224maybe-installcheck-gold: installcheck-gold
2a4cbe27 16225
a90ef4bf
JM
16226installcheck-gold: \
16227 configure-gold
16228 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16229 r=`${PWD_COMMAND}`; export r; \
16230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16231 $(HOST_EXPORTS) \
b813574b 16232 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16234 done; \
22121df0 16235 echo "Doing installcheck in gold"; \
a90ef4bf 16236 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16239 "RANLIB=$${RANLIB}" \
0c24b341 16240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16241 installcheck) \
2a4cbe27
NN
16242 || exit 1
16243
a90ef4bf 16244@endif gold
2a4cbe27 16245
a90ef4bf
JM
16246.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16247maybe-mostlyclean-gold:
16248@if gold
16249maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16250
a90ef4bf
JM
16251mostlyclean-gold:
16252 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16253 r=`${PWD_COMMAND}`; export r; \
16254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16255 $(HOST_EXPORTS) \
b813574b 16256 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16258 done; \
22121df0 16259 echo "Doing mostlyclean in gold"; \
a90ef4bf 16260 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16263 "RANLIB=$${RANLIB}" \
0c24b341 16264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16265 mostlyclean) \
2a4cbe27
NN
16266 || exit 1
16267
a90ef4bf 16268@endif gold
2a4cbe27 16269
a90ef4bf
JM
16270.PHONY: maybe-clean-gold clean-gold
16271maybe-clean-gold:
16272@if gold
16273maybe-clean-gold: clean-gold
2a4cbe27 16274
a90ef4bf
JM
16275clean-gold:
16276 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16277 r=`${PWD_COMMAND}`; export r; \
16278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16279 $(HOST_EXPORTS) \
b813574b 16280 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16282 done; \
22121df0 16283 echo "Doing clean in gold"; \
a90ef4bf 16284 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16287 "RANLIB=$${RANLIB}" \
0c24b341 16288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16289 clean) \
2a4cbe27
NN
16290 || exit 1
16291
a90ef4bf 16292@endif gold
2a4cbe27 16293
a90ef4bf
JM
16294.PHONY: maybe-distclean-gold distclean-gold
16295maybe-distclean-gold:
16296@if gold
16297maybe-distclean-gold: distclean-gold
2a4cbe27 16298
a90ef4bf
JM
16299distclean-gold:
16300 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16301 r=`${PWD_COMMAND}`; export r; \
16302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16303 $(HOST_EXPORTS) \
b813574b 16304 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16306 done; \
22121df0 16307 echo "Doing distclean in gold"; \
a90ef4bf 16308 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16311 "RANLIB=$${RANLIB}" \
0c24b341 16312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16313 distclean) \
2a4cbe27
NN
16314 || exit 1
16315
a90ef4bf 16316@endif gold
2a4cbe27 16317
a90ef4bf
JM
16318.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16319maybe-maintainer-clean-gold:
16320@if gold
16321maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16322
a90ef4bf
JM
16323maintainer-clean-gold:
16324 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16325 r=`${PWD_COMMAND}`; export r; \
16326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16327 $(HOST_EXPORTS) \
b813574b 16328 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16330 done; \
22121df0 16331 echo "Doing maintainer-clean in gold"; \
a90ef4bf 16332 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16335 "RANLIB=$${RANLIB}" \
0c24b341 16336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16337 maintainer-clean) \
4fa63067
NN
16338 || exit 1
16339
a90ef4bf 16340@endif gold
4fa63067
NN
16341
16342
a7254363 16343
a90ef4bf
JM
16344.PHONY: configure-gprof maybe-configure-gprof
16345maybe-configure-gprof:
4b900473 16346@if gcc-bootstrap
a90ef4bf 16347configure-gprof: stage_current
4b900473 16348@endif gcc-bootstrap
a90ef4bf
JM
16349@if gprof
16350maybe-configure-gprof: configure-gprof
16351configure-gprof:
16352 @: $(MAKE); $(unstage)
4b900473
PB
16353 @r=`${PWD_COMMAND}`; export r; \
16354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16355 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
22121df0 16356 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof; \
1f53ca9a 16357 $(HOST_EXPORTS) \
a90ef4bf
JM
16358 echo Configuring in $(HOST_SUBDIR)/gprof; \
16359 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16360 case $(srcdir) in \
16361 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16362 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16363 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16364 esac; \
1b6c0831
L
16365 module_srcdir=gprof; \
16366 $(SHELL) \
16367 $$s/$$module_srcdir/configure \
16368 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16369 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16370 --target=${target_alias} \
4b900473 16371 || exit 1
a90ef4bf 16372@endif gprof
4b900473
PB
16373
16374
16375
4b900473 16376
a90ef4bf
JM
16377
16378.PHONY: all-gprof maybe-all-gprof
16379maybe-all-gprof:
16380@if gcc-bootstrap
16381all-gprof: stage_current
16382@endif gcc-bootstrap
16383@if gprof
16384TARGET-gprof=all
16385maybe-all-gprof: all-gprof
16386all-gprof: configure-gprof
16387 @: $(MAKE); $(unstage)
4b900473
PB
16388 @r=`${PWD_COMMAND}`; export r; \
16389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16390 $(HOST_EXPORTS) \
a90ef4bf 16391 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16392 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16393 $(TARGET-gprof))
16394@endif gprof
4b900473
PB
16395
16396
4b900473 16397
4b900473 16398
a90ef4bf
JM
16399.PHONY: check-gprof maybe-check-gprof
16400maybe-check-gprof:
16401@if gprof
16402maybe-check-gprof: check-gprof
4b900473 16403
a90ef4bf
JM
16404check-gprof:
16405 @: $(MAKE); $(unstage)
4b900473
PB
16406 @r=`${PWD_COMMAND}`; export r; \
16407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16408 $(HOST_EXPORTS) \
a90ef4bf
JM
16409 (cd $(HOST_SUBDIR)/gprof && \
16410 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16411
a90ef4bf 16412@endif gprof
4b900473 16413
a90ef4bf
JM
16414.PHONY: install-gprof maybe-install-gprof
16415maybe-install-gprof:
16416@if gprof
16417maybe-install-gprof: install-gprof
4b900473 16418
a90ef4bf
JM
16419install-gprof: installdirs
16420 @: $(MAKE); $(unstage)
4b900473
PB
16421 @r=`${PWD_COMMAND}`; export r; \
16422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16423 $(HOST_EXPORTS) \
a90ef4bf
JM
16424 (cd $(HOST_SUBDIR)/gprof && \
16425 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16426
a90ef4bf 16427@endif gprof
4b900473 16428
a90ef4bf
JM
16429.PHONY: install-strip-gprof maybe-install-strip-gprof
16430maybe-install-strip-gprof:
16431@if gprof
16432maybe-install-strip-gprof: install-strip-gprof
4b900473 16433
a90ef4bf 16434install-strip-gprof: installdirs
4b900473
PB
16435 @: $(MAKE); $(unstage)
16436 @r=`${PWD_COMMAND}`; export r; \
16437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16438 $(HOST_EXPORTS) \
a90ef4bf
JM
16439 (cd $(HOST_SUBDIR)/gprof && \
16440 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16441
a90ef4bf 16442@endif gprof
9b980aa1 16443
4b900473
PB
16444# Other targets (info, dvi, pdf, etc.)
16445
a90ef4bf
JM
16446.PHONY: maybe-info-gprof info-gprof
16447maybe-info-gprof:
16448@if gprof
16449maybe-info-gprof: info-gprof
4b900473 16450
a90ef4bf
JM
16451info-gprof: \
16452 configure-gprof
16453 @: $(MAKE); $(unstage)
16454 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16455 r=`${PWD_COMMAND}`; export r; \
16456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16457 $(HOST_EXPORTS) \
16458 for flag in $(EXTRA_HOST_FLAGS) ; do \
16459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16460 done; \
22121df0 16461 echo "Doing info in gprof"; \
a90ef4bf 16462 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16465 "RANLIB=$${RANLIB}" \
0c24b341 16466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16467 info) \
16468 || exit 1
16469
a90ef4bf 16470@endif gprof
4b900473 16471
a90ef4bf
JM
16472.PHONY: maybe-dvi-gprof dvi-gprof
16473maybe-dvi-gprof:
16474@if gprof
16475maybe-dvi-gprof: dvi-gprof
4b900473 16476
a90ef4bf
JM
16477dvi-gprof: \
16478 configure-gprof
16479 @: $(MAKE); $(unstage)
16480 @[ -f ./gprof/Makefile ] || exit 0; \
16481 r=`${PWD_COMMAND}`; export r; \
16482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16483 $(HOST_EXPORTS) \
4b900473
PB
16484 for flag in $(EXTRA_HOST_FLAGS) ; do \
16485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16486 done; \
22121df0 16487 echo "Doing dvi in gprof"; \
a90ef4bf 16488 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16491 "RANLIB=$${RANLIB}" \
0c24b341 16492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16493 dvi) \
16494 || exit 1
16495
a90ef4bf 16496@endif gprof
4b900473 16497
a90ef4bf
JM
16498.PHONY: maybe-pdf-gprof pdf-gprof
16499maybe-pdf-gprof:
16500@if gprof
16501maybe-pdf-gprof: pdf-gprof
4b900473 16502
a90ef4bf
JM
16503pdf-gprof: \
16504 configure-gprof
16505 @: $(MAKE); $(unstage)
16506 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16507 r=`${PWD_COMMAND}`; export r; \
16508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16509 $(HOST_EXPORTS) \
16510 for flag in $(EXTRA_HOST_FLAGS) ; do \
16511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16512 done; \
22121df0 16513 echo "Doing pdf in gprof"; \
a90ef4bf 16514 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16517 "RANLIB=$${RANLIB}" \
0c24b341 16518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16519 pdf) \
16520 || exit 1
16521
a90ef4bf 16522@endif gprof
4b900473 16523
a90ef4bf
JM
16524.PHONY: maybe-html-gprof html-gprof
16525maybe-html-gprof:
16526@if gprof
16527maybe-html-gprof: html-gprof
4b900473 16528
a90ef4bf
JM
16529html-gprof: \
16530 configure-gprof
16531 @: $(MAKE); $(unstage)
16532 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16533 r=`${PWD_COMMAND}`; export r; \
16534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16535 $(HOST_EXPORTS) \
16536 for flag in $(EXTRA_HOST_FLAGS) ; do \
16537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16538 done; \
22121df0 16539 echo "Doing html in gprof"; \
a90ef4bf 16540 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16543 "RANLIB=$${RANLIB}" \
0c24b341 16544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16545 html) \
16546 || exit 1
16547
a90ef4bf 16548@endif gprof
4b900473 16549
a90ef4bf
JM
16550.PHONY: maybe-TAGS-gprof TAGS-gprof
16551maybe-TAGS-gprof:
16552@if gprof
16553maybe-TAGS-gprof: TAGS-gprof
4b900473 16554
a90ef4bf
JM
16555TAGS-gprof: \
16556 configure-gprof
16557 @: $(MAKE); $(unstage)
16558 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16559 r=`${PWD_COMMAND}`; export r; \
16560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16561 $(HOST_EXPORTS) \
16562 for flag in $(EXTRA_HOST_FLAGS) ; do \
16563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16564 done; \
22121df0 16565 echo "Doing TAGS in gprof"; \
a90ef4bf 16566 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16569 "RANLIB=$${RANLIB}" \
0c24b341 16570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16571 TAGS) \
16572 || exit 1
16573
a90ef4bf 16574@endif gprof
4b900473 16575
a90ef4bf
JM
16576.PHONY: maybe-install-info-gprof install-info-gprof
16577maybe-install-info-gprof:
16578@if gprof
16579maybe-install-info-gprof: install-info-gprof
4b900473 16580
a90ef4bf
JM
16581install-info-gprof: \
16582 configure-gprof \
16583 info-gprof
16584 @: $(MAKE); $(unstage)
16585 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16586 r=`${PWD_COMMAND}`; export r; \
16587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16588 $(HOST_EXPORTS) \
16589 for flag in $(EXTRA_HOST_FLAGS) ; do \
16590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16591 done; \
22121df0 16592 echo "Doing install-info in gprof"; \
a90ef4bf 16593 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16596 "RANLIB=$${RANLIB}" \
0c24b341 16597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16598 install-info) \
16599 || exit 1
16600
a90ef4bf 16601@endif gprof
4b900473 16602
a90ef4bf
JM
16603.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16604maybe-install-pdf-gprof:
16605@if gprof
16606maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16607
a90ef4bf
JM
16608install-pdf-gprof: \
16609 configure-gprof \
16610 pdf-gprof
16611 @: $(MAKE); $(unstage)
16612 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16613 r=`${PWD_COMMAND}`; export r; \
16614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16615 $(HOST_EXPORTS) \
16616 for flag in $(EXTRA_HOST_FLAGS) ; do \
16617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16618 done; \
22121df0 16619 echo "Doing install-pdf in gprof"; \
a90ef4bf 16620 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16623 "RANLIB=$${RANLIB}" \
0c24b341 16624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16625 install-pdf) \
16626 || exit 1
16627
a90ef4bf 16628@endif gprof
a3ca38d2 16629
a90ef4bf
JM
16630.PHONY: maybe-install-html-gprof install-html-gprof
16631maybe-install-html-gprof:
16632@if gprof
16633maybe-install-html-gprof: install-html-gprof
4b900473 16634
a90ef4bf
JM
16635install-html-gprof: \
16636 configure-gprof \
16637 html-gprof
16638 @: $(MAKE); $(unstage)
16639 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16640 r=`${PWD_COMMAND}`; export r; \
16641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16642 $(HOST_EXPORTS) \
16643 for flag in $(EXTRA_HOST_FLAGS) ; do \
16644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16645 done; \
22121df0 16646 echo "Doing install-html in gprof"; \
a90ef4bf 16647 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16650 "RANLIB=$${RANLIB}" \
0c24b341 16651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16652 install-html) \
16653 || exit 1
16654
a90ef4bf 16655@endif gprof
4b900473 16656
a90ef4bf
JM
16657.PHONY: maybe-installcheck-gprof installcheck-gprof
16658maybe-installcheck-gprof:
16659@if gprof
16660maybe-installcheck-gprof: installcheck-gprof
4b900473 16661
a90ef4bf
JM
16662installcheck-gprof: \
16663 configure-gprof
16664 @: $(MAKE); $(unstage)
16665 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16666 r=`${PWD_COMMAND}`; export r; \
16667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16668 $(HOST_EXPORTS) \
16669 for flag in $(EXTRA_HOST_FLAGS) ; do \
16670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16671 done; \
22121df0 16672 echo "Doing installcheck in gprof"; \
a90ef4bf 16673 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16676 "RANLIB=$${RANLIB}" \
16677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16678 installcheck) \
16679 || exit 1
16680
a90ef4bf 16681@endif gprof
e28c595f 16682
a90ef4bf
JM
16683.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16684maybe-mostlyclean-gprof:
16685@if gprof
16686maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16687
a90ef4bf
JM
16688mostlyclean-gprof:
16689 @: $(MAKE); $(unstage)
16690 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16691 r=`${PWD_COMMAND}`; export r; \
16692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16693 $(HOST_EXPORTS) \
16694 for flag in $(EXTRA_HOST_FLAGS) ; do \
16695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16696 done; \
22121df0 16697 echo "Doing mostlyclean in gprof"; \
a90ef4bf 16698 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16701 "RANLIB=$${RANLIB}" \
16702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16703 mostlyclean) \
16704 || exit 1
16705
a90ef4bf 16706@endif gprof
e28c595f 16707
a90ef4bf
JM
16708.PHONY: maybe-clean-gprof clean-gprof
16709maybe-clean-gprof:
16710@if gprof
16711maybe-clean-gprof: clean-gprof
e28c595f 16712
a90ef4bf
JM
16713clean-gprof:
16714 @: $(MAKE); $(unstage)
16715 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16716 r=`${PWD_COMMAND}`; export r; \
16717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16718 $(HOST_EXPORTS) \
16719 for flag in $(EXTRA_HOST_FLAGS) ; do \
16720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16721 done; \
22121df0 16722 echo "Doing clean in gprof"; \
a90ef4bf 16723 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16726 "RANLIB=$${RANLIB}" \
16727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16728 clean) \
16729 || exit 1
16730
a90ef4bf 16731@endif gprof
e28c595f 16732
a90ef4bf
JM
16733.PHONY: maybe-distclean-gprof distclean-gprof
16734maybe-distclean-gprof:
16735@if gprof
16736maybe-distclean-gprof: distclean-gprof
e28c595f 16737
a90ef4bf
JM
16738distclean-gprof:
16739 @: $(MAKE); $(unstage)
16740 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16741 r=`${PWD_COMMAND}`; export r; \
16742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16743 $(HOST_EXPORTS) \
16744 for flag in $(EXTRA_HOST_FLAGS) ; do \
16745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16746 done; \
22121df0 16747 echo "Doing distclean in gprof"; \
a90ef4bf 16748 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16751 "RANLIB=$${RANLIB}" \
16752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16753 distclean) \
16754 || exit 1
16755
a90ef4bf 16756@endif gprof
e28c595f 16757
a90ef4bf
JM
16758.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16759maybe-maintainer-clean-gprof:
16760@if gprof
16761maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16762
a90ef4bf
JM
16763maintainer-clean-gprof:
16764 @: $(MAKE); $(unstage)
16765 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16766 r=`${PWD_COMMAND}`; export r; \
16767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16768 $(HOST_EXPORTS) \
16769 for flag in $(EXTRA_HOST_FLAGS) ; do \
16770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16771 done; \
22121df0 16772 echo "Doing maintainer-clean in gprof"; \
a90ef4bf 16773 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16776 "RANLIB=$${RANLIB}" \
16777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16778 maintainer-clean) \
16779 || exit 1
16780
a90ef4bf 16781@endif gprof
e28c595f
JM
16782
16783
16784
a90ef4bf
JM
16785.PHONY: configure-intl maybe-configure-intl
16786maybe-configure-intl:
e28c595f 16787@if gcc-bootstrap
a90ef4bf 16788configure-intl: stage_current
e28c595f 16789@endif gcc-bootstrap
a90ef4bf
JM
16790@if intl
16791maybe-configure-intl: configure-intl
16792configure-intl:
e28c595f
JM
16793 @r=`${PWD_COMMAND}`; export r; \
16794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16795 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
22121df0 16796 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
1f53ca9a 16797 $(HOST_EXPORTS) \
a90ef4bf
JM
16798 echo Configuring in $(HOST_SUBDIR)/intl; \
16799 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16800 case $(srcdir) in \
16801 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16802 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16803 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16804 esac; \
1b6c0831
L
16805 module_srcdir=intl; \
16806 $(SHELL) \
16807 $$s/$$module_srcdir/configure \
16808 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16809 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16810 --target=${target_alias} \
e28c595f 16811 || exit 1
a90ef4bf 16812@endif intl
e28c595f
JM
16813
16814
16815
a90ef4bf
JM
16816.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16817maybe-configure-stage1-intl:
16818@if intl-bootstrap
16819maybe-configure-stage1-intl: configure-stage1-intl
16820configure-stage1-intl:
e28c595f 16821 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16822 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16823 @r=`${PWD_COMMAND}`; export r; \
16824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16825 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16826 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16827 $(HOST_EXPORTS) \
e28c595f 16828 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16829 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16830 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
16831 echo Configuring stage 1 in $(HOST_SUBDIR)/intl; \
16832 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16833 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16834 case $(srcdir) in \
16835 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16836 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16837 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16838 esac; \
1b6c0831
L
16839 module_srcdir=intl; \
16840 $(SHELL) $$s/$$module_srcdir/configure \
16841 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16842 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16843 --target=${target_alias} \
16844 \
a90ef4bf
JM
16845 $(STAGE1_CONFIGURE_FLAGS)
16846@endif intl-bootstrap
e28c595f 16847
a90ef4bf
JM
16848.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16849maybe-configure-stage2-intl:
16850@if intl-bootstrap
16851maybe-configure-stage2-intl: configure-stage2-intl
16852configure-stage2-intl:
e28c595f 16853 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16854 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16855 @r=`${PWD_COMMAND}`; export r; \
16856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16857 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16858 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16859 $(HOST_EXPORTS) \
1b05fbbd 16860 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16861 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16862 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16863 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16864 echo Configuring stage 2 in $(HOST_SUBDIR)/intl; \
16865 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16866 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16867 case $(srcdir) in \
16868 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16869 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16870 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16871 esac; \
1b6c0831
L
16872 module_srcdir=intl; \
16873 $(SHELL) $$s/$$module_srcdir/configure \
16874 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16875 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16876 --target=${target_alias} \
22121df0 16877 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16878 $(STAGE2_CONFIGURE_FLAGS)
16879@endif intl-bootstrap
e28c595f 16880
a90ef4bf
JM
16881.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16882maybe-configure-stage3-intl:
16883@if intl-bootstrap
16884maybe-configure-stage3-intl: configure-stage3-intl
16885configure-stage3-intl:
e28c595f 16886 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 16887 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16888 @r=`${PWD_COMMAND}`; export r; \
16889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16890 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 16891 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16892 $(HOST_EXPORTS) \
1b05fbbd 16893 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16894 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16895 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16896 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16897 echo Configuring stage 3 in $(HOST_SUBDIR)/intl; \
16898 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16899 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16900 case $(srcdir) in \
16901 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16902 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16903 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16904 esac; \
1b6c0831
L
16905 module_srcdir=intl; \
16906 $(SHELL) $$s/$$module_srcdir/configure \
16907 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16908 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16909 --target=${target_alias} \
22121df0 16910 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16911 $(STAGE3_CONFIGURE_FLAGS)
16912@endif intl-bootstrap
e28c595f 16913
a90ef4bf
JM
16914.PHONY: configure-stage4-intl maybe-configure-stage4-intl
16915maybe-configure-stage4-intl:
16916@if intl-bootstrap
16917maybe-configure-stage4-intl: configure-stage4-intl
16918configure-stage4-intl:
e28c595f 16919 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 16920 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16921 @r=`${PWD_COMMAND}`; export r; \
16922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16923 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 16924 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16925 $(HOST_EXPORTS) \
1b05fbbd 16926 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16927 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16928 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16929 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16930 echo Configuring stage 4 in $(HOST_SUBDIR)/intl; \
16931 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16932 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16933 case $(srcdir) in \
16934 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16935 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16936 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16937 esac; \
1b6c0831
L
16938 module_srcdir=intl; \
16939 $(SHELL) $$s/$$module_srcdir/configure \
16940 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16941 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16942 --target=${target_alias} \
22121df0 16943 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16944 $(STAGE4_CONFIGURE_FLAGS)
16945@endif intl-bootstrap
e28c595f 16946
a90ef4bf
JM
16947.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
16948maybe-configure-stageprofile-intl:
16949@if intl-bootstrap
16950maybe-configure-stageprofile-intl: configure-stageprofile-intl
16951configure-stageprofile-intl:
e28c595f 16952 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 16953 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16954 @r=`${PWD_COMMAND}`; export r; \
16955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16956 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 16957 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16958 $(HOST_EXPORTS) \
1b05fbbd
AO
16959 $(POSTSTAGE1_HOST_EXPORTS) \
16960 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16961 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
16962 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16963 echo Configuring stage profile in $(HOST_SUBDIR)/intl; \
16964 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16965 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16966 case $(srcdir) in \
16967 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16968 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16969 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16970 esac; \
1b6c0831
L
16971 module_srcdir=intl; \
16972 $(SHELL) $$s/$$module_srcdir/configure \
16973 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16974 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16975 --target=${target_alias} \
22121df0 16976 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16977 $(STAGEprofile_CONFIGURE_FLAGS)
16978@endif intl-bootstrap
e28c595f 16979
a90ef4bf
JM
16980.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
16981maybe-configure-stagefeedback-intl:
16982@if intl-bootstrap
16983maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
16984configure-stagefeedback-intl:
e28c595f 16985 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 16986 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16987 @r=`${PWD_COMMAND}`; export r; \
16988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16989 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 16990 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16991 $(HOST_EXPORTS) \
1b05fbbd
AO
16992 $(POSTSTAGE1_HOST_EXPORTS) \
16993 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16994 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
16995 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16996 echo Configuring stage feedback in $(HOST_SUBDIR)/intl; \
16997 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16998 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16999 case $(srcdir) in \
17000 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17001 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17002 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17003 esac; \
1b6c0831
L
17004 module_srcdir=intl; \
17005 $(SHELL) $$s/$$module_srcdir/configure \
17006 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 17007 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17008 --target=${target_alias} \
22121df0 17009 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17010 $(STAGEfeedback_CONFIGURE_FLAGS)
17011@endif intl-bootstrap
e28c595f
JM
17012
17013
17014
17015
17016
a90ef4bf
JM
17017.PHONY: all-intl maybe-all-intl
17018maybe-all-intl:
e28c595f 17019@if gcc-bootstrap
a90ef4bf 17020all-intl: stage_current
e28c595f 17021@endif gcc-bootstrap
a90ef4bf
JM
17022@if intl
17023TARGET-intl=all
17024maybe-all-intl: all-intl
17025all-intl: configure-intl
e28c595f
JM
17026 @r=`${PWD_COMMAND}`; export r; \
17027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 17028 $(HOST_EXPORTS) \
a90ef4bf 17029 (cd $(HOST_SUBDIR)/intl && \
b3676d82 17030 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17031 $(TARGET-intl))
17032@endif intl
e28c595f
JM
17033
17034
17035
a90ef4bf
JM
17036.PHONY: all-stage1-intl maybe-all-stage1-intl
17037.PHONY: clean-stage1-intl maybe-clean-stage1-intl
17038maybe-all-stage1-intl:
17039maybe-clean-stage1-intl:
17040@if intl-bootstrap
17041maybe-all-stage1-intl: all-stage1-intl
17042all-stage1: all-stage1-intl
17043TARGET-stage1-intl = $(TARGET-intl)
17044all-stage1-intl: configure-stage1-intl
e28c595f
JM
17045 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
17046 @r=`${PWD_COMMAND}`; export r; \
17047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17048 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 17049 $(HOST_EXPORTS) \
a90ef4bf 17050 cd $(HOST_SUBDIR)/intl && \
05a13254 17051 \
e28c595f 17052 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17053 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 17054 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
17055 LIBCFLAGS="$(LIBCFLAGS)" \
17056 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17057 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17058 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
17059 $(EXTRA_HOST_FLAGS) \
17060 $(STAGE1_FLAGS_TO_PASS) \
05a13254 17061 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 17062 $(TARGET-stage1-intl)
e28c595f 17063
a90ef4bf
JM
17064maybe-clean-stage1-intl: clean-stage1-intl
17065clean-stage1: clean-stage1-intl
17066clean-stage1-intl:
e28c595f 17067 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 17068 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17069 else \
a90ef4bf 17070 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
17071 $(MAKE) stage1-start; \
17072 fi; \
a90ef4bf 17073 cd $(HOST_SUBDIR)/intl && \
e28c595f 17074 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 17075 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17076@endif intl-bootstrap
e28c595f
JM
17077
17078
a90ef4bf
JM
17079.PHONY: all-stage2-intl maybe-all-stage2-intl
17080.PHONY: clean-stage2-intl maybe-clean-stage2-intl
17081maybe-all-stage2-intl:
17082maybe-clean-stage2-intl:
17083@if intl-bootstrap
17084maybe-all-stage2-intl: all-stage2-intl
17085all-stage2: all-stage2-intl
17086TARGET-stage2-intl = $(TARGET-intl)
17087all-stage2-intl: configure-stage2-intl
e28c595f
JM
17088 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17089 @r=`${PWD_COMMAND}`; export r; \
17090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17091 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 17092 $(HOST_EXPORTS) \
1f53ca9a 17093 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17094 cd $(HOST_SUBDIR)/intl && \
05a13254 17095 \
e28c595f 17096 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17097 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 17098 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17099 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17100 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17101 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17102 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17103 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17104 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17105 $(TARGET-stage2-intl)
e28c595f 17106
a90ef4bf
JM
17107maybe-clean-stage2-intl: clean-stage2-intl
17108clean-stage2: clean-stage2-intl
17109clean-stage2-intl:
e28c595f 17110 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17111 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17112 else \
a90ef4bf 17113 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17114 $(MAKE) stage2-start; \
17115 fi; \
a90ef4bf 17116 cd $(HOST_SUBDIR)/intl && \
b3676d82 17117 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17118@endif intl-bootstrap
e28c595f
JM
17119
17120
a90ef4bf
JM
17121.PHONY: all-stage3-intl maybe-all-stage3-intl
17122.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17123maybe-all-stage3-intl:
17124maybe-clean-stage3-intl:
17125@if intl-bootstrap
17126maybe-all-stage3-intl: all-stage3-intl
17127all-stage3: all-stage3-intl
17128TARGET-stage3-intl = $(TARGET-intl)
17129all-stage3-intl: configure-stage3-intl
e28c595f
JM
17130 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17131 @r=`${PWD_COMMAND}`; export r; \
17132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17133 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17134 $(HOST_EXPORTS) \
1f53ca9a 17135 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17136 cd $(HOST_SUBDIR)/intl && \
05a13254 17137 \
e28c595f 17138 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17139 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17140 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17141 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17142 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17143 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17144 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17145 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17146 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17147 $(TARGET-stage3-intl)
e28c595f 17148
a90ef4bf
JM
17149maybe-clean-stage3-intl: clean-stage3-intl
17150clean-stage3: clean-stage3-intl
17151clean-stage3-intl:
e28c595f 17152 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17153 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17154 else \
a90ef4bf 17155 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17156 $(MAKE) stage3-start; \
17157 fi; \
a90ef4bf 17158 cd $(HOST_SUBDIR)/intl && \
b3676d82 17159 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17160@endif intl-bootstrap
e28c595f
JM
17161
17162
a90ef4bf
JM
17163.PHONY: all-stage4-intl maybe-all-stage4-intl
17164.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17165maybe-all-stage4-intl:
17166maybe-clean-stage4-intl:
17167@if intl-bootstrap
17168maybe-all-stage4-intl: all-stage4-intl
17169all-stage4: all-stage4-intl
17170TARGET-stage4-intl = $(TARGET-intl)
17171all-stage4-intl: configure-stage4-intl
e28c595f
JM
17172 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17173 @r=`${PWD_COMMAND}`; export r; \
17174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17175 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17176 $(HOST_EXPORTS) \
1f53ca9a 17177 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17178 cd $(HOST_SUBDIR)/intl && \
05a13254 17179 \
e28c595f 17180 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17181 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17182 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17183 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17184 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17185 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17186 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17187 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17188 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17189 $(TARGET-stage4-intl)
e28c595f 17190
a90ef4bf
JM
17191maybe-clean-stage4-intl: clean-stage4-intl
17192clean-stage4: clean-stage4-intl
17193clean-stage4-intl:
e28c595f 17194 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17195 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17196 else \
a90ef4bf 17197 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17198 $(MAKE) stage4-start; \
17199 fi; \
a90ef4bf 17200 cd $(HOST_SUBDIR)/intl && \
b3676d82 17201 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17202@endif intl-bootstrap
e28c595f
JM
17203
17204
a90ef4bf
JM
17205.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17206.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17207maybe-all-stageprofile-intl:
17208maybe-clean-stageprofile-intl:
17209@if intl-bootstrap
17210maybe-all-stageprofile-intl: all-stageprofile-intl
17211all-stageprofile: all-stageprofile-intl
17212TARGET-stageprofile-intl = $(TARGET-intl)
17213all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17214 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17215 @r=`${PWD_COMMAND}`; export r; \
17216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17217 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17218 $(HOST_EXPORTS) \
1f53ca9a 17219 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17220 cd $(HOST_SUBDIR)/intl && \
05a13254 17221 \
e28c595f 17222 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17223 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17224 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17225 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17226 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17227 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17228 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17229 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17230 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17231 $(TARGET-stageprofile-intl)
e28c595f 17232
a90ef4bf
JM
17233maybe-clean-stageprofile-intl: clean-stageprofile-intl
17234clean-stageprofile: clean-stageprofile-intl
17235clean-stageprofile-intl:
e28c595f 17236 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17237 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17238 else \
a90ef4bf 17239 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17240 $(MAKE) stageprofile-start; \
17241 fi; \
a90ef4bf 17242 cd $(HOST_SUBDIR)/intl && \
b3676d82 17243 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17244@endif intl-bootstrap
e28c595f
JM
17245
17246
a90ef4bf
JM
17247.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17248.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17249maybe-all-stagefeedback-intl:
17250maybe-clean-stagefeedback-intl:
17251@if intl-bootstrap
17252maybe-all-stagefeedback-intl: all-stagefeedback-intl
17253all-stagefeedback: all-stagefeedback-intl
17254TARGET-stagefeedback-intl = $(TARGET-intl)
17255all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17256 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17257 @r=`${PWD_COMMAND}`; export r; \
17258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17259 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17260 $(HOST_EXPORTS) \
1f53ca9a 17261 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17262 cd $(HOST_SUBDIR)/intl && \
05a13254 17263 \
e28c595f 17264 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17265 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17266 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17267 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17268 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17269 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17270 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17271 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17272 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17273 $(TARGET-stagefeedback-intl)
e28c595f 17274
a90ef4bf
JM
17275maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17276clean-stagefeedback: clean-stagefeedback-intl
17277clean-stagefeedback-intl:
e28c595f 17278 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17279 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17280 else \
a90ef4bf 17281 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17282 $(MAKE) stagefeedback-start; \
17283 fi; \
a90ef4bf 17284 cd $(HOST_SUBDIR)/intl && \
b3676d82 17285 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17286@endif intl-bootstrap
e28c595f
JM
17287
17288
17289
17290
17291
a90ef4bf
JM
17292.PHONY: check-intl maybe-check-intl
17293maybe-check-intl:
17294@if intl
17295maybe-check-intl: check-intl
e28c595f 17296
a90ef4bf 17297check-intl:
e28c595f
JM
17298 @: $(MAKE); $(unstage)
17299 @r=`${PWD_COMMAND}`; export r; \
17300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17301 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 17302 (cd $(HOST_SUBDIR)/intl && \
f91ca6bc 17303 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 17304
a90ef4bf 17305@endif intl
e28c595f 17306
a90ef4bf
JM
17307.PHONY: install-intl maybe-install-intl
17308maybe-install-intl:
17309@if intl
17310maybe-install-intl: install-intl
e28c595f 17311
a90ef4bf
JM
17312install-intl: installdirs
17313 @: $(MAKE); $(unstage)
17314 @r=`${PWD_COMMAND}`; export r; \
17315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17316 $(HOST_EXPORTS) \
17317 (cd $(HOST_SUBDIR)/intl && \
17318 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17319
a90ef4bf 17320@endif intl
e28c595f 17321
a90ef4bf
JM
17322.PHONY: install-strip-intl maybe-install-strip-intl
17323maybe-install-strip-intl:
17324@if intl
17325maybe-install-strip-intl: install-strip-intl
9b980aa1 17326
a90ef4bf
JM
17327install-strip-intl: installdirs
17328 @: $(MAKE); $(unstage)
17329 @r=`${PWD_COMMAND}`; export r; \
17330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17331 $(HOST_EXPORTS) \
17332 (cd $(HOST_SUBDIR)/intl && \
17333 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17334
a90ef4bf 17335@endif intl
9b980aa1 17336
e28c595f
JM
17337# Other targets (info, dvi, pdf, etc.)
17338
a90ef4bf
JM
17339.PHONY: maybe-info-intl info-intl
17340maybe-info-intl:
17341@if intl
17342maybe-info-intl: info-intl
e28c595f 17343
a90ef4bf
JM
17344info-intl: \
17345 configure-intl
17346 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17347 r=`${PWD_COMMAND}`; export r; \
17348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17349 $(HOST_EXPORTS) \
17350 for flag in $(EXTRA_HOST_FLAGS) ; do \
17351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17352 done; \
22121df0 17353 echo "Doing info in intl"; \
a90ef4bf 17354 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17357 "RANLIB=$${RANLIB}" \
17358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17359 info) \
17360 || exit 1
17361
a90ef4bf 17362@endif intl
e28c595f 17363
a90ef4bf
JM
17364.PHONY: maybe-dvi-intl dvi-intl
17365maybe-dvi-intl:
17366@if intl
17367maybe-dvi-intl: dvi-intl
e28c595f 17368
a90ef4bf
JM
17369dvi-intl: \
17370 configure-intl
17371 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17372 r=`${PWD_COMMAND}`; export r; \
17373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17374 $(HOST_EXPORTS) \
17375 for flag in $(EXTRA_HOST_FLAGS) ; do \
17376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17377 done; \
22121df0 17378 echo "Doing dvi in intl"; \
a90ef4bf 17379 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17382 "RANLIB=$${RANLIB}" \
17383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17384 dvi) \
17385 || exit 1
17386
a90ef4bf 17387@endif intl
e28c595f 17388
a90ef4bf
JM
17389.PHONY: maybe-pdf-intl pdf-intl
17390maybe-pdf-intl:
17391@if intl
17392maybe-pdf-intl: pdf-intl
e28c595f 17393
a90ef4bf
JM
17394pdf-intl: \
17395 configure-intl
17396 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17397 r=`${PWD_COMMAND}`; export r; \
17398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17399 $(HOST_EXPORTS) \
17400 for flag in $(EXTRA_HOST_FLAGS) ; do \
17401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17402 done; \
22121df0 17403 echo "Doing pdf in intl"; \
a90ef4bf 17404 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17407 "RANLIB=$${RANLIB}" \
17408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17409 pdf) \
17410 || exit 1
17411
a90ef4bf 17412@endif intl
e28c595f 17413
a90ef4bf
JM
17414.PHONY: maybe-html-intl html-intl
17415maybe-html-intl:
17416@if intl
17417maybe-html-intl: html-intl
e28c595f 17418
a90ef4bf
JM
17419html-intl: \
17420 configure-intl
17421 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17422 r=`${PWD_COMMAND}`; export r; \
17423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17424 $(HOST_EXPORTS) \
17425 for flag in $(EXTRA_HOST_FLAGS) ; do \
17426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17427 done; \
22121df0 17428 echo "Doing html in intl"; \
a90ef4bf 17429 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17432 "RANLIB=$${RANLIB}" \
17433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17434 html) \
17435 || exit 1
17436
a90ef4bf 17437@endif intl
e28c595f 17438
a90ef4bf
JM
17439.PHONY: maybe-TAGS-intl TAGS-intl
17440maybe-TAGS-intl:
17441@if intl
17442maybe-TAGS-intl: TAGS-intl
e28c595f 17443
a90ef4bf
JM
17444TAGS-intl: \
17445 configure-intl
17446 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17447 r=`${PWD_COMMAND}`; export r; \
17448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17449 $(HOST_EXPORTS) \
17450 for flag in $(EXTRA_HOST_FLAGS) ; do \
17451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17452 done; \
22121df0 17453 echo "Doing TAGS in intl"; \
a90ef4bf 17454 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17457 "RANLIB=$${RANLIB}" \
17458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17459 TAGS) \
17460 || exit 1
17461
a90ef4bf 17462@endif intl
e28c595f 17463
a90ef4bf
JM
17464.PHONY: maybe-install-info-intl install-info-intl
17465maybe-install-info-intl:
17466@if intl
17467maybe-install-info-intl: install-info-intl
e28c595f 17468
a90ef4bf
JM
17469install-info-intl: \
17470 configure-intl \
17471 info-intl
17472 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17473 r=`${PWD_COMMAND}`; export r; \
17474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17475 $(HOST_EXPORTS) \
17476 for flag in $(EXTRA_HOST_FLAGS) ; do \
17477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17478 done; \
22121df0 17479 echo "Doing install-info in intl"; \
a90ef4bf 17480 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17483 "RANLIB=$${RANLIB}" \
17484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17485 install-info) \
17486 || exit 1
17487
a90ef4bf 17488@endif intl
e28c595f 17489
a90ef4bf
JM
17490.PHONY: maybe-install-pdf-intl install-pdf-intl
17491maybe-install-pdf-intl:
17492@if intl
17493maybe-install-pdf-intl: install-pdf-intl
e28c595f 17494
a90ef4bf
JM
17495install-pdf-intl: \
17496 configure-intl \
17497 pdf-intl
17498 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17499 r=`${PWD_COMMAND}`; export r; \
17500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17501 $(HOST_EXPORTS) \
17502 for flag in $(EXTRA_HOST_FLAGS) ; do \
17503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17504 done; \
22121df0 17505 echo "Doing install-pdf in intl"; \
a90ef4bf 17506 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17509 "RANLIB=$${RANLIB}" \
17510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17511 install-pdf) \
17512 || exit 1
17513
a90ef4bf 17514@endif intl
e28c595f 17515
a90ef4bf
JM
17516.PHONY: maybe-install-html-intl install-html-intl
17517maybe-install-html-intl:
17518@if intl
17519maybe-install-html-intl: install-html-intl
e28c595f 17520
a90ef4bf
JM
17521install-html-intl: \
17522 configure-intl \
17523 html-intl
17524 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17525 r=`${PWD_COMMAND}`; export r; \
17526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17527 $(HOST_EXPORTS) \
17528 for flag in $(EXTRA_HOST_FLAGS) ; do \
17529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17530 done; \
22121df0 17531 echo "Doing install-html in intl"; \
a90ef4bf 17532 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17535 "RANLIB=$${RANLIB}" \
17536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17537 install-html) \
17538 || exit 1
17539
a90ef4bf 17540@endif intl
e28c595f 17541
a90ef4bf
JM
17542.PHONY: maybe-installcheck-intl installcheck-intl
17543maybe-installcheck-intl:
17544@if intl
17545maybe-installcheck-intl: installcheck-intl
e28c595f 17546
a90ef4bf
JM
17547installcheck-intl: \
17548 configure-intl
17549 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17550 r=`${PWD_COMMAND}`; export r; \
17551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17552 $(HOST_EXPORTS) \
17553 for flag in $(EXTRA_HOST_FLAGS) ; do \
17554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17555 done; \
22121df0 17556 echo "Doing installcheck in intl"; \
a90ef4bf 17557 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17560 "RANLIB=$${RANLIB}" \
17561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17562 installcheck) \
17563 || exit 1
17564
a90ef4bf 17565@endif intl
e28c595f 17566
a90ef4bf
JM
17567.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17568maybe-mostlyclean-intl:
17569@if intl
17570maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17571
a90ef4bf
JM
17572mostlyclean-intl:
17573 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17574 r=`${PWD_COMMAND}`; export r; \
17575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17576 $(HOST_EXPORTS) \
17577 for flag in $(EXTRA_HOST_FLAGS) ; do \
17578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17579 done; \
22121df0 17580 echo "Doing mostlyclean in intl"; \
a90ef4bf 17581 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17584 "RANLIB=$${RANLIB}" \
17585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17586 mostlyclean) \
17587 || exit 1
17588
a90ef4bf 17589@endif intl
e28c595f 17590
a90ef4bf
JM
17591.PHONY: maybe-clean-intl clean-intl
17592maybe-clean-intl:
17593@if intl
17594maybe-clean-intl: clean-intl
e28c595f 17595
a90ef4bf
JM
17596clean-intl:
17597 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17598 r=`${PWD_COMMAND}`; export r; \
17599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17600 $(HOST_EXPORTS) \
17601 for flag in $(EXTRA_HOST_FLAGS) ; do \
17602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17603 done; \
22121df0 17604 echo "Doing clean in intl"; \
a90ef4bf 17605 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17608 "RANLIB=$${RANLIB}" \
17609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17610 clean) \
17611 || exit 1
17612
a90ef4bf 17613@endif intl
e28c595f 17614
a90ef4bf
JM
17615.PHONY: maybe-distclean-intl distclean-intl
17616maybe-distclean-intl:
17617@if intl
17618maybe-distclean-intl: distclean-intl
e28c595f 17619
a90ef4bf
JM
17620distclean-intl:
17621 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17622 r=`${PWD_COMMAND}`; export r; \
17623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17624 $(HOST_EXPORTS) \
17625 for flag in $(EXTRA_HOST_FLAGS) ; do \
17626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17627 done; \
22121df0 17628 echo "Doing distclean in intl"; \
a90ef4bf 17629 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17632 "RANLIB=$${RANLIB}" \
17633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17634 distclean) \
17635 || exit 1
17636
a90ef4bf 17637@endif intl
e28c595f 17638
a90ef4bf
JM
17639.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17640maybe-maintainer-clean-intl:
17641@if intl
17642maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17643
a90ef4bf
JM
17644maintainer-clean-intl:
17645 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17646 r=`${PWD_COMMAND}`; export r; \
17647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17648 $(HOST_EXPORTS) \
17649 for flag in $(EXTRA_HOST_FLAGS) ; do \
17650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17651 done; \
22121df0 17652 echo "Doing maintainer-clean in intl"; \
a90ef4bf 17653 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17656 "RANLIB=$${RANLIB}" \
17657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17658 maintainer-clean) \
17659 || exit 1
17660
a90ef4bf 17661@endif intl
e28c595f
JM
17662
17663
17664
a90ef4bf
JM
17665.PHONY: configure-tcl maybe-configure-tcl
17666maybe-configure-tcl:
e8a5fa9c 17667@if gcc-bootstrap
a90ef4bf 17668configure-tcl: stage_current
e8a5fa9c 17669@endif gcc-bootstrap
a90ef4bf
JM
17670@if tcl
17671maybe-configure-tcl: configure-tcl
17672configure-tcl:
17673 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17674 @r=`${PWD_COMMAND}`; export r; \
17675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 17676 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
22121df0 17677 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl; \
1f53ca9a 17678 $(HOST_EXPORTS) \
a90ef4bf
JM
17679 echo Configuring in $(HOST_SUBDIR)/tcl; \
17680 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17681 case $(srcdir) in \
17682 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17683 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17684 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17685 esac; \
1b6c0831
L
17686 module_srcdir=tcl; \
17687 $(SHELL) \
17688 $$s/$$module_srcdir/configure \
17689 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 17690 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17691 --target=${target_alias} \
e8a5fa9c 17692 || exit 1
a90ef4bf 17693@endif tcl
e8a5fa9c
RW
17694
17695
17696
e8a5fa9c 17697
e8a5fa9c 17698
a90ef4bf
JM
17699.PHONY: all-tcl maybe-all-tcl
17700maybe-all-tcl:
17701@if gcc-bootstrap
17702all-tcl: stage_current
17703@endif gcc-bootstrap
17704@if tcl
17705TARGET-tcl=all
17706maybe-all-tcl: all-tcl
17707all-tcl: configure-tcl
17708 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17709 @r=`${PWD_COMMAND}`; export r; \
17710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17711 $(HOST_EXPORTS) \
17712 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17713 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17714 $(TARGET-tcl))
17715@endif tcl
e8a5fa9c 17716
a90ef4bf
JM
17717
17718
17719
17720.PHONY: check-tcl maybe-check-tcl
17721maybe-check-tcl:
17722@if tcl
17723maybe-check-tcl: check-tcl
17724
17725check-tcl:
17726 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17727 @r=`${PWD_COMMAND}`; export r; \
17728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17729 $(HOST_EXPORTS) \
a90ef4bf
JM
17730 (cd $(HOST_SUBDIR)/tcl && \
17731 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17732
a90ef4bf
JM
17733@endif tcl
17734
17735.PHONY: install-tcl maybe-install-tcl
17736maybe-install-tcl:
17737@if tcl
17738maybe-install-tcl: install-tcl
17739
17740install-tcl: installdirs
17741 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17742 @r=`${PWD_COMMAND}`; export r; \
17743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17744 $(HOST_EXPORTS) \
a90ef4bf
JM
17745 (cd $(HOST_SUBDIR)/tcl && \
17746 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17747
a90ef4bf
JM
17748@endif tcl
17749
17750.PHONY: install-strip-tcl maybe-install-strip-tcl
17751maybe-install-strip-tcl:
17752@if tcl
17753maybe-install-strip-tcl: install-strip-tcl
17754
17755install-strip-tcl: installdirs
17756 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17757 @r=`${PWD_COMMAND}`; export r; \
17758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17759 $(HOST_EXPORTS) \
a90ef4bf
JM
17760 (cd $(HOST_SUBDIR)/tcl && \
17761 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17762
a90ef4bf 17763@endif tcl
e8a5fa9c 17764
a90ef4bf 17765# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17766
a90ef4bf
JM
17767.PHONY: maybe-info-tcl info-tcl
17768maybe-info-tcl:
17769@if tcl
17770maybe-info-tcl: info-tcl
e8a5fa9c 17771
a90ef4bf
JM
17772info-tcl: \
17773 configure-tcl
17774 @: $(MAKE); $(unstage)
17775 @[ -f ./tcl/Makefile ] || exit 0; \
17776 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17778 $(HOST_EXPORTS) \
17779 for flag in $(EXTRA_HOST_FLAGS) ; do \
17780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17781 done; \
22121df0 17782 echo "Doing info in tcl"; \
a90ef4bf
JM
17783 (cd $(HOST_SUBDIR)/tcl && \
17784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17786 "RANLIB=$${RANLIB}" \
17787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17788 info) \
17789 || exit 1
e8a5fa9c 17790
a90ef4bf 17791@endif tcl
e8a5fa9c 17792
a90ef4bf
JM
17793.PHONY: maybe-dvi-tcl dvi-tcl
17794maybe-dvi-tcl:
17795@if tcl
17796maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17797
a90ef4bf
JM
17798dvi-tcl: \
17799 configure-tcl
17800 @: $(MAKE); $(unstage)
17801 @[ -f ./tcl/Makefile ] || exit 0; \
17802 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17804 $(HOST_EXPORTS) \
17805 for flag in $(EXTRA_HOST_FLAGS) ; do \
17806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17807 done; \
22121df0 17808 echo "Doing dvi in tcl"; \
a90ef4bf
JM
17809 (cd $(HOST_SUBDIR)/tcl && \
17810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17812 "RANLIB=$${RANLIB}" \
17813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17814 dvi) \
17815 || exit 1
e8a5fa9c 17816
a90ef4bf 17817@endif tcl
e8a5fa9c 17818
a90ef4bf
JM
17819.PHONY: maybe-pdf-tcl pdf-tcl
17820maybe-pdf-tcl:
17821@if tcl
17822maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17823
a90ef4bf
JM
17824pdf-tcl: \
17825 configure-tcl
17826 @: $(MAKE); $(unstage)
17827 @[ -f ./tcl/Makefile ] || exit 0; \
17828 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17830 $(HOST_EXPORTS) \
a90ef4bf
JM
17831 for flag in $(EXTRA_HOST_FLAGS) ; do \
17832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17833 done; \
22121df0 17834 echo "Doing pdf in tcl"; \
a90ef4bf
JM
17835 (cd $(HOST_SUBDIR)/tcl && \
17836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17838 "RANLIB=$${RANLIB}" \
17839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17840 pdf) \
17841 || exit 1
e8a5fa9c 17842
a90ef4bf 17843@endif tcl
e8a5fa9c 17844
a90ef4bf
JM
17845.PHONY: maybe-html-tcl html-tcl
17846maybe-html-tcl:
17847@if tcl
17848maybe-html-tcl: html-tcl
e8a5fa9c 17849
a90ef4bf
JM
17850html-tcl: \
17851 configure-tcl
17852 @: $(MAKE); $(unstage)
17853 @[ -f ./tcl/Makefile ] || exit 0; \
17854 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17856 $(HOST_EXPORTS) \
a90ef4bf
JM
17857 for flag in $(EXTRA_HOST_FLAGS) ; do \
17858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17859 done; \
22121df0 17860 echo "Doing html in tcl"; \
a90ef4bf
JM
17861 (cd $(HOST_SUBDIR)/tcl && \
17862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17864 "RANLIB=$${RANLIB}" \
17865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17866 html) \
17867 || exit 1
e8a5fa9c 17868
a90ef4bf 17869@endif tcl
e8a5fa9c 17870
a90ef4bf
JM
17871.PHONY: maybe-TAGS-tcl TAGS-tcl
17872maybe-TAGS-tcl:
17873@if tcl
17874maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17875
a90ef4bf
JM
17876TAGS-tcl: \
17877 configure-tcl
17878 @: $(MAKE); $(unstage)
17879 @[ -f ./tcl/Makefile ] || exit 0; \
17880 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17882 $(HOST_EXPORTS) \
a90ef4bf
JM
17883 for flag in $(EXTRA_HOST_FLAGS) ; do \
17884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17885 done; \
22121df0 17886 echo "Doing TAGS in tcl"; \
a90ef4bf
JM
17887 (cd $(HOST_SUBDIR)/tcl && \
17888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17890 "RANLIB=$${RANLIB}" \
17891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17892 TAGS) \
17893 || exit 1
e8a5fa9c 17894
a90ef4bf 17895@endif tcl
e8a5fa9c 17896
a90ef4bf
JM
17897.PHONY: maybe-install-info-tcl install-info-tcl
17898maybe-install-info-tcl:
17899@if tcl
17900maybe-install-info-tcl: install-info-tcl
e8a5fa9c 17901
a90ef4bf
JM
17902install-info-tcl: \
17903 configure-tcl \
17904 info-tcl
e8a5fa9c 17905 @: $(MAKE); $(unstage)
a90ef4bf 17906 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17907 r=`${PWD_COMMAND}`; export r; \
17908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17909 $(HOST_EXPORTS) \
17910 for flag in $(EXTRA_HOST_FLAGS) ; do \
17911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17912 done; \
22121df0 17913 echo "Doing install-info in tcl"; \
a90ef4bf 17914 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17917 "RANLIB=$${RANLIB}" \
17918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17919 install-info) \
e8a5fa9c
RW
17920 || exit 1
17921
a90ef4bf 17922@endif tcl
e8a5fa9c 17923
a90ef4bf
JM
17924.PHONY: maybe-install-pdf-tcl install-pdf-tcl
17925maybe-install-pdf-tcl:
17926@if tcl
17927maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 17928
a90ef4bf
JM
17929install-pdf-tcl: \
17930 configure-tcl \
17931 pdf-tcl
17932 @: $(MAKE); $(unstage)
17933 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17934 r=`${PWD_COMMAND}`; export r; \
17935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17936 $(HOST_EXPORTS) \
17937 for flag in $(EXTRA_HOST_FLAGS) ; do \
17938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17939 done; \
22121df0 17940 echo "Doing install-pdf in tcl"; \
a90ef4bf 17941 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17944 "RANLIB=$${RANLIB}" \
17945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17946 install-pdf) \
e8a5fa9c
RW
17947 || exit 1
17948
a90ef4bf 17949@endif tcl
e8a5fa9c 17950
a90ef4bf
JM
17951.PHONY: maybe-install-html-tcl install-html-tcl
17952maybe-install-html-tcl:
17953@if tcl
17954maybe-install-html-tcl: install-html-tcl
e8a5fa9c 17955
a90ef4bf
JM
17956install-html-tcl: \
17957 configure-tcl \
17958 html-tcl
17959 @: $(MAKE); $(unstage)
17960 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17961 r=`${PWD_COMMAND}`; export r; \
17962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17963 $(HOST_EXPORTS) \
17964 for flag in $(EXTRA_HOST_FLAGS) ; do \
17965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17966 done; \
22121df0 17967 echo "Doing install-html in tcl"; \
a90ef4bf 17968 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17971 "RANLIB=$${RANLIB}" \
17972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17973 install-html) \
e8a5fa9c
RW
17974 || exit 1
17975
a90ef4bf 17976@endif tcl
e8a5fa9c 17977
a90ef4bf
JM
17978.PHONY: maybe-installcheck-tcl installcheck-tcl
17979maybe-installcheck-tcl:
17980@if tcl
17981maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 17982
a90ef4bf
JM
17983installcheck-tcl: \
17984 configure-tcl
17985 @: $(MAKE); $(unstage)
17986 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17987 r=`${PWD_COMMAND}`; export r; \
17988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17989 $(HOST_EXPORTS) \
17990 for flag in $(EXTRA_HOST_FLAGS) ; do \
17991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17992 done; \
22121df0 17993 echo "Doing installcheck in tcl"; \
a90ef4bf 17994 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17997 "RANLIB=$${RANLIB}" \
17998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17999 installcheck) \
e8a5fa9c
RW
18000 || exit 1
18001
a90ef4bf 18002@endif tcl
e8a5fa9c 18003
a90ef4bf
JM
18004.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
18005maybe-mostlyclean-tcl:
18006@if tcl
18007maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 18008
a90ef4bf
JM
18009# tcl doesn't support mostlyclean.
18010mostlyclean-tcl:
18011
18012@endif tcl
18013
18014.PHONY: maybe-clean-tcl clean-tcl
18015maybe-clean-tcl:
18016@if tcl
18017maybe-clean-tcl: clean-tcl
18018
18019clean-tcl:
18020 @: $(MAKE); $(unstage)
18021 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18022 r=`${PWD_COMMAND}`; export r; \
18023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18024 $(HOST_EXPORTS) \
18025 for flag in $(EXTRA_HOST_FLAGS) ; do \
18026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18027 done; \
22121df0 18028 echo "Doing clean in tcl"; \
a90ef4bf 18029 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18032 "RANLIB=$${RANLIB}" \
18033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18034 clean) \
e8a5fa9c
RW
18035 || exit 1
18036
a90ef4bf 18037@endif tcl
e8a5fa9c 18038
a90ef4bf
JM
18039.PHONY: maybe-distclean-tcl distclean-tcl
18040maybe-distclean-tcl:
18041@if tcl
18042maybe-distclean-tcl: distclean-tcl
e8a5fa9c 18043
a90ef4bf
JM
18044distclean-tcl:
18045 @: $(MAKE); $(unstage)
18046 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18047 r=`${PWD_COMMAND}`; export r; \
18048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18049 $(HOST_EXPORTS) \
18050 for flag in $(EXTRA_HOST_FLAGS) ; do \
18051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18052 done; \
22121df0 18053 echo "Doing distclean in tcl"; \
a90ef4bf 18054 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18057 "RANLIB=$${RANLIB}" \
18058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18059 distclean) \
e8a5fa9c
RW
18060 || exit 1
18061
a90ef4bf 18062@endif tcl
e8a5fa9c 18063
a90ef4bf
JM
18064.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
18065maybe-maintainer-clean-tcl:
18066@if tcl
18067maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 18068
a90ef4bf
JM
18069maintainer-clean-tcl:
18070 @: $(MAKE); $(unstage)
18071 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18072 r=`${PWD_COMMAND}`; export r; \
18073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18074 $(HOST_EXPORTS) \
18075 for flag in $(EXTRA_HOST_FLAGS) ; do \
18076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18077 done; \
22121df0 18078 echo "Doing maintainer-clean in tcl"; \
a90ef4bf 18079 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18082 "RANLIB=$${RANLIB}" \
18083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18084 maintainer-clean) \
e8a5fa9c
RW
18085 || exit 1
18086
a90ef4bf 18087@endif tcl
e8a5fa9c 18088
e8a5fa9c 18089
a90ef4bf
JM
18090
18091.PHONY: configure-itcl maybe-configure-itcl
18092maybe-configure-itcl:
18093@if gcc-bootstrap
18094configure-itcl: stage_current
18095@endif gcc-bootstrap
18096@if itcl
18097maybe-configure-itcl: configure-itcl
18098configure-itcl:
18099 @: $(MAKE); $(unstage)
18100 @r=`${PWD_COMMAND}`; export r; \
18101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18102 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
22121df0 18103 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl; \
a90ef4bf
JM
18104 $(HOST_EXPORTS) \
18105 echo Configuring in $(HOST_SUBDIR)/itcl; \
18106 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18107 case $(srcdir) in \
18108 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18109 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18110 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18111 esac; \
1b6c0831
L
18112 module_srcdir=itcl; \
18113 $(SHELL) \
18114 $$s/$$module_srcdir/configure \
18115 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18116 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18117 --target=${target_alias} \
a90ef4bf
JM
18118 || exit 1
18119@endif itcl
18120
18121
18122
18123
18124
18125.PHONY: all-itcl maybe-all-itcl
18126maybe-all-itcl:
18127@if gcc-bootstrap
18128all-itcl: stage_current
18129@endif gcc-bootstrap
18130@if itcl
18131TARGET-itcl=all
18132maybe-all-itcl: all-itcl
18133all-itcl: configure-itcl
18134 @: $(MAKE); $(unstage)
18135 @r=`${PWD_COMMAND}`; export r; \
18136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18137 $(HOST_EXPORTS) \
18138 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18139 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18140 $(TARGET-itcl))
18141@endif itcl
18142
18143
18144
18145
18146.PHONY: check-itcl maybe-check-itcl
18147maybe-check-itcl:
18148@if itcl
18149maybe-check-itcl: check-itcl
18150
18151check-itcl:
18152 @: $(MAKE); $(unstage)
18153 @r=`${PWD_COMMAND}`; export r; \
18154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18155 $(HOST_EXPORTS) \
a90ef4bf
JM
18156 (cd $(HOST_SUBDIR)/itcl && \
18157 $(MAKE) $(FLAGS_TO_PASS) check)
18158
18159@endif itcl
18160
18161.PHONY: install-itcl maybe-install-itcl
18162maybe-install-itcl:
18163@if itcl
18164maybe-install-itcl: install-itcl
18165
18166install-itcl: installdirs
18167 @: $(MAKE); $(unstage)
18168 @r=`${PWD_COMMAND}`; export r; \
18169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18170 $(HOST_EXPORTS) \
18171 (cd $(HOST_SUBDIR)/itcl && \
18172 $(MAKE) $(FLAGS_TO_PASS) install)
18173
18174@endif itcl
18175
18176.PHONY: install-strip-itcl maybe-install-strip-itcl
18177maybe-install-strip-itcl:
18178@if itcl
18179maybe-install-strip-itcl: install-strip-itcl
18180
18181install-strip-itcl: installdirs
18182 @: $(MAKE); $(unstage)
18183 @r=`${PWD_COMMAND}`; export r; \
18184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18185 $(HOST_EXPORTS) \
18186 (cd $(HOST_SUBDIR)/itcl && \
18187 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18188
18189@endif itcl
18190
18191# Other targets (info, dvi, pdf, etc.)
18192
18193.PHONY: maybe-info-itcl info-itcl
18194maybe-info-itcl:
18195@if itcl
18196maybe-info-itcl: info-itcl
18197
18198info-itcl: \
18199 configure-itcl
18200 @: $(MAKE); $(unstage)
18201 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18202 r=`${PWD_COMMAND}`; export r; \
18203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18204 $(HOST_EXPORTS) \
18205 for flag in $(EXTRA_HOST_FLAGS) ; do \
18206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18207 done; \
22121df0 18208 echo "Doing info in itcl"; \
a90ef4bf 18209 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18212 "RANLIB=$${RANLIB}" \
18213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18214 info) \
e8a5fa9c
RW
18215 || exit 1
18216
a90ef4bf 18217@endif itcl
e8a5fa9c 18218
a90ef4bf
JM
18219.PHONY: maybe-dvi-itcl dvi-itcl
18220maybe-dvi-itcl:
18221@if itcl
18222maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18223
a90ef4bf
JM
18224dvi-itcl: \
18225 configure-itcl
18226 @: $(MAKE); $(unstage)
18227 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18228 r=`${PWD_COMMAND}`; export r; \
18229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18230 $(HOST_EXPORTS) \
18231 for flag in $(EXTRA_HOST_FLAGS) ; do \
18232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18233 done; \
22121df0 18234 echo "Doing dvi in itcl"; \
a90ef4bf 18235 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18238 "RANLIB=$${RANLIB}" \
18239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18240 dvi) \
e8a5fa9c
RW
18241 || exit 1
18242
a90ef4bf 18243@endif itcl
e8a5fa9c 18244
a90ef4bf
JM
18245.PHONY: maybe-pdf-itcl pdf-itcl
18246maybe-pdf-itcl:
18247@if itcl
18248maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18249
a90ef4bf
JM
18250pdf-itcl: \
18251 configure-itcl
18252 @: $(MAKE); $(unstage)
18253 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18254 r=`${PWD_COMMAND}`; export r; \
18255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18256 $(HOST_EXPORTS) \
18257 for flag in $(EXTRA_HOST_FLAGS) ; do \
18258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18259 done; \
22121df0 18260 echo "Doing pdf in itcl"; \
a90ef4bf 18261 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18264 "RANLIB=$${RANLIB}" \
18265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18266 pdf) \
e8a5fa9c
RW
18267 || exit 1
18268
a90ef4bf 18269@endif itcl
e8a5fa9c 18270
a90ef4bf
JM
18271.PHONY: maybe-html-itcl html-itcl
18272maybe-html-itcl:
18273@if itcl
18274maybe-html-itcl: html-itcl
e8a5fa9c 18275
a90ef4bf
JM
18276html-itcl: \
18277 configure-itcl
18278 @: $(MAKE); $(unstage)
18279 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18280 r=`${PWD_COMMAND}`; export r; \
18281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18282 $(HOST_EXPORTS) \
18283 for flag in $(EXTRA_HOST_FLAGS) ; do \
18284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18285 done; \
22121df0 18286 echo "Doing html in itcl"; \
a90ef4bf 18287 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18290 "RANLIB=$${RANLIB}" \
18291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18292 html) \
e8a5fa9c
RW
18293 || exit 1
18294
a90ef4bf 18295@endif itcl
e8a5fa9c 18296
a90ef4bf
JM
18297.PHONY: maybe-TAGS-itcl TAGS-itcl
18298maybe-TAGS-itcl:
18299@if itcl
18300maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18301
a90ef4bf
JM
18302TAGS-itcl: \
18303 configure-itcl
18304 @: $(MAKE); $(unstage)
18305 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18306 r=`${PWD_COMMAND}`; export r; \
18307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18308 $(HOST_EXPORTS) \
18309 for flag in $(EXTRA_HOST_FLAGS) ; do \
18310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18311 done; \
22121df0 18312 echo "Doing TAGS in itcl"; \
a90ef4bf
JM
18313 (cd $(HOST_SUBDIR)/itcl && \
18314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18316 "RANLIB=$${RANLIB}" \
18317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18318 TAGS) \
18319 || exit 1
18320
18321@endif itcl
18322
18323.PHONY: maybe-install-info-itcl install-info-itcl
18324maybe-install-info-itcl:
18325@if itcl
18326maybe-install-info-itcl: install-info-itcl
18327
18328install-info-itcl: \
18329 configure-itcl \
18330 info-itcl
18331 @: $(MAKE); $(unstage)
18332 @[ -f ./itcl/Makefile ] || exit 0; \
18333 r=`${PWD_COMMAND}`; export r; \
18334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18335 $(HOST_EXPORTS) \
18336 for flag in $(EXTRA_HOST_FLAGS) ; do \
18337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18338 done; \
22121df0 18339 echo "Doing install-info in itcl"; \
a90ef4bf
JM
18340 (cd $(HOST_SUBDIR)/itcl && \
18341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18343 "RANLIB=$${RANLIB}" \
18344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18345 install-info) \
18346 || exit 1
18347
18348@endif itcl
18349
18350.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18351maybe-install-pdf-itcl:
18352@if itcl
18353maybe-install-pdf-itcl: install-pdf-itcl
18354
18355install-pdf-itcl: \
18356 configure-itcl \
18357 pdf-itcl
18358 @: $(MAKE); $(unstage)
18359 @[ -f ./itcl/Makefile ] || exit 0; \
18360 r=`${PWD_COMMAND}`; export r; \
18361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18362 $(HOST_EXPORTS) \
18363 for flag in $(EXTRA_HOST_FLAGS) ; do \
18364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18365 done; \
22121df0 18366 echo "Doing install-pdf in itcl"; \
a90ef4bf
JM
18367 (cd $(HOST_SUBDIR)/itcl && \
18368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18370 "RANLIB=$${RANLIB}" \
18371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18372 install-pdf) \
18373 || exit 1
18374
18375@endif itcl
18376
18377.PHONY: maybe-install-html-itcl install-html-itcl
18378maybe-install-html-itcl:
18379@if itcl
18380maybe-install-html-itcl: install-html-itcl
18381
18382install-html-itcl: \
18383 configure-itcl \
18384 html-itcl
18385 @: $(MAKE); $(unstage)
18386 @[ -f ./itcl/Makefile ] || exit 0; \
18387 r=`${PWD_COMMAND}`; export r; \
18388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18389 $(HOST_EXPORTS) \
18390 for flag in $(EXTRA_HOST_FLAGS) ; do \
18391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18392 done; \
22121df0 18393 echo "Doing install-html in itcl"; \
a90ef4bf
JM
18394 (cd $(HOST_SUBDIR)/itcl && \
18395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18397 "RANLIB=$${RANLIB}" \
18398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18399 install-html) \
18400 || exit 1
18401
18402@endif itcl
18403
18404.PHONY: maybe-installcheck-itcl installcheck-itcl
18405maybe-installcheck-itcl:
18406@if itcl
18407maybe-installcheck-itcl: installcheck-itcl
18408
18409installcheck-itcl: \
18410 configure-itcl
18411 @: $(MAKE); $(unstage)
18412 @[ -f ./itcl/Makefile ] || exit 0; \
18413 r=`${PWD_COMMAND}`; export r; \
18414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18415 $(HOST_EXPORTS) \
18416 for flag in $(EXTRA_HOST_FLAGS) ; do \
18417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18418 done; \
22121df0 18419 echo "Doing installcheck in itcl"; \
a90ef4bf
JM
18420 (cd $(HOST_SUBDIR)/itcl && \
18421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18423 "RANLIB=$${RANLIB}" \
18424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18425 installcheck) \
18426 || exit 1
18427
18428@endif itcl
18429
18430.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18431maybe-mostlyclean-itcl:
18432@if itcl
18433maybe-mostlyclean-itcl: mostlyclean-itcl
18434
18435mostlyclean-itcl:
18436 @: $(MAKE); $(unstage)
18437 @[ -f ./itcl/Makefile ] || exit 0; \
18438 r=`${PWD_COMMAND}`; export r; \
18439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18440 $(HOST_EXPORTS) \
18441 for flag in $(EXTRA_HOST_FLAGS) ; do \
18442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18443 done; \
22121df0 18444 echo "Doing mostlyclean in itcl"; \
a90ef4bf
JM
18445 (cd $(HOST_SUBDIR)/itcl && \
18446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18448 "RANLIB=$${RANLIB}" \
18449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18450 mostlyclean) \
18451 || exit 1
18452
18453@endif itcl
18454
18455.PHONY: maybe-clean-itcl clean-itcl
18456maybe-clean-itcl:
18457@if itcl
18458maybe-clean-itcl: clean-itcl
18459
18460clean-itcl:
18461 @: $(MAKE); $(unstage)
18462 @[ -f ./itcl/Makefile ] || exit 0; \
18463 r=`${PWD_COMMAND}`; export r; \
18464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18465 $(HOST_EXPORTS) \
18466 for flag in $(EXTRA_HOST_FLAGS) ; do \
18467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18468 done; \
22121df0 18469 echo "Doing clean in itcl"; \
a90ef4bf
JM
18470 (cd $(HOST_SUBDIR)/itcl && \
18471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18473 "RANLIB=$${RANLIB}" \
18474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18475 clean) \
18476 || exit 1
18477
18478@endif itcl
18479
18480.PHONY: maybe-distclean-itcl distclean-itcl
18481maybe-distclean-itcl:
18482@if itcl
18483maybe-distclean-itcl: distclean-itcl
18484
18485distclean-itcl:
18486 @: $(MAKE); $(unstage)
18487 @[ -f ./itcl/Makefile ] || exit 0; \
18488 r=`${PWD_COMMAND}`; export r; \
18489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18490 $(HOST_EXPORTS) \
18491 for flag in $(EXTRA_HOST_FLAGS) ; do \
18492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18493 done; \
22121df0 18494 echo "Doing distclean in itcl"; \
a90ef4bf 18495 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18498 "RANLIB=$${RANLIB}" \
18499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18500 distclean) \
18501 || exit 1
18502
a90ef4bf 18503@endif itcl
e8a5fa9c 18504
a90ef4bf
JM
18505.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18506maybe-maintainer-clean-itcl:
18507@if itcl
18508maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18509
a90ef4bf
JM
18510maintainer-clean-itcl:
18511 @: $(MAKE); $(unstage)
18512 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18513 r=`${PWD_COMMAND}`; export r; \
18514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18515 $(HOST_EXPORTS) \
18516 for flag in $(EXTRA_HOST_FLAGS) ; do \
18517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18518 done; \
22121df0 18519 echo "Doing maintainer-clean in itcl"; \
a90ef4bf 18520 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18523 "RANLIB=$${RANLIB}" \
18524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18525 maintainer-clean) \
18526 || exit 1
18527
a90ef4bf 18528@endif itcl
e8a5fa9c
RW
18529
18530
18531
a90ef4bf
JM
18532.PHONY: configure-ld maybe-configure-ld
18533maybe-configure-ld:
e28c595f 18534@if gcc-bootstrap
a90ef4bf 18535configure-ld: stage_current
e28c595f 18536@endif gcc-bootstrap
a90ef4bf
JM
18537@if ld
18538maybe-configure-ld: configure-ld
18539configure-ld:
e28c595f
JM
18540 @r=`${PWD_COMMAND}`; export r; \
18541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18542 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
22121df0 18543 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
1f53ca9a 18544 $(HOST_EXPORTS) \
a90ef4bf
JM
18545 echo Configuring in $(HOST_SUBDIR)/ld; \
18546 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18547 case $(srcdir) in \
18548 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18549 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18550 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18551 esac; \
1b6c0831
L
18552 module_srcdir=ld; \
18553 $(SHELL) \
18554 $$s/$$module_srcdir/configure \
18555 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18556 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18557 --target=${target_alias} \
e28c595f 18558 || exit 1
a90ef4bf 18559@endif ld
e28c595f
JM
18560
18561
18562
a90ef4bf
JM
18563.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18564maybe-configure-stage1-ld:
18565@if ld-bootstrap
18566maybe-configure-stage1-ld: configure-stage1-ld
18567configure-stage1-ld:
e28c595f 18568 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18569 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18570 @r=`${PWD_COMMAND}`; export r; \
18571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18572 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18573 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18574 $(HOST_EXPORTS) \
e28c595f 18575 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18576 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18577 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
18578 echo Configuring stage 1 in $(HOST_SUBDIR)/ld; \
18579 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18580 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18581 case $(srcdir) in \
18582 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18583 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18584 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18585 esac; \
1b6c0831
L
18586 module_srcdir=ld; \
18587 $(SHELL) $$s/$$module_srcdir/configure \
18588 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18589 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18590 --target=${target_alias} \
18591 \
a90ef4bf
JM
18592 $(STAGE1_CONFIGURE_FLAGS)
18593@endif ld-bootstrap
e28c595f 18594
a90ef4bf
JM
18595.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18596maybe-configure-stage2-ld:
18597@if ld-bootstrap
18598maybe-configure-stage2-ld: configure-stage2-ld
18599configure-stage2-ld:
e28c595f 18600 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18601 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18602 @r=`${PWD_COMMAND}`; export r; \
18603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18604 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18605 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18606 $(HOST_EXPORTS) \
1b05fbbd 18607 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18608 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18609 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18610 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18611 echo Configuring stage 2 in $(HOST_SUBDIR)/ld; \
18612 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18613 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18614 case $(srcdir) in \
18615 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18616 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18617 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18618 esac; \
1b6c0831
L
18619 module_srcdir=ld; \
18620 $(SHELL) $$s/$$module_srcdir/configure \
18621 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18622 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18623 --target=${target_alias} \
22121df0 18624 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18625 $(STAGE2_CONFIGURE_FLAGS)
18626@endif ld-bootstrap
e28c595f 18627
a90ef4bf
JM
18628.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18629maybe-configure-stage3-ld:
18630@if ld-bootstrap
18631maybe-configure-stage3-ld: configure-stage3-ld
18632configure-stage3-ld:
e28c595f 18633 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18634 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18635 @r=`${PWD_COMMAND}`; export r; \
18636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18637 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18638 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18639 $(HOST_EXPORTS) \
1b05fbbd 18640 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18641 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18642 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18643 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18644 echo Configuring stage 3 in $(HOST_SUBDIR)/ld; \
18645 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18646 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18647 case $(srcdir) in \
18648 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18649 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18650 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18651 esac; \
1b6c0831
L
18652 module_srcdir=ld; \
18653 $(SHELL) $$s/$$module_srcdir/configure \
18654 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18655 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18656 --target=${target_alias} \
22121df0 18657 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18658 $(STAGE3_CONFIGURE_FLAGS)
18659@endif ld-bootstrap
e28c595f 18660
a90ef4bf
JM
18661.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18662maybe-configure-stage4-ld:
18663@if ld-bootstrap
18664maybe-configure-stage4-ld: configure-stage4-ld
18665configure-stage4-ld:
e28c595f 18666 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 18667 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18668 @r=`${PWD_COMMAND}`; export r; \
18669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18670 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 18671 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18672 $(HOST_EXPORTS) \
1b05fbbd 18673 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18674 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18675 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18676 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18677 echo Configuring stage 4 in $(HOST_SUBDIR)/ld; \
18678 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18679 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18680 case $(srcdir) in \
18681 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18682 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18683 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18684 esac; \
1b6c0831
L
18685 module_srcdir=ld; \
18686 $(SHELL) $$s/$$module_srcdir/configure \
18687 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18688 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18689 --target=${target_alias} \
22121df0 18690 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18691 $(STAGE4_CONFIGURE_FLAGS)
18692@endif ld-bootstrap
e28c595f 18693
a90ef4bf
JM
18694.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18695maybe-configure-stageprofile-ld:
18696@if ld-bootstrap
18697maybe-configure-stageprofile-ld: configure-stageprofile-ld
18698configure-stageprofile-ld:
e28c595f 18699 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18700 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18701 @r=`${PWD_COMMAND}`; export r; \
18702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18703 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18704 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18705 $(HOST_EXPORTS) \
1b05fbbd
AO
18706 $(POSTSTAGE1_HOST_EXPORTS) \
18707 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18708 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18709 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18710 echo Configuring stage profile in $(HOST_SUBDIR)/ld; \
18711 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18712 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18713 case $(srcdir) in \
18714 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18715 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18716 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18717 esac; \
1b6c0831
L
18718 module_srcdir=ld; \
18719 $(SHELL) $$s/$$module_srcdir/configure \
18720 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18721 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18722 --target=${target_alias} \
22121df0 18723 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18724 $(STAGEprofile_CONFIGURE_FLAGS)
18725@endif ld-bootstrap
e28c595f 18726
a90ef4bf
JM
18727.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18728maybe-configure-stagefeedback-ld:
18729@if ld-bootstrap
18730maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18731configure-stagefeedback-ld:
e28c595f 18732 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18733 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18734 @r=`${PWD_COMMAND}`; export r; \
18735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18736 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18737 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18738 $(HOST_EXPORTS) \
1b05fbbd
AO
18739 $(POSTSTAGE1_HOST_EXPORTS) \
18740 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18741 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18742 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18743 echo Configuring stage feedback in $(HOST_SUBDIR)/ld; \
18744 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18745 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18746 case $(srcdir) in \
18747 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18748 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18749 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18750 esac; \
1b6c0831
L
18751 module_srcdir=ld; \
18752 $(SHELL) $$s/$$module_srcdir/configure \
18753 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18754 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18755 --target=${target_alias} \
22121df0 18756 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18757 $(STAGEfeedback_CONFIGURE_FLAGS)
18758@endif ld-bootstrap
e28c595f
JM
18759
18760
18761
18762
18763
a90ef4bf
JM
18764.PHONY: all-ld maybe-all-ld
18765maybe-all-ld:
e28c595f 18766@if gcc-bootstrap
a90ef4bf 18767all-ld: stage_current
e28c595f 18768@endif gcc-bootstrap
a90ef4bf
JM
18769@if ld
18770TARGET-ld=all
18771maybe-all-ld: all-ld
18772all-ld: configure-ld
e28c595f
JM
18773 @r=`${PWD_COMMAND}`; export r; \
18774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18775 $(HOST_EXPORTS) \
a90ef4bf 18776 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18777 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18778 $(TARGET-ld))
18779@endif ld
e28c595f
JM
18780
18781
18782
a90ef4bf
JM
18783.PHONY: all-stage1-ld maybe-all-stage1-ld
18784.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18785maybe-all-stage1-ld:
18786maybe-clean-stage1-ld:
18787@if ld-bootstrap
18788maybe-all-stage1-ld: all-stage1-ld
18789all-stage1: all-stage1-ld
18790TARGET-stage1-ld = $(TARGET-ld)
18791all-stage1-ld: configure-stage1-ld
e28c595f
JM
18792 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18793 @r=`${PWD_COMMAND}`; export r; \
18794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18795 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18796 $(HOST_EXPORTS) \
a90ef4bf 18797 cd $(HOST_SUBDIR)/ld && \
05a13254 18798 \
e28c595f 18799 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18800 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18801 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18802 LIBCFLAGS="$(LIBCFLAGS)" \
18803 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18804 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18805 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18806 $(EXTRA_HOST_FLAGS) \
18807 $(STAGE1_FLAGS_TO_PASS) \
05a13254 18808 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18809 $(TARGET-stage1-ld)
e28c595f 18810
a90ef4bf
JM
18811maybe-clean-stage1-ld: clean-stage1-ld
18812clean-stage1: clean-stage1-ld
18813clean-stage1-ld:
e28c595f 18814 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18815 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18816 else \
a90ef4bf 18817 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18818 $(MAKE) stage1-start; \
18819 fi; \
a90ef4bf 18820 cd $(HOST_SUBDIR)/ld && \
e28c595f 18821 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18822 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18823@endif ld-bootstrap
e28c595f
JM
18824
18825
a90ef4bf
JM
18826.PHONY: all-stage2-ld maybe-all-stage2-ld
18827.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18828maybe-all-stage2-ld:
18829maybe-clean-stage2-ld:
18830@if ld-bootstrap
18831maybe-all-stage2-ld: all-stage2-ld
18832all-stage2: all-stage2-ld
18833TARGET-stage2-ld = $(TARGET-ld)
18834all-stage2-ld: configure-stage2-ld
e28c595f
JM
18835 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18836 @r=`${PWD_COMMAND}`; export r; \
18837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18838 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18839 $(HOST_EXPORTS) \
1f53ca9a 18840 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18841 cd $(HOST_SUBDIR)/ld && \
05a13254 18842 \
e28c595f 18843 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18844 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18845 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18846 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18847 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18848 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18849 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18850 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18851 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18852 $(TARGET-stage2-ld)
e28c595f 18853
a90ef4bf
JM
18854maybe-clean-stage2-ld: clean-stage2-ld
18855clean-stage2: clean-stage2-ld
18856clean-stage2-ld:
e28c595f 18857 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18858 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18859 else \
a90ef4bf 18860 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18861 $(MAKE) stage2-start; \
18862 fi; \
a90ef4bf 18863 cd $(HOST_SUBDIR)/ld && \
b3676d82 18864 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18865@endif ld-bootstrap
e28c595f
JM
18866
18867
a90ef4bf
JM
18868.PHONY: all-stage3-ld maybe-all-stage3-ld
18869.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18870maybe-all-stage3-ld:
18871maybe-clean-stage3-ld:
18872@if ld-bootstrap
18873maybe-all-stage3-ld: all-stage3-ld
18874all-stage3: all-stage3-ld
18875TARGET-stage3-ld = $(TARGET-ld)
18876all-stage3-ld: configure-stage3-ld
e28c595f
JM
18877 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18878 @r=`${PWD_COMMAND}`; export r; \
18879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18880 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18881 $(HOST_EXPORTS) \
1f53ca9a 18882 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18883 cd $(HOST_SUBDIR)/ld && \
05a13254 18884 \
e28c595f 18885 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18886 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18887 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18888 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18889 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18890 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18891 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18892 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18893 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18894 $(TARGET-stage3-ld)
e28c595f 18895
a90ef4bf
JM
18896maybe-clean-stage3-ld: clean-stage3-ld
18897clean-stage3: clean-stage3-ld
18898clean-stage3-ld:
e28c595f 18899 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 18900 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18901 else \
a90ef4bf 18902 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
18903 $(MAKE) stage3-start; \
18904 fi; \
a90ef4bf 18905 cd $(HOST_SUBDIR)/ld && \
b3676d82 18906 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18907@endif ld-bootstrap
e28c595f
JM
18908
18909
a90ef4bf
JM
18910.PHONY: all-stage4-ld maybe-all-stage4-ld
18911.PHONY: clean-stage4-ld maybe-clean-stage4-ld
18912maybe-all-stage4-ld:
18913maybe-clean-stage4-ld:
18914@if ld-bootstrap
18915maybe-all-stage4-ld: all-stage4-ld
18916all-stage4: all-stage4-ld
18917TARGET-stage4-ld = $(TARGET-ld)
18918all-stage4-ld: configure-stage4-ld
e28c595f
JM
18919 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18920 @r=`${PWD_COMMAND}`; export r; \
18921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18922 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 18923 $(HOST_EXPORTS) \
1f53ca9a 18924 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18925 cd $(HOST_SUBDIR)/ld && \
05a13254 18926 \
e28c595f 18927 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18928 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 18929 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 18930 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
18931 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18932 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18933 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18934 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18935 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 18936 $(TARGET-stage4-ld)
e28c595f 18937
a90ef4bf
JM
18938maybe-clean-stage4-ld: clean-stage4-ld
18939clean-stage4: clean-stage4-ld
18940clean-stage4-ld:
e28c595f 18941 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 18942 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18943 else \
a90ef4bf 18944 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
18945 $(MAKE) stage4-start; \
18946 fi; \
a90ef4bf 18947 cd $(HOST_SUBDIR)/ld && \
b3676d82 18948 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18949@endif ld-bootstrap
e28c595f
JM
18950
18951
a90ef4bf
JM
18952.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
18953.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
18954maybe-all-stageprofile-ld:
18955maybe-clean-stageprofile-ld:
18956@if ld-bootstrap
18957maybe-all-stageprofile-ld: all-stageprofile-ld
18958all-stageprofile: all-stageprofile-ld
18959TARGET-stageprofile-ld = $(TARGET-ld)
18960all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
18961 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18962 @r=`${PWD_COMMAND}`; export r; \
18963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18964 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 18965 $(HOST_EXPORTS) \
1f53ca9a 18966 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18967 cd $(HOST_SUBDIR)/ld && \
05a13254 18968 \
e28c595f 18969 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18970 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 18971 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
18972 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
18973 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18974 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18975 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18976 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18977 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 18978 $(TARGET-stageprofile-ld)
e28c595f 18979
a90ef4bf
JM
18980maybe-clean-stageprofile-ld: clean-stageprofile-ld
18981clean-stageprofile: clean-stageprofile-ld
18982clean-stageprofile-ld:
e28c595f 18983 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 18984 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18985 else \
a90ef4bf 18986 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
18987 $(MAKE) stageprofile-start; \
18988 fi; \
a90ef4bf 18989 cd $(HOST_SUBDIR)/ld && \
b3676d82 18990 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18991@endif ld-bootstrap
e28c595f
JM
18992
18993
a90ef4bf
JM
18994.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
18995.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
18996maybe-all-stagefeedback-ld:
18997maybe-clean-stagefeedback-ld:
18998@if ld-bootstrap
18999maybe-all-stagefeedback-ld: all-stagefeedback-ld
19000all-stagefeedback: all-stagefeedback-ld
19001TARGET-stagefeedback-ld = $(TARGET-ld)
19002all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
19003 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19004 @r=`${PWD_COMMAND}`; export r; \
19005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19006 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 19007 $(HOST_EXPORTS) \
1f53ca9a 19008 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 19009 cd $(HOST_SUBDIR)/ld && \
05a13254 19010 \
e28c595f 19011 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 19012 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 19013 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
19014 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19015 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19016 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19017 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19018 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19019 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 19020 $(TARGET-stagefeedback-ld)
e28c595f 19021
a90ef4bf
JM
19022maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
19023clean-stagefeedback: clean-stagefeedback-ld
19024clean-stagefeedback-ld:
e28c595f 19025 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 19026 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19027 else \
a90ef4bf 19028 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
19029 $(MAKE) stagefeedback-start; \
19030 fi; \
a90ef4bf 19031 cd $(HOST_SUBDIR)/ld && \
b3676d82 19032 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19033@endif ld-bootstrap
e28c595f
JM
19034
19035
19036
19037
19038
a90ef4bf
JM
19039.PHONY: check-ld maybe-check-ld
19040maybe-check-ld:
19041@if ld
19042maybe-check-ld: check-ld
e28c595f 19043
a90ef4bf 19044check-ld:
e28c595f
JM
19045 @: $(MAKE); $(unstage)
19046 @r=`${PWD_COMMAND}`; export r; \
19047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19048 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 19049 (cd $(HOST_SUBDIR)/ld && \
f91ca6bc 19050 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 19051
a90ef4bf 19052@endif ld
e28c595f 19053
a90ef4bf
JM
19054.PHONY: install-ld maybe-install-ld
19055maybe-install-ld:
19056@if ld
19057maybe-install-ld: install-ld
e28c595f 19058
a90ef4bf
JM
19059install-ld: installdirs
19060 @: $(MAKE); $(unstage)
19061 @r=`${PWD_COMMAND}`; export r; \
19062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19063 $(HOST_EXPORTS) \
19064 (cd $(HOST_SUBDIR)/ld && \
19065 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 19066
a90ef4bf 19067@endif ld
e28c595f 19068
a90ef4bf
JM
19069.PHONY: install-strip-ld maybe-install-strip-ld
19070maybe-install-strip-ld:
19071@if ld
19072maybe-install-strip-ld: install-strip-ld
9b980aa1 19073
a90ef4bf
JM
19074install-strip-ld: installdirs
19075 @: $(MAKE); $(unstage)
19076 @r=`${PWD_COMMAND}`; export r; \
19077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19078 $(HOST_EXPORTS) \
19079 (cd $(HOST_SUBDIR)/ld && \
19080 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 19081
a90ef4bf 19082@endif ld
9b980aa1 19083
e28c595f
JM
19084# Other targets (info, dvi, pdf, etc.)
19085
a90ef4bf
JM
19086.PHONY: maybe-info-ld info-ld
19087maybe-info-ld:
19088@if ld
19089maybe-info-ld: info-ld
e28c595f 19090
a90ef4bf
JM
19091info-ld: \
19092 configure-ld
19093 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19094 r=`${PWD_COMMAND}`; export r; \
19095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19096 $(HOST_EXPORTS) \
19097 for flag in $(EXTRA_HOST_FLAGS) ; do \
19098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19099 done; \
22121df0 19100 echo "Doing info in ld"; \
a90ef4bf 19101 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19104 "RANLIB=$${RANLIB}" \
19105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19106 info) \
19107 || exit 1
19108
a90ef4bf 19109@endif ld
e28c595f 19110
a90ef4bf
JM
19111.PHONY: maybe-dvi-ld dvi-ld
19112maybe-dvi-ld:
19113@if ld
19114maybe-dvi-ld: dvi-ld
e28c595f 19115
a90ef4bf
JM
19116dvi-ld: \
19117 configure-ld
19118 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19119 r=`${PWD_COMMAND}`; export r; \
19120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19121 $(HOST_EXPORTS) \
19122 for flag in $(EXTRA_HOST_FLAGS) ; do \
19123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19124 done; \
22121df0 19125 echo "Doing dvi in ld"; \
a90ef4bf 19126 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19129 "RANLIB=$${RANLIB}" \
19130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19131 dvi) \
19132 || exit 1
19133
a90ef4bf 19134@endif ld
e28c595f 19135
a90ef4bf
JM
19136.PHONY: maybe-pdf-ld pdf-ld
19137maybe-pdf-ld:
19138@if ld
19139maybe-pdf-ld: pdf-ld
e28c595f 19140
a90ef4bf
JM
19141pdf-ld: \
19142 configure-ld
19143 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19144 r=`${PWD_COMMAND}`; export r; \
19145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19146 $(HOST_EXPORTS) \
19147 for flag in $(EXTRA_HOST_FLAGS) ; do \
19148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19149 done; \
22121df0 19150 echo "Doing pdf in ld"; \
a90ef4bf 19151 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19154 "RANLIB=$${RANLIB}" \
19155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19156 pdf) \
19157 || exit 1
19158
a90ef4bf 19159@endif ld
e28c595f 19160
a90ef4bf
JM
19161.PHONY: maybe-html-ld html-ld
19162maybe-html-ld:
19163@if ld
19164maybe-html-ld: html-ld
e28c595f 19165
a90ef4bf
JM
19166html-ld: \
19167 configure-ld
19168 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19169 r=`${PWD_COMMAND}`; export r; \
19170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19171 $(HOST_EXPORTS) \
19172 for flag in $(EXTRA_HOST_FLAGS) ; do \
19173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19174 done; \
22121df0 19175 echo "Doing html in ld"; \
a90ef4bf 19176 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19179 "RANLIB=$${RANLIB}" \
19180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19181 html) \
19182 || exit 1
19183
a90ef4bf 19184@endif ld
e28c595f 19185
a90ef4bf
JM
19186.PHONY: maybe-TAGS-ld TAGS-ld
19187maybe-TAGS-ld:
19188@if ld
19189maybe-TAGS-ld: TAGS-ld
e28c595f 19190
a90ef4bf
JM
19191TAGS-ld: \
19192 configure-ld
19193 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19194 r=`${PWD_COMMAND}`; export r; \
19195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19196 $(HOST_EXPORTS) \
19197 for flag in $(EXTRA_HOST_FLAGS) ; do \
19198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19199 done; \
22121df0 19200 echo "Doing TAGS in ld"; \
a90ef4bf 19201 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19204 "RANLIB=$${RANLIB}" \
19205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19206 TAGS) \
19207 || exit 1
19208
a90ef4bf 19209@endif ld
e28c595f 19210
a90ef4bf
JM
19211.PHONY: maybe-install-info-ld install-info-ld
19212maybe-install-info-ld:
19213@if ld
19214maybe-install-info-ld: install-info-ld
e28c595f 19215
a90ef4bf
JM
19216install-info-ld: \
19217 configure-ld \
19218 info-ld
19219 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19220 r=`${PWD_COMMAND}`; export r; \
19221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19222 $(HOST_EXPORTS) \
19223 for flag in $(EXTRA_HOST_FLAGS) ; do \
19224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19225 done; \
22121df0 19226 echo "Doing install-info in ld"; \
a90ef4bf 19227 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19230 "RANLIB=$${RANLIB}" \
19231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19232 install-info) \
19233 || exit 1
19234
a90ef4bf 19235@endif ld
e28c595f 19236
a90ef4bf
JM
19237.PHONY: maybe-install-pdf-ld install-pdf-ld
19238maybe-install-pdf-ld:
19239@if ld
19240maybe-install-pdf-ld: install-pdf-ld
e28c595f 19241
a90ef4bf
JM
19242install-pdf-ld: \
19243 configure-ld \
19244 pdf-ld
19245 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19246 r=`${PWD_COMMAND}`; export r; \
19247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19248 $(HOST_EXPORTS) \
19249 for flag in $(EXTRA_HOST_FLAGS) ; do \
19250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19251 done; \
22121df0 19252 echo "Doing install-pdf in ld"; \
a90ef4bf 19253 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19256 "RANLIB=$${RANLIB}" \
19257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19258 install-pdf) \
19259 || exit 1
19260
a90ef4bf 19261@endif ld
e28c595f 19262
a90ef4bf
JM
19263.PHONY: maybe-install-html-ld install-html-ld
19264maybe-install-html-ld:
19265@if ld
19266maybe-install-html-ld: install-html-ld
e28c595f 19267
a90ef4bf
JM
19268install-html-ld: \
19269 configure-ld \
19270 html-ld
19271 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19272 r=`${PWD_COMMAND}`; export r; \
19273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19274 $(HOST_EXPORTS) \
19275 for flag in $(EXTRA_HOST_FLAGS) ; do \
19276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19277 done; \
22121df0 19278 echo "Doing install-html in ld"; \
a90ef4bf 19279 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19282 "RANLIB=$${RANLIB}" \
19283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19284 install-html) \
19285 || exit 1
19286
a90ef4bf 19287@endif ld
e28c595f 19288
a90ef4bf
JM
19289.PHONY: maybe-installcheck-ld installcheck-ld
19290maybe-installcheck-ld:
19291@if ld
19292maybe-installcheck-ld: installcheck-ld
e28c595f 19293
a90ef4bf
JM
19294installcheck-ld: \
19295 configure-ld
19296 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19297 r=`${PWD_COMMAND}`; export r; \
19298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19299 $(HOST_EXPORTS) \
19300 for flag in $(EXTRA_HOST_FLAGS) ; do \
19301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19302 done; \
22121df0 19303 echo "Doing installcheck in ld"; \
a90ef4bf 19304 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19307 "RANLIB=$${RANLIB}" \
0c24b341 19308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19309 installcheck) \
19310 || exit 1
19311
a90ef4bf 19312@endif ld
4b900473 19313
a90ef4bf
JM
19314.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19315maybe-mostlyclean-ld:
19316@if ld
19317maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19318
a90ef4bf
JM
19319mostlyclean-ld:
19320 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19321 r=`${PWD_COMMAND}`; export r; \
19322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19323 $(HOST_EXPORTS) \
19324 for flag in $(EXTRA_HOST_FLAGS) ; do \
19325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19326 done; \
22121df0 19327 echo "Doing mostlyclean in ld"; \
a90ef4bf 19328 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19331 "RANLIB=$${RANLIB}" \
0c24b341 19332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19333 mostlyclean) \
19334 || exit 1
19335
a90ef4bf 19336@endif ld
4b900473 19337
a90ef4bf
JM
19338.PHONY: maybe-clean-ld clean-ld
19339maybe-clean-ld:
19340@if ld
19341maybe-clean-ld: clean-ld
4b900473 19342
a90ef4bf
JM
19343clean-ld:
19344 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19345 r=`${PWD_COMMAND}`; export r; \
19346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19347 $(HOST_EXPORTS) \
19348 for flag in $(EXTRA_HOST_FLAGS) ; do \
19349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19350 done; \
22121df0 19351 echo "Doing clean in ld"; \
a90ef4bf 19352 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19355 "RANLIB=$${RANLIB}" \
0c24b341 19356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19357 clean) \
19358 || exit 1
19359
a90ef4bf 19360@endif ld
4b900473 19361
a90ef4bf
JM
19362.PHONY: maybe-distclean-ld distclean-ld
19363maybe-distclean-ld:
19364@if ld
19365maybe-distclean-ld: distclean-ld
4b900473 19366
a90ef4bf
JM
19367distclean-ld:
19368 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19369 r=`${PWD_COMMAND}`; export r; \
19370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19371 $(HOST_EXPORTS) \
19372 for flag in $(EXTRA_HOST_FLAGS) ; do \
19373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19374 done; \
22121df0 19375 echo "Doing distclean in ld"; \
a90ef4bf 19376 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19379 "RANLIB=$${RANLIB}" \
0c24b341 19380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19381 distclean) \
19382 || exit 1
19383
a90ef4bf 19384@endif ld
4b900473 19385
a90ef4bf
JM
19386.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19387maybe-maintainer-clean-ld:
19388@if ld
19389maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19390
a90ef4bf
JM
19391maintainer-clean-ld:
19392 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19393 r=`${PWD_COMMAND}`; export r; \
19394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19395 $(HOST_EXPORTS) \
19396 for flag in $(EXTRA_HOST_FLAGS) ; do \
19397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19398 done; \
22121df0 19399 echo "Doing maintainer-clean in ld"; \
a90ef4bf 19400 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19403 "RANLIB=$${RANLIB}" \
0c24b341 19404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19405 maintainer-clean) \
19406 || exit 1
19407
a90ef4bf 19408@endif ld
4b900473
PB
19409
19410
19411
2bf680c4
ILT
19412.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19413maybe-configure-libbacktrace:
19414@if gcc-bootstrap
19415configure-libbacktrace: stage_current
19416@endif gcc-bootstrap
19417@if libbacktrace
19418maybe-configure-libbacktrace: configure-libbacktrace
19419configure-libbacktrace:
19420 @r=`${PWD_COMMAND}`; export r; \
19421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19422 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 19423 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19424 $(HOST_EXPORTS) \
19425 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19426 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19427 case $(srcdir) in \
19428 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19429 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19430 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19431 esac; \
1b6c0831
L
19432 module_srcdir=libbacktrace; \
19433 $(SHELL) \
19434 $$s/$$module_srcdir/configure \
19435 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19436 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19437 --target=${target_alias} \
2bf680c4
ILT
19438 || exit 1
19439@endif libbacktrace
19440
19441
19442
19443.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19444maybe-configure-stage1-libbacktrace:
19445@if libbacktrace-bootstrap
19446maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19447configure-stage1-libbacktrace:
19448 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19449 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19450 @r=`${PWD_COMMAND}`; export r; \
19451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19452 TFLAGS="$(STAGE1_TFLAGS)"; \
19453 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19454 $(HOST_EXPORTS) \
19455 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19456 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19457 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
19458 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace; \
19459 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19460 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19461 case $(srcdir) in \
19462 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19463 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19464 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19465 esac; \
1b6c0831
L
19466 module_srcdir=libbacktrace; \
19467 $(SHELL) $$s/$$module_srcdir/configure \
19468 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19469 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19470 --target=${target_alias} \
19471 \
2bf680c4
ILT
19472 $(STAGE1_CONFIGURE_FLAGS)
19473@endif libbacktrace-bootstrap
19474
19475.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19476maybe-configure-stage2-libbacktrace:
19477@if libbacktrace-bootstrap
19478maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19479configure-stage2-libbacktrace:
19480 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19481 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19482 @r=`${PWD_COMMAND}`; export r; \
19483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19484 TFLAGS="$(STAGE2_TFLAGS)"; \
19485 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19486 $(HOST_EXPORTS) \
19487 $(POSTSTAGE1_HOST_EXPORTS) \
19488 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19489 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19490 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19491 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace; \
19492 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19493 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19494 case $(srcdir) in \
19495 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19496 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19497 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19498 esac; \
1b6c0831
L
19499 module_srcdir=libbacktrace; \
19500 $(SHELL) $$s/$$module_srcdir/configure \
19501 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19502 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19503 --target=${target_alias} \
22121df0 19504 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19505 $(STAGE2_CONFIGURE_FLAGS)
19506@endif libbacktrace-bootstrap
19507
19508.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19509maybe-configure-stage3-libbacktrace:
19510@if libbacktrace-bootstrap
19511maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19512configure-stage3-libbacktrace:
19513 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19514 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19515 @r=`${PWD_COMMAND}`; export r; \
19516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19517 TFLAGS="$(STAGE3_TFLAGS)"; \
19518 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19519 $(HOST_EXPORTS) \
19520 $(POSTSTAGE1_HOST_EXPORTS) \
19521 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19522 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19523 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19524 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace; \
19525 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19526 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19527 case $(srcdir) in \
19528 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19529 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19530 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19531 esac; \
1b6c0831
L
19532 module_srcdir=libbacktrace; \
19533 $(SHELL) $$s/$$module_srcdir/configure \
19534 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19535 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19536 --target=${target_alias} \
22121df0 19537 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19538 $(STAGE3_CONFIGURE_FLAGS)
19539@endif libbacktrace-bootstrap
19540
19541.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19542maybe-configure-stage4-libbacktrace:
19543@if libbacktrace-bootstrap
19544maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19545configure-stage4-libbacktrace:
19546 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19547 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19548 @r=`${PWD_COMMAND}`; export r; \
19549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19550 TFLAGS="$(STAGE4_TFLAGS)"; \
19551 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19552 $(HOST_EXPORTS) \
19553 $(POSTSTAGE1_HOST_EXPORTS) \
19554 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19555 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19556 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19557 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace; \
19558 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19559 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19560 case $(srcdir) in \
19561 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19562 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19563 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19564 esac; \
1b6c0831
L
19565 module_srcdir=libbacktrace; \
19566 $(SHELL) $$s/$$module_srcdir/configure \
19567 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19568 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19569 --target=${target_alias} \
22121df0 19570 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19571 $(STAGE4_CONFIGURE_FLAGS)
19572@endif libbacktrace-bootstrap
19573
19574.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19575maybe-configure-stageprofile-libbacktrace:
19576@if libbacktrace-bootstrap
19577maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19578configure-stageprofile-libbacktrace:
19579 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19580 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19581 @r=`${PWD_COMMAND}`; export r; \
19582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19583 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19584 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19585 $(HOST_EXPORTS) \
19586 $(POSTSTAGE1_HOST_EXPORTS) \
19587 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19588 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19589 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19590 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace; \
19591 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19592 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19593 case $(srcdir) in \
19594 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19595 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19596 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19597 esac; \
1b6c0831
L
19598 module_srcdir=libbacktrace; \
19599 $(SHELL) $$s/$$module_srcdir/configure \
19600 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19601 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19602 --target=${target_alias} \
22121df0 19603 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19604 $(STAGEprofile_CONFIGURE_FLAGS)
19605@endif libbacktrace-bootstrap
19606
19607.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19608maybe-configure-stagefeedback-libbacktrace:
19609@if libbacktrace-bootstrap
19610maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19611configure-stagefeedback-libbacktrace:
19612 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19613 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19614 @r=`${PWD_COMMAND}`; export r; \
19615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19616 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19617 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19618 $(HOST_EXPORTS) \
19619 $(POSTSTAGE1_HOST_EXPORTS) \
19620 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19621 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19622 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19623 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace; \
19624 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19625 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19626 case $(srcdir) in \
19627 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19628 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19629 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19630 esac; \
1b6c0831
L
19631 module_srcdir=libbacktrace; \
19632 $(SHELL) $$s/$$module_srcdir/configure \
19633 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19634 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19635 --target=${target_alias} \
22121df0 19636 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19637 $(STAGEfeedback_CONFIGURE_FLAGS)
19638@endif libbacktrace-bootstrap
19639
19640
19641
19642
19643
19644.PHONY: all-libbacktrace maybe-all-libbacktrace
19645maybe-all-libbacktrace:
19646@if gcc-bootstrap
19647all-libbacktrace: stage_current
19648@endif gcc-bootstrap
19649@if libbacktrace
19650TARGET-libbacktrace=all
19651maybe-all-libbacktrace: all-libbacktrace
19652all-libbacktrace: configure-libbacktrace
19653 @r=`${PWD_COMMAND}`; export r; \
19654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19655 $(HOST_EXPORTS) \
19656 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19657 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19658 $(TARGET-libbacktrace))
19659@endif libbacktrace
19660
19661
19662
19663.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19664.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19665maybe-all-stage1-libbacktrace:
19666maybe-clean-stage1-libbacktrace:
19667@if libbacktrace-bootstrap
19668maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19669all-stage1: all-stage1-libbacktrace
19670TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19671all-stage1-libbacktrace: configure-stage1-libbacktrace
19672 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19673 @r=`${PWD_COMMAND}`; export r; \
19674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19675 TFLAGS="$(STAGE1_TFLAGS)"; \
19676 $(HOST_EXPORTS) \
19677 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19678 \
2bf680c4
ILT
19679 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19680 CFLAGS="$(STAGE1_CFLAGS)" \
19681 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19682 LIBCFLAGS="$(LIBCFLAGS)" \
19683 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19684 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19685 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19686 $(EXTRA_HOST_FLAGS) \
19687 $(STAGE1_FLAGS_TO_PASS) \
05a13254 19688 TFLAGS="$(STAGE1_TFLAGS)" \
2bf680c4
ILT
19689 $(TARGET-stage1-libbacktrace)
19690
19691maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19692clean-stage1: clean-stage1-libbacktrace
19693clean-stage1-libbacktrace:
19694 @if [ $(current_stage) = stage1 ]; then \
19695 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19696 else \
19697 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19698 $(MAKE) stage1-start; \
19699 fi; \
19700 cd $(HOST_SUBDIR)/libbacktrace && \
19701 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19702 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19703@endif libbacktrace-bootstrap
19704
19705
19706.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19707.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19708maybe-all-stage2-libbacktrace:
19709maybe-clean-stage2-libbacktrace:
19710@if libbacktrace-bootstrap
19711maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19712all-stage2: all-stage2-libbacktrace
19713TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19714all-stage2-libbacktrace: configure-stage2-libbacktrace
19715 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19716 @r=`${PWD_COMMAND}`; export r; \
19717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19718 TFLAGS="$(STAGE2_TFLAGS)"; \
19719 $(HOST_EXPORTS) \
19720 $(POSTSTAGE1_HOST_EXPORTS) \
19721 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19722 \
2bf680c4
ILT
19723 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19724 CFLAGS="$(STAGE2_CFLAGS)" \
19725 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19726 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19727 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19728 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19729 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19730 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19731 TFLAGS="$(STAGE2_TFLAGS)" \
2bf680c4
ILT
19732 $(TARGET-stage2-libbacktrace)
19733
19734maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19735clean-stage2: clean-stage2-libbacktrace
19736clean-stage2-libbacktrace:
19737 @if [ $(current_stage) = stage2 ]; then \
19738 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19739 else \
19740 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19741 $(MAKE) stage2-start; \
19742 fi; \
19743 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19744 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19745@endif libbacktrace-bootstrap
19746
19747
19748.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19749.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19750maybe-all-stage3-libbacktrace:
19751maybe-clean-stage3-libbacktrace:
19752@if libbacktrace-bootstrap
19753maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19754all-stage3: all-stage3-libbacktrace
19755TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19756all-stage3-libbacktrace: configure-stage3-libbacktrace
19757 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19758 @r=`${PWD_COMMAND}`; export r; \
19759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19760 TFLAGS="$(STAGE3_TFLAGS)"; \
19761 $(HOST_EXPORTS) \
19762 $(POSTSTAGE1_HOST_EXPORTS) \
19763 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19764 \
2bf680c4
ILT
19765 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19766 CFLAGS="$(STAGE3_CFLAGS)" \
19767 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19768 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19769 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19770 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19771 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19772 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19773 TFLAGS="$(STAGE3_TFLAGS)" \
2bf680c4
ILT
19774 $(TARGET-stage3-libbacktrace)
19775
19776maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19777clean-stage3: clean-stage3-libbacktrace
19778clean-stage3-libbacktrace:
19779 @if [ $(current_stage) = stage3 ]; then \
19780 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19781 else \
19782 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19783 $(MAKE) stage3-start; \
19784 fi; \
19785 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19786 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19787@endif libbacktrace-bootstrap
19788
19789
19790.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19791.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19792maybe-all-stage4-libbacktrace:
19793maybe-clean-stage4-libbacktrace:
19794@if libbacktrace-bootstrap
19795maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19796all-stage4: all-stage4-libbacktrace
19797TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19798all-stage4-libbacktrace: configure-stage4-libbacktrace
19799 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19800 @r=`${PWD_COMMAND}`; export r; \
19801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19802 TFLAGS="$(STAGE4_TFLAGS)"; \
19803 $(HOST_EXPORTS) \
19804 $(POSTSTAGE1_HOST_EXPORTS) \
19805 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19806 \
2bf680c4
ILT
19807 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19808 CFLAGS="$(STAGE4_CFLAGS)" \
19809 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19810 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19811 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19812 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19813 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19814 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19815 TFLAGS="$(STAGE4_TFLAGS)" \
2bf680c4
ILT
19816 $(TARGET-stage4-libbacktrace)
19817
19818maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19819clean-stage4: clean-stage4-libbacktrace
19820clean-stage4-libbacktrace:
19821 @if [ $(current_stage) = stage4 ]; then \
19822 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19823 else \
19824 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19825 $(MAKE) stage4-start; \
19826 fi; \
19827 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19828 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19829@endif libbacktrace-bootstrap
19830
19831
19832.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19833.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19834maybe-all-stageprofile-libbacktrace:
19835maybe-clean-stageprofile-libbacktrace:
19836@if libbacktrace-bootstrap
19837maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19838all-stageprofile: all-stageprofile-libbacktrace
19839TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19840all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19841 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19842 @r=`${PWD_COMMAND}`; export r; \
19843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19844 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19845 $(HOST_EXPORTS) \
19846 $(POSTSTAGE1_HOST_EXPORTS) \
19847 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19848 \
2bf680c4
ILT
19849 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19850 CFLAGS="$(STAGEprofile_CFLAGS)" \
19851 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19852 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19853 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19854 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19855 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19856 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19857 TFLAGS="$(STAGEprofile_TFLAGS)" \
2bf680c4
ILT
19858 $(TARGET-stageprofile-libbacktrace)
19859
19860maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19861clean-stageprofile: clean-stageprofile-libbacktrace
19862clean-stageprofile-libbacktrace:
19863 @if [ $(current_stage) = stageprofile ]; then \
19864 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19865 else \
19866 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19867 $(MAKE) stageprofile-start; \
19868 fi; \
19869 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19870 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19871@endif libbacktrace-bootstrap
19872
19873
19874.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19875.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19876maybe-all-stagefeedback-libbacktrace:
19877maybe-clean-stagefeedback-libbacktrace:
19878@if libbacktrace-bootstrap
19879maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19880all-stagefeedback: all-stagefeedback-libbacktrace
19881TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19882all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19883 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19884 @r=`${PWD_COMMAND}`; export r; \
19885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19886 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19887 $(HOST_EXPORTS) \
19888 $(POSTSTAGE1_HOST_EXPORTS) \
19889 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19890 \
2bf680c4
ILT
19891 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19892 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19893 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19894 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19895 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19896 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19897 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19898 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19899 TFLAGS="$(STAGEfeedback_TFLAGS)" \
2bf680c4
ILT
19900 $(TARGET-stagefeedback-libbacktrace)
19901
19902maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
19903clean-stagefeedback: clean-stagefeedback-libbacktrace
19904clean-stagefeedback-libbacktrace:
19905 @if [ $(current_stage) = stagefeedback ]; then \
19906 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19907 else \
19908 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
19909 $(MAKE) stagefeedback-start; \
19910 fi; \
19911 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19912 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19913@endif libbacktrace-bootstrap
19914
19915
19916
19917
19918
19919.PHONY: check-libbacktrace maybe-check-libbacktrace
19920maybe-check-libbacktrace:
19921@if libbacktrace
19922maybe-check-libbacktrace: check-libbacktrace
19923
19924check-libbacktrace:
19925 @: $(MAKE); $(unstage)
19926 @r=`${PWD_COMMAND}`; export r; \
19927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19928 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
2bf680c4 19929 (cd $(HOST_SUBDIR)/libbacktrace && \
f91ca6bc 19930 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2bf680c4
ILT
19931
19932@endif libbacktrace
19933
19934.PHONY: install-libbacktrace maybe-install-libbacktrace
19935maybe-install-libbacktrace:
19936@if libbacktrace
19937maybe-install-libbacktrace: install-libbacktrace
19938
19939install-libbacktrace: installdirs
19940 @: $(MAKE); $(unstage)
19941 @r=`${PWD_COMMAND}`; export r; \
19942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19943 $(HOST_EXPORTS) \
19944 (cd $(HOST_SUBDIR)/libbacktrace && \
19945 $(MAKE) $(FLAGS_TO_PASS) install)
19946
19947@endif libbacktrace
19948
19949.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
19950maybe-install-strip-libbacktrace:
19951@if libbacktrace
19952maybe-install-strip-libbacktrace: install-strip-libbacktrace
19953
19954install-strip-libbacktrace: installdirs
19955 @: $(MAKE); $(unstage)
19956 @r=`${PWD_COMMAND}`; export r; \
19957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19958 $(HOST_EXPORTS) \
19959 (cd $(HOST_SUBDIR)/libbacktrace && \
19960 $(MAKE) $(FLAGS_TO_PASS) install-strip)
19961
19962@endif libbacktrace
19963
19964# Other targets (info, dvi, pdf, etc.)
19965
19966.PHONY: maybe-info-libbacktrace info-libbacktrace
19967maybe-info-libbacktrace:
19968@if libbacktrace
19969maybe-info-libbacktrace: info-libbacktrace
19970
19971info-libbacktrace: \
19972 configure-libbacktrace
19973 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19974 r=`${PWD_COMMAND}`; export r; \
19975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19976 $(HOST_EXPORTS) \
19977 for flag in $(EXTRA_HOST_FLAGS) ; do \
19978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19979 done; \
22121df0 19980 echo "Doing info in libbacktrace"; \
2bf680c4
ILT
19981 (cd $(HOST_SUBDIR)/libbacktrace && \
19982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19984 "RANLIB=$${RANLIB}" \
19985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19986 info) \
19987 || exit 1
19988
19989@endif libbacktrace
19990
19991.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
19992maybe-dvi-libbacktrace:
19993@if libbacktrace
19994maybe-dvi-libbacktrace: dvi-libbacktrace
19995
19996dvi-libbacktrace: \
19997 configure-libbacktrace
19998 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19999 r=`${PWD_COMMAND}`; export r; \
20000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20001 $(HOST_EXPORTS) \
20002 for flag in $(EXTRA_HOST_FLAGS) ; do \
20003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20004 done; \
22121df0 20005 echo "Doing dvi in libbacktrace"; \
2bf680c4
ILT
20006 (cd $(HOST_SUBDIR)/libbacktrace && \
20007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20009 "RANLIB=$${RANLIB}" \
20010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20011 dvi) \
20012 || exit 1
20013
20014@endif libbacktrace
20015
20016.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
20017maybe-pdf-libbacktrace:
20018@if libbacktrace
20019maybe-pdf-libbacktrace: pdf-libbacktrace
20020
20021pdf-libbacktrace: \
20022 configure-libbacktrace
20023 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20024 r=`${PWD_COMMAND}`; export r; \
20025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20026 $(HOST_EXPORTS) \
20027 for flag in $(EXTRA_HOST_FLAGS) ; do \
20028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20029 done; \
22121df0 20030 echo "Doing pdf in libbacktrace"; \
2bf680c4
ILT
20031 (cd $(HOST_SUBDIR)/libbacktrace && \
20032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20034 "RANLIB=$${RANLIB}" \
20035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20036 pdf) \
20037 || exit 1
20038
20039@endif libbacktrace
20040
20041.PHONY: maybe-html-libbacktrace html-libbacktrace
20042maybe-html-libbacktrace:
20043@if libbacktrace
20044maybe-html-libbacktrace: html-libbacktrace
20045
20046html-libbacktrace: \
20047 configure-libbacktrace
20048 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20049 r=`${PWD_COMMAND}`; export r; \
20050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20051 $(HOST_EXPORTS) \
20052 for flag in $(EXTRA_HOST_FLAGS) ; do \
20053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20054 done; \
22121df0 20055 echo "Doing html in libbacktrace"; \
2bf680c4
ILT
20056 (cd $(HOST_SUBDIR)/libbacktrace && \
20057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20059 "RANLIB=$${RANLIB}" \
20060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20061 html) \
20062 || exit 1
20063
20064@endif libbacktrace
20065
20066.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
20067maybe-TAGS-libbacktrace:
20068@if libbacktrace
20069maybe-TAGS-libbacktrace: TAGS-libbacktrace
20070
20071TAGS-libbacktrace: \
20072 configure-libbacktrace
20073 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20074 r=`${PWD_COMMAND}`; export r; \
20075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20076 $(HOST_EXPORTS) \
20077 for flag in $(EXTRA_HOST_FLAGS) ; do \
20078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20079 done; \
22121df0 20080 echo "Doing TAGS in libbacktrace"; \
2bf680c4
ILT
20081 (cd $(HOST_SUBDIR)/libbacktrace && \
20082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20084 "RANLIB=$${RANLIB}" \
20085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20086 TAGS) \
20087 || exit 1
20088
20089@endif libbacktrace
20090
20091.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
20092maybe-install-info-libbacktrace:
20093@if libbacktrace
20094maybe-install-info-libbacktrace: install-info-libbacktrace
20095
20096install-info-libbacktrace: \
20097 configure-libbacktrace \
20098 info-libbacktrace
20099 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20100 r=`${PWD_COMMAND}`; export r; \
20101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20102 $(HOST_EXPORTS) \
20103 for flag in $(EXTRA_HOST_FLAGS) ; do \
20104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20105 done; \
22121df0 20106 echo "Doing install-info in libbacktrace"; \
2bf680c4
ILT
20107 (cd $(HOST_SUBDIR)/libbacktrace && \
20108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20110 "RANLIB=$${RANLIB}" \
20111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20112 install-info) \
20113 || exit 1
20114
20115@endif libbacktrace
20116
20117.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
20118maybe-install-pdf-libbacktrace:
20119@if libbacktrace
20120maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20121
20122install-pdf-libbacktrace: \
20123 configure-libbacktrace \
20124 pdf-libbacktrace
20125 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20126 r=`${PWD_COMMAND}`; export r; \
20127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20128 $(HOST_EXPORTS) \
20129 for flag in $(EXTRA_HOST_FLAGS) ; do \
20130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20131 done; \
22121df0 20132 echo "Doing install-pdf in libbacktrace"; \
2bf680c4
ILT
20133 (cd $(HOST_SUBDIR)/libbacktrace && \
20134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20136 "RANLIB=$${RANLIB}" \
20137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20138 install-pdf) \
20139 || exit 1
20140
20141@endif libbacktrace
20142
20143.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20144maybe-install-html-libbacktrace:
20145@if libbacktrace
20146maybe-install-html-libbacktrace: install-html-libbacktrace
20147
20148install-html-libbacktrace: \
20149 configure-libbacktrace \
20150 html-libbacktrace
20151 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20152 r=`${PWD_COMMAND}`; export r; \
20153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20154 $(HOST_EXPORTS) \
20155 for flag in $(EXTRA_HOST_FLAGS) ; do \
20156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20157 done; \
22121df0 20158 echo "Doing install-html in libbacktrace"; \
2bf680c4
ILT
20159 (cd $(HOST_SUBDIR)/libbacktrace && \
20160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20162 "RANLIB=$${RANLIB}" \
20163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20164 install-html) \
20165 || exit 1
20166
20167@endif libbacktrace
20168
20169.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20170maybe-installcheck-libbacktrace:
20171@if libbacktrace
20172maybe-installcheck-libbacktrace: installcheck-libbacktrace
20173
20174installcheck-libbacktrace: \
20175 configure-libbacktrace
20176 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20177 r=`${PWD_COMMAND}`; export r; \
20178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20179 $(HOST_EXPORTS) \
20180 for flag in $(EXTRA_HOST_FLAGS) ; do \
20181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20182 done; \
22121df0 20183 echo "Doing installcheck in libbacktrace"; \
2bf680c4
ILT
20184 (cd $(HOST_SUBDIR)/libbacktrace && \
20185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20187 "RANLIB=$${RANLIB}" \
20188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20189 installcheck) \
20190 || exit 1
20191
20192@endif libbacktrace
20193
20194.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20195maybe-mostlyclean-libbacktrace:
20196@if libbacktrace
20197maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20198
20199mostlyclean-libbacktrace:
20200 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20201 r=`${PWD_COMMAND}`; export r; \
20202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20203 $(HOST_EXPORTS) \
20204 for flag in $(EXTRA_HOST_FLAGS) ; do \
20205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20206 done; \
22121df0 20207 echo "Doing mostlyclean in libbacktrace"; \
2bf680c4
ILT
20208 (cd $(HOST_SUBDIR)/libbacktrace && \
20209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20211 "RANLIB=$${RANLIB}" \
20212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20213 mostlyclean) \
20214 || exit 1
20215
20216@endif libbacktrace
20217
20218.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20219maybe-clean-libbacktrace:
20220@if libbacktrace
20221maybe-clean-libbacktrace: clean-libbacktrace
20222
20223clean-libbacktrace:
20224 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20225 r=`${PWD_COMMAND}`; export r; \
20226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20227 $(HOST_EXPORTS) \
20228 for flag in $(EXTRA_HOST_FLAGS) ; do \
20229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20230 done; \
22121df0 20231 echo "Doing clean in libbacktrace"; \
2bf680c4
ILT
20232 (cd $(HOST_SUBDIR)/libbacktrace && \
20233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20235 "RANLIB=$${RANLIB}" \
20236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20237 clean) \
20238 || exit 1
20239
20240@endif libbacktrace
20241
20242.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20243maybe-distclean-libbacktrace:
20244@if libbacktrace
20245maybe-distclean-libbacktrace: distclean-libbacktrace
20246
20247distclean-libbacktrace:
20248 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20249 r=`${PWD_COMMAND}`; export r; \
20250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20251 $(HOST_EXPORTS) \
20252 for flag in $(EXTRA_HOST_FLAGS) ; do \
20253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20254 done; \
22121df0 20255 echo "Doing distclean in libbacktrace"; \
2bf680c4
ILT
20256 (cd $(HOST_SUBDIR)/libbacktrace && \
20257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20259 "RANLIB=$${RANLIB}" \
20260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20261 distclean) \
20262 || exit 1
20263
20264@endif libbacktrace
20265
20266.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20267maybe-maintainer-clean-libbacktrace:
20268@if libbacktrace
20269maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20270
20271maintainer-clean-libbacktrace:
20272 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20273 r=`${PWD_COMMAND}`; export r; \
20274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20275 $(HOST_EXPORTS) \
20276 for flag in $(EXTRA_HOST_FLAGS) ; do \
20277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20278 done; \
22121df0 20279 echo "Doing maintainer-clean in libbacktrace"; \
2bf680c4
ILT
20280 (cd $(HOST_SUBDIR)/libbacktrace && \
20281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20283 "RANLIB=$${RANLIB}" \
20284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20285 maintainer-clean) \
20286 || exit 1
20287
20288@endif libbacktrace
20289
20290
20291
a90ef4bf
JM
20292.PHONY: configure-libcpp maybe-configure-libcpp
20293maybe-configure-libcpp:
4b900473 20294@if gcc-bootstrap
a90ef4bf 20295configure-libcpp: stage_current
4b900473 20296@endif gcc-bootstrap
a90ef4bf
JM
20297@if libcpp
20298maybe-configure-libcpp: configure-libcpp
20299configure-libcpp:
4b900473
PB
20300 @r=`${PWD_COMMAND}`; export r; \
20301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 20302 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 20303 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf
JM
20304 $(HOST_EXPORTS) \
20305 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20306 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20307 case $(srcdir) in \
20308 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20309 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20310 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20311 esac; \
1b6c0831
L
20312 module_srcdir=libcpp; \
20313 $(SHELL) \
20314 $$s/$$module_srcdir/configure \
20315 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20316 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20317 --target=${target_alias} \
4b900473 20318 || exit 1
a90ef4bf 20319@endif libcpp
4b900473
PB
20320
20321
20322
a90ef4bf
JM
20323.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20324maybe-configure-stage1-libcpp:
20325@if libcpp-bootstrap
20326maybe-configure-stage1-libcpp: configure-stage1-libcpp
20327configure-stage1-libcpp:
4b900473 20328 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20329 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20330 @r=`${PWD_COMMAND}`; export r; \
20331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20332 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20333 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20334 $(HOST_EXPORTS) \
8ee82aff 20335 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20336 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20337 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
20338 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp; \
20339 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20340 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20341 case $(srcdir) in \
20342 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20343 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20344 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20345 esac; \
1b6c0831
L
20346 module_srcdir=libcpp; \
20347 $(SHELL) $$s/$$module_srcdir/configure \
20348 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20349 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20350 --target=${target_alias} \
20351 \
a90ef4bf
JM
20352 $(STAGE1_CONFIGURE_FLAGS)
20353@endif libcpp-bootstrap
e28c595f 20354
a90ef4bf
JM
20355.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20356maybe-configure-stage2-libcpp:
20357@if libcpp-bootstrap
20358maybe-configure-stage2-libcpp: configure-stage2-libcpp
20359configure-stage2-libcpp:
4b900473 20360 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20361 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20362 @r=`${PWD_COMMAND}`; export r; \
20363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20364 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20365 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20366 $(HOST_EXPORTS) \
1b05fbbd 20367 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20368 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20369 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20370 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20371 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp; \
20372 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20373 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20374 case $(srcdir) in \
20375 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20376 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20377 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20378 esac; \
1b6c0831
L
20379 module_srcdir=libcpp; \
20380 $(SHELL) $$s/$$module_srcdir/configure \
20381 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20382 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20383 --target=${target_alias} \
22121df0 20384 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20385 $(STAGE2_CONFIGURE_FLAGS)
20386@endif libcpp-bootstrap
e28c595f 20387
a90ef4bf
JM
20388.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20389maybe-configure-stage3-libcpp:
20390@if libcpp-bootstrap
20391maybe-configure-stage3-libcpp: configure-stage3-libcpp
20392configure-stage3-libcpp:
4b900473 20393 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20394 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20395 @r=`${PWD_COMMAND}`; export r; \
20396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20397 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20398 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20399 $(HOST_EXPORTS) \
1b05fbbd 20400 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20401 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20402 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20403 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20404 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp; \
20405 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20406 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20407 case $(srcdir) in \
20408 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20409 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20410 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20411 esac; \
1b6c0831
L
20412 module_srcdir=libcpp; \
20413 $(SHELL) $$s/$$module_srcdir/configure \
20414 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20415 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20416 --target=${target_alias} \
22121df0 20417 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20418 $(STAGE3_CONFIGURE_FLAGS)
20419@endif libcpp-bootstrap
e28c595f 20420
a90ef4bf
JM
20421.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20422maybe-configure-stage4-libcpp:
20423@if libcpp-bootstrap
20424maybe-configure-stage4-libcpp: configure-stage4-libcpp
20425configure-stage4-libcpp:
4b900473 20426 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20427 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20428 @r=`${PWD_COMMAND}`; export r; \
20429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20430 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20431 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20432 $(HOST_EXPORTS) \
1b05fbbd 20433 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20434 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20435 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20436 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20437 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp; \
20438 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20439 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20440 case $(srcdir) in \
20441 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20442 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20443 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20444 esac; \
1b6c0831
L
20445 module_srcdir=libcpp; \
20446 $(SHELL) $$s/$$module_srcdir/configure \
20447 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20448 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20449 --target=${target_alias} \
22121df0 20450 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20451 $(STAGE4_CONFIGURE_FLAGS)
20452@endif libcpp-bootstrap
e28c595f 20453
a90ef4bf
JM
20454.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20455maybe-configure-stageprofile-libcpp:
20456@if libcpp-bootstrap
20457maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20458configure-stageprofile-libcpp:
4b900473 20459 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20460 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20461 @r=`${PWD_COMMAND}`; export r; \
20462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20463 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20464 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20465 $(HOST_EXPORTS) \
1b05fbbd
AO
20466 $(POSTSTAGE1_HOST_EXPORTS) \
20467 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20468 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20469 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20470 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp; \
20471 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20472 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20473 case $(srcdir) in \
20474 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20475 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20476 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20477 esac; \
1b6c0831
L
20478 module_srcdir=libcpp; \
20479 $(SHELL) $$s/$$module_srcdir/configure \
20480 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20481 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20482 --target=${target_alias} \
22121df0 20483 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20484 $(STAGEprofile_CONFIGURE_FLAGS)
20485@endif libcpp-bootstrap
e28c595f 20486
a90ef4bf
JM
20487.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20488maybe-configure-stagefeedback-libcpp:
20489@if libcpp-bootstrap
20490maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20491configure-stagefeedback-libcpp:
4b900473 20492 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20493 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20494 @r=`${PWD_COMMAND}`; export r; \
20495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20496 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20497 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20498 $(HOST_EXPORTS) \
1b05fbbd
AO
20499 $(POSTSTAGE1_HOST_EXPORTS) \
20500 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20501 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20502 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20503 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp; \
20504 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20505 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20506 case $(srcdir) in \
20507 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20508 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20509 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20510 esac; \
1b6c0831
L
20511 module_srcdir=libcpp; \
20512 $(SHELL) $$s/$$module_srcdir/configure \
20513 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20514 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20515 --target=${target_alias} \
22121df0 20516 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20517 $(STAGEfeedback_CONFIGURE_FLAGS)
20518@endif libcpp-bootstrap
4b900473
PB
20519
20520
20521
20522
20523
a90ef4bf
JM
20524.PHONY: all-libcpp maybe-all-libcpp
20525maybe-all-libcpp:
4b900473 20526@if gcc-bootstrap
a90ef4bf 20527all-libcpp: stage_current
4b900473 20528@endif gcc-bootstrap
a90ef4bf
JM
20529@if libcpp
20530TARGET-libcpp=all
20531maybe-all-libcpp: all-libcpp
20532all-libcpp: configure-libcpp
4b900473
PB
20533 @r=`${PWD_COMMAND}`; export r; \
20534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20535 $(HOST_EXPORTS) \
20536 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20537 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20538 $(TARGET-libcpp))
20539@endif libcpp
4b900473
PB
20540
20541
20542
a90ef4bf
JM
20543.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20544.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20545maybe-all-stage1-libcpp:
20546maybe-clean-stage1-libcpp:
20547@if libcpp-bootstrap
20548maybe-all-stage1-libcpp: all-stage1-libcpp
20549all-stage1: all-stage1-libcpp
20550TARGET-stage1-libcpp = $(TARGET-libcpp)
20551all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20552 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20553 @r=`${PWD_COMMAND}`; export r; \
20554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20555 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20556 $(HOST_EXPORTS) \
20557 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20558 \
7f6ef0c0 20559 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20560 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20561 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20562 LIBCFLAGS="$(LIBCFLAGS)" \
20563 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20564 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20565 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20566 $(EXTRA_HOST_FLAGS) \
20567 $(STAGE1_FLAGS_TO_PASS) \
05a13254 20568 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20569 $(TARGET-stage1-libcpp)
4b900473 20570
a90ef4bf
JM
20571maybe-clean-stage1-libcpp: clean-stage1-libcpp
20572clean-stage1: clean-stage1-libcpp
20573clean-stage1-libcpp:
4b900473 20574 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20575 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20576 else \
a90ef4bf 20577 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20578 $(MAKE) stage1-start; \
20579 fi; \
a90ef4bf 20580 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20581 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20582 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20583@endif libcpp-bootstrap
e28c595f
JM
20584
20585
a90ef4bf
JM
20586.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20587.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20588maybe-all-stage2-libcpp:
20589maybe-clean-stage2-libcpp:
20590@if libcpp-bootstrap
20591maybe-all-stage2-libcpp: all-stage2-libcpp
20592all-stage2: all-stage2-libcpp
20593TARGET-stage2-libcpp = $(TARGET-libcpp)
20594all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20595 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20596 @r=`${PWD_COMMAND}`; export r; \
20597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20598 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20599 $(HOST_EXPORTS) \
a90ef4bf
JM
20600 $(POSTSTAGE1_HOST_EXPORTS) \
20601 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20602 \
7f6ef0c0 20603 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20604 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20605 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20606 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20607 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20608 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20609 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20610 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20611 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20612 $(TARGET-stage2-libcpp)
4b900473 20613
a90ef4bf
JM
20614maybe-clean-stage2-libcpp: clean-stage2-libcpp
20615clean-stage2: clean-stage2-libcpp
20616clean-stage2-libcpp:
4b900473 20617 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20618 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20619 else \
a90ef4bf 20620 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20621 $(MAKE) stage2-start; \
20622 fi; \
a90ef4bf 20623 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20624 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20625@endif libcpp-bootstrap
e28c595f
JM
20626
20627
a90ef4bf
JM
20628.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20629.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20630maybe-all-stage3-libcpp:
20631maybe-clean-stage3-libcpp:
20632@if libcpp-bootstrap
20633maybe-all-stage3-libcpp: all-stage3-libcpp
20634all-stage3: all-stage3-libcpp
20635TARGET-stage3-libcpp = $(TARGET-libcpp)
20636all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20637 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20638 @r=`${PWD_COMMAND}`; export r; \
20639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20640 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20641 $(HOST_EXPORTS) \
a90ef4bf
JM
20642 $(POSTSTAGE1_HOST_EXPORTS) \
20643 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20644 \
7f6ef0c0 20645 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20646 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20647 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20648 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20649 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20650 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20651 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20652 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20653 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20654 $(TARGET-stage3-libcpp)
4b900473 20655
a90ef4bf
JM
20656maybe-clean-stage3-libcpp: clean-stage3-libcpp
20657clean-stage3: clean-stage3-libcpp
20658clean-stage3-libcpp:
4b900473 20659 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20660 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20661 else \
a90ef4bf 20662 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20663 $(MAKE) stage3-start; \
20664 fi; \
a90ef4bf 20665 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20666 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20667@endif libcpp-bootstrap
e28c595f
JM
20668
20669
a90ef4bf
JM
20670.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20671.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20672maybe-all-stage4-libcpp:
20673maybe-clean-stage4-libcpp:
20674@if libcpp-bootstrap
20675maybe-all-stage4-libcpp: all-stage4-libcpp
20676all-stage4: all-stage4-libcpp
20677TARGET-stage4-libcpp = $(TARGET-libcpp)
20678all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20679 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20680 @r=`${PWD_COMMAND}`; export r; \
20681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20682 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20683 $(HOST_EXPORTS) \
a90ef4bf
JM
20684 $(POSTSTAGE1_HOST_EXPORTS) \
20685 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20686 \
7f6ef0c0 20687 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20688 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20689 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20690 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20691 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20692 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20693 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20694 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20695 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20696 $(TARGET-stage4-libcpp)
4b900473 20697
a90ef4bf
JM
20698maybe-clean-stage4-libcpp: clean-stage4-libcpp
20699clean-stage4: clean-stage4-libcpp
20700clean-stage4-libcpp:
4b900473 20701 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20702 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20703 else \
a90ef4bf 20704 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20705 $(MAKE) stage4-start; \
20706 fi; \
a90ef4bf 20707 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20708 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20709@endif libcpp-bootstrap
e28c595f
JM
20710
20711
a90ef4bf
JM
20712.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20713.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20714maybe-all-stageprofile-libcpp:
20715maybe-clean-stageprofile-libcpp:
20716@if libcpp-bootstrap
20717maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20718all-stageprofile: all-stageprofile-libcpp
20719TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20720all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20721 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20722 @r=`${PWD_COMMAND}`; export r; \
20723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20724 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20725 $(HOST_EXPORTS) \
a90ef4bf
JM
20726 $(POSTSTAGE1_HOST_EXPORTS) \
20727 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20728 \
7f6ef0c0 20729 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20730 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20731 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20732 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20733 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20734 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20735 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20736 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20737 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20738 $(TARGET-stageprofile-libcpp)
4b900473 20739
a90ef4bf
JM
20740maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20741clean-stageprofile: clean-stageprofile-libcpp
20742clean-stageprofile-libcpp:
4b900473 20743 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20744 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20745 else \
a90ef4bf 20746 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20747 $(MAKE) stageprofile-start; \
20748 fi; \
a90ef4bf 20749 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20750 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20751@endif libcpp-bootstrap
e28c595f
JM
20752
20753
a90ef4bf
JM
20754.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20755.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20756maybe-all-stagefeedback-libcpp:
20757maybe-clean-stagefeedback-libcpp:
20758@if libcpp-bootstrap
20759maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20760all-stagefeedback: all-stagefeedback-libcpp
20761TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20762all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20763 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20764 @r=`${PWD_COMMAND}`; export r; \
20765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20766 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20767 $(HOST_EXPORTS) \
a90ef4bf
JM
20768 $(POSTSTAGE1_HOST_EXPORTS) \
20769 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20770 \
7f6ef0c0 20771 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20772 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20773 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20774 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20775 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20776 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20777 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20778 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20779 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20780 $(TARGET-stagefeedback-libcpp)
4b900473 20781
a90ef4bf
JM
20782maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20783clean-stagefeedback: clean-stagefeedback-libcpp
20784clean-stagefeedback-libcpp:
4b900473 20785 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20786 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20787 else \
a90ef4bf 20788 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20789 $(MAKE) stagefeedback-start; \
20790 fi; \
a90ef4bf 20791 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20792 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20793@endif libcpp-bootstrap
4b900473
PB
20794
20795
20796
20797
20798
a90ef4bf
JM
20799.PHONY: check-libcpp maybe-check-libcpp
20800maybe-check-libcpp:
20801@if libcpp
20802maybe-check-libcpp: check-libcpp
4b900473 20803
a90ef4bf 20804check-libcpp:
4b900473
PB
20805 @: $(MAKE); $(unstage)
20806 @r=`${PWD_COMMAND}`; export r; \
20807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20808 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 20809 (cd $(HOST_SUBDIR)/libcpp && \
f91ca6bc 20810 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4b900473 20811
a90ef4bf 20812@endif libcpp
4b900473 20813
a90ef4bf
JM
20814.PHONY: install-libcpp maybe-install-libcpp
20815maybe-install-libcpp:
20816@if libcpp
20817maybe-install-libcpp: install-libcpp
4b900473 20818
a90ef4bf
JM
20819install-libcpp: installdirs
20820 @: $(MAKE); $(unstage)
20821 @r=`${PWD_COMMAND}`; export r; \
20822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20823 $(HOST_EXPORTS) \
20824 (cd $(HOST_SUBDIR)/libcpp && \
20825 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20826
a90ef4bf 20827@endif libcpp
4b900473 20828
a90ef4bf
JM
20829.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20830maybe-install-strip-libcpp:
20831@if libcpp
20832maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20833
a90ef4bf
JM
20834install-strip-libcpp: installdirs
20835 @: $(MAKE); $(unstage)
20836 @r=`${PWD_COMMAND}`; export r; \
20837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20838 $(HOST_EXPORTS) \
20839 (cd $(HOST_SUBDIR)/libcpp && \
20840 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20841
a90ef4bf 20842@endif libcpp
9b980aa1 20843
4b900473
PB
20844# Other targets (info, dvi, pdf, etc.)
20845
a90ef4bf
JM
20846.PHONY: maybe-info-libcpp info-libcpp
20847maybe-info-libcpp:
20848@if libcpp
20849maybe-info-libcpp: info-libcpp
4b900473 20850
a90ef4bf
JM
20851info-libcpp: \
20852 configure-libcpp
20853 @[ -f ./libcpp/Makefile ] || exit 0; \
20854 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20856 $(HOST_EXPORTS) \
a90ef4bf 20857 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20859 done; \
22121df0 20860 echo "Doing info in libcpp"; \
a90ef4bf 20861 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20864 "RANLIB=$${RANLIB}" \
0c24b341 20865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20866 info) \
20867 || exit 1
20868
a90ef4bf 20869@endif libcpp
4b900473 20870
a90ef4bf
JM
20871.PHONY: maybe-dvi-libcpp dvi-libcpp
20872maybe-dvi-libcpp:
20873@if libcpp
20874maybe-dvi-libcpp: dvi-libcpp
4b900473 20875
a90ef4bf
JM
20876dvi-libcpp: \
20877 configure-libcpp
20878 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20879 r=`${PWD_COMMAND}`; export r; \
20880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20881 $(HOST_EXPORTS) \
a90ef4bf 20882 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20884 done; \
22121df0 20885 echo "Doing dvi in libcpp"; \
a90ef4bf 20886 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20889 "RANLIB=$${RANLIB}" \
0c24b341 20890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20891 dvi) \
20892 || exit 1
20893
a90ef4bf 20894@endif libcpp
4b900473 20895
a90ef4bf
JM
20896.PHONY: maybe-pdf-libcpp pdf-libcpp
20897maybe-pdf-libcpp:
20898@if libcpp
20899maybe-pdf-libcpp: pdf-libcpp
4b900473 20900
a90ef4bf
JM
20901pdf-libcpp: \
20902 configure-libcpp
20903 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20904 r=`${PWD_COMMAND}`; export r; \
20905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20906 $(HOST_EXPORTS) \
a90ef4bf 20907 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20909 done; \
22121df0 20910 echo "Doing pdf in libcpp"; \
a90ef4bf 20911 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20914 "RANLIB=$${RANLIB}" \
0c24b341 20915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20916 pdf) \
20917 || exit 1
20918
a90ef4bf 20919@endif libcpp
4b900473 20920
a90ef4bf
JM
20921.PHONY: maybe-html-libcpp html-libcpp
20922maybe-html-libcpp:
20923@if libcpp
20924maybe-html-libcpp: html-libcpp
4b900473 20925
a90ef4bf
JM
20926html-libcpp: \
20927 configure-libcpp
20928 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20929 r=`${PWD_COMMAND}`; export r; \
20930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20931 $(HOST_EXPORTS) \
a90ef4bf 20932 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20934 done; \
22121df0 20935 echo "Doing html in libcpp"; \
a90ef4bf 20936 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20939 "RANLIB=$${RANLIB}" \
0c24b341 20940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20941 html) \
20942 || exit 1
20943
a90ef4bf 20944@endif libcpp
4b900473 20945
a90ef4bf
JM
20946.PHONY: maybe-TAGS-libcpp TAGS-libcpp
20947maybe-TAGS-libcpp:
20948@if libcpp
20949maybe-TAGS-libcpp: TAGS-libcpp
4b900473 20950
a90ef4bf
JM
20951TAGS-libcpp: \
20952 configure-libcpp
20953 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20954 r=`${PWD_COMMAND}`; export r; \
20955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20956 $(HOST_EXPORTS) \
a90ef4bf 20957 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20959 done; \
22121df0 20960 echo "Doing TAGS in libcpp"; \
a90ef4bf 20961 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20964 "RANLIB=$${RANLIB}" \
0c24b341 20965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20966 TAGS) \
20967 || exit 1
20968
a90ef4bf 20969@endif libcpp
4b900473 20970
a90ef4bf
JM
20971.PHONY: maybe-install-info-libcpp install-info-libcpp
20972maybe-install-info-libcpp:
20973@if libcpp
20974maybe-install-info-libcpp: install-info-libcpp
4b900473 20975
a90ef4bf
JM
20976install-info-libcpp: \
20977 configure-libcpp \
20978 info-libcpp
20979 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20980 r=`${PWD_COMMAND}`; export r; \
20981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20982 $(HOST_EXPORTS) \
a90ef4bf 20983 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20985 done; \
22121df0 20986 echo "Doing install-info in libcpp"; \
a90ef4bf 20987 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20990 "RANLIB=$${RANLIB}" \
0c24b341 20991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20992 install-info) \
20993 || exit 1
20994
a90ef4bf 20995@endif libcpp
4b900473 20996
a90ef4bf
JM
20997.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
20998maybe-install-pdf-libcpp:
20999@if libcpp
21000maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 21001
a90ef4bf
JM
21002install-pdf-libcpp: \
21003 configure-libcpp \
21004 pdf-libcpp
21005 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
21006 r=`${PWD_COMMAND}`; export r; \
21007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21008 $(HOST_EXPORTS) \
a90ef4bf 21009 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
21010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21011 done; \
22121df0 21012 echo "Doing install-pdf in libcpp"; \
a90ef4bf 21013 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
21014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21016 "RANLIB=$${RANLIB}" \
0c24b341 21017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
21018 install-pdf) \
21019 || exit 1
21020
a90ef4bf 21021@endif libcpp
a3ca38d2 21022
a90ef4bf
JM
21023.PHONY: maybe-install-html-libcpp install-html-libcpp
21024maybe-install-html-libcpp:
21025@if libcpp
21026maybe-install-html-libcpp: install-html-libcpp
4b900473 21027
a90ef4bf
JM
21028install-html-libcpp: \
21029 configure-libcpp \
21030 html-libcpp
21031 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21032 r=`${PWD_COMMAND}`; export r; \
21033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21034 $(HOST_EXPORTS) \
a90ef4bf 21035 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21037 done; \
22121df0 21038 echo "Doing install-html in libcpp"; \
a90ef4bf 21039 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21042 "RANLIB=$${RANLIB}" \
0c24b341 21043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21044 install-html) \
21045 || exit 1
21046
a90ef4bf 21047@endif libcpp
4b900473 21048
a90ef4bf
JM
21049.PHONY: maybe-installcheck-libcpp installcheck-libcpp
21050maybe-installcheck-libcpp:
21051@if libcpp
21052maybe-installcheck-libcpp: installcheck-libcpp
4b900473 21053
a90ef4bf
JM
21054installcheck-libcpp: \
21055 configure-libcpp
21056 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21057 r=`${PWD_COMMAND}`; export r; \
21058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21059 $(HOST_EXPORTS) \
a90ef4bf 21060 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21062 done; \
22121df0 21063 echo "Doing installcheck in libcpp"; \
a90ef4bf 21064 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21067 "RANLIB=$${RANLIB}" \
0c24b341 21068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21069 installcheck) \
21070 || exit 1
21071
a90ef4bf 21072@endif libcpp
4b900473 21073
a90ef4bf
JM
21074.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
21075maybe-mostlyclean-libcpp:
21076@if libcpp
21077maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 21078
a90ef4bf
JM
21079mostlyclean-libcpp:
21080 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21081 r=`${PWD_COMMAND}`; export r; \
21082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21083 $(HOST_EXPORTS) \
a90ef4bf 21084 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21086 done; \
22121df0 21087 echo "Doing mostlyclean in libcpp"; \
a90ef4bf 21088 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21091 "RANLIB=$${RANLIB}" \
0c24b341 21092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21093 mostlyclean) \
21094 || exit 1
21095
a90ef4bf 21096@endif libcpp
4b900473 21097
a90ef4bf
JM
21098.PHONY: maybe-clean-libcpp clean-libcpp
21099maybe-clean-libcpp:
21100@if libcpp
21101maybe-clean-libcpp: clean-libcpp
4b900473 21102
a90ef4bf
JM
21103clean-libcpp:
21104 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21105 r=`${PWD_COMMAND}`; export r; \
21106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21107 $(HOST_EXPORTS) \
a90ef4bf 21108 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21110 done; \
22121df0 21111 echo "Doing clean in libcpp"; \
a90ef4bf 21112 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21115 "RANLIB=$${RANLIB}" \
0c24b341 21116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21117 clean) \
21118 || exit 1
21119
a90ef4bf 21120@endif libcpp
4b900473 21121
a90ef4bf
JM
21122.PHONY: maybe-distclean-libcpp distclean-libcpp
21123maybe-distclean-libcpp:
21124@if libcpp
21125maybe-distclean-libcpp: distclean-libcpp
4b900473 21126
a90ef4bf
JM
21127distclean-libcpp:
21128 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21129 r=`${PWD_COMMAND}`; export r; \
21130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21131 $(HOST_EXPORTS) \
a90ef4bf 21132 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21134 done; \
22121df0 21135 echo "Doing distclean in libcpp"; \
a90ef4bf 21136 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21139 "RANLIB=$${RANLIB}" \
0c24b341 21140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21141 distclean) \
21142 || exit 1
21143
a90ef4bf 21144@endif libcpp
4b900473 21145
a90ef4bf
JM
21146.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21147maybe-maintainer-clean-libcpp:
21148@if libcpp
21149maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21150
a90ef4bf
JM
21151maintainer-clean-libcpp:
21152 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21153 r=`${PWD_COMMAND}`; export r; \
21154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21155 $(HOST_EXPORTS) \
a90ef4bf 21156 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21158 done; \
22121df0 21159 echo "Doing maintainer-clean in libcpp"; \
a90ef4bf 21160 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21163 "RANLIB=$${RANLIB}" \
0c24b341 21164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21165 maintainer-clean) \
21166 || exit 1
21167
a90ef4bf 21168@endif libcpp
4b900473
PB
21169
21170
21171
a90ef4bf
JM
21172.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21173maybe-configure-libdecnumber:
1f53ca9a 21174@if gcc-bootstrap
a90ef4bf 21175configure-libdecnumber: stage_current
1f53ca9a 21176@endif gcc-bootstrap
a90ef4bf
JM
21177@if libdecnumber
21178maybe-configure-libdecnumber: configure-libdecnumber
21179configure-libdecnumber:
1f53ca9a
AO
21180 @r=`${PWD_COMMAND}`; export r; \
21181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21182 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
22121df0 21183 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
1f53ca9a 21184 $(HOST_EXPORTS) \
a90ef4bf
JM
21185 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21186 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21187 case $(srcdir) in \
21188 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21189 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21190 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21191 esac; \
1b6c0831
L
21192 module_srcdir=libdecnumber; \
21193 $(SHELL) \
21194 $$s/$$module_srcdir/configure \
21195 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21196 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21197 --target=${target_alias} \
1f53ca9a 21198 || exit 1
a90ef4bf 21199@endif libdecnumber
1f53ca9a
AO
21200
21201
21202
a90ef4bf
JM
21203.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21204maybe-configure-stage1-libdecnumber:
21205@if libdecnumber-bootstrap
21206maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21207configure-stage1-libdecnumber:
1f53ca9a 21208 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21209 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21210 @r=`${PWD_COMMAND}`; export r; \
21211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21212 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21213 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21214 $(HOST_EXPORTS) \
21215 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21216 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21217 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
21218 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber; \
21219 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21220 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21221 case $(srcdir) in \
21222 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21223 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21224 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21225 esac; \
1b6c0831
L
21226 module_srcdir=libdecnumber; \
21227 $(SHELL) $$s/$$module_srcdir/configure \
21228 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21229 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21230 --target=${target_alias} \
21231 \
a90ef4bf
JM
21232 $(STAGE1_CONFIGURE_FLAGS)
21233@endif libdecnumber-bootstrap
1f53ca9a 21234
a90ef4bf
JM
21235.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21236maybe-configure-stage2-libdecnumber:
21237@if libdecnumber-bootstrap
21238maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21239configure-stage2-libdecnumber:
1f53ca9a 21240 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21241 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21242 @r=`${PWD_COMMAND}`; export r; \
21243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21244 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21245 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21246 $(HOST_EXPORTS) \
21247 $(POSTSTAGE1_HOST_EXPORTS) \
21248 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21249 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21250 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21251 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber; \
21252 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21253 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21254 case $(srcdir) in \
21255 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21256 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21257 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21258 esac; \
1b6c0831
L
21259 module_srcdir=libdecnumber; \
21260 $(SHELL) $$s/$$module_srcdir/configure \
21261 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21262 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21263 --target=${target_alias} \
22121df0 21264 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21265 $(STAGE2_CONFIGURE_FLAGS)
21266@endif libdecnumber-bootstrap
1f53ca9a 21267
a90ef4bf
JM
21268.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21269maybe-configure-stage3-libdecnumber:
21270@if libdecnumber-bootstrap
21271maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21272configure-stage3-libdecnumber:
1f53ca9a 21273 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21274 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21275 @r=`${PWD_COMMAND}`; export r; \
21276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21277 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21278 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21279 $(HOST_EXPORTS) \
21280 $(POSTSTAGE1_HOST_EXPORTS) \
21281 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21282 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21283 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21284 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber; \
21285 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21286 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21287 case $(srcdir) in \
21288 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21289 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21290 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21291 esac; \
1b6c0831
L
21292 module_srcdir=libdecnumber; \
21293 $(SHELL) $$s/$$module_srcdir/configure \
21294 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21295 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21296 --target=${target_alias} \
22121df0 21297 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21298 $(STAGE3_CONFIGURE_FLAGS)
21299@endif libdecnumber-bootstrap
1f53ca9a 21300
a90ef4bf
JM
21301.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21302maybe-configure-stage4-libdecnumber:
21303@if libdecnumber-bootstrap
21304maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21305configure-stage4-libdecnumber:
1f53ca9a 21306 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21307 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21308 @r=`${PWD_COMMAND}`; export r; \
21309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21310 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21311 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21312 $(HOST_EXPORTS) \
21313 $(POSTSTAGE1_HOST_EXPORTS) \
21314 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21315 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21316 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21317 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber; \
21318 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21319 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21320 case $(srcdir) in \
21321 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21322 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21323 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21324 esac; \
1b6c0831
L
21325 module_srcdir=libdecnumber; \
21326 $(SHELL) $$s/$$module_srcdir/configure \
21327 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21328 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21329 --target=${target_alias} \
22121df0 21330 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21331 $(STAGE4_CONFIGURE_FLAGS)
21332@endif libdecnumber-bootstrap
1f53ca9a 21333
a90ef4bf
JM
21334.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21335maybe-configure-stageprofile-libdecnumber:
21336@if libdecnumber-bootstrap
21337maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21338configure-stageprofile-libdecnumber:
1f53ca9a 21339 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21340 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21341 @r=`${PWD_COMMAND}`; export r; \
21342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21343 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21344 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21345 $(HOST_EXPORTS) \
21346 $(POSTSTAGE1_HOST_EXPORTS) \
21347 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21348 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21349 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21350 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber; \
21351 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21352 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21353 case $(srcdir) in \
21354 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21355 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21356 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21357 esac; \
1b6c0831
L
21358 module_srcdir=libdecnumber; \
21359 $(SHELL) $$s/$$module_srcdir/configure \
21360 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21361 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21362 --target=${target_alias} \
22121df0 21363 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21364 $(STAGEprofile_CONFIGURE_FLAGS)
21365@endif libdecnumber-bootstrap
1f53ca9a 21366
a90ef4bf
JM
21367.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21368maybe-configure-stagefeedback-libdecnumber:
21369@if libdecnumber-bootstrap
21370maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21371configure-stagefeedback-libdecnumber:
1f53ca9a 21372 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21373 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21374 @r=`${PWD_COMMAND}`; export r; \
21375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21376 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21377 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21378 $(HOST_EXPORTS) \
21379 $(POSTSTAGE1_HOST_EXPORTS) \
21380 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21381 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21382 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21383 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber; \
21384 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21385 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21386 case $(srcdir) in \
21387 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21388 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21389 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21390 esac; \
1b6c0831
L
21391 module_srcdir=libdecnumber; \
21392 $(SHELL) $$s/$$module_srcdir/configure \
21393 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21394 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21395 --target=${target_alias} \
22121df0 21396 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21397 $(STAGEfeedback_CONFIGURE_FLAGS)
21398@endif libdecnumber-bootstrap
1f53ca9a
AO
21399
21400
21401
21402
21403
a90ef4bf
JM
21404.PHONY: all-libdecnumber maybe-all-libdecnumber
21405maybe-all-libdecnumber:
1f53ca9a 21406@if gcc-bootstrap
a90ef4bf 21407all-libdecnumber: stage_current
1f53ca9a 21408@endif gcc-bootstrap
a90ef4bf
JM
21409@if libdecnumber
21410TARGET-libdecnumber=all
21411maybe-all-libdecnumber: all-libdecnumber
21412all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21413 @r=`${PWD_COMMAND}`; export r; \
21414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21415 $(HOST_EXPORTS) \
a90ef4bf 21416 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21417 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21418 $(TARGET-libdecnumber))
21419@endif libdecnumber
1f53ca9a
AO
21420
21421
21422
a90ef4bf
JM
21423.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21424.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21425maybe-all-stage1-libdecnumber:
21426maybe-clean-stage1-libdecnumber:
21427@if libdecnumber-bootstrap
21428maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21429all-stage1: all-stage1-libdecnumber
21430TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21431all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21432 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21433 @r=`${PWD_COMMAND}`; export r; \
21434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21435 TFLAGS="$(STAGE1_TFLAGS)"; \
21436 $(HOST_EXPORTS) \
a90ef4bf 21437 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21438 \
1f53ca9a
AO
21439 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21440 CFLAGS="$(STAGE1_CFLAGS)" \
21441 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21442 LIBCFLAGS="$(LIBCFLAGS)" \
21443 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21444 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21445 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21446 $(EXTRA_HOST_FLAGS) \
21447 $(STAGE1_FLAGS_TO_PASS) \
05a13254 21448 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21449 $(TARGET-stage1-libdecnumber)
1f53ca9a 21450
a90ef4bf
JM
21451maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21452clean-stage1: clean-stage1-libdecnumber
21453clean-stage1-libdecnumber:
1f53ca9a 21454 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21455 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21456 else \
a90ef4bf 21457 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21458 $(MAKE) stage1-start; \
21459 fi; \
a90ef4bf 21460 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21461 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21462 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21463@endif libdecnumber-bootstrap
1f53ca9a
AO
21464
21465
a90ef4bf
JM
21466.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21467.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21468maybe-all-stage2-libdecnumber:
21469maybe-clean-stage2-libdecnumber:
21470@if libdecnumber-bootstrap
21471maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21472all-stage2: all-stage2-libdecnumber
21473TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21474all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21475 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21476 @r=`${PWD_COMMAND}`; export r; \
21477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21478 TFLAGS="$(STAGE2_TFLAGS)"; \
21479 $(HOST_EXPORTS) \
21480 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21481 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21482 \
1f53ca9a
AO
21483 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21484 CFLAGS="$(STAGE2_CFLAGS)" \
21485 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21486 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21487 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21488 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21489 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21490 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21491 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21492 $(TARGET-stage2-libdecnumber)
1f53ca9a 21493
a90ef4bf
JM
21494maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21495clean-stage2: clean-stage2-libdecnumber
21496clean-stage2-libdecnumber:
1f53ca9a 21497 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21498 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21499 else \
a90ef4bf 21500 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21501 $(MAKE) stage2-start; \
21502 fi; \
a90ef4bf 21503 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21504 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21505@endif libdecnumber-bootstrap
1f53ca9a
AO
21506
21507
a90ef4bf
JM
21508.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21509.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21510maybe-all-stage3-libdecnumber:
21511maybe-clean-stage3-libdecnumber:
21512@if libdecnumber-bootstrap
21513maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21514all-stage3: all-stage3-libdecnumber
21515TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21516all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21517 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21518 @r=`${PWD_COMMAND}`; export r; \
21519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21520 TFLAGS="$(STAGE3_TFLAGS)"; \
21521 $(HOST_EXPORTS) \
21522 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21523 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21524 \
1f53ca9a
AO
21525 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21526 CFLAGS="$(STAGE3_CFLAGS)" \
21527 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21528 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21529 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21530 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21531 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21532 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21533 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21534 $(TARGET-stage3-libdecnumber)
1f53ca9a 21535
a90ef4bf
JM
21536maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21537clean-stage3: clean-stage3-libdecnumber
21538clean-stage3-libdecnumber:
1f53ca9a 21539 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21540 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21541 else \
a90ef4bf 21542 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21543 $(MAKE) stage3-start; \
21544 fi; \
a90ef4bf 21545 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21546 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21547@endif libdecnumber-bootstrap
1f53ca9a
AO
21548
21549
a90ef4bf
JM
21550.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21551.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21552maybe-all-stage4-libdecnumber:
21553maybe-clean-stage4-libdecnumber:
21554@if libdecnumber-bootstrap
21555maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21556all-stage4: all-stage4-libdecnumber
21557TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21558all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21559 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21560 @r=`${PWD_COMMAND}`; export r; \
21561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21562 TFLAGS="$(STAGE4_TFLAGS)"; \
21563 $(HOST_EXPORTS) \
21564 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21565 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21566 \
1f53ca9a
AO
21567 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21568 CFLAGS="$(STAGE4_CFLAGS)" \
21569 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21570 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21571 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21572 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21573 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21574 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21575 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21576 $(TARGET-stage4-libdecnumber)
1f53ca9a 21577
a90ef4bf
JM
21578maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21579clean-stage4: clean-stage4-libdecnumber
21580clean-stage4-libdecnumber:
1f53ca9a 21581 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21582 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21583 else \
a90ef4bf 21584 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21585 $(MAKE) stage4-start; \
21586 fi; \
a90ef4bf 21587 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21588 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21589@endif libdecnumber-bootstrap
1f53ca9a
AO
21590
21591
a90ef4bf
JM
21592.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21593.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21594maybe-all-stageprofile-libdecnumber:
21595maybe-clean-stageprofile-libdecnumber:
21596@if libdecnumber-bootstrap
21597maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21598all-stageprofile: all-stageprofile-libdecnumber
21599TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21600all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21601 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21602 @r=`${PWD_COMMAND}`; export r; \
21603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21604 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21605 $(HOST_EXPORTS) \
21606 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21607 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21608 \
1f53ca9a
AO
21609 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21610 CFLAGS="$(STAGEprofile_CFLAGS)" \
21611 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21612 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21613 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21614 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21615 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21616 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21617 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21618 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21619
a90ef4bf
JM
21620maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21621clean-stageprofile: clean-stageprofile-libdecnumber
21622clean-stageprofile-libdecnumber:
1f53ca9a 21623 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21624 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21625 else \
a90ef4bf 21626 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21627 $(MAKE) stageprofile-start; \
21628 fi; \
a90ef4bf 21629 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21630 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21631@endif libdecnumber-bootstrap
1f53ca9a
AO
21632
21633
a90ef4bf
JM
21634.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21635.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21636maybe-all-stagefeedback-libdecnumber:
21637maybe-clean-stagefeedback-libdecnumber:
21638@if libdecnumber-bootstrap
21639maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21640all-stagefeedback: all-stagefeedback-libdecnumber
21641TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21642all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21643 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21644 @r=`${PWD_COMMAND}`; export r; \
21645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21646 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21647 $(HOST_EXPORTS) \
21648 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21649 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21650 \
1f53ca9a
AO
21651 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21652 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21653 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21654 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21655 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21656 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21657 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21658 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21659 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21660 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21661
a90ef4bf
JM
21662maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21663clean-stagefeedback: clean-stagefeedback-libdecnumber
21664clean-stagefeedback-libdecnumber:
1f53ca9a 21665 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21666 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21667 else \
a90ef4bf 21668 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21669 $(MAKE) stagefeedback-start; \
21670 fi; \
a90ef4bf 21671 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21672 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21673@endif libdecnumber-bootstrap
1f53ca9a
AO
21674
21675
21676
21677
21678
a90ef4bf
JM
21679.PHONY: check-libdecnumber maybe-check-libdecnumber
21680maybe-check-libdecnumber:
21681@if libdecnumber
21682maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21683
a90ef4bf 21684check-libdecnumber:
1f53ca9a
AO
21685 @: $(MAKE); $(unstage)
21686 @r=`${PWD_COMMAND}`; export r; \
21687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21688 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 21689 (cd $(HOST_SUBDIR)/libdecnumber && \
f91ca6bc 21690 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
1f53ca9a 21691
a90ef4bf 21692@endif libdecnumber
1f53ca9a 21693
a90ef4bf
JM
21694.PHONY: install-libdecnumber maybe-install-libdecnumber
21695maybe-install-libdecnumber:
21696@if libdecnumber
21697maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21698
a90ef4bf
JM
21699install-libdecnumber: installdirs
21700 @: $(MAKE); $(unstage)
21701 @r=`${PWD_COMMAND}`; export r; \
21702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21703 $(HOST_EXPORTS) \
21704 (cd $(HOST_SUBDIR)/libdecnumber && \
21705 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21706
a90ef4bf 21707@endif libdecnumber
1f53ca9a 21708
a90ef4bf
JM
21709.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21710maybe-install-strip-libdecnumber:
21711@if libdecnumber
21712maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21713
a90ef4bf
JM
21714install-strip-libdecnumber: installdirs
21715 @: $(MAKE); $(unstage)
21716 @r=`${PWD_COMMAND}`; export r; \
21717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21718 $(HOST_EXPORTS) \
21719 (cd $(HOST_SUBDIR)/libdecnumber && \
21720 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21721
a90ef4bf 21722@endif libdecnumber
9b980aa1 21723
1f53ca9a
AO
21724# Other targets (info, dvi, pdf, etc.)
21725
a90ef4bf
JM
21726.PHONY: maybe-info-libdecnumber info-libdecnumber
21727maybe-info-libdecnumber:
21728@if libdecnumber
21729maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21730
a90ef4bf
JM
21731info-libdecnumber: \
21732 configure-libdecnumber
21733 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21734 r=`${PWD_COMMAND}`; export r; \
21735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21736 $(HOST_EXPORTS) \
21737 for flag in $(EXTRA_HOST_FLAGS) ; do \
21738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21739 done; \
22121df0 21740 echo "Doing info in libdecnumber"; \
a90ef4bf 21741 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21744 "RANLIB=$${RANLIB}" \
21745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21746 info) \
21747 || exit 1
21748
a90ef4bf 21749@endif libdecnumber
1f53ca9a 21750
a90ef4bf
JM
21751.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21752maybe-dvi-libdecnumber:
21753@if libdecnumber
21754maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21755
a90ef4bf
JM
21756dvi-libdecnumber: \
21757 configure-libdecnumber
21758 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21759 r=`${PWD_COMMAND}`; export r; \
21760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21761 $(HOST_EXPORTS) \
21762 for flag in $(EXTRA_HOST_FLAGS) ; do \
21763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21764 done; \
22121df0 21765 echo "Doing dvi in libdecnumber"; \
a90ef4bf 21766 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21769 "RANLIB=$${RANLIB}" \
21770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21771 dvi) \
21772 || exit 1
21773
a90ef4bf 21774@endif libdecnumber
1f53ca9a 21775
a90ef4bf
JM
21776.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21777maybe-pdf-libdecnumber:
21778@if libdecnumber
21779maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21780
a90ef4bf
JM
21781pdf-libdecnumber: \
21782 configure-libdecnumber
21783 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21784 r=`${PWD_COMMAND}`; export r; \
21785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21786 $(HOST_EXPORTS) \
21787 for flag in $(EXTRA_HOST_FLAGS) ; do \
21788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21789 done; \
22121df0 21790 echo "Doing pdf in libdecnumber"; \
a90ef4bf 21791 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21794 "RANLIB=$${RANLIB}" \
21795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21796 pdf) \
21797 || exit 1
21798
a90ef4bf 21799@endif libdecnumber
1f53ca9a 21800
a90ef4bf
JM
21801.PHONY: maybe-html-libdecnumber html-libdecnumber
21802maybe-html-libdecnumber:
21803@if libdecnumber
21804maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21805
a90ef4bf
JM
21806html-libdecnumber: \
21807 configure-libdecnumber
21808 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21809 r=`${PWD_COMMAND}`; export r; \
21810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21811 $(HOST_EXPORTS) \
21812 for flag in $(EXTRA_HOST_FLAGS) ; do \
21813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21814 done; \
22121df0 21815 echo "Doing html in libdecnumber"; \
a90ef4bf 21816 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21819 "RANLIB=$${RANLIB}" \
21820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21821 html) \
21822 || exit 1
21823
a90ef4bf 21824@endif libdecnumber
1f53ca9a 21825
a90ef4bf
JM
21826.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21827maybe-TAGS-libdecnumber:
21828@if libdecnumber
21829maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21830
a90ef4bf
JM
21831TAGS-libdecnumber: \
21832 configure-libdecnumber
21833 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21834 r=`${PWD_COMMAND}`; export r; \
21835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21836 $(HOST_EXPORTS) \
21837 for flag in $(EXTRA_HOST_FLAGS) ; do \
21838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21839 done; \
22121df0 21840 echo "Doing TAGS in libdecnumber"; \
a90ef4bf 21841 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21844 "RANLIB=$${RANLIB}" \
21845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21846 TAGS) \
21847 || exit 1
21848
a90ef4bf 21849@endif libdecnumber
1f53ca9a 21850
a90ef4bf
JM
21851.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21852maybe-install-info-libdecnumber:
21853@if libdecnumber
21854maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21855
a90ef4bf
JM
21856install-info-libdecnumber: \
21857 configure-libdecnumber \
21858 info-libdecnumber
21859 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21860 r=`${PWD_COMMAND}`; export r; \
21861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21862 $(HOST_EXPORTS) \
21863 for flag in $(EXTRA_HOST_FLAGS) ; do \
21864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21865 done; \
22121df0 21866 echo "Doing install-info in libdecnumber"; \
a90ef4bf 21867 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21870 "RANLIB=$${RANLIB}" \
21871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21872 install-info) \
21873 || exit 1
21874
a90ef4bf 21875@endif libdecnumber
1f53ca9a 21876
a90ef4bf
JM
21877.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21878maybe-install-pdf-libdecnumber:
21879@if libdecnumber
21880maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21881
a90ef4bf
JM
21882install-pdf-libdecnumber: \
21883 configure-libdecnumber \
21884 pdf-libdecnumber
21885 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21886 r=`${PWD_COMMAND}`; export r; \
21887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21888 $(HOST_EXPORTS) \
21889 for flag in $(EXTRA_HOST_FLAGS) ; do \
21890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21891 done; \
22121df0 21892 echo "Doing install-pdf in libdecnumber"; \
a90ef4bf 21893 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21896 "RANLIB=$${RANLIB}" \
21897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21898 install-pdf) \
21899 || exit 1
21900
a90ef4bf 21901@endif libdecnumber
1f53ca9a 21902
a90ef4bf
JM
21903.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21904maybe-install-html-libdecnumber:
21905@if libdecnumber
21906maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 21907
a90ef4bf
JM
21908install-html-libdecnumber: \
21909 configure-libdecnumber \
21910 html-libdecnumber
21911 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21912 r=`${PWD_COMMAND}`; export r; \
21913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21914 $(HOST_EXPORTS) \
21915 for flag in $(EXTRA_HOST_FLAGS) ; do \
21916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21917 done; \
22121df0 21918 echo "Doing install-html in libdecnumber"; \
a90ef4bf 21919 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21922 "RANLIB=$${RANLIB}" \
21923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21924 install-html) \
21925 || exit 1
21926
a90ef4bf 21927@endif libdecnumber
1f53ca9a 21928
a90ef4bf
JM
21929.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
21930maybe-installcheck-libdecnumber:
21931@if libdecnumber
21932maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 21933
a90ef4bf
JM
21934installcheck-libdecnumber: \
21935 configure-libdecnumber
21936 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21937 r=`${PWD_COMMAND}`; export r; \
21938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21939 $(HOST_EXPORTS) \
21940 for flag in $(EXTRA_HOST_FLAGS) ; do \
21941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21942 done; \
22121df0 21943 echo "Doing installcheck in libdecnumber"; \
a90ef4bf 21944 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21947 "RANLIB=$${RANLIB}" \
21948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21949 installcheck) \
21950 || exit 1
21951
a90ef4bf 21952@endif libdecnumber
1f53ca9a 21953
a90ef4bf
JM
21954.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
21955maybe-mostlyclean-libdecnumber:
21956@if libdecnumber
21957maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 21958
a90ef4bf
JM
21959mostlyclean-libdecnumber:
21960 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21961 r=`${PWD_COMMAND}`; export r; \
21962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21963 $(HOST_EXPORTS) \
21964 for flag in $(EXTRA_HOST_FLAGS) ; do \
21965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21966 done; \
22121df0 21967 echo "Doing mostlyclean in libdecnumber"; \
a90ef4bf 21968 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21971 "RANLIB=$${RANLIB}" \
21972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21973 mostlyclean) \
21974 || exit 1
21975
a90ef4bf 21976@endif libdecnumber
1f53ca9a 21977
a90ef4bf
JM
21978.PHONY: maybe-clean-libdecnumber clean-libdecnumber
21979maybe-clean-libdecnumber:
21980@if libdecnumber
21981maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 21982
a90ef4bf
JM
21983clean-libdecnumber:
21984 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21985 r=`${PWD_COMMAND}`; export r; \
21986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21987 $(HOST_EXPORTS) \
21988 for flag in $(EXTRA_HOST_FLAGS) ; do \
21989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21990 done; \
22121df0 21991 echo "Doing clean in libdecnumber"; \
a90ef4bf 21992 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21995 "RANLIB=$${RANLIB}" \
21996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21997 clean) \
21998 || exit 1
21999
a90ef4bf 22000@endif libdecnumber
1f53ca9a 22001
a90ef4bf
JM
22002.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
22003maybe-distclean-libdecnumber:
22004@if libdecnumber
22005maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 22006
a90ef4bf
JM
22007distclean-libdecnumber:
22008 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22009 r=`${PWD_COMMAND}`; export r; \
22010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22011 $(HOST_EXPORTS) \
22012 for flag in $(EXTRA_HOST_FLAGS) ; do \
22013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22014 done; \
22121df0 22015 echo "Doing distclean in libdecnumber"; \
a90ef4bf 22016 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22019 "RANLIB=$${RANLIB}" \
22020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22021 distclean) \
22022 || exit 1
22023
a90ef4bf 22024@endif libdecnumber
1f53ca9a 22025
a90ef4bf
JM
22026.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
22027maybe-maintainer-clean-libdecnumber:
22028@if libdecnumber
22029maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 22030
a90ef4bf
JM
22031maintainer-clean-libdecnumber:
22032 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22033 r=`${PWD_COMMAND}`; export r; \
22034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22035 $(HOST_EXPORTS) \
22036 for flag in $(EXTRA_HOST_FLAGS) ; do \
22037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22038 done; \
22121df0 22039 echo "Doing maintainer-clean in libdecnumber"; \
a90ef4bf 22040 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22043 "RANLIB=$${RANLIB}" \
22044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22045 maintainer-clean) \
22046 || exit 1
22047
a90ef4bf 22048@endif libdecnumber
1f53ca9a
AO
22049
22050
22051
a90ef4bf
JM
22052.PHONY: configure-libgui maybe-configure-libgui
22053maybe-configure-libgui:
4f0ef2d8 22054@if gcc-bootstrap
a90ef4bf 22055configure-libgui: stage_current
4f0ef2d8 22056@endif gcc-bootstrap
a90ef4bf
JM
22057@if libgui
22058maybe-configure-libgui: configure-libgui
22059configure-libgui:
0aed8855 22060 @: $(MAKE); $(unstage)
c52c6897 22061 @r=`${PWD_COMMAND}`; export r; \
4fa63067 22062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22063 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
22121df0 22064 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui; \
1f53ca9a 22065 $(HOST_EXPORTS) \
a90ef4bf
JM
22066 echo Configuring in $(HOST_SUBDIR)/libgui; \
22067 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 22068 case $(srcdir) in \
b00612cc 22069 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22070 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 22071 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 22072 esac; \
1b6c0831
L
22073 module_srcdir=libgui; \
22074 $(SHELL) \
22075 $$s/$$module_srcdir/configure \
22076 --srcdir=$${topdir}/$$module_srcdir \
4b900473 22077 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22078 --target=${target_alias} \
2a4cbe27 22079 || exit 1
a90ef4bf 22080@endif libgui
2a4cbe27 22081
a7254363
PB
22082
22083
d545f33b
PB
22084
22085
a90ef4bf
JM
22086.PHONY: all-libgui maybe-all-libgui
22087maybe-all-libgui:
4f0ef2d8 22088@if gcc-bootstrap
a90ef4bf 22089all-libgui: stage_current
4f0ef2d8 22090@endif gcc-bootstrap
a90ef4bf
JM
22091@if libgui
22092TARGET-libgui=all
22093maybe-all-libgui: all-libgui
22094all-libgui: configure-libgui
0aed8855 22095 @: $(MAKE); $(unstage)
4fa63067
NN
22096 @r=`${PWD_COMMAND}`; export r; \
22097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22098 $(HOST_EXPORTS) \
a90ef4bf 22099 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 22100 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22101 $(TARGET-libgui))
22102@endif libgui
2a4cbe27 22103
a7254363 22104
d545f33b
PB
22105
22106
a90ef4bf
JM
22107.PHONY: check-libgui maybe-check-libgui
22108maybe-check-libgui:
22109@if libgui
22110maybe-check-libgui: check-libgui
2a4cbe27 22111
a90ef4bf 22112check-libgui:
0aed8855 22113 @: $(MAKE); $(unstage)
4fa63067 22114 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22116 $(HOST_EXPORTS) \
a90ef4bf 22117 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 22118 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 22119
a90ef4bf 22120@endif libgui
2a4cbe27 22121
a90ef4bf
JM
22122.PHONY: install-libgui maybe-install-libgui
22123maybe-install-libgui:
22124@if libgui
22125maybe-install-libgui: install-libgui
2a4cbe27 22126
a90ef4bf 22127install-libgui: installdirs
0aed8855 22128 @: $(MAKE); $(unstage)
4fa63067 22129 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22131 $(HOST_EXPORTS) \
a90ef4bf 22132 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22133 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22134
a90ef4bf 22135@endif libgui
2a4cbe27 22136
a90ef4bf
JM
22137.PHONY: install-strip-libgui maybe-install-strip-libgui
22138maybe-install-strip-libgui:
22139@if libgui
22140maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22141
a90ef4bf 22142install-strip-libgui: installdirs
9b980aa1
RW
22143 @: $(MAKE); $(unstage)
22144 @r=`${PWD_COMMAND}`; export r; \
22145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22146 $(HOST_EXPORTS) \
a90ef4bf 22147 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22148 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22149
a90ef4bf 22150@endif libgui
9b980aa1 22151
56a8fe78 22152# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22153
a90ef4bf
JM
22154.PHONY: maybe-info-libgui info-libgui
22155maybe-info-libgui:
22156@if libgui
22157maybe-info-libgui: info-libgui
4fa63067 22158
a90ef4bf
JM
22159info-libgui: \
22160 configure-libgui
0aed8855 22161 @: $(MAKE); $(unstage)
a90ef4bf 22162 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22163 r=`${PWD_COMMAND}`; export r; \
22164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22165 $(HOST_EXPORTS) \
b813574b 22166 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22168 done; \
22121df0 22169 echo "Doing info in libgui"; \
a90ef4bf 22170 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22173 "RANLIB=$${RANLIB}" \
0c24b341 22174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22175 info) \
2a4cbe27
NN
22176 || exit 1
22177
a90ef4bf 22178@endif libgui
2a4cbe27 22179
a90ef4bf
JM
22180.PHONY: maybe-dvi-libgui dvi-libgui
22181maybe-dvi-libgui:
22182@if libgui
22183maybe-dvi-libgui: dvi-libgui
2a4cbe27 22184
a90ef4bf
JM
22185dvi-libgui: \
22186 configure-libgui
0aed8855 22187 @: $(MAKE); $(unstage)
a90ef4bf 22188 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22189 r=`${PWD_COMMAND}`; export r; \
22190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22191 $(HOST_EXPORTS) \
b813574b 22192 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22194 done; \
22121df0 22195 echo "Doing dvi in libgui"; \
a90ef4bf 22196 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22199 "RANLIB=$${RANLIB}" \
0c24b341 22200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22201 dvi) \
2a4cbe27
NN
22202 || exit 1
22203
a90ef4bf 22204@endif libgui
2a4cbe27 22205
a90ef4bf
JM
22206.PHONY: maybe-pdf-libgui pdf-libgui
22207maybe-pdf-libgui:
22208@if libgui
22209maybe-pdf-libgui: pdf-libgui
56a8fe78 22210
a90ef4bf
JM
22211pdf-libgui: \
22212 configure-libgui
56a8fe78 22213 @: $(MAKE); $(unstage)
a90ef4bf 22214 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22215 r=`${PWD_COMMAND}`; export r; \
22216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22217 $(HOST_EXPORTS) \
22218 for flag in $(EXTRA_HOST_FLAGS) ; do \
22219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22220 done; \
22121df0 22221 echo "Doing pdf in libgui"; \
a90ef4bf 22222 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22225 "RANLIB=$${RANLIB}" \
0c24b341 22226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22227 pdf) \
22228 || exit 1
22229
a90ef4bf 22230@endif libgui
56a8fe78 22231
a90ef4bf
JM
22232.PHONY: maybe-html-libgui html-libgui
22233maybe-html-libgui:
22234@if libgui
22235maybe-html-libgui: html-libgui
6d389afc 22236
a90ef4bf
JM
22237html-libgui: \
22238 configure-libgui
0aed8855 22239 @: $(MAKE); $(unstage)
a90ef4bf 22240 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22241 r=`${PWD_COMMAND}`; export r; \
22242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22243 $(HOST_EXPORTS) \
22244 for flag in $(EXTRA_HOST_FLAGS) ; do \
22245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22246 done; \
22121df0 22247 echo "Doing html in libgui"; \
a90ef4bf 22248 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22251 "RANLIB=$${RANLIB}" \
0c24b341 22252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22253 html) \
22254 || exit 1
22255
a90ef4bf 22256@endif libgui
6d389afc 22257
a90ef4bf
JM
22258.PHONY: maybe-TAGS-libgui TAGS-libgui
22259maybe-TAGS-libgui:
22260@if libgui
22261maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22262
a90ef4bf
JM
22263TAGS-libgui: \
22264 configure-libgui
0aed8855 22265 @: $(MAKE); $(unstage)
a90ef4bf 22266 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22267 r=`${PWD_COMMAND}`; export r; \
22268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22269 $(HOST_EXPORTS) \
b813574b 22270 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22272 done; \
22121df0 22273 echo "Doing TAGS in libgui"; \
a90ef4bf 22274 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22277 "RANLIB=$${RANLIB}" \
0c24b341 22278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22279 TAGS) \
2a4cbe27
NN
22280 || exit 1
22281
a90ef4bf 22282@endif libgui
2a4cbe27 22283
a90ef4bf
JM
22284.PHONY: maybe-install-info-libgui install-info-libgui
22285maybe-install-info-libgui:
22286@if libgui
22287maybe-install-info-libgui: install-info-libgui
2a4cbe27 22288
a90ef4bf
JM
22289install-info-libgui: \
22290 configure-libgui \
22291 info-libgui
0aed8855 22292 @: $(MAKE); $(unstage)
a90ef4bf 22293 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22294 r=`${PWD_COMMAND}`; export r; \
22295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22296 $(HOST_EXPORTS) \
b813574b 22297 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22299 done; \
22121df0 22300 echo "Doing install-info in libgui"; \
a90ef4bf 22301 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22304 "RANLIB=$${RANLIB}" \
0c24b341 22305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22306 install-info) \
2a4cbe27
NN
22307 || exit 1
22308
a90ef4bf 22309@endif libgui
2a4cbe27 22310
a90ef4bf
JM
22311.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22312maybe-install-pdf-libgui:
22313@if libgui
22314maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22315
a90ef4bf
JM
22316install-pdf-libgui: \
22317 configure-libgui \
22318 pdf-libgui
a3ca38d2 22319 @: $(MAKE); $(unstage)
a90ef4bf 22320 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22321 r=`${PWD_COMMAND}`; export r; \
22322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22323 $(HOST_EXPORTS) \
22324 for flag in $(EXTRA_HOST_FLAGS) ; do \
22325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22326 done; \
22121df0 22327 echo "Doing install-pdf in libgui"; \
a90ef4bf 22328 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22331 "RANLIB=$${RANLIB}" \
0c24b341 22332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22333 install-pdf) \
22334 || exit 1
22335
a90ef4bf 22336@endif libgui
a3ca38d2 22337
a90ef4bf
JM
22338.PHONY: maybe-install-html-libgui install-html-libgui
22339maybe-install-html-libgui:
22340@if libgui
22341maybe-install-html-libgui: install-html-libgui
108a6f8e 22342
a90ef4bf
JM
22343install-html-libgui: \
22344 configure-libgui \
22345 html-libgui
108a6f8e 22346 @: $(MAKE); $(unstage)
a90ef4bf 22347 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22348 r=`${PWD_COMMAND}`; export r; \
22349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22350 $(HOST_EXPORTS) \
22351 for flag in $(EXTRA_HOST_FLAGS) ; do \
22352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22353 done; \
22121df0 22354 echo "Doing install-html in libgui"; \
a90ef4bf 22355 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22358 "RANLIB=$${RANLIB}" \
0c24b341 22359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22360 install-html) \
22361 || exit 1
22362
a90ef4bf 22363@endif libgui
108a6f8e 22364
a90ef4bf
JM
22365.PHONY: maybe-installcheck-libgui installcheck-libgui
22366maybe-installcheck-libgui:
22367@if libgui
22368maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22369
a90ef4bf
JM
22370installcheck-libgui: \
22371 configure-libgui
0aed8855 22372 @: $(MAKE); $(unstage)
a90ef4bf 22373 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22374 r=`${PWD_COMMAND}`; export r; \
22375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22376 $(HOST_EXPORTS) \
b813574b 22377 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22379 done; \
22121df0 22380 echo "Doing installcheck in libgui"; \
a90ef4bf 22381 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22384 "RANLIB=$${RANLIB}" \
0c24b341 22385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22386 installcheck) \
2a4cbe27
NN
22387 || exit 1
22388
a90ef4bf 22389@endif libgui
2a4cbe27 22390
a90ef4bf
JM
22391.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22392maybe-mostlyclean-libgui:
22393@if libgui
22394maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22395
a90ef4bf 22396mostlyclean-libgui:
0aed8855 22397 @: $(MAKE); $(unstage)
a90ef4bf 22398 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22399 r=`${PWD_COMMAND}`; export r; \
22400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22401 $(HOST_EXPORTS) \
b813574b 22402 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22404 done; \
22121df0 22405 echo "Doing mostlyclean in libgui"; \
a90ef4bf 22406 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22409 "RANLIB=$${RANLIB}" \
0c24b341 22410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22411 mostlyclean) \
2a4cbe27
NN
22412 || exit 1
22413
a90ef4bf 22414@endif libgui
2a4cbe27 22415
a90ef4bf
JM
22416.PHONY: maybe-clean-libgui clean-libgui
22417maybe-clean-libgui:
22418@if libgui
22419maybe-clean-libgui: clean-libgui
2a4cbe27 22420
a90ef4bf 22421clean-libgui:
0aed8855 22422 @: $(MAKE); $(unstage)
a90ef4bf 22423 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22424 r=`${PWD_COMMAND}`; export r; \
22425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22426 $(HOST_EXPORTS) \
b813574b 22427 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22429 done; \
22121df0 22430 echo "Doing clean in libgui"; \
a90ef4bf 22431 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22434 "RANLIB=$${RANLIB}" \
0c24b341 22435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22436 clean) \
2a4cbe27
NN
22437 || exit 1
22438
a90ef4bf 22439@endif libgui
2a4cbe27 22440
a90ef4bf
JM
22441.PHONY: maybe-distclean-libgui distclean-libgui
22442maybe-distclean-libgui:
22443@if libgui
22444maybe-distclean-libgui: distclean-libgui
2a4cbe27 22445
a90ef4bf 22446distclean-libgui:
0aed8855 22447 @: $(MAKE); $(unstage)
a90ef4bf 22448 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22449 r=`${PWD_COMMAND}`; export r; \
22450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22451 $(HOST_EXPORTS) \
b813574b 22452 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22454 done; \
22121df0 22455 echo "Doing distclean in libgui"; \
a90ef4bf 22456 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22459 "RANLIB=$${RANLIB}" \
0c24b341 22460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22461 distclean) \
2a4cbe27
NN
22462 || exit 1
22463
a90ef4bf 22464@endif libgui
2a4cbe27 22465
a90ef4bf
JM
22466.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22467maybe-maintainer-clean-libgui:
22468@if libgui
22469maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22470
a90ef4bf 22471maintainer-clean-libgui:
0aed8855 22472 @: $(MAKE); $(unstage)
a90ef4bf 22473 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22474 r=`${PWD_COMMAND}`; export r; \
22475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22476 $(HOST_EXPORTS) \
b813574b 22477 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22479 done; \
22121df0 22480 echo "Doing maintainer-clean in libgui"; \
a90ef4bf 22481 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22484 "RANLIB=$${RANLIB}" \
0c24b341 22485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22486 maintainer-clean) \
2a4cbe27
NN
22487 || exit 1
22488
a90ef4bf 22489@endif libgui
2a4cbe27 22490
2a4cbe27 22491
a7254363 22492
a90ef4bf
JM
22493.PHONY: configure-libiberty maybe-configure-libiberty
22494maybe-configure-libiberty:
93f9b408 22495@if gcc-bootstrap
a90ef4bf 22496configure-libiberty: stage_current
93f9b408 22497@endif gcc-bootstrap
a90ef4bf
JM
22498@if libiberty
22499maybe-configure-libiberty: configure-libiberty
22500configure-libiberty:
93f9b408
ILT
22501 @r=`${PWD_COMMAND}`; export r; \
22502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22503 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 22504 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
1f53ca9a 22505 $(HOST_EXPORTS) \
a90ef4bf
JM
22506 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22507 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22508 case $(srcdir) in \
22509 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22510 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22511 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22512 esac; \
1b6c0831
L
22513 module_srcdir=libiberty; \
22514 $(SHELL) \
22515 $$s/$$module_srcdir/configure \
22516 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22517 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22518 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 22519 || exit 1
a90ef4bf 22520@endif libiberty
93f9b408
ILT
22521
22522
22523
a90ef4bf
JM
22524.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22525maybe-configure-stage1-libiberty:
22526@if libiberty-bootstrap
22527maybe-configure-stage1-libiberty: configure-stage1-libiberty
22528configure-stage1-libiberty:
93f9b408 22529 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22530 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22531 @r=`${PWD_COMMAND}`; export r; \
22532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22533 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22534 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22535 $(HOST_EXPORTS) \
93f9b408 22536 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22537 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22538 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
22539 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty; \
22540 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22541 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22542 case $(srcdir) in \
22543 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22544 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22545 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22546 esac; \
1b6c0831
L
22547 module_srcdir=libiberty; \
22548 $(SHELL) $$s/$$module_srcdir/configure \
22549 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22550 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22551 --target=${target_alias} \
22552 \
a90ef4bf
JM
22553 $(STAGE1_CONFIGURE_FLAGS) \
22554 @extra_host_libiberty_configure_flags@
22555@endif libiberty-bootstrap
93f9b408 22556
a90ef4bf
JM
22557.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22558maybe-configure-stage2-libiberty:
22559@if libiberty-bootstrap
22560maybe-configure-stage2-libiberty: configure-stage2-libiberty
22561configure-stage2-libiberty:
93f9b408 22562 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22563 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22564 @r=`${PWD_COMMAND}`; export r; \
22565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22566 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22567 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22568 $(HOST_EXPORTS) \
1b05fbbd 22569 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22570 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22571 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22572 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22573 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty; \
22574 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22575 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22576 case $(srcdir) in \
22577 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22578 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22579 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22580 esac; \
1b6c0831
L
22581 module_srcdir=libiberty; \
22582 $(SHELL) $$s/$$module_srcdir/configure \
22583 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22584 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22585 --target=${target_alias} \
22121df0 22586 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22587 $(STAGE2_CONFIGURE_FLAGS) \
22588 @extra_host_libiberty_configure_flags@
22589@endif libiberty-bootstrap
93f9b408 22590
a90ef4bf
JM
22591.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22592maybe-configure-stage3-libiberty:
22593@if libiberty-bootstrap
22594maybe-configure-stage3-libiberty: configure-stage3-libiberty
22595configure-stage3-libiberty:
93f9b408 22596 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22597 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22598 @r=`${PWD_COMMAND}`; export r; \
22599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22600 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22601 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22602 $(HOST_EXPORTS) \
1b05fbbd 22603 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22604 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22605 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22606 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22607 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty; \
22608 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22609 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22610 case $(srcdir) in \
22611 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22612 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22613 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22614 esac; \
1b6c0831
L
22615 module_srcdir=libiberty; \
22616 $(SHELL) $$s/$$module_srcdir/configure \
22617 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22618 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22619 --target=${target_alias} \
22121df0 22620 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22621 $(STAGE3_CONFIGURE_FLAGS) \
22622 @extra_host_libiberty_configure_flags@
22623@endif libiberty-bootstrap
93f9b408 22624
a90ef4bf
JM
22625.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22626maybe-configure-stage4-libiberty:
22627@if libiberty-bootstrap
22628maybe-configure-stage4-libiberty: configure-stage4-libiberty
22629configure-stage4-libiberty:
93f9b408 22630 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22631 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22632 @r=`${PWD_COMMAND}`; export r; \
22633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22634 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22635 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22636 $(HOST_EXPORTS) \
1b05fbbd 22637 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22638 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22639 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22640 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22641 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty; \
22642 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22643 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22644 case $(srcdir) in \
22645 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22646 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22647 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22648 esac; \
1b6c0831
L
22649 module_srcdir=libiberty; \
22650 $(SHELL) $$s/$$module_srcdir/configure \
22651 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22652 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22653 --target=${target_alias} \
22121df0 22654 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22655 $(STAGE4_CONFIGURE_FLAGS) \
22656 @extra_host_libiberty_configure_flags@
22657@endif libiberty-bootstrap
93f9b408 22658
a90ef4bf
JM
22659.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22660maybe-configure-stageprofile-libiberty:
22661@if libiberty-bootstrap
22662maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22663configure-stageprofile-libiberty:
93f9b408 22664 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22665 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22666 @r=`${PWD_COMMAND}`; export r; \
22667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22668 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22669 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22670 $(HOST_EXPORTS) \
1b05fbbd
AO
22671 $(POSTSTAGE1_HOST_EXPORTS) \
22672 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22673 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22674 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22675 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty; \
22676 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22677 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22678 case $(srcdir) in \
22679 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22680 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22681 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22682 esac; \
1b6c0831
L
22683 module_srcdir=libiberty; \
22684 $(SHELL) $$s/$$module_srcdir/configure \
22685 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22686 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22687 --target=${target_alias} \
22121df0 22688 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22689 $(STAGEprofile_CONFIGURE_FLAGS) \
22690 @extra_host_libiberty_configure_flags@
22691@endif libiberty-bootstrap
93f9b408 22692
a90ef4bf
JM
22693.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22694maybe-configure-stagefeedback-libiberty:
22695@if libiberty-bootstrap
22696maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22697configure-stagefeedback-libiberty:
93f9b408 22698 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22699 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22700 @r=`${PWD_COMMAND}`; export r; \
22701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22702 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22703 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22704 $(HOST_EXPORTS) \
1b05fbbd
AO
22705 $(POSTSTAGE1_HOST_EXPORTS) \
22706 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22707 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22708 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22709 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty; \
22710 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22711 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22712 case $(srcdir) in \
22713 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22714 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22715 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22716 esac; \
1b6c0831
L
22717 module_srcdir=libiberty; \
22718 $(SHELL) $$s/$$module_srcdir/configure \
22719 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22720 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22721 --target=${target_alias} \
22121df0 22722 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22723 $(STAGEfeedback_CONFIGURE_FLAGS) \
22724 @extra_host_libiberty_configure_flags@
22725@endif libiberty-bootstrap
93f9b408
ILT
22726
22727
22728
22729
22730
a90ef4bf
JM
22731.PHONY: all-libiberty maybe-all-libiberty
22732maybe-all-libiberty:
93f9b408 22733@if gcc-bootstrap
a90ef4bf 22734all-libiberty: stage_current
93f9b408 22735@endif gcc-bootstrap
a90ef4bf
JM
22736@if libiberty
22737TARGET-libiberty=all
22738maybe-all-libiberty: all-libiberty
22739all-libiberty: configure-libiberty
93f9b408
ILT
22740 @r=`${PWD_COMMAND}`; export r; \
22741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22742 $(HOST_EXPORTS) \
a90ef4bf 22743 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22744 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22745 $(TARGET-libiberty))
22746@endif libiberty
93f9b408
ILT
22747
22748
22749
a90ef4bf
JM
22750.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22751.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22752maybe-all-stage1-libiberty:
22753maybe-clean-stage1-libiberty:
22754@if libiberty-bootstrap
22755maybe-all-stage1-libiberty: all-stage1-libiberty
22756all-stage1: all-stage1-libiberty
22757TARGET-stage1-libiberty = $(TARGET-libiberty)
22758all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22759 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22760 @r=`${PWD_COMMAND}`; export r; \
22761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22762 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22763 $(HOST_EXPORTS) \
a90ef4bf 22764 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22765 \
93f9b408 22766 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22767 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22768 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22769 LIBCFLAGS="$(LIBCFLAGS)" \
22770 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22771 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22772 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22773 $(EXTRA_HOST_FLAGS) \
22774 $(STAGE1_FLAGS_TO_PASS) \
05a13254 22775 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22776 $(TARGET-stage1-libiberty)
93f9b408 22777
a90ef4bf
JM
22778maybe-clean-stage1-libiberty: clean-stage1-libiberty
22779clean-stage1: clean-stage1-libiberty
22780clean-stage1-libiberty:
93f9b408 22781 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22782 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22783 else \
a90ef4bf 22784 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22785 $(MAKE) stage1-start; \
22786 fi; \
a90ef4bf 22787 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22788 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22789 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22790@endif libiberty-bootstrap
93f9b408
ILT
22791
22792
a90ef4bf
JM
22793.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22794.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22795maybe-all-stage2-libiberty:
22796maybe-clean-stage2-libiberty:
22797@if libiberty-bootstrap
22798maybe-all-stage2-libiberty: all-stage2-libiberty
22799all-stage2: all-stage2-libiberty
22800TARGET-stage2-libiberty = $(TARGET-libiberty)
22801all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22802 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22803 @r=`${PWD_COMMAND}`; export r; \
22804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22805 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22806 $(HOST_EXPORTS) \
1f53ca9a 22807 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22808 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22809 \
93f9b408 22810 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22811 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22812 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22813 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22814 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22815 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22816 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22817 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22818 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22819 $(TARGET-stage2-libiberty)
93f9b408 22820
a90ef4bf
JM
22821maybe-clean-stage2-libiberty: clean-stage2-libiberty
22822clean-stage2: clean-stage2-libiberty
22823clean-stage2-libiberty:
93f9b408 22824 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22825 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22826 else \
a90ef4bf 22827 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22828 $(MAKE) stage2-start; \
22829 fi; \
a90ef4bf 22830 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22831 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22832@endif libiberty-bootstrap
93f9b408
ILT
22833
22834
a90ef4bf
JM
22835.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22836.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22837maybe-all-stage3-libiberty:
22838maybe-clean-stage3-libiberty:
22839@if libiberty-bootstrap
22840maybe-all-stage3-libiberty: all-stage3-libiberty
22841all-stage3: all-stage3-libiberty
22842TARGET-stage3-libiberty = $(TARGET-libiberty)
22843all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22844 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22845 @r=`${PWD_COMMAND}`; export r; \
22846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22847 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22848 $(HOST_EXPORTS) \
1f53ca9a 22849 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22850 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22851 \
93f9b408 22852 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22853 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22854 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22855 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22856 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22857 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22858 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22859 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22860 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22861 $(TARGET-stage3-libiberty)
93f9b408 22862
a90ef4bf
JM
22863maybe-clean-stage3-libiberty: clean-stage3-libiberty
22864clean-stage3: clean-stage3-libiberty
22865clean-stage3-libiberty:
93f9b408 22866 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22867 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22868 else \
a90ef4bf 22869 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22870 $(MAKE) stage3-start; \
22871 fi; \
a90ef4bf 22872 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22873 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22874@endif libiberty-bootstrap
93f9b408
ILT
22875
22876
a90ef4bf
JM
22877.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22878.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22879maybe-all-stage4-libiberty:
22880maybe-clean-stage4-libiberty:
22881@if libiberty-bootstrap
22882maybe-all-stage4-libiberty: all-stage4-libiberty
22883all-stage4: all-stage4-libiberty
22884TARGET-stage4-libiberty = $(TARGET-libiberty)
22885all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22886 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22887 @r=`${PWD_COMMAND}`; export r; \
22888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22889 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22890 $(HOST_EXPORTS) \
1f53ca9a 22891 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22892 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22893 \
93f9b408 22894 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22895 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22896 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22897 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22898 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22899 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22900 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22901 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22902 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22903 $(TARGET-stage4-libiberty)
93f9b408 22904
a90ef4bf
JM
22905maybe-clean-stage4-libiberty: clean-stage4-libiberty
22906clean-stage4: clean-stage4-libiberty
22907clean-stage4-libiberty:
93f9b408 22908 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22909 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22910 else \
a90ef4bf 22911 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22912 $(MAKE) stage4-start; \
22913 fi; \
a90ef4bf 22914 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22915 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22916@endif libiberty-bootstrap
93f9b408
ILT
22917
22918
a90ef4bf
JM
22919.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22920.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22921maybe-all-stageprofile-libiberty:
22922maybe-clean-stageprofile-libiberty:
22923@if libiberty-bootstrap
22924maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
22925all-stageprofile: all-stageprofile-libiberty
22926TARGET-stageprofile-libiberty = $(TARGET-libiberty)
22927all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
22928 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22929 @r=`${PWD_COMMAND}`; export r; \
22930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22931 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 22932 $(HOST_EXPORTS) \
1f53ca9a 22933 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22934 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22935 \
93f9b408 22936 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22937 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 22938 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
22939 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22940 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22941 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22942 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22943 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22944 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 22945 $(TARGET-stageprofile-libiberty)
93f9b408 22946
a90ef4bf
JM
22947maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
22948clean-stageprofile: clean-stageprofile-libiberty
22949clean-stageprofile-libiberty:
93f9b408 22950 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 22951 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22952 else \
a90ef4bf 22953 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22954 $(MAKE) stageprofile-start; \
22955 fi; \
a90ef4bf 22956 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22957 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22958@endif libiberty-bootstrap
93f9b408
ILT
22959
22960
a90ef4bf
JM
22961.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
22962.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
22963maybe-all-stagefeedback-libiberty:
22964maybe-clean-stagefeedback-libiberty:
22965@if libiberty-bootstrap
22966maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
22967all-stagefeedback: all-stagefeedback-libiberty
22968TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
22969all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
22970 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22971 @r=`${PWD_COMMAND}`; export r; \
22972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22973 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 22974 $(HOST_EXPORTS) \
1f53ca9a 22975 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22976 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22977 \
93f9b408 22978 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22979 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 22980 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
22981 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
22982 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22983 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22984 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22985 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22986 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 22987 $(TARGET-stagefeedback-libiberty)
93f9b408 22988
a90ef4bf
JM
22989maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
22990clean-stagefeedback: clean-stagefeedback-libiberty
22991clean-stagefeedback-libiberty:
93f9b408 22992 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 22993 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22994 else \
a90ef4bf 22995 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22996 $(MAKE) stagefeedback-start; \
22997 fi; \
a90ef4bf 22998 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22999 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 23000@endif libiberty-bootstrap
93f9b408
ILT
23001
23002
23003
23004
23005
a90ef4bf
JM
23006.PHONY: check-libiberty maybe-check-libiberty
23007maybe-check-libiberty:
23008@if libiberty
23009maybe-check-libiberty: check-libiberty
93f9b408 23010
a90ef4bf 23011check-libiberty:
93f9b408
ILT
23012 @: $(MAKE); $(unstage)
23013 @r=`${PWD_COMMAND}`; export r; \
23014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23015 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 23016 (cd $(HOST_SUBDIR)/libiberty && \
f91ca6bc 23017 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
93f9b408 23018
a90ef4bf 23019@endif libiberty
93f9b408 23020
a90ef4bf
JM
23021.PHONY: install-libiberty maybe-install-libiberty
23022maybe-install-libiberty:
23023@if libiberty
23024maybe-install-libiberty: install-libiberty
93f9b408 23025
a90ef4bf 23026install-libiberty: installdirs
93f9b408
ILT
23027 @: $(MAKE); $(unstage)
23028 @r=`${PWD_COMMAND}`; export r; \
23029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23030 $(HOST_EXPORTS) \
a90ef4bf 23031 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23032 $(MAKE) $(FLAGS_TO_PASS) install)
23033
a90ef4bf 23034@endif libiberty
93f9b408 23035
a90ef4bf
JM
23036.PHONY: install-strip-libiberty maybe-install-strip-libiberty
23037maybe-install-strip-libiberty:
23038@if libiberty
23039maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 23040
a90ef4bf 23041install-strip-libiberty: installdirs
9b980aa1
RW
23042 @: $(MAKE); $(unstage)
23043 @r=`${PWD_COMMAND}`; export r; \
23044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23045 $(HOST_EXPORTS) \
a90ef4bf 23046 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
23047 $(MAKE) $(FLAGS_TO_PASS) install-strip)
23048
a90ef4bf 23049@endif libiberty
9b980aa1 23050
93f9b408
ILT
23051# Other targets (info, dvi, pdf, etc.)
23052
a90ef4bf
JM
23053.PHONY: maybe-info-libiberty info-libiberty
23054maybe-info-libiberty:
23055@if libiberty
23056maybe-info-libiberty: info-libiberty
93f9b408 23057
a90ef4bf
JM
23058info-libiberty: \
23059 configure-libiberty
23060 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23061 r=`${PWD_COMMAND}`; export r; \
23062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23063 $(HOST_EXPORTS) \
23064 for flag in $(EXTRA_HOST_FLAGS) ; do \
23065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23066 done; \
22121df0 23067 echo "Doing info in libiberty"; \
a90ef4bf 23068 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23071 "RANLIB=$${RANLIB}" \
23072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23073 info) \
23074 || exit 1
23075
a90ef4bf 23076@endif libiberty
93f9b408 23077
a90ef4bf
JM
23078.PHONY: maybe-dvi-libiberty dvi-libiberty
23079maybe-dvi-libiberty:
23080@if libiberty
23081maybe-dvi-libiberty: dvi-libiberty
93f9b408 23082
a90ef4bf
JM
23083dvi-libiberty: \
23084 configure-libiberty
23085 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23086 r=`${PWD_COMMAND}`; export r; \
23087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23088 $(HOST_EXPORTS) \
23089 for flag in $(EXTRA_HOST_FLAGS) ; do \
23090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23091 done; \
22121df0 23092 echo "Doing dvi in libiberty"; \
a90ef4bf 23093 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23096 "RANLIB=$${RANLIB}" \
23097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23098 dvi) \
23099 || exit 1
23100
a90ef4bf 23101@endif libiberty
93f9b408 23102
a90ef4bf
JM
23103.PHONY: maybe-pdf-libiberty pdf-libiberty
23104maybe-pdf-libiberty:
23105@if libiberty
23106maybe-pdf-libiberty: pdf-libiberty
93f9b408 23107
a90ef4bf
JM
23108pdf-libiberty: \
23109 configure-libiberty
23110 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23111 r=`${PWD_COMMAND}`; export r; \
23112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23113 $(HOST_EXPORTS) \
23114 for flag in $(EXTRA_HOST_FLAGS) ; do \
23115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23116 done; \
22121df0 23117 echo "Doing pdf in libiberty"; \
a90ef4bf 23118 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23121 "RANLIB=$${RANLIB}" \
23122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23123 pdf) \
23124 || exit 1
23125
a90ef4bf 23126@endif libiberty
93f9b408 23127
a90ef4bf
JM
23128.PHONY: maybe-html-libiberty html-libiberty
23129maybe-html-libiberty:
23130@if libiberty
23131maybe-html-libiberty: html-libiberty
93f9b408 23132
a90ef4bf
JM
23133html-libiberty: \
23134 configure-libiberty
23135 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23136 r=`${PWD_COMMAND}`; export r; \
23137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23138 $(HOST_EXPORTS) \
23139 for flag in $(EXTRA_HOST_FLAGS) ; do \
23140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23141 done; \
22121df0 23142 echo "Doing html in libiberty"; \
a90ef4bf 23143 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23146 "RANLIB=$${RANLIB}" \
23147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23148 html) \
23149 || exit 1
23150
a90ef4bf 23151@endif libiberty
93f9b408 23152
a90ef4bf
JM
23153.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23154maybe-TAGS-libiberty:
23155@if libiberty
23156maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23157
a90ef4bf
JM
23158TAGS-libiberty: \
23159 configure-libiberty
23160 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23161 r=`${PWD_COMMAND}`; export r; \
23162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23163 $(HOST_EXPORTS) \
23164 for flag in $(EXTRA_HOST_FLAGS) ; do \
23165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23166 done; \
22121df0 23167 echo "Doing TAGS in libiberty"; \
a90ef4bf 23168 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23171 "RANLIB=$${RANLIB}" \
23172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23173 TAGS) \
23174 || exit 1
23175
a90ef4bf 23176@endif libiberty
93f9b408 23177
a90ef4bf
JM
23178.PHONY: maybe-install-info-libiberty install-info-libiberty
23179maybe-install-info-libiberty:
23180@if libiberty
23181maybe-install-info-libiberty: install-info-libiberty
93f9b408 23182
a90ef4bf
JM
23183install-info-libiberty: \
23184 configure-libiberty \
23185 info-libiberty
23186 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23187 r=`${PWD_COMMAND}`; export r; \
23188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23189 $(HOST_EXPORTS) \
23190 for flag in $(EXTRA_HOST_FLAGS) ; do \
23191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23192 done; \
22121df0 23193 echo "Doing install-info in libiberty"; \
a90ef4bf 23194 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23197 "RANLIB=$${RANLIB}" \
23198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23199 install-info) \
23200 || exit 1
23201
a90ef4bf 23202@endif libiberty
93f9b408 23203
a90ef4bf
JM
23204.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23205maybe-install-pdf-libiberty:
23206@if libiberty
23207maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23208
a90ef4bf
JM
23209install-pdf-libiberty: \
23210 configure-libiberty \
23211 pdf-libiberty
23212 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23213 r=`${PWD_COMMAND}`; export r; \
23214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23215 $(HOST_EXPORTS) \
23216 for flag in $(EXTRA_HOST_FLAGS) ; do \
23217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23218 done; \
22121df0 23219 echo "Doing install-pdf in libiberty"; \
a90ef4bf 23220 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23223 "RANLIB=$${RANLIB}" \
23224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23225 install-pdf) \
23226 || exit 1
23227
a90ef4bf 23228@endif libiberty
93f9b408 23229
a90ef4bf
JM
23230.PHONY: maybe-install-html-libiberty install-html-libiberty
23231maybe-install-html-libiberty:
23232@if libiberty
23233maybe-install-html-libiberty: install-html-libiberty
93f9b408 23234
a90ef4bf
JM
23235install-html-libiberty: \
23236 configure-libiberty \
23237 html-libiberty
23238 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23239 r=`${PWD_COMMAND}`; export r; \
23240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23241 $(HOST_EXPORTS) \
23242 for flag in $(EXTRA_HOST_FLAGS) ; do \
23243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23244 done; \
22121df0 23245 echo "Doing install-html in libiberty"; \
a90ef4bf 23246 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23249 "RANLIB=$${RANLIB}" \
23250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23251 install-html) \
23252 || exit 1
23253
a90ef4bf 23254@endif libiberty
93f9b408 23255
a90ef4bf
JM
23256.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23257maybe-installcheck-libiberty:
23258@if libiberty
23259maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23260
a90ef4bf
JM
23261installcheck-libiberty: \
23262 configure-libiberty
23263 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23264 r=`${PWD_COMMAND}`; export r; \
23265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23266 $(HOST_EXPORTS) \
23267 for flag in $(EXTRA_HOST_FLAGS) ; do \
23268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23269 done; \
22121df0 23270 echo "Doing installcheck in libiberty"; \
a90ef4bf 23271 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23274 "RANLIB=$${RANLIB}" \
23275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23276 installcheck) \
23277 || exit 1
23278
a90ef4bf 23279@endif libiberty
93f9b408 23280
a90ef4bf
JM
23281.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23282maybe-mostlyclean-libiberty:
23283@if libiberty
23284maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23285
a90ef4bf
JM
23286mostlyclean-libiberty:
23287 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23288 r=`${PWD_COMMAND}`; export r; \
23289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23290 $(HOST_EXPORTS) \
23291 for flag in $(EXTRA_HOST_FLAGS) ; do \
23292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23293 done; \
22121df0 23294 echo "Doing mostlyclean in libiberty"; \
a90ef4bf 23295 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23298 "RANLIB=$${RANLIB}" \
23299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23300 mostlyclean) \
23301 || exit 1
23302
a90ef4bf 23303@endif libiberty
93f9b408 23304
a90ef4bf
JM
23305.PHONY: maybe-clean-libiberty clean-libiberty
23306maybe-clean-libiberty:
23307@if libiberty
23308maybe-clean-libiberty: clean-libiberty
93f9b408 23309
a90ef4bf
JM
23310clean-libiberty:
23311 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23312 r=`${PWD_COMMAND}`; export r; \
23313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23314 $(HOST_EXPORTS) \
23315 for flag in $(EXTRA_HOST_FLAGS) ; do \
23316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23317 done; \
22121df0 23318 echo "Doing clean in libiberty"; \
a90ef4bf 23319 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23322 "RANLIB=$${RANLIB}" \
23323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23324 clean) \
23325 || exit 1
23326
a90ef4bf 23327@endif libiberty
93f9b408 23328
a90ef4bf
JM
23329.PHONY: maybe-distclean-libiberty distclean-libiberty
23330maybe-distclean-libiberty:
23331@if libiberty
23332maybe-distclean-libiberty: distclean-libiberty
93f9b408 23333
a90ef4bf
JM
23334distclean-libiberty:
23335 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23336 r=`${PWD_COMMAND}`; export r; \
23337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23338 $(HOST_EXPORTS) \
23339 for flag in $(EXTRA_HOST_FLAGS) ; do \
23340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23341 done; \
22121df0 23342 echo "Doing distclean in libiberty"; \
a90ef4bf 23343 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23346 "RANLIB=$${RANLIB}" \
23347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23348 distclean) \
23349 || exit 1
23350
a90ef4bf 23351@endif libiberty
93f9b408 23352
a90ef4bf
JM
23353.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23354maybe-maintainer-clean-libiberty:
23355@if libiberty
23356maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23357
a90ef4bf
JM
23358maintainer-clean-libiberty:
23359 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23360 r=`${PWD_COMMAND}`; export r; \
23361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23362 $(HOST_EXPORTS) \
23363 for flag in $(EXTRA_HOST_FLAGS) ; do \
23364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23365 done; \
22121df0 23366 echo "Doing maintainer-clean in libiberty"; \
a90ef4bf 23367 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23370 "RANLIB=$${RANLIB}" \
23371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23372 maintainer-clean) \
23373 || exit 1
23374
a90ef4bf 23375@endif libiberty
93f9b408
ILT
23376
23377
23378
1b6c0831
L
23379.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
23380maybe-configure-libiberty-linker-plugin:
23381@if gcc-bootstrap
23382configure-libiberty-linker-plugin: stage_current
23383@endif gcc-bootstrap
23384@if libiberty-linker-plugin
23385maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
23386configure-libiberty-linker-plugin:
23387 @r=`${PWD_COMMAND}`; export r; \
23388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23389 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
22121df0 23390 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23391 $(HOST_EXPORTS) \
23392 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23393 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
23394 case $(srcdir) in \
23395 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23396 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23397 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23398 esac; \
23399 module_srcdir=libiberty; \
23400 $(SHELL) \
23401 $$s/$$module_srcdir/configure \
23402 --srcdir=$${topdir}/$$module_srcdir \
23403 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23404 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
23405 || exit 1
23406@endif libiberty-linker-plugin
23407
23408
23409
23410.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
23411maybe-configure-stage1-libiberty-linker-plugin:
23412@if libiberty-linker-plugin-bootstrap
23413maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23414configure-stage1-libiberty-linker-plugin:
23415 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23416 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23417 @r=`${PWD_COMMAND}`; export r; \
23418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23419 TFLAGS="$(STAGE1_TFLAGS)"; \
23420 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23421 $(HOST_EXPORTS) \
23422 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
23423 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
23424 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
23425 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23426 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23427 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23428 case $(srcdir) in \
23429 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23430 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23431 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23432 esac; \
23433 module_srcdir=libiberty; \
23434 $(SHELL) $$s/$$module_srcdir/configure \
23435 --srcdir=$${topdir}/$$module_srcdir \
23436 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23437 --target=${target_alias} \
23438 \
23439 $(STAGE1_CONFIGURE_FLAGS) \
23440 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23441@endif libiberty-linker-plugin-bootstrap
23442
23443.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
23444maybe-configure-stage2-libiberty-linker-plugin:
23445@if libiberty-linker-plugin-bootstrap
23446maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23447configure-stage2-libiberty-linker-plugin:
23448 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23449 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23450 @r=`${PWD_COMMAND}`; export r; \
23451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23452 TFLAGS="$(STAGE2_TFLAGS)"; \
23453 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23454 $(HOST_EXPORTS) \
23455 $(POSTSTAGE1_HOST_EXPORTS) \
23456 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
23457 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
23458 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23459 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23460 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23461 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23462 case $(srcdir) in \
23463 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23464 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23465 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23466 esac; \
23467 module_srcdir=libiberty; \
23468 $(SHELL) $$s/$$module_srcdir/configure \
23469 --srcdir=$${topdir}/$$module_srcdir \
23470 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23471 --target=${target_alias} \
22121df0 23472 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23473 $(STAGE2_CONFIGURE_FLAGS) \
23474 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23475@endif libiberty-linker-plugin-bootstrap
23476
23477.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
23478maybe-configure-stage3-libiberty-linker-plugin:
23479@if libiberty-linker-plugin-bootstrap
23480maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23481configure-stage3-libiberty-linker-plugin:
23482 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23483 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23484 @r=`${PWD_COMMAND}`; export r; \
23485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23486 TFLAGS="$(STAGE3_TFLAGS)"; \
23487 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23488 $(HOST_EXPORTS) \
23489 $(POSTSTAGE1_HOST_EXPORTS) \
23490 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
23491 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
23492 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23493 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23494 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23495 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23496 case $(srcdir) in \
23497 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23498 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23499 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23500 esac; \
23501 module_srcdir=libiberty; \
23502 $(SHELL) $$s/$$module_srcdir/configure \
23503 --srcdir=$${topdir}/$$module_srcdir \
23504 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23505 --target=${target_alias} \
22121df0 23506 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23507 $(STAGE3_CONFIGURE_FLAGS) \
23508 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23509@endif libiberty-linker-plugin-bootstrap
23510
23511.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
23512maybe-configure-stage4-libiberty-linker-plugin:
23513@if libiberty-linker-plugin-bootstrap
23514maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23515configure-stage4-libiberty-linker-plugin:
23516 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23517 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23518 @r=`${PWD_COMMAND}`; export r; \
23519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23520 TFLAGS="$(STAGE4_TFLAGS)"; \
23521 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23522 $(HOST_EXPORTS) \
23523 $(POSTSTAGE1_HOST_EXPORTS) \
23524 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
23525 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
23526 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23527 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23528 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23529 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23530 case $(srcdir) in \
23531 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23532 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23533 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23534 esac; \
23535 module_srcdir=libiberty; \
23536 $(SHELL) $$s/$$module_srcdir/configure \
23537 --srcdir=$${topdir}/$$module_srcdir \
23538 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23539 --target=${target_alias} \
22121df0 23540 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23541 $(STAGE4_CONFIGURE_FLAGS) \
23542 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23543@endif libiberty-linker-plugin-bootstrap
23544
23545.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
23546maybe-configure-stageprofile-libiberty-linker-plugin:
23547@if libiberty-linker-plugin-bootstrap
23548maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23549configure-stageprofile-libiberty-linker-plugin:
23550 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23551 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23552 @r=`${PWD_COMMAND}`; export r; \
23553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23554 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23555 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23556 $(HOST_EXPORTS) \
23557 $(POSTSTAGE1_HOST_EXPORTS) \
23558 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
23559 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
23560 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23561 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23562 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23563 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23564 case $(srcdir) in \
23565 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23566 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23567 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23568 esac; \
23569 module_srcdir=libiberty; \
23570 $(SHELL) $$s/$$module_srcdir/configure \
23571 --srcdir=$${topdir}/$$module_srcdir \
23572 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23573 --target=${target_alias} \
22121df0 23574 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23575 $(STAGEprofile_CONFIGURE_FLAGS) \
23576 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23577@endif libiberty-linker-plugin-bootstrap
23578
23579.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
23580maybe-configure-stagefeedback-libiberty-linker-plugin:
23581@if libiberty-linker-plugin-bootstrap
23582maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23583configure-stagefeedback-libiberty-linker-plugin:
23584 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23585 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23586 @r=`${PWD_COMMAND}`; export r; \
23587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23588 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23589 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23590 $(HOST_EXPORTS) \
23591 $(POSTSTAGE1_HOST_EXPORTS) \
23592 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23593 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23594 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23595 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23596 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23597 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23598 case $(srcdir) in \
23599 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23600 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23601 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23602 esac; \
23603 module_srcdir=libiberty; \
23604 $(SHELL) $$s/$$module_srcdir/configure \
23605 --srcdir=$${topdir}/$$module_srcdir \
23606 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23607 --target=${target_alias} \
22121df0 23608 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23609 $(STAGEfeedback_CONFIGURE_FLAGS) \
23610 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23611@endif libiberty-linker-plugin-bootstrap
23612
23613
23614
23615
23616
23617.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
23618maybe-all-libiberty-linker-plugin:
23619@if gcc-bootstrap
23620all-libiberty-linker-plugin: stage_current
23621@endif gcc-bootstrap
23622@if libiberty-linker-plugin
23623TARGET-libiberty-linker-plugin=all
23624maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
23625all-libiberty-linker-plugin: configure-libiberty-linker-plugin
23626 @r=`${PWD_COMMAND}`; export r; \
23627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23628 $(HOST_EXPORTS) \
23629 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23630 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23631 $(TARGET-libiberty-linker-plugin))
23632@endif libiberty-linker-plugin
23633
23634
23635
23636.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
23637.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
23638maybe-all-stage1-libiberty-linker-plugin:
23639maybe-clean-stage1-libiberty-linker-plugin:
23640@if libiberty-linker-plugin-bootstrap
23641maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
23642all-stage1: all-stage1-libiberty-linker-plugin
23643TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23644all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23645 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23646 @r=`${PWD_COMMAND}`; export r; \
23647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23648 TFLAGS="$(STAGE1_TFLAGS)"; \
23649 $(HOST_EXPORTS) \
23650 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23651 \
1b6c0831
L
23652 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23653 CFLAGS="$(STAGE1_CFLAGS)" \
23654 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23655 LIBCFLAGS="$(LIBCFLAGS)" \
23656 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23657 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23658 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23659 $(EXTRA_HOST_FLAGS) \
23660 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23661 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
23662 $(TARGET-stage1-libiberty-linker-plugin)
23663
23664maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
23665clean-stage1: clean-stage1-libiberty-linker-plugin
23666clean-stage1-libiberty-linker-plugin:
23667 @if [ $(current_stage) = stage1 ]; then \
23668 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23669 else \
23670 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
23671 $(MAKE) stage1-start; \
23672 fi; \
23673 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23674 $(MAKE) $(EXTRA_HOST_FLAGS) \
23675 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23676@endif libiberty-linker-plugin-bootstrap
23677
23678
23679.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
23680.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
23681maybe-all-stage2-libiberty-linker-plugin:
23682maybe-clean-stage2-libiberty-linker-plugin:
23683@if libiberty-linker-plugin-bootstrap
23684maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
23685all-stage2: all-stage2-libiberty-linker-plugin
23686TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23687all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23688 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23689 @r=`${PWD_COMMAND}`; export r; \
23690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23691 TFLAGS="$(STAGE2_TFLAGS)"; \
23692 $(HOST_EXPORTS) \
23693 $(POSTSTAGE1_HOST_EXPORTS) \
23694 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23695 \
1b6c0831
L
23696 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23697 CFLAGS="$(STAGE2_CFLAGS)" \
23698 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23699 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23700 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23701 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23702 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23703 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23704 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
23705 $(TARGET-stage2-libiberty-linker-plugin)
23706
23707maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
23708clean-stage2: clean-stage2-libiberty-linker-plugin
23709clean-stage2-libiberty-linker-plugin:
23710 @if [ $(current_stage) = stage2 ]; then \
23711 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23712 else \
23713 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
23714 $(MAKE) stage2-start; \
23715 fi; \
23716 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23717 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23718@endif libiberty-linker-plugin-bootstrap
23719
23720
23721.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
23722.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
23723maybe-all-stage3-libiberty-linker-plugin:
23724maybe-clean-stage3-libiberty-linker-plugin:
23725@if libiberty-linker-plugin-bootstrap
23726maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
23727all-stage3: all-stage3-libiberty-linker-plugin
23728TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23729all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23730 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23731 @r=`${PWD_COMMAND}`; export r; \
23732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23733 TFLAGS="$(STAGE3_TFLAGS)"; \
23734 $(HOST_EXPORTS) \
23735 $(POSTSTAGE1_HOST_EXPORTS) \
23736 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23737 \
1b6c0831
L
23738 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23739 CFLAGS="$(STAGE3_CFLAGS)" \
23740 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23741 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23742 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23743 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23744 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23745 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23746 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
23747 $(TARGET-stage3-libiberty-linker-plugin)
23748
23749maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
23750clean-stage3: clean-stage3-libiberty-linker-plugin
23751clean-stage3-libiberty-linker-plugin:
23752 @if [ $(current_stage) = stage3 ]; then \
23753 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23754 else \
23755 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
23756 $(MAKE) stage3-start; \
23757 fi; \
23758 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23759 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23760@endif libiberty-linker-plugin-bootstrap
23761
23762
23763.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
23764.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
23765maybe-all-stage4-libiberty-linker-plugin:
23766maybe-clean-stage4-libiberty-linker-plugin:
23767@if libiberty-linker-plugin-bootstrap
23768maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
23769all-stage4: all-stage4-libiberty-linker-plugin
23770TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23771all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23772 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23773 @r=`${PWD_COMMAND}`; export r; \
23774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23775 TFLAGS="$(STAGE4_TFLAGS)"; \
23776 $(HOST_EXPORTS) \
23777 $(POSTSTAGE1_HOST_EXPORTS) \
23778 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23779 \
1b6c0831
L
23780 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23781 CFLAGS="$(STAGE4_CFLAGS)" \
23782 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23783 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23784 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23785 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23786 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23787 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23788 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
23789 $(TARGET-stage4-libiberty-linker-plugin)
23790
23791maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
23792clean-stage4: clean-stage4-libiberty-linker-plugin
23793clean-stage4-libiberty-linker-plugin:
23794 @if [ $(current_stage) = stage4 ]; then \
23795 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23796 else \
23797 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
23798 $(MAKE) stage4-start; \
23799 fi; \
23800 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23801 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23802@endif libiberty-linker-plugin-bootstrap
23803
23804
23805.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
23806.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
23807maybe-all-stageprofile-libiberty-linker-plugin:
23808maybe-clean-stageprofile-libiberty-linker-plugin:
23809@if libiberty-linker-plugin-bootstrap
23810maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
23811all-stageprofile: all-stageprofile-libiberty-linker-plugin
23812TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23813all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23814 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23815 @r=`${PWD_COMMAND}`; export r; \
23816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23817 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23818 $(HOST_EXPORTS) \
23819 $(POSTSTAGE1_HOST_EXPORTS) \
23820 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23821 \
1b6c0831
L
23822 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23823 CFLAGS="$(STAGEprofile_CFLAGS)" \
23824 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23825 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23826 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23827 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23828 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23829 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23830 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
23831 $(TARGET-stageprofile-libiberty-linker-plugin)
23832
23833maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
23834clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
23835clean-stageprofile-libiberty-linker-plugin:
23836 @if [ $(current_stage) = stageprofile ]; then \
23837 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23838 else \
23839 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
23840 $(MAKE) stageprofile-start; \
23841 fi; \
23842 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23843 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23844@endif libiberty-linker-plugin-bootstrap
23845
23846
23847.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
23848.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
23849maybe-all-stagefeedback-libiberty-linker-plugin:
23850maybe-clean-stagefeedback-libiberty-linker-plugin:
23851@if libiberty-linker-plugin-bootstrap
23852maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
23853all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
23854TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23855all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23856 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23857 @r=`${PWD_COMMAND}`; export r; \
23858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23859 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23860 $(HOST_EXPORTS) \
23861 $(POSTSTAGE1_HOST_EXPORTS) \
23862 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23863 \
1b6c0831
L
23864 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23865 CFLAGS="$(STAGEfeedback_CFLAGS)" \
23866 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23867 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23868 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23869 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23870 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23871 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23872 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
23873 $(TARGET-stagefeedback-libiberty-linker-plugin)
23874
23875maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
23876clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
23877clean-stagefeedback-libiberty-linker-plugin:
23878 @if [ $(current_stage) = stagefeedback ]; then \
23879 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23880 else \
23881 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
23882 $(MAKE) stagefeedback-start; \
23883 fi; \
23884 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23885 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23886@endif libiberty-linker-plugin-bootstrap
23887
23888
23889
23890
23891
23892.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
23893maybe-check-libiberty-linker-plugin:
23894@if libiberty-linker-plugin
23895maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
23896
23897check-libiberty-linker-plugin:
23898 @: $(MAKE); $(unstage)
23899 @r=`${PWD_COMMAND}`; export r; \
23900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23901 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
1b6c0831 23902 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
f91ca6bc 23903 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
1b6c0831
L
23904
23905@endif libiberty-linker-plugin
23906
23907.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
23908maybe-install-libiberty-linker-plugin:
23909@if libiberty-linker-plugin
23910maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
23911
23912install-libiberty-linker-plugin: installdirs
23913 @: $(MAKE); $(unstage)
23914 @r=`${PWD_COMMAND}`; export r; \
23915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23916 $(HOST_EXPORTS) \
23917 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23918 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
23919
23920@endif libiberty-linker-plugin
23921
23922.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
23923maybe-install-strip-libiberty-linker-plugin:
23924@if libiberty-linker-plugin
23925maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
23926
23927install-strip-libiberty-linker-plugin: installdirs
23928 @: $(MAKE); $(unstage)
23929 @r=`${PWD_COMMAND}`; export r; \
23930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23931 $(HOST_EXPORTS) \
23932 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23933 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
23934
23935@endif libiberty-linker-plugin
23936
23937# Other targets (info, dvi, pdf, etc.)
23938
23939.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
23940maybe-info-libiberty-linker-plugin:
23941@if libiberty-linker-plugin
23942maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
23943
23944info-libiberty-linker-plugin: \
23945 configure-libiberty-linker-plugin
23946 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23947 r=`${PWD_COMMAND}`; export r; \
23948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23949 $(HOST_EXPORTS) \
23950 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23952 done; \
22121df0 23953 echo "Doing info in libiberty-linker-plugin"; \
1b6c0831
L
23954 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23957 "RANLIB=$${RANLIB}" \
23958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23959 info) \
23960 || exit 1
23961
23962@endif libiberty-linker-plugin
23963
23964.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
23965maybe-dvi-libiberty-linker-plugin:
23966@if libiberty-linker-plugin
23967maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
23968
23969dvi-libiberty-linker-plugin: \
23970 configure-libiberty-linker-plugin
23971 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23972 r=`${PWD_COMMAND}`; export r; \
23973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23974 $(HOST_EXPORTS) \
23975 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23977 done; \
22121df0 23978 echo "Doing dvi in libiberty-linker-plugin"; \
1b6c0831
L
23979 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23982 "RANLIB=$${RANLIB}" \
23983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23984 dvi) \
23985 || exit 1
23986
23987@endif libiberty-linker-plugin
23988
23989.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
23990maybe-pdf-libiberty-linker-plugin:
23991@if libiberty-linker-plugin
23992maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
23993
23994pdf-libiberty-linker-plugin: \
23995 configure-libiberty-linker-plugin
23996 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23997 r=`${PWD_COMMAND}`; export r; \
23998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23999 $(HOST_EXPORTS) \
24000 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24002 done; \
22121df0 24003 echo "Doing pdf in libiberty-linker-plugin"; \
1b6c0831
L
24004 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24007 "RANLIB=$${RANLIB}" \
24008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24009 pdf) \
24010 || exit 1
24011
24012@endif libiberty-linker-plugin
24013
24014.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
24015maybe-html-libiberty-linker-plugin:
24016@if libiberty-linker-plugin
24017maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
24018
24019html-libiberty-linker-plugin: \
24020 configure-libiberty-linker-plugin
24021 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24022 r=`${PWD_COMMAND}`; export r; \
24023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24024 $(HOST_EXPORTS) \
24025 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24027 done; \
22121df0 24028 echo "Doing html in libiberty-linker-plugin"; \
1b6c0831
L
24029 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24032 "RANLIB=$${RANLIB}" \
24033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24034 html) \
24035 || exit 1
24036
24037@endif libiberty-linker-plugin
24038
24039.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
24040maybe-TAGS-libiberty-linker-plugin:
24041@if libiberty-linker-plugin
24042maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
24043
24044TAGS-libiberty-linker-plugin: \
24045 configure-libiberty-linker-plugin
24046 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24047 r=`${PWD_COMMAND}`; export r; \
24048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24049 $(HOST_EXPORTS) \
24050 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24052 done; \
22121df0 24053 echo "Doing TAGS in libiberty-linker-plugin"; \
1b6c0831
L
24054 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24057 "RANLIB=$${RANLIB}" \
24058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24059 TAGS) \
24060 || exit 1
24061
24062@endif libiberty-linker-plugin
24063
24064.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
24065maybe-install-info-libiberty-linker-plugin:
24066@if libiberty-linker-plugin
24067maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
24068
24069install-info-libiberty-linker-plugin: \
24070 configure-libiberty-linker-plugin \
24071 info-libiberty-linker-plugin
24072 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24073 r=`${PWD_COMMAND}`; export r; \
24074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24075 $(HOST_EXPORTS) \
24076 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24078 done; \
22121df0 24079 echo "Doing install-info in libiberty-linker-plugin"; \
1b6c0831
L
24080 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24083 "RANLIB=$${RANLIB}" \
24084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24085 install-info) \
24086 || exit 1
24087
24088@endif libiberty-linker-plugin
24089
24090.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
24091maybe-install-pdf-libiberty-linker-plugin:
24092@if libiberty-linker-plugin
24093maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
24094
24095install-pdf-libiberty-linker-plugin: \
24096 configure-libiberty-linker-plugin \
24097 pdf-libiberty-linker-plugin
24098 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24099 r=`${PWD_COMMAND}`; export r; \
24100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24101 $(HOST_EXPORTS) \
24102 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24104 done; \
22121df0 24105 echo "Doing install-pdf in libiberty-linker-plugin"; \
1b6c0831
L
24106 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24109 "RANLIB=$${RANLIB}" \
24110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24111 install-pdf) \
24112 || exit 1
24113
24114@endif libiberty-linker-plugin
24115
24116.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
24117maybe-install-html-libiberty-linker-plugin:
24118@if libiberty-linker-plugin
24119maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
24120
24121install-html-libiberty-linker-plugin: \
24122 configure-libiberty-linker-plugin \
24123 html-libiberty-linker-plugin
24124 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24125 r=`${PWD_COMMAND}`; export r; \
24126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24127 $(HOST_EXPORTS) \
24128 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24130 done; \
22121df0 24131 echo "Doing install-html in libiberty-linker-plugin"; \
1b6c0831
L
24132 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24135 "RANLIB=$${RANLIB}" \
24136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24137 install-html) \
24138 || exit 1
24139
24140@endif libiberty-linker-plugin
24141
24142.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
24143maybe-installcheck-libiberty-linker-plugin:
24144@if libiberty-linker-plugin
24145maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
24146
24147installcheck-libiberty-linker-plugin: \
24148 configure-libiberty-linker-plugin
24149 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24150 r=`${PWD_COMMAND}`; export r; \
24151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24152 $(HOST_EXPORTS) \
24153 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24155 done; \
22121df0 24156 echo "Doing installcheck in libiberty-linker-plugin"; \
1b6c0831
L
24157 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24160 "RANLIB=$${RANLIB}" \
24161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24162 installcheck) \
24163 || exit 1
24164
24165@endif libiberty-linker-plugin
24166
24167.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
24168maybe-mostlyclean-libiberty-linker-plugin:
24169@if libiberty-linker-plugin
24170maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
24171
24172mostlyclean-libiberty-linker-plugin:
24173 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24174 r=`${PWD_COMMAND}`; export r; \
24175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24176 $(HOST_EXPORTS) \
24177 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24179 done; \
22121df0 24180 echo "Doing mostlyclean in libiberty-linker-plugin"; \
1b6c0831
L
24181 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24184 "RANLIB=$${RANLIB}" \
24185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24186 mostlyclean) \
24187 || exit 1
24188
24189@endif libiberty-linker-plugin
24190
24191.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
24192maybe-clean-libiberty-linker-plugin:
24193@if libiberty-linker-plugin
24194maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
24195
24196clean-libiberty-linker-plugin:
24197 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24198 r=`${PWD_COMMAND}`; export r; \
24199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24200 $(HOST_EXPORTS) \
24201 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24203 done; \
22121df0 24204 echo "Doing clean in libiberty-linker-plugin"; \
1b6c0831
L
24205 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24208 "RANLIB=$${RANLIB}" \
24209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24210 clean) \
24211 || exit 1
24212
24213@endif libiberty-linker-plugin
24214
24215.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
24216maybe-distclean-libiberty-linker-plugin:
24217@if libiberty-linker-plugin
24218maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
24219
24220distclean-libiberty-linker-plugin:
24221 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24222 r=`${PWD_COMMAND}`; export r; \
24223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24224 $(HOST_EXPORTS) \
24225 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24227 done; \
22121df0 24228 echo "Doing distclean in libiberty-linker-plugin"; \
1b6c0831
L
24229 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24232 "RANLIB=$${RANLIB}" \
24233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24234 distclean) \
24235 || exit 1
24236
24237@endif libiberty-linker-plugin
24238
24239.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
24240maybe-maintainer-clean-libiberty-linker-plugin:
24241@if libiberty-linker-plugin
24242maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
24243
24244maintainer-clean-libiberty-linker-plugin:
24245 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24246 r=`${PWD_COMMAND}`; export r; \
24247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24248 $(HOST_EXPORTS) \
24249 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24251 done; \
22121df0 24252 echo "Doing maintainer-clean in libiberty-linker-plugin"; \
1b6c0831
L
24253 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24256 "RANLIB=$${RANLIB}" \
24257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24258 maintainer-clean) \
24259 || exit 1
24260
24261@endif libiberty-linker-plugin
24262
24263
24264
a90ef4bf
JM
24265.PHONY: configure-libiconv maybe-configure-libiconv
24266maybe-configure-libiconv:
4f0ef2d8 24267@if gcc-bootstrap
a90ef4bf 24268configure-libiconv: stage_current
4f0ef2d8 24269@endif gcc-bootstrap
a90ef4bf
JM
24270@if libiconv
24271maybe-configure-libiconv: configure-libiconv
24272configure-libiconv:
c52c6897 24273 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24275 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
22121df0 24276 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
1f53ca9a 24277 $(HOST_EXPORTS) \
a90ef4bf
JM
24278 echo Configuring in $(HOST_SUBDIR)/libiconv; \
24279 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 24280 case $(srcdir) in \
b00612cc 24281 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24282 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 24283 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24284 esac; \
1b6c0831
L
24285 module_srcdir=libiconv; \
24286 $(SHELL) \
24287 $$s/$$module_srcdir/configure \
24288 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24289 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24290 --target=${target_alias} --disable-shared \
2a4cbe27 24291 || exit 1
a90ef4bf 24292@endif libiconv
2a4cbe27 24293
a7254363
PB
24294
24295
016a3251
DD
24296.PHONY: configure-stage1-libiconv maybe-configure-stage1-libiconv
24297maybe-configure-stage1-libiconv:
24298@if libiconv-bootstrap
24299maybe-configure-stage1-libiconv: configure-stage1-libiconv
24300configure-stage1-libiconv:
24301 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24302 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24303 @r=`${PWD_COMMAND}`; export r; \
24304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24305 TFLAGS="$(STAGE1_TFLAGS)"; \
24306 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24307 $(HOST_EXPORTS) \
24308 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
24309 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
24310 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
24311 echo Configuring stage 1 in $(HOST_SUBDIR)/libiconv; \
24312 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24313 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24314 case $(srcdir) in \
24315 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24316 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24317 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24318 esac; \
24319 module_srcdir=libiconv; \
24320 $(SHELL) $$s/$$module_srcdir/configure \
24321 --srcdir=$${topdir}/$$module_srcdir \
24322 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24323 --target=${target_alias} \
24324 \
24325 $(STAGE1_CONFIGURE_FLAGS) \
24326 --disable-shared
24327@endif libiconv-bootstrap
24328
24329.PHONY: configure-stage2-libiconv maybe-configure-stage2-libiconv
24330maybe-configure-stage2-libiconv:
24331@if libiconv-bootstrap
24332maybe-configure-stage2-libiconv: configure-stage2-libiconv
24333configure-stage2-libiconv:
24334 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24335 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24336 @r=`${PWD_COMMAND}`; export r; \
24337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24338 TFLAGS="$(STAGE2_TFLAGS)"; \
24339 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24340 $(HOST_EXPORTS) \
24341 $(POSTSTAGE1_HOST_EXPORTS) \
24342 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
24343 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
24344 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
24345 echo Configuring stage 2 in $(HOST_SUBDIR)/libiconv; \
24346 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24347 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24348 case $(srcdir) in \
24349 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24350 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24351 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24352 esac; \
24353 module_srcdir=libiconv; \
24354 $(SHELL) $$s/$$module_srcdir/configure \
24355 --srcdir=$${topdir}/$$module_srcdir \
24356 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24357 --target=${target_alias} \
24358 --with-build-libsubdir=$(HOST_SUBDIR) \
24359 $(STAGE2_CONFIGURE_FLAGS) \
24360 --disable-shared
24361@endif libiconv-bootstrap
24362
24363.PHONY: configure-stage3-libiconv maybe-configure-stage3-libiconv
24364maybe-configure-stage3-libiconv:
24365@if libiconv-bootstrap
24366maybe-configure-stage3-libiconv: configure-stage3-libiconv
24367configure-stage3-libiconv:
24368 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24369 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24370 @r=`${PWD_COMMAND}`; export r; \
24371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24372 TFLAGS="$(STAGE3_TFLAGS)"; \
24373 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24374 $(HOST_EXPORTS) \
24375 $(POSTSTAGE1_HOST_EXPORTS) \
24376 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
24377 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
24378 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
24379 echo Configuring stage 3 in $(HOST_SUBDIR)/libiconv; \
24380 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24381 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24382 case $(srcdir) in \
24383 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24384 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24385 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24386 esac; \
24387 module_srcdir=libiconv; \
24388 $(SHELL) $$s/$$module_srcdir/configure \
24389 --srcdir=$${topdir}/$$module_srcdir \
24390 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24391 --target=${target_alias} \
24392 --with-build-libsubdir=$(HOST_SUBDIR) \
24393 $(STAGE3_CONFIGURE_FLAGS) \
24394 --disable-shared
24395@endif libiconv-bootstrap
24396
24397.PHONY: configure-stage4-libiconv maybe-configure-stage4-libiconv
24398maybe-configure-stage4-libiconv:
24399@if libiconv-bootstrap
24400maybe-configure-stage4-libiconv: configure-stage4-libiconv
24401configure-stage4-libiconv:
24402 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24403 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24404 @r=`${PWD_COMMAND}`; export r; \
24405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24406 TFLAGS="$(STAGE4_TFLAGS)"; \
24407 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24408 $(HOST_EXPORTS) \
24409 $(POSTSTAGE1_HOST_EXPORTS) \
24410 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
24411 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
24412 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
24413 echo Configuring stage 4 in $(HOST_SUBDIR)/libiconv; \
24414 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24415 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24416 case $(srcdir) in \
24417 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24418 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24419 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24420 esac; \
24421 module_srcdir=libiconv; \
24422 $(SHELL) $$s/$$module_srcdir/configure \
24423 --srcdir=$${topdir}/$$module_srcdir \
24424 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24425 --target=${target_alias} \
24426 --with-build-libsubdir=$(HOST_SUBDIR) \
24427 $(STAGE4_CONFIGURE_FLAGS) \
24428 --disable-shared
24429@endif libiconv-bootstrap
24430
24431.PHONY: configure-stageprofile-libiconv maybe-configure-stageprofile-libiconv
24432maybe-configure-stageprofile-libiconv:
24433@if libiconv-bootstrap
24434maybe-configure-stageprofile-libiconv: configure-stageprofile-libiconv
24435configure-stageprofile-libiconv:
24436 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24437 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24438 @r=`${PWD_COMMAND}`; export r; \
24439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24440 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24441 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24442 $(HOST_EXPORTS) \
24443 $(POSTSTAGE1_HOST_EXPORTS) \
24444 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
24445 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
24446 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
24447 echo Configuring stage profile in $(HOST_SUBDIR)/libiconv; \
24448 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24449 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24450 case $(srcdir) in \
24451 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24452 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24453 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24454 esac; \
24455 module_srcdir=libiconv; \
24456 $(SHELL) $$s/$$module_srcdir/configure \
24457 --srcdir=$${topdir}/$$module_srcdir \
24458 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24459 --target=${target_alias} \
24460 --with-build-libsubdir=$(HOST_SUBDIR) \
24461 $(STAGEprofile_CONFIGURE_FLAGS) \
24462 --disable-shared
24463@endif libiconv-bootstrap
24464
24465.PHONY: configure-stagefeedback-libiconv maybe-configure-stagefeedback-libiconv
24466maybe-configure-stagefeedback-libiconv:
24467@if libiconv-bootstrap
24468maybe-configure-stagefeedback-libiconv: configure-stagefeedback-libiconv
24469configure-stagefeedback-libiconv:
24470 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24471 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24472 @r=`${PWD_COMMAND}`; export r; \
24473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24474 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24475 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24476 $(HOST_EXPORTS) \
24477 $(POSTSTAGE1_HOST_EXPORTS) \
24478 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
24479 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
24480 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
24481 echo Configuring stage feedback in $(HOST_SUBDIR)/libiconv; \
24482 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24483 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24484 case $(srcdir) in \
24485 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24486 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24487 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24488 esac; \
24489 module_srcdir=libiconv; \
24490 $(SHELL) $$s/$$module_srcdir/configure \
24491 --srcdir=$${topdir}/$$module_srcdir \
24492 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24493 --target=${target_alias} \
24494 --with-build-libsubdir=$(HOST_SUBDIR) \
24495 $(STAGEfeedback_CONFIGURE_FLAGS) \
24496 --disable-shared
24497@endif libiconv-bootstrap
24498
24499
24500
d545f33b
PB
24501
24502
a90ef4bf
JM
24503.PHONY: all-libiconv maybe-all-libiconv
24504maybe-all-libiconv:
4f0ef2d8 24505@if gcc-bootstrap
a90ef4bf 24506all-libiconv: stage_current
4f0ef2d8 24507@endif gcc-bootstrap
a90ef4bf
JM
24508@if libiconv
24509TARGET-libiconv=all
24510maybe-all-libiconv: all-libiconv
24511all-libiconv: configure-libiconv
4fa63067
NN
24512 @r=`${PWD_COMMAND}`; export r; \
24513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24514 $(HOST_EXPORTS) \
a90ef4bf 24515 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 24516 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24517 $(TARGET-libiconv))
24518@endif libiconv
2a4cbe27 24519
a7254363 24520
d545f33b 24521
016a3251
DD
24522.PHONY: all-stage1-libiconv maybe-all-stage1-libiconv
24523.PHONY: clean-stage1-libiconv maybe-clean-stage1-libiconv
24524maybe-all-stage1-libiconv:
24525maybe-clean-stage1-libiconv:
24526@if libiconv-bootstrap
24527maybe-all-stage1-libiconv: all-stage1-libiconv
24528all-stage1: all-stage1-libiconv
24529TARGET-stage1-libiconv = $(TARGET-libiconv)
24530all-stage1-libiconv: configure-stage1-libiconv
24531 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24532 @r=`${PWD_COMMAND}`; export r; \
24533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24534 TFLAGS="$(STAGE1_TFLAGS)"; \
24535 $(HOST_EXPORTS) \
24536 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24537 \
016a3251
DD
24538 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24539 CFLAGS="$(STAGE1_CFLAGS)" \
24540 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
24541 LIBCFLAGS="$(LIBCFLAGS)" \
24542 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24543 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24544 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24545 $(EXTRA_HOST_FLAGS) \
24546 $(STAGE1_FLAGS_TO_PASS) \
05a13254 24547 TFLAGS="$(STAGE1_TFLAGS)" \
016a3251
DD
24548 $(TARGET-stage1-libiconv)
24549
24550maybe-clean-stage1-libiconv: clean-stage1-libiconv
24551clean-stage1: clean-stage1-libiconv
24552clean-stage1-libiconv:
24553 @if [ $(current_stage) = stage1 ]; then \
24554 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24555 else \
24556 [ -f $(HOST_SUBDIR)/stage1-libiconv/Makefile ] || exit 0; \
24557 $(MAKE) stage1-start; \
24558 fi; \
24559 cd $(HOST_SUBDIR)/libiconv && \
24560 $(MAKE) $(EXTRA_HOST_FLAGS) \
24561 $(STAGE1_FLAGS_TO_PASS) clean
24562@endif libiconv-bootstrap
24563
24564
24565.PHONY: all-stage2-libiconv maybe-all-stage2-libiconv
24566.PHONY: clean-stage2-libiconv maybe-clean-stage2-libiconv
24567maybe-all-stage2-libiconv:
24568maybe-clean-stage2-libiconv:
24569@if libiconv-bootstrap
24570maybe-all-stage2-libiconv: all-stage2-libiconv
24571all-stage2: all-stage2-libiconv
24572TARGET-stage2-libiconv = $(TARGET-libiconv)
24573all-stage2-libiconv: configure-stage2-libiconv
24574 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24575 @r=`${PWD_COMMAND}`; export r; \
24576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24577 TFLAGS="$(STAGE2_TFLAGS)"; \
24578 $(HOST_EXPORTS) \
24579 $(POSTSTAGE1_HOST_EXPORTS) \
24580 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24581 \
016a3251
DD
24582 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24583 CFLAGS="$(STAGE2_CFLAGS)" \
24584 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
24585 LIBCFLAGS="$(STAGE2_CFLAGS)" \
24586 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24587 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24588 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24589 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24590 TFLAGS="$(STAGE2_TFLAGS)" \
016a3251
DD
24591 $(TARGET-stage2-libiconv)
24592
24593maybe-clean-stage2-libiconv: clean-stage2-libiconv
24594clean-stage2: clean-stage2-libiconv
24595clean-stage2-libiconv:
24596 @if [ $(current_stage) = stage2 ]; then \
24597 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24598 else \
24599 [ -f $(HOST_SUBDIR)/stage2-libiconv/Makefile ] || exit 0; \
24600 $(MAKE) stage2-start; \
24601 fi; \
24602 cd $(HOST_SUBDIR)/libiconv && \
24603 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24604@endif libiconv-bootstrap
24605
24606
24607.PHONY: all-stage3-libiconv maybe-all-stage3-libiconv
24608.PHONY: clean-stage3-libiconv maybe-clean-stage3-libiconv
24609maybe-all-stage3-libiconv:
24610maybe-clean-stage3-libiconv:
24611@if libiconv-bootstrap
24612maybe-all-stage3-libiconv: all-stage3-libiconv
24613all-stage3: all-stage3-libiconv
24614TARGET-stage3-libiconv = $(TARGET-libiconv)
24615all-stage3-libiconv: configure-stage3-libiconv
24616 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24617 @r=`${PWD_COMMAND}`; export r; \
24618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24619 TFLAGS="$(STAGE3_TFLAGS)"; \
24620 $(HOST_EXPORTS) \
24621 $(POSTSTAGE1_HOST_EXPORTS) \
24622 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24623 \
016a3251
DD
24624 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24625 CFLAGS="$(STAGE3_CFLAGS)" \
24626 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
24627 LIBCFLAGS="$(STAGE3_CFLAGS)" \
24628 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24629 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24630 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24631 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24632 TFLAGS="$(STAGE3_TFLAGS)" \
016a3251
DD
24633 $(TARGET-stage3-libiconv)
24634
24635maybe-clean-stage3-libiconv: clean-stage3-libiconv
24636clean-stage3: clean-stage3-libiconv
24637clean-stage3-libiconv:
24638 @if [ $(current_stage) = stage3 ]; then \
24639 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24640 else \
24641 [ -f $(HOST_SUBDIR)/stage3-libiconv/Makefile ] || exit 0; \
24642 $(MAKE) stage3-start; \
24643 fi; \
24644 cd $(HOST_SUBDIR)/libiconv && \
24645 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24646@endif libiconv-bootstrap
24647
24648
24649.PHONY: all-stage4-libiconv maybe-all-stage4-libiconv
24650.PHONY: clean-stage4-libiconv maybe-clean-stage4-libiconv
24651maybe-all-stage4-libiconv:
24652maybe-clean-stage4-libiconv:
24653@if libiconv-bootstrap
24654maybe-all-stage4-libiconv: all-stage4-libiconv
24655all-stage4: all-stage4-libiconv
24656TARGET-stage4-libiconv = $(TARGET-libiconv)
24657all-stage4-libiconv: configure-stage4-libiconv
24658 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24659 @r=`${PWD_COMMAND}`; export r; \
24660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24661 TFLAGS="$(STAGE4_TFLAGS)"; \
24662 $(HOST_EXPORTS) \
24663 $(POSTSTAGE1_HOST_EXPORTS) \
24664 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24665 \
016a3251
DD
24666 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24667 CFLAGS="$(STAGE4_CFLAGS)" \
24668 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
24669 LIBCFLAGS="$(STAGE4_CFLAGS)" \
24670 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24671 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24672 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24673 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24674 TFLAGS="$(STAGE4_TFLAGS)" \
016a3251
DD
24675 $(TARGET-stage4-libiconv)
24676
24677maybe-clean-stage4-libiconv: clean-stage4-libiconv
24678clean-stage4: clean-stage4-libiconv
24679clean-stage4-libiconv:
24680 @if [ $(current_stage) = stage4 ]; then \
24681 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24682 else \
24683 [ -f $(HOST_SUBDIR)/stage4-libiconv/Makefile ] || exit 0; \
24684 $(MAKE) stage4-start; \
24685 fi; \
24686 cd $(HOST_SUBDIR)/libiconv && \
24687 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24688@endif libiconv-bootstrap
24689
24690
24691.PHONY: all-stageprofile-libiconv maybe-all-stageprofile-libiconv
24692.PHONY: clean-stageprofile-libiconv maybe-clean-stageprofile-libiconv
24693maybe-all-stageprofile-libiconv:
24694maybe-clean-stageprofile-libiconv:
24695@if libiconv-bootstrap
24696maybe-all-stageprofile-libiconv: all-stageprofile-libiconv
24697all-stageprofile: all-stageprofile-libiconv
24698TARGET-stageprofile-libiconv = $(TARGET-libiconv)
24699all-stageprofile-libiconv: configure-stageprofile-libiconv
24700 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24701 @r=`${PWD_COMMAND}`; export r; \
24702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24703 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24704 $(HOST_EXPORTS) \
24705 $(POSTSTAGE1_HOST_EXPORTS) \
24706 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24707 \
016a3251
DD
24708 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24709 CFLAGS="$(STAGEprofile_CFLAGS)" \
24710 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
24711 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
24712 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24713 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24714 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24715 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24716 TFLAGS="$(STAGEprofile_TFLAGS)" \
016a3251
DD
24717 $(TARGET-stageprofile-libiconv)
24718
24719maybe-clean-stageprofile-libiconv: clean-stageprofile-libiconv
24720clean-stageprofile: clean-stageprofile-libiconv
24721clean-stageprofile-libiconv:
24722 @if [ $(current_stage) = stageprofile ]; then \
24723 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24724 else \
24725 [ -f $(HOST_SUBDIR)/stageprofile-libiconv/Makefile ] || exit 0; \
24726 $(MAKE) stageprofile-start; \
24727 fi; \
24728 cd $(HOST_SUBDIR)/libiconv && \
24729 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24730@endif libiconv-bootstrap
24731
24732
24733.PHONY: all-stagefeedback-libiconv maybe-all-stagefeedback-libiconv
24734.PHONY: clean-stagefeedback-libiconv maybe-clean-stagefeedback-libiconv
24735maybe-all-stagefeedback-libiconv:
24736maybe-clean-stagefeedback-libiconv:
24737@if libiconv-bootstrap
24738maybe-all-stagefeedback-libiconv: all-stagefeedback-libiconv
24739all-stagefeedback: all-stagefeedback-libiconv
24740TARGET-stagefeedback-libiconv = $(TARGET-libiconv)
24741all-stagefeedback-libiconv: configure-stagefeedback-libiconv
24742 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24743 @r=`${PWD_COMMAND}`; export r; \
24744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24745 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24746 $(HOST_EXPORTS) \
24747 $(POSTSTAGE1_HOST_EXPORTS) \
24748 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24749 \
016a3251
DD
24750 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24751 CFLAGS="$(STAGEfeedback_CFLAGS)" \
24752 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
24753 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
24754 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24755 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24756 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24757 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24758 TFLAGS="$(STAGEfeedback_TFLAGS)" \
016a3251
DD
24759 $(TARGET-stagefeedback-libiconv)
24760
24761maybe-clean-stagefeedback-libiconv: clean-stagefeedback-libiconv
24762clean-stagefeedback: clean-stagefeedback-libiconv
24763clean-stagefeedback-libiconv:
24764 @if [ $(current_stage) = stagefeedback ]; then \
24765 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24766 else \
24767 [ -f $(HOST_SUBDIR)/stagefeedback-libiconv/Makefile ] || exit 0; \
24768 $(MAKE) stagefeedback-start; \
24769 fi; \
24770 cd $(HOST_SUBDIR)/libiconv && \
24771 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24772@endif libiconv-bootstrap
24773
24774
24775
24776
d545f33b 24777
a90ef4bf
JM
24778.PHONY: check-libiconv maybe-check-libiconv
24779maybe-check-libiconv:
24780@if libiconv
24781maybe-check-libiconv: check-libiconv
2a4cbe27 24782
a90ef4bf 24783check-libiconv:
0aed8855 24784 @: $(MAKE); $(unstage)
4fa63067 24785 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
016a3251 24787 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 24788 (cd $(HOST_SUBDIR)/libiconv && \
016a3251 24789 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 24790
a90ef4bf 24791@endif libiconv
4fa63067 24792
a90ef4bf
JM
24793.PHONY: install-libiconv maybe-install-libiconv
24794maybe-install-libiconv:
24795@if libiconv
24796maybe-install-libiconv: install-libiconv
2a4cbe27 24797
a90ef4bf 24798install-libiconv:
2a4cbe27 24799
a90ef4bf 24800@endif libiconv
9b980aa1 24801
a90ef4bf
JM
24802.PHONY: install-strip-libiconv maybe-install-strip-libiconv
24803maybe-install-strip-libiconv:
24804@if libiconv
24805maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 24806
a90ef4bf
JM
24807install-strip-libiconv:
24808
24809@endif libiconv
9b980aa1 24810
56a8fe78 24811# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24812
a90ef4bf
JM
24813.PHONY: maybe-info-libiconv info-libiconv
24814maybe-info-libiconv:
24815@if libiconv
24816maybe-info-libiconv: info-libiconv
4fa63067 24817
016a3251
DD
24818# libiconv doesn't support info.
24819info-libiconv:
2a4cbe27 24820
a90ef4bf 24821@endif libiconv
2a4cbe27 24822
a90ef4bf
JM
24823.PHONY: maybe-dvi-libiconv dvi-libiconv
24824maybe-dvi-libiconv:
24825@if libiconv
24826maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 24827
a90ef4bf
JM
24828dvi-libiconv: \
24829 configure-libiconv
a90ef4bf 24830 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24831 r=`${PWD_COMMAND}`; export r; \
24832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24833 $(HOST_EXPORTS) \
b813574b 24834 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24836 done; \
22121df0 24837 echo "Doing dvi in libiconv"; \
a90ef4bf 24838 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24841 "RANLIB=$${RANLIB}" \
0c24b341 24842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24843 dvi) \
2a4cbe27
NN
24844 || exit 1
24845
a90ef4bf 24846@endif libiconv
2a4cbe27 24847
a90ef4bf
JM
24848.PHONY: maybe-pdf-libiconv pdf-libiconv
24849maybe-pdf-libiconv:
24850@if libiconv
24851maybe-pdf-libiconv: pdf-libiconv
56a8fe78 24852
016a3251
DD
24853# libiconv doesn't support pdf.
24854pdf-libiconv:
56a8fe78 24855
a90ef4bf 24856@endif libiconv
56a8fe78 24857
a90ef4bf
JM
24858.PHONY: maybe-html-libiconv html-libiconv
24859maybe-html-libiconv:
24860@if libiconv
24861maybe-html-libiconv: html-libiconv
6d389afc 24862
016a3251
DD
24863# libiconv doesn't support html.
24864html-libiconv:
6d389afc 24865
a90ef4bf 24866@endif libiconv
6d389afc 24867
a90ef4bf
JM
24868.PHONY: maybe-TAGS-libiconv TAGS-libiconv
24869maybe-TAGS-libiconv:
24870@if libiconv
24871maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 24872
a90ef4bf
JM
24873TAGS-libiconv: \
24874 configure-libiconv
a90ef4bf 24875 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24876 r=`${PWD_COMMAND}`; export r; \
24877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24878 $(HOST_EXPORTS) \
b813574b 24879 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24881 done; \
22121df0 24882 echo "Doing TAGS in libiconv"; \
a90ef4bf 24883 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24886 "RANLIB=$${RANLIB}" \
0c24b341 24887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24888 TAGS) \
2a4cbe27
NN
24889 || exit 1
24890
a90ef4bf 24891@endif libiconv
2a4cbe27 24892
a90ef4bf
JM
24893.PHONY: maybe-install-info-libiconv install-info-libiconv
24894maybe-install-info-libiconv:
24895@if libiconv
24896maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 24897
a90ef4bf
JM
24898# libiconv doesn't support install-info.
24899install-info-libiconv:
2a4cbe27 24900
a90ef4bf 24901@endif libiconv
2a4cbe27 24902
a90ef4bf
JM
24903.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
24904maybe-install-pdf-libiconv:
24905@if libiconv
24906maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 24907
a90ef4bf
JM
24908# libiconv doesn't support install-pdf.
24909install-pdf-libiconv:
a3ca38d2 24910
a90ef4bf 24911@endif libiconv
a3ca38d2 24912
a90ef4bf
JM
24913.PHONY: maybe-install-html-libiconv install-html-libiconv
24914maybe-install-html-libiconv:
24915@if libiconv
24916maybe-install-html-libiconv: install-html-libiconv
108a6f8e 24917
a90ef4bf
JM
24918# libiconv doesn't support install-html.
24919install-html-libiconv:
108a6f8e 24920
a90ef4bf 24921@endif libiconv
108a6f8e 24922
a90ef4bf
JM
24923.PHONY: maybe-installcheck-libiconv installcheck-libiconv
24924maybe-installcheck-libiconv:
24925@if libiconv
24926maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 24927
a90ef4bf
JM
24928installcheck-libiconv: \
24929 configure-libiconv
a90ef4bf 24930 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24931 r=`${PWD_COMMAND}`; export r; \
24932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24933 $(HOST_EXPORTS) \
b813574b 24934 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24936 done; \
22121df0 24937 echo "Doing installcheck in libiconv"; \
a90ef4bf 24938 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24941 "RANLIB=$${RANLIB}" \
0c24b341 24942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24943 installcheck) \
2a4cbe27
NN
24944 || exit 1
24945
a90ef4bf 24946@endif libiconv
2a4cbe27 24947
a90ef4bf
JM
24948.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
24949maybe-mostlyclean-libiconv:
24950@if libiconv
24951maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 24952
a90ef4bf 24953mostlyclean-libiconv:
a90ef4bf 24954 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24955 r=`${PWD_COMMAND}`; export r; \
24956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24957 $(HOST_EXPORTS) \
b813574b 24958 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24960 done; \
22121df0 24961 echo "Doing mostlyclean in libiconv"; \
a90ef4bf 24962 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24965 "RANLIB=$${RANLIB}" \
0c24b341 24966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24967 mostlyclean) \
2a4cbe27
NN
24968 || exit 1
24969
a90ef4bf 24970@endif libiconv
2a4cbe27 24971
a90ef4bf
JM
24972.PHONY: maybe-clean-libiconv clean-libiconv
24973maybe-clean-libiconv:
24974@if libiconv
24975maybe-clean-libiconv: clean-libiconv
2a4cbe27 24976
a90ef4bf 24977clean-libiconv:
a90ef4bf 24978 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24979 r=`${PWD_COMMAND}`; export r; \
24980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24981 $(HOST_EXPORTS) \
b813574b 24982 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24984 done; \
22121df0 24985 echo "Doing clean in libiconv"; \
a90ef4bf 24986 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24989 "RANLIB=$${RANLIB}" \
0c24b341 24990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24991 clean) \
2a4cbe27
NN
24992 || exit 1
24993
a90ef4bf 24994@endif libiconv
2a4cbe27 24995
a90ef4bf
JM
24996.PHONY: maybe-distclean-libiconv distclean-libiconv
24997maybe-distclean-libiconv:
24998@if libiconv
24999maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 25000
a90ef4bf 25001distclean-libiconv:
a90ef4bf 25002 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25003 r=`${PWD_COMMAND}`; export r; \
25004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25005 $(HOST_EXPORTS) \
b813574b 25006 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25008 done; \
22121df0 25009 echo "Doing distclean in libiconv"; \
a90ef4bf 25010 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25013 "RANLIB=$${RANLIB}" \
0c24b341 25014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25015 distclean) \
2a4cbe27
NN
25016 || exit 1
25017
a90ef4bf 25018@endif libiconv
2a4cbe27 25019
a90ef4bf
JM
25020.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
25021maybe-maintainer-clean-libiconv:
25022@if libiconv
25023maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 25024
a90ef4bf 25025maintainer-clean-libiconv:
a90ef4bf 25026 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25027 r=`${PWD_COMMAND}`; export r; \
25028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25029 $(HOST_EXPORTS) \
b813574b 25030 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25032 done; \
22121df0 25033 echo "Doing maintainer-clean in libiconv"; \
a90ef4bf 25034 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25037 "RANLIB=$${RANLIB}" \
0c24b341 25038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25039 maintainer-clean) \
2a4cbe27
NN
25040 || exit 1
25041
a90ef4bf 25042@endif libiconv
2a4cbe27 25043
2a4cbe27 25044
a7254363 25045
a90ef4bf
JM
25046.PHONY: configure-m4 maybe-configure-m4
25047maybe-configure-m4:
4f0ef2d8 25048@if gcc-bootstrap
a90ef4bf 25049configure-m4: stage_current
4f0ef2d8 25050@endif gcc-bootstrap
a90ef4bf
JM
25051@if m4
25052maybe-configure-m4: configure-m4
25053configure-m4:
0aed8855 25054 @: $(MAKE); $(unstage)
c52c6897 25055 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25057 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
22121df0 25058 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4; \
1f53ca9a 25059 $(HOST_EXPORTS) \
a90ef4bf
JM
25060 echo Configuring in $(HOST_SUBDIR)/m4; \
25061 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 25062 case $(srcdir) in \
b00612cc 25063 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25064 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 25065 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25066 esac; \
1b6c0831
L
25067 module_srcdir=m4; \
25068 $(SHELL) \
25069 $$s/$$module_srcdir/configure \
25070 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25071 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25072 --target=${target_alias} \
2a4cbe27 25073 || exit 1
a90ef4bf 25074@endif m4
2a4cbe27 25075
a7254363
PB
25076
25077
d545f33b
PB
25078
25079
a90ef4bf
JM
25080.PHONY: all-m4 maybe-all-m4
25081maybe-all-m4:
4f0ef2d8 25082@if gcc-bootstrap
a90ef4bf 25083all-m4: stage_current
4f0ef2d8 25084@endif gcc-bootstrap
a90ef4bf
JM
25085@if m4
25086TARGET-m4=all
25087maybe-all-m4: all-m4
25088all-m4: configure-m4
0aed8855 25089 @: $(MAKE); $(unstage)
4fa63067
NN
25090 @r=`${PWD_COMMAND}`; export r; \
25091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25092 $(HOST_EXPORTS) \
a90ef4bf 25093 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 25094 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25095 $(TARGET-m4))
25096@endif m4
2a4cbe27 25097
a7254363 25098
d545f33b
PB
25099
25100
a90ef4bf
JM
25101.PHONY: check-m4 maybe-check-m4
25102maybe-check-m4:
25103@if m4
25104maybe-check-m4: check-m4
2a4cbe27 25105
a90ef4bf 25106check-m4:
0aed8855 25107 @: $(MAKE); $(unstage)
4fa63067 25108 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25110 $(HOST_EXPORTS) \
a90ef4bf 25111 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 25112 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25113
a90ef4bf 25114@endif m4
2a4cbe27 25115
a90ef4bf
JM
25116.PHONY: install-m4 maybe-install-m4
25117maybe-install-m4:
25118@if m4
25119maybe-install-m4: install-m4
2a4cbe27 25120
a90ef4bf 25121install-m4: installdirs
0aed8855 25122 @: $(MAKE); $(unstage)
4fa63067 25123 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25125 $(HOST_EXPORTS) \
a90ef4bf 25126 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 25127 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25128
a90ef4bf 25129@endif m4
2a4cbe27 25130
a90ef4bf
JM
25131.PHONY: install-strip-m4 maybe-install-strip-m4
25132maybe-install-strip-m4:
25133@if m4
25134maybe-install-strip-m4: install-strip-m4
9b980aa1 25135
a90ef4bf 25136install-strip-m4: installdirs
9b980aa1
RW
25137 @: $(MAKE); $(unstage)
25138 @r=`${PWD_COMMAND}`; export r; \
25139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25140 $(HOST_EXPORTS) \
a90ef4bf 25141 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
25142 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25143
a90ef4bf 25144@endif m4
9b980aa1 25145
56a8fe78 25146# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25147
a90ef4bf
JM
25148.PHONY: maybe-info-m4 info-m4
25149maybe-info-m4:
25150@if m4
25151maybe-info-m4: info-m4
4fa63067 25152
a90ef4bf
JM
25153info-m4: \
25154 configure-m4
0aed8855 25155 @: $(MAKE); $(unstage)
a90ef4bf 25156 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25157 r=`${PWD_COMMAND}`; export r; \
25158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25159 $(HOST_EXPORTS) \
b813574b 25160 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25162 done; \
22121df0 25163 echo "Doing info in m4"; \
a90ef4bf 25164 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25167 "RANLIB=$${RANLIB}" \
0c24b341 25168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25169 info) \
2a4cbe27
NN
25170 || exit 1
25171
a90ef4bf 25172@endif m4
2a4cbe27 25173
a90ef4bf
JM
25174.PHONY: maybe-dvi-m4 dvi-m4
25175maybe-dvi-m4:
25176@if m4
25177maybe-dvi-m4: dvi-m4
2a4cbe27 25178
a90ef4bf
JM
25179dvi-m4: \
25180 configure-m4
0aed8855 25181 @: $(MAKE); $(unstage)
a90ef4bf 25182 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25183 r=`${PWD_COMMAND}`; export r; \
25184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25185 $(HOST_EXPORTS) \
b813574b 25186 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25188 done; \
22121df0 25189 echo "Doing dvi in m4"; \
a90ef4bf 25190 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25193 "RANLIB=$${RANLIB}" \
0c24b341 25194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25195 dvi) \
2a4cbe27
NN
25196 || exit 1
25197
a90ef4bf 25198@endif m4
2a4cbe27 25199
a90ef4bf
JM
25200.PHONY: maybe-pdf-m4 pdf-m4
25201maybe-pdf-m4:
25202@if m4
25203maybe-pdf-m4: pdf-m4
56a8fe78 25204
a90ef4bf
JM
25205pdf-m4: \
25206 configure-m4
56a8fe78 25207 @: $(MAKE); $(unstage)
a90ef4bf 25208 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
25209 r=`${PWD_COMMAND}`; export r; \
25210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25211 $(HOST_EXPORTS) \
25212 for flag in $(EXTRA_HOST_FLAGS) ; do \
25213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25214 done; \
22121df0 25215 echo "Doing pdf in m4"; \
a90ef4bf 25216 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
25217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25219 "RANLIB=$${RANLIB}" \
0c24b341 25220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25221 pdf) \
25222 || exit 1
25223
a90ef4bf 25224@endif m4
56a8fe78 25225
a90ef4bf
JM
25226.PHONY: maybe-html-m4 html-m4
25227maybe-html-m4:
25228@if m4
25229maybe-html-m4: html-m4
6d389afc 25230
a90ef4bf
JM
25231html-m4: \
25232 configure-m4
0aed8855 25233 @: $(MAKE); $(unstage)
a90ef4bf 25234 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
25235 r=`${PWD_COMMAND}`; export r; \
25236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25237 $(HOST_EXPORTS) \
25238 for flag in $(EXTRA_HOST_FLAGS) ; do \
25239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25240 done; \
22121df0 25241 echo "Doing html in m4"; \
a90ef4bf 25242 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
25243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25245 "RANLIB=$${RANLIB}" \
0c24b341 25246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25247 html) \
25248 || exit 1
25249
a90ef4bf 25250@endif m4
6d389afc 25251
a90ef4bf
JM
25252.PHONY: maybe-TAGS-m4 TAGS-m4
25253maybe-TAGS-m4:
25254@if m4
25255maybe-TAGS-m4: TAGS-m4
2a4cbe27 25256
a90ef4bf
JM
25257TAGS-m4: \
25258 configure-m4
0aed8855 25259 @: $(MAKE); $(unstage)
a90ef4bf 25260 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25261 r=`${PWD_COMMAND}`; export r; \
25262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25263 $(HOST_EXPORTS) \
b813574b 25264 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25266 done; \
22121df0 25267 echo "Doing TAGS in m4"; \
a90ef4bf 25268 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25271 "RANLIB=$${RANLIB}" \
0c24b341 25272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25273 TAGS) \
2a4cbe27
NN
25274 || exit 1
25275
a90ef4bf 25276@endif m4
2a4cbe27 25277
a90ef4bf
JM
25278.PHONY: maybe-install-info-m4 install-info-m4
25279maybe-install-info-m4:
25280@if m4
25281maybe-install-info-m4: install-info-m4
2a4cbe27 25282
a90ef4bf
JM
25283install-info-m4: \
25284 configure-m4 \
25285 info-m4
0aed8855 25286 @: $(MAKE); $(unstage)
a90ef4bf 25287 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25288 r=`${PWD_COMMAND}`; export r; \
25289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25290 $(HOST_EXPORTS) \
b813574b 25291 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25293 done; \
22121df0 25294 echo "Doing install-info in m4"; \
a90ef4bf 25295 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25298 "RANLIB=$${RANLIB}" \
0c24b341 25299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25300 install-info) \
2a4cbe27
NN
25301 || exit 1
25302
a90ef4bf 25303@endif m4
2a4cbe27 25304
a90ef4bf
JM
25305.PHONY: maybe-install-pdf-m4 install-pdf-m4
25306maybe-install-pdf-m4:
25307@if m4
25308maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 25309
a90ef4bf
JM
25310install-pdf-m4: \
25311 configure-m4 \
25312 pdf-m4
a3ca38d2 25313 @: $(MAKE); $(unstage)
a90ef4bf 25314 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
25315 r=`${PWD_COMMAND}`; export r; \
25316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25317 $(HOST_EXPORTS) \
25318 for flag in $(EXTRA_HOST_FLAGS) ; do \
25319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25320 done; \
22121df0 25321 echo "Doing install-pdf in m4"; \
a90ef4bf 25322 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
25323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25325 "RANLIB=$${RANLIB}" \
0c24b341 25326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25327 install-pdf) \
25328 || exit 1
25329
a90ef4bf 25330@endif m4
a3ca38d2 25331
a90ef4bf
JM
25332.PHONY: maybe-install-html-m4 install-html-m4
25333maybe-install-html-m4:
25334@if m4
25335maybe-install-html-m4: install-html-m4
108a6f8e 25336
a90ef4bf
JM
25337install-html-m4: \
25338 configure-m4 \
25339 html-m4
108a6f8e 25340 @: $(MAKE); $(unstage)
a90ef4bf 25341 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
25342 r=`${PWD_COMMAND}`; export r; \
25343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25344 $(HOST_EXPORTS) \
25345 for flag in $(EXTRA_HOST_FLAGS) ; do \
25346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25347 done; \
22121df0 25348 echo "Doing install-html in m4"; \
a90ef4bf 25349 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
25350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25352 "RANLIB=$${RANLIB}" \
0c24b341 25353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25354 install-html) \
25355 || exit 1
25356
a90ef4bf 25357@endif m4
108a6f8e 25358
a90ef4bf
JM
25359.PHONY: maybe-installcheck-m4 installcheck-m4
25360maybe-installcheck-m4:
25361@if m4
25362maybe-installcheck-m4: installcheck-m4
2a4cbe27 25363
a90ef4bf
JM
25364installcheck-m4: \
25365 configure-m4
0aed8855 25366 @: $(MAKE); $(unstage)
a90ef4bf 25367 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25368 r=`${PWD_COMMAND}`; export r; \
25369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25370 $(HOST_EXPORTS) \
b813574b 25371 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25373 done; \
22121df0 25374 echo "Doing installcheck in m4"; \
a90ef4bf 25375 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25378 "RANLIB=$${RANLIB}" \
0c24b341 25379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25380 installcheck) \
2a4cbe27
NN
25381 || exit 1
25382
a90ef4bf 25383@endif m4
2a4cbe27 25384
a90ef4bf
JM
25385.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
25386maybe-mostlyclean-m4:
25387@if m4
25388maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 25389
a90ef4bf 25390mostlyclean-m4:
0aed8855 25391 @: $(MAKE); $(unstage)
a90ef4bf 25392 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25393 r=`${PWD_COMMAND}`; export r; \
25394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25395 $(HOST_EXPORTS) \
b813574b 25396 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25398 done; \
22121df0 25399 echo "Doing mostlyclean in m4"; \
a90ef4bf 25400 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25403 "RANLIB=$${RANLIB}" \
0c24b341 25404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25405 mostlyclean) \
2a4cbe27
NN
25406 || exit 1
25407
a90ef4bf 25408@endif m4
2a4cbe27 25409
a90ef4bf
JM
25410.PHONY: maybe-clean-m4 clean-m4
25411maybe-clean-m4:
25412@if m4
25413maybe-clean-m4: clean-m4
2a4cbe27 25414
a90ef4bf 25415clean-m4:
0aed8855 25416 @: $(MAKE); $(unstage)
a90ef4bf 25417 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25418 r=`${PWD_COMMAND}`; export r; \
25419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25420 $(HOST_EXPORTS) \
b813574b 25421 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25423 done; \
22121df0 25424 echo "Doing clean in m4"; \
a90ef4bf 25425 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25428 "RANLIB=$${RANLIB}" \
0c24b341 25429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25430 clean) \
2a4cbe27
NN
25431 || exit 1
25432
a90ef4bf 25433@endif m4
2a4cbe27 25434
a90ef4bf
JM
25435.PHONY: maybe-distclean-m4 distclean-m4
25436maybe-distclean-m4:
25437@if m4
25438maybe-distclean-m4: distclean-m4
2a4cbe27 25439
a90ef4bf 25440distclean-m4:
0aed8855 25441 @: $(MAKE); $(unstage)
a90ef4bf 25442 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25443 r=`${PWD_COMMAND}`; export r; \
25444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25445 $(HOST_EXPORTS) \
b813574b 25446 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25448 done; \
22121df0 25449 echo "Doing distclean in m4"; \
a90ef4bf 25450 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25453 "RANLIB=$${RANLIB}" \
0c24b341 25454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25455 distclean) \
2a4cbe27
NN
25456 || exit 1
25457
a90ef4bf 25458@endif m4
2a4cbe27 25459
a90ef4bf
JM
25460.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
25461maybe-maintainer-clean-m4:
25462@if m4
25463maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 25464
a90ef4bf 25465maintainer-clean-m4:
0aed8855 25466 @: $(MAKE); $(unstage)
a90ef4bf 25467 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25468 r=`${PWD_COMMAND}`; export r; \
25469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25470 $(HOST_EXPORTS) \
b813574b 25471 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25473 done; \
22121df0 25474 echo "Doing maintainer-clean in m4"; \
a90ef4bf 25475 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25478 "RANLIB=$${RANLIB}" \
0c24b341 25479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25480 maintainer-clean) \
2a4cbe27
NN
25481 || exit 1
25482
a90ef4bf 25483@endif m4
2a4cbe27 25484
2a4cbe27 25485
a7254363 25486
a90ef4bf
JM
25487.PHONY: configure-readline maybe-configure-readline
25488maybe-configure-readline:
4f0ef2d8 25489@if gcc-bootstrap
a90ef4bf 25490configure-readline: stage_current
4f0ef2d8 25491@endif gcc-bootstrap
a90ef4bf
JM
25492@if readline
25493maybe-configure-readline: configure-readline
25494configure-readline:
0aed8855 25495 @: $(MAKE); $(unstage)
c52c6897 25496 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25498 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22121df0 25499 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline; \
1f53ca9a 25500 $(HOST_EXPORTS) \
a90ef4bf
JM
25501 echo Configuring in $(HOST_SUBDIR)/readline; \
25502 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 25503 case $(srcdir) in \
b00612cc 25504 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25505 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 25506 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25507 esac; \
1b6c0831
L
25508 module_srcdir=readline; \
25509 $(SHELL) \
25510 $$s/$$module_srcdir/configure \
25511 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25512 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25513 --target=${target_alias} \
2a4cbe27 25514 || exit 1
a90ef4bf 25515@endif readline
2a4cbe27 25516
a7254363
PB
25517
25518
d545f33b
PB
25519
25520
a90ef4bf
JM
25521.PHONY: all-readline maybe-all-readline
25522maybe-all-readline:
4f0ef2d8 25523@if gcc-bootstrap
a90ef4bf 25524all-readline: stage_current
4f0ef2d8 25525@endif gcc-bootstrap
a90ef4bf
JM
25526@if readline
25527TARGET-readline=all
25528maybe-all-readline: all-readline
25529all-readline: configure-readline
0aed8855 25530 @: $(MAKE); $(unstage)
4fa63067
NN
25531 @r=`${PWD_COMMAND}`; export r; \
25532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25533 $(HOST_EXPORTS) \
a90ef4bf 25534 (cd $(HOST_SUBDIR)/readline && \
b3676d82 25535 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25536 $(TARGET-readline))
25537@endif readline
2a4cbe27 25538
a7254363 25539
d545f33b
PB
25540
25541
a90ef4bf
JM
25542.PHONY: check-readline maybe-check-readline
25543maybe-check-readline:
25544@if readline
25545maybe-check-readline: check-readline
2a4cbe27 25546
a90ef4bf 25547check-readline:
0aed8855 25548 @: $(MAKE); $(unstage)
4fa63067 25549 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25551 $(HOST_EXPORTS) \
a90ef4bf 25552 (cd $(HOST_SUBDIR)/readline && \
b00612cc 25553 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25554
a90ef4bf 25555@endif readline
2a4cbe27 25556
a90ef4bf
JM
25557.PHONY: install-readline maybe-install-readline
25558maybe-install-readline:
25559@if readline
25560maybe-install-readline: install-readline
2a4cbe27 25561
a90ef4bf 25562install-readline: installdirs
0aed8855 25563 @: $(MAKE); $(unstage)
4fa63067
NN
25564 @r=`${PWD_COMMAND}`; export r; \
25565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25566 $(HOST_EXPORTS) \
a90ef4bf 25567 (cd $(HOST_SUBDIR)/readline && \
2da12f12 25568 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 25569
a90ef4bf 25570@endif readline
9b980aa1 25571
a90ef4bf
JM
25572.PHONY: install-strip-readline maybe-install-strip-readline
25573maybe-install-strip-readline:
25574@if readline
25575maybe-install-strip-readline: install-strip-readline
25576
25577install-strip-readline: installdirs
9b980aa1
RW
25578 @: $(MAKE); $(unstage)
25579 @r=`${PWD_COMMAND}`; export r; \
25580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25581 $(HOST_EXPORTS) \
a90ef4bf 25582 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
25583 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25584
a90ef4bf 25585@endif readline
9b980aa1 25586
56a8fe78 25587# Other targets (info, dvi, pdf, etc.)
4fa63067 25588
a90ef4bf
JM
25589.PHONY: maybe-info-readline info-readline
25590maybe-info-readline:
25591@if readline
25592maybe-info-readline: info-readline
4fa63067 25593
a90ef4bf
JM
25594info-readline: \
25595 configure-readline
0aed8855 25596 @: $(MAKE); $(unstage)
a90ef4bf 25597 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25598 r=`${PWD_COMMAND}`; export r; \
25599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25600 $(HOST_EXPORTS) \
b813574b 25601 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25603 done; \
22121df0 25604 echo "Doing info in readline"; \
a90ef4bf 25605 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25608 "RANLIB=$${RANLIB}" \
0c24b341 25609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25610 info) \
2a4cbe27
NN
25611 || exit 1
25612
a90ef4bf 25613@endif readline
2a4cbe27 25614
a90ef4bf
JM
25615.PHONY: maybe-dvi-readline dvi-readline
25616maybe-dvi-readline:
25617@if readline
25618maybe-dvi-readline: dvi-readline
2a4cbe27 25619
a90ef4bf
JM
25620dvi-readline: \
25621 configure-readline
0aed8855 25622 @: $(MAKE); $(unstage)
a90ef4bf 25623 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25624 r=`${PWD_COMMAND}`; export r; \
25625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25626 $(HOST_EXPORTS) \
b813574b 25627 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25629 done; \
22121df0 25630 echo "Doing dvi in readline"; \
a90ef4bf 25631 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25634 "RANLIB=$${RANLIB}" \
0c24b341 25635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25636 dvi) \
2a4cbe27
NN
25637 || exit 1
25638
a90ef4bf 25639@endif readline
2a4cbe27 25640
a90ef4bf
JM
25641.PHONY: maybe-pdf-readline pdf-readline
25642maybe-pdf-readline:
25643@if readline
25644maybe-pdf-readline: pdf-readline
56a8fe78 25645
a90ef4bf
JM
25646pdf-readline: \
25647 configure-readline
56a8fe78 25648 @: $(MAKE); $(unstage)
a90ef4bf 25649 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
25650 r=`${PWD_COMMAND}`; export r; \
25651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25652 $(HOST_EXPORTS) \
25653 for flag in $(EXTRA_HOST_FLAGS) ; do \
25654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25655 done; \
22121df0 25656 echo "Doing pdf in readline"; \
a90ef4bf 25657 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
25658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25660 "RANLIB=$${RANLIB}" \
0c24b341 25661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25662 pdf) \
25663 || exit 1
25664
a90ef4bf 25665@endif readline
56a8fe78 25666
a90ef4bf
JM
25667.PHONY: maybe-html-readline html-readline
25668maybe-html-readline:
25669@if readline
25670maybe-html-readline: html-readline
6d389afc 25671
a90ef4bf
JM
25672html-readline: \
25673 configure-readline
0aed8855 25674 @: $(MAKE); $(unstage)
a90ef4bf 25675 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
25676 r=`${PWD_COMMAND}`; export r; \
25677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25678 $(HOST_EXPORTS) \
25679 for flag in $(EXTRA_HOST_FLAGS) ; do \
25680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25681 done; \
22121df0 25682 echo "Doing html in readline"; \
a90ef4bf 25683 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
25684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25686 "RANLIB=$${RANLIB}" \
0c24b341 25687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25688 html) \
25689 || exit 1
25690
a90ef4bf 25691@endif readline
6d389afc 25692
a90ef4bf
JM
25693.PHONY: maybe-TAGS-readline TAGS-readline
25694maybe-TAGS-readline:
25695@if readline
25696maybe-TAGS-readline: TAGS-readline
2a4cbe27 25697
a90ef4bf
JM
25698TAGS-readline: \
25699 configure-readline
0aed8855 25700 @: $(MAKE); $(unstage)
a90ef4bf 25701 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25702 r=`${PWD_COMMAND}`; export r; \
25703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25704 $(HOST_EXPORTS) \
b813574b 25705 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25707 done; \
22121df0 25708 echo "Doing TAGS in readline"; \
a90ef4bf 25709 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25712 "RANLIB=$${RANLIB}" \
0c24b341 25713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25714 TAGS) \
2a4cbe27
NN
25715 || exit 1
25716
a90ef4bf 25717@endif readline
2a4cbe27 25718
a90ef4bf
JM
25719.PHONY: maybe-install-info-readline install-info-readline
25720maybe-install-info-readline:
25721@if readline
25722maybe-install-info-readline: install-info-readline
2a4cbe27 25723
a90ef4bf
JM
25724install-info-readline: \
25725 configure-readline \
25726 info-readline
0aed8855 25727 @: $(MAKE); $(unstage)
a90ef4bf 25728 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25729 r=`${PWD_COMMAND}`; export r; \
25730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25731 $(HOST_EXPORTS) \
b813574b 25732 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25734 done; \
22121df0 25735 echo "Doing install-info in readline"; \
a90ef4bf 25736 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25739 "RANLIB=$${RANLIB}" \
0c24b341 25740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25741 install-info) \
2a4cbe27
NN
25742 || exit 1
25743
a90ef4bf 25744@endif readline
2a4cbe27 25745
a90ef4bf
JM
25746.PHONY: maybe-install-pdf-readline install-pdf-readline
25747maybe-install-pdf-readline:
25748@if readline
25749maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 25750
a90ef4bf
JM
25751install-pdf-readline: \
25752 configure-readline \
25753 pdf-readline
a3ca38d2 25754 @: $(MAKE); $(unstage)
a90ef4bf 25755 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
25756 r=`${PWD_COMMAND}`; export r; \
25757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25758 $(HOST_EXPORTS) \
25759 for flag in $(EXTRA_HOST_FLAGS) ; do \
25760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25761 done; \
22121df0 25762 echo "Doing install-pdf in readline"; \
a90ef4bf 25763 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
25764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25766 "RANLIB=$${RANLIB}" \
0c24b341 25767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25768 install-pdf) \
25769 || exit 1
25770
a90ef4bf 25771@endif readline
a3ca38d2 25772
a90ef4bf
JM
25773.PHONY: maybe-install-html-readline install-html-readline
25774maybe-install-html-readline:
25775@if readline
25776maybe-install-html-readline: install-html-readline
108a6f8e 25777
a90ef4bf
JM
25778install-html-readline: \
25779 configure-readline \
25780 html-readline
108a6f8e 25781 @: $(MAKE); $(unstage)
a90ef4bf 25782 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
25783 r=`${PWD_COMMAND}`; export r; \
25784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25785 $(HOST_EXPORTS) \
25786 for flag in $(EXTRA_HOST_FLAGS) ; do \
25787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25788 done; \
22121df0 25789 echo "Doing install-html in readline"; \
a90ef4bf 25790 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
25791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25793 "RANLIB=$${RANLIB}" \
0c24b341 25794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25795 install-html) \
25796 || exit 1
25797
a90ef4bf 25798@endif readline
108a6f8e 25799
a90ef4bf
JM
25800.PHONY: maybe-installcheck-readline installcheck-readline
25801maybe-installcheck-readline:
25802@if readline
25803maybe-installcheck-readline: installcheck-readline
2a4cbe27 25804
a90ef4bf
JM
25805installcheck-readline: \
25806 configure-readline
0aed8855 25807 @: $(MAKE); $(unstage)
a90ef4bf 25808 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25809 r=`${PWD_COMMAND}`; export r; \
25810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25811 $(HOST_EXPORTS) \
b813574b 25812 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25814 done; \
22121df0 25815 echo "Doing installcheck in readline"; \
a90ef4bf 25816 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25819 "RANLIB=$${RANLIB}" \
0c24b341 25820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25821 installcheck) \
2a4cbe27
NN
25822 || exit 1
25823
a90ef4bf 25824@endif readline
2a4cbe27 25825
a90ef4bf
JM
25826.PHONY: maybe-mostlyclean-readline mostlyclean-readline
25827maybe-mostlyclean-readline:
25828@if readline
25829maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 25830
a90ef4bf 25831mostlyclean-readline:
0aed8855 25832 @: $(MAKE); $(unstage)
a90ef4bf 25833 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25834 r=`${PWD_COMMAND}`; export r; \
25835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25836 $(HOST_EXPORTS) \
b813574b 25837 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25839 done; \
22121df0 25840 echo "Doing mostlyclean in readline"; \
a90ef4bf 25841 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25844 "RANLIB=$${RANLIB}" \
0c24b341 25845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25846 mostlyclean) \
2a4cbe27
NN
25847 || exit 1
25848
a90ef4bf 25849@endif readline
2a4cbe27 25850
a90ef4bf
JM
25851.PHONY: maybe-clean-readline clean-readline
25852maybe-clean-readline:
25853@if readline
25854maybe-clean-readline: clean-readline
2a4cbe27 25855
a90ef4bf 25856clean-readline:
0aed8855 25857 @: $(MAKE); $(unstage)
a90ef4bf 25858 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25859 r=`${PWD_COMMAND}`; export r; \
25860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25861 $(HOST_EXPORTS) \
b813574b 25862 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25864 done; \
22121df0 25865 echo "Doing clean in readline"; \
a90ef4bf 25866 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25869 "RANLIB=$${RANLIB}" \
0c24b341 25870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25871 clean) \
2a4cbe27
NN
25872 || exit 1
25873
a90ef4bf 25874@endif readline
2a4cbe27 25875
a90ef4bf
JM
25876.PHONY: maybe-distclean-readline distclean-readline
25877maybe-distclean-readline:
25878@if readline
25879maybe-distclean-readline: distclean-readline
2a4cbe27 25880
a90ef4bf 25881distclean-readline:
0aed8855 25882 @: $(MAKE); $(unstage)
a90ef4bf 25883 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25884 r=`${PWD_COMMAND}`; export r; \
25885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25886 $(HOST_EXPORTS) \
b813574b 25887 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25889 done; \
22121df0 25890 echo "Doing distclean in readline"; \
a90ef4bf 25891 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25894 "RANLIB=$${RANLIB}" \
0c24b341 25895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25896 distclean) \
2a4cbe27
NN
25897 || exit 1
25898
a90ef4bf 25899@endif readline
2a4cbe27 25900
a90ef4bf
JM
25901.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
25902maybe-maintainer-clean-readline:
25903@if readline
25904maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 25905
a90ef4bf 25906maintainer-clean-readline:
0aed8855 25907 @: $(MAKE); $(unstage)
a90ef4bf 25908 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25909 r=`${PWD_COMMAND}`; export r; \
25910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25911 $(HOST_EXPORTS) \
b813574b 25912 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25914 done; \
22121df0 25915 echo "Doing maintainer-clean in readline"; \
a90ef4bf 25916 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25919 "RANLIB=$${RANLIB}" \
0c24b341 25920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25921 maintainer-clean) \
2a4cbe27
NN
25922 || exit 1
25923
a90ef4bf 25924@endif readline
2a4cbe27 25925
2a4cbe27 25926
a7254363 25927
a90ef4bf
JM
25928.PHONY: configure-sid maybe-configure-sid
25929maybe-configure-sid:
4f0ef2d8 25930@if gcc-bootstrap
a90ef4bf 25931configure-sid: stage_current
4f0ef2d8 25932@endif gcc-bootstrap
a90ef4bf
JM
25933@if sid
25934maybe-configure-sid: configure-sid
25935configure-sid:
0aed8855 25936 @: $(MAKE); $(unstage)
c52c6897 25937 @r=`${PWD_COMMAND}`; export r; \
4fa63067 25938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25939 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
22121df0 25940 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid; \
1f53ca9a 25941 $(HOST_EXPORTS) \
a90ef4bf
JM
25942 echo Configuring in $(HOST_SUBDIR)/sid; \
25943 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 25944 case $(srcdir) in \
b00612cc 25945 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25946 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 25947 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25948 esac; \
1b6c0831
L
25949 module_srcdir=sid; \
25950 $(SHELL) \
25951 $$s/$$module_srcdir/configure \
25952 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25953 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25954 --target=${target_alias} \
4fa63067 25955 || exit 1
a90ef4bf 25956@endif sid
2a4cbe27 25957
a7254363
PB
25958
25959
d545f33b
PB
25960
25961
a90ef4bf
JM
25962.PHONY: all-sid maybe-all-sid
25963maybe-all-sid:
4f0ef2d8 25964@if gcc-bootstrap
a90ef4bf 25965all-sid: stage_current
4f0ef2d8 25966@endif gcc-bootstrap
a90ef4bf
JM
25967@if sid
25968TARGET-sid=all
25969maybe-all-sid: all-sid
25970all-sid: configure-sid
0aed8855 25971 @: $(MAKE); $(unstage)
4fa63067
NN
25972 @r=`${PWD_COMMAND}`; export r; \
25973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25974 $(HOST_EXPORTS) \
a90ef4bf 25975 (cd $(HOST_SUBDIR)/sid && \
b3676d82 25976 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25977 $(TARGET-sid))
25978@endif sid
2a4cbe27 25979
a7254363 25980
d545f33b
PB
25981
25982
a90ef4bf
JM
25983.PHONY: check-sid maybe-check-sid
25984maybe-check-sid:
25985@if sid
25986maybe-check-sid: check-sid
2a4cbe27 25987
a90ef4bf 25988check-sid:
0aed8855 25989 @: $(MAKE); $(unstage)
4fa63067 25990 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25992 $(HOST_EXPORTS) \
a90ef4bf 25993 (cd $(HOST_SUBDIR)/sid && \
b00612cc 25994 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25995
a90ef4bf 25996@endif sid
2a4cbe27 25997
a90ef4bf
JM
25998.PHONY: install-sid maybe-install-sid
25999maybe-install-sid:
26000@if sid
26001maybe-install-sid: install-sid
2a4cbe27 26002
a90ef4bf 26003install-sid: installdirs
0aed8855 26004 @: $(MAKE); $(unstage)
4fa63067 26005 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26007 $(HOST_EXPORTS) \
a90ef4bf 26008 (cd $(HOST_SUBDIR)/sid && \
2da12f12 26009 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 26010
a90ef4bf 26011@endif sid
2a4cbe27 26012
a90ef4bf
JM
26013.PHONY: install-strip-sid maybe-install-strip-sid
26014maybe-install-strip-sid:
26015@if sid
26016maybe-install-strip-sid: install-strip-sid
9b980aa1 26017
a90ef4bf 26018install-strip-sid: installdirs
9b980aa1
RW
26019 @: $(MAKE); $(unstage)
26020 @r=`${PWD_COMMAND}`; export r; \
26021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26022 $(HOST_EXPORTS) \
a90ef4bf 26023 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
26024 $(MAKE) $(FLAGS_TO_PASS) install-strip)
26025
a90ef4bf 26026@endif sid
9b980aa1 26027
56a8fe78 26028# Other targets (info, dvi, pdf, etc.)
2a4cbe27 26029
a90ef4bf
JM
26030.PHONY: maybe-info-sid info-sid
26031maybe-info-sid:
26032@if sid
26033maybe-info-sid: info-sid
4fa63067 26034
a90ef4bf
JM
26035info-sid: \
26036 configure-sid
0aed8855 26037 @: $(MAKE); $(unstage)
a90ef4bf 26038 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26039 r=`${PWD_COMMAND}`; export r; \
26040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26041 $(HOST_EXPORTS) \
b813574b 26042 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26044 done; \
22121df0 26045 echo "Doing info in sid"; \
a90ef4bf 26046 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26049 "RANLIB=$${RANLIB}" \
0c24b341 26050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26051 info) \
2a4cbe27
NN
26052 || exit 1
26053
a90ef4bf 26054@endif sid
2a4cbe27 26055
a90ef4bf
JM
26056.PHONY: maybe-dvi-sid dvi-sid
26057maybe-dvi-sid:
26058@if sid
26059maybe-dvi-sid: dvi-sid
2a4cbe27 26060
a90ef4bf
JM
26061dvi-sid: \
26062 configure-sid
0aed8855 26063 @: $(MAKE); $(unstage)
a90ef4bf 26064 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26065 r=`${PWD_COMMAND}`; export r; \
26066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26067 $(HOST_EXPORTS) \
b813574b 26068 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26070 done; \
22121df0 26071 echo "Doing dvi in sid"; \
a90ef4bf 26072 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26075 "RANLIB=$${RANLIB}" \
0c24b341 26076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26077 dvi) \
2a4cbe27
NN
26078 || exit 1
26079
a90ef4bf 26080@endif sid
2a4cbe27 26081
a90ef4bf
JM
26082.PHONY: maybe-pdf-sid pdf-sid
26083maybe-pdf-sid:
26084@if sid
26085maybe-pdf-sid: pdf-sid
56a8fe78 26086
a90ef4bf
JM
26087pdf-sid: \
26088 configure-sid
56a8fe78 26089 @: $(MAKE); $(unstage)
a90ef4bf 26090 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
26091 r=`${PWD_COMMAND}`; export r; \
26092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26093 $(HOST_EXPORTS) \
26094 for flag in $(EXTRA_HOST_FLAGS) ; do \
26095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26096 done; \
22121df0 26097 echo "Doing pdf in sid"; \
a90ef4bf 26098 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
26099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26101 "RANLIB=$${RANLIB}" \
0c24b341 26102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26103 pdf) \
26104 || exit 1
26105
a90ef4bf 26106@endif sid
56a8fe78 26107
a90ef4bf
JM
26108.PHONY: maybe-html-sid html-sid
26109maybe-html-sid:
26110@if sid
26111maybe-html-sid: html-sid
6d389afc 26112
a90ef4bf
JM
26113html-sid: \
26114 configure-sid
0aed8855 26115 @: $(MAKE); $(unstage)
a90ef4bf 26116 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
26117 r=`${PWD_COMMAND}`; export r; \
26118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26119 $(HOST_EXPORTS) \
26120 for flag in $(EXTRA_HOST_FLAGS) ; do \
26121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26122 done; \
22121df0 26123 echo "Doing html in sid"; \
a90ef4bf 26124 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
26125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26127 "RANLIB=$${RANLIB}" \
0c24b341 26128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26129 html) \
26130 || exit 1
26131
a90ef4bf 26132@endif sid
6d389afc 26133
a90ef4bf
JM
26134.PHONY: maybe-TAGS-sid TAGS-sid
26135maybe-TAGS-sid:
26136@if sid
26137maybe-TAGS-sid: TAGS-sid
2a4cbe27 26138
a90ef4bf
JM
26139TAGS-sid: \
26140 configure-sid
0aed8855 26141 @: $(MAKE); $(unstage)
a90ef4bf 26142 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26143 r=`${PWD_COMMAND}`; export r; \
26144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26145 $(HOST_EXPORTS) \
b813574b 26146 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26148 done; \
22121df0 26149 echo "Doing TAGS in sid"; \
a90ef4bf 26150 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26153 "RANLIB=$${RANLIB}" \
0c24b341 26154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26155 TAGS) \
2a4cbe27
NN
26156 || exit 1
26157
a90ef4bf 26158@endif sid
2a4cbe27 26159
a90ef4bf
JM
26160.PHONY: maybe-install-info-sid install-info-sid
26161maybe-install-info-sid:
26162@if sid
26163maybe-install-info-sid: install-info-sid
2a4cbe27 26164
a90ef4bf
JM
26165install-info-sid: \
26166 configure-sid \
26167 info-sid
0aed8855 26168 @: $(MAKE); $(unstage)
a90ef4bf 26169 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26170 r=`${PWD_COMMAND}`; export r; \
26171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26172 $(HOST_EXPORTS) \
b813574b 26173 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26175 done; \
22121df0 26176 echo "Doing install-info in sid"; \
a90ef4bf 26177 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26180 "RANLIB=$${RANLIB}" \
0c24b341 26181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26182 install-info) \
2a4cbe27
NN
26183 || exit 1
26184
a90ef4bf 26185@endif sid
2a4cbe27 26186
a90ef4bf
JM
26187.PHONY: maybe-install-pdf-sid install-pdf-sid
26188maybe-install-pdf-sid:
26189@if sid
26190maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 26191
a90ef4bf
JM
26192install-pdf-sid: \
26193 configure-sid \
26194 pdf-sid
a3ca38d2 26195 @: $(MAKE); $(unstage)
a90ef4bf 26196 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
26197 r=`${PWD_COMMAND}`; export r; \
26198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26199 $(HOST_EXPORTS) \
26200 for flag in $(EXTRA_HOST_FLAGS) ; do \
26201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26202 done; \
22121df0 26203 echo "Doing install-pdf in sid"; \
a90ef4bf 26204 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
26205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26207 "RANLIB=$${RANLIB}" \
0c24b341 26208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26209 install-pdf) \
26210 || exit 1
26211
a90ef4bf 26212@endif sid
a3ca38d2 26213
a90ef4bf
JM
26214.PHONY: maybe-install-html-sid install-html-sid
26215maybe-install-html-sid:
26216@if sid
26217maybe-install-html-sid: install-html-sid
108a6f8e 26218
a90ef4bf
JM
26219install-html-sid: \
26220 configure-sid \
26221 html-sid
108a6f8e 26222 @: $(MAKE); $(unstage)
a90ef4bf 26223 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
26224 r=`${PWD_COMMAND}`; export r; \
26225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26226 $(HOST_EXPORTS) \
26227 for flag in $(EXTRA_HOST_FLAGS) ; do \
26228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26229 done; \
22121df0 26230 echo "Doing install-html in sid"; \
a90ef4bf 26231 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
26232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26234 "RANLIB=$${RANLIB}" \
0c24b341 26235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26236 install-html) \
26237 || exit 1
26238
a90ef4bf 26239@endif sid
108a6f8e 26240
a90ef4bf
JM
26241.PHONY: maybe-installcheck-sid installcheck-sid
26242maybe-installcheck-sid:
26243@if sid
26244maybe-installcheck-sid: installcheck-sid
2a4cbe27 26245
a90ef4bf
JM
26246installcheck-sid: \
26247 configure-sid
0aed8855 26248 @: $(MAKE); $(unstage)
a90ef4bf 26249 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26250 r=`${PWD_COMMAND}`; export r; \
26251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26252 $(HOST_EXPORTS) \
b813574b 26253 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26255 done; \
22121df0 26256 echo "Doing installcheck in sid"; \
a90ef4bf 26257 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26260 "RANLIB=$${RANLIB}" \
0c24b341 26261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26262 installcheck) \
2a4cbe27
NN
26263 || exit 1
26264
a90ef4bf 26265@endif sid
2a4cbe27 26266
a90ef4bf
JM
26267.PHONY: maybe-mostlyclean-sid mostlyclean-sid
26268maybe-mostlyclean-sid:
26269@if sid
26270maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 26271
a90ef4bf 26272mostlyclean-sid:
0aed8855 26273 @: $(MAKE); $(unstage)
a90ef4bf 26274 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26275 r=`${PWD_COMMAND}`; export r; \
26276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26277 $(HOST_EXPORTS) \
b813574b 26278 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26280 done; \
22121df0 26281 echo "Doing mostlyclean in sid"; \
a90ef4bf 26282 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26285 "RANLIB=$${RANLIB}" \
0c24b341 26286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26287 mostlyclean) \
2a4cbe27
NN
26288 || exit 1
26289
a90ef4bf 26290@endif sid
2a4cbe27 26291
a90ef4bf
JM
26292.PHONY: maybe-clean-sid clean-sid
26293maybe-clean-sid:
26294@if sid
26295maybe-clean-sid: clean-sid
2a4cbe27 26296
a90ef4bf 26297clean-sid:
0aed8855 26298 @: $(MAKE); $(unstage)
a90ef4bf 26299 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26300 r=`${PWD_COMMAND}`; export r; \
26301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26302 $(HOST_EXPORTS) \
b813574b 26303 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26305 done; \
22121df0 26306 echo "Doing clean in sid"; \
a90ef4bf 26307 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26310 "RANLIB=$${RANLIB}" \
0c24b341 26311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26312 clean) \
2a4cbe27
NN
26313 || exit 1
26314
a90ef4bf 26315@endif sid
2a4cbe27 26316
a90ef4bf
JM
26317.PHONY: maybe-distclean-sid distclean-sid
26318maybe-distclean-sid:
26319@if sid
26320maybe-distclean-sid: distclean-sid
2a4cbe27 26321
a90ef4bf 26322distclean-sid:
0aed8855 26323 @: $(MAKE); $(unstage)
a90ef4bf 26324 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26325 r=`${PWD_COMMAND}`; export r; \
26326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26327 $(HOST_EXPORTS) \
b813574b 26328 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26330 done; \
22121df0 26331 echo "Doing distclean in sid"; \
a90ef4bf 26332 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26335 "RANLIB=$${RANLIB}" \
0c24b341 26336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26337 distclean) \
2a4cbe27
NN
26338 || exit 1
26339
a90ef4bf 26340@endif sid
2a4cbe27 26341
a90ef4bf
JM
26342.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
26343maybe-maintainer-clean-sid:
26344@if sid
26345maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 26346
a90ef4bf 26347maintainer-clean-sid:
0aed8855 26348 @: $(MAKE); $(unstage)
a90ef4bf 26349 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26350 r=`${PWD_COMMAND}`; export r; \
26351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26352 $(HOST_EXPORTS) \
b813574b 26353 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26355 done; \
22121df0 26356 echo "Doing maintainer-clean in sid"; \
a90ef4bf 26357 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26360 "RANLIB=$${RANLIB}" \
0c24b341 26361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26362 maintainer-clean) \
2a4cbe27
NN
26363 || exit 1
26364
a90ef4bf 26365@endif sid
2a4cbe27 26366
a2592b1b 26367
a7254363 26368
a90ef4bf
JM
26369.PHONY: configure-sim maybe-configure-sim
26370maybe-configure-sim:
4f0ef2d8 26371@if gcc-bootstrap
a90ef4bf 26372configure-sim: stage_current
4f0ef2d8 26373@endif gcc-bootstrap
a90ef4bf
JM
26374@if sim
26375maybe-configure-sim: configure-sim
26376configure-sim:
26377 @: $(MAKE); $(unstage)
c52c6897
PB
26378 @r=`${PWD_COMMAND}`; export r; \
26379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26380 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
22121df0 26381 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim; \
1f53ca9a 26382 $(HOST_EXPORTS) \
a90ef4bf
JM
26383 echo Configuring in $(HOST_SUBDIR)/sim; \
26384 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 26385 case $(srcdir) in \
b00612cc 26386 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26387 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 26388 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26389 esac; \
1b6c0831
L
26390 module_srcdir=sim; \
26391 $(SHELL) \
26392 $$s/$$module_srcdir/configure \
26393 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26394 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26395 --target=${target_alias} \
a2592b1b 26396 || exit 1
a90ef4bf 26397@endif sim
a2592b1b 26398
a7254363
PB
26399
26400
a90ef4bf
JM
26401
26402
26403.PHONY: all-sim maybe-all-sim
26404maybe-all-sim:
26405@if gcc-bootstrap
26406all-sim: stage_current
26407@endif gcc-bootstrap
26408@if sim
26409TARGET-sim=all
26410maybe-all-sim: all-sim
26411all-sim: configure-sim
26412 @: $(MAKE); $(unstage)
c52c6897
PB
26413 @r=`${PWD_COMMAND}`; export r; \
26414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26415 $(HOST_EXPORTS) \
26416 (cd $(HOST_SUBDIR)/sim && \
b3676d82 26417 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26418 $(TARGET-sim))
26419@endif sim
d545f33b 26420
a90ef4bf
JM
26421
26422
26423
26424.PHONY: check-sim maybe-check-sim
26425maybe-check-sim:
26426@if sim
26427maybe-check-sim: check-sim
26428
26429check-sim:
26430 @: $(MAKE); $(unstage)
c52c6897
PB
26431 @r=`${PWD_COMMAND}`; export r; \
26432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26433 $(HOST_EXPORTS) \
a90ef4bf
JM
26434 (cd $(HOST_SUBDIR)/sim && \
26435 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 26436
a90ef4bf
JM
26437@endif sim
26438
26439.PHONY: install-sim maybe-install-sim
26440maybe-install-sim:
26441@if sim
26442maybe-install-sim: install-sim
26443
26444install-sim: installdirs
26445 @: $(MAKE); $(unstage)
c52c6897
PB
26446 @r=`${PWD_COMMAND}`; export r; \
26447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26448 $(HOST_EXPORTS) \
a90ef4bf
JM
26449 (cd $(HOST_SUBDIR)/sim && \
26450 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 26451
a90ef4bf
JM
26452@endif sim
26453
26454.PHONY: install-strip-sim maybe-install-strip-sim
26455maybe-install-strip-sim:
26456@if sim
26457maybe-install-strip-sim: install-strip-sim
26458
26459install-strip-sim: installdirs
26460 @: $(MAKE); $(unstage)
c52c6897
PB
26461 @r=`${PWD_COMMAND}`; export r; \
26462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26463 $(HOST_EXPORTS) \
a90ef4bf
JM
26464 (cd $(HOST_SUBDIR)/sim && \
26465 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 26466
a90ef4bf 26467@endif sim
9b980aa1 26468
56a8fe78 26469# Other targets (info, dvi, pdf, etc.)
4fa63067 26470
a90ef4bf
JM
26471.PHONY: maybe-info-sim info-sim
26472maybe-info-sim:
26473@if sim
26474maybe-info-sim: info-sim
4fa63067 26475
a90ef4bf
JM
26476info-sim: \
26477 configure-sim
26478 @: $(MAKE); $(unstage)
26479 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26480 r=`${PWD_COMMAND}`; export r; \
26481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26482 $(HOST_EXPORTS) \
b813574b 26483 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26485 done; \
22121df0 26486 echo "Doing info in sim"; \
a90ef4bf 26487 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26490 "RANLIB=$${RANLIB}" \
0c24b341 26491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26492 info) \
2a4cbe27
NN
26493 || exit 1
26494
a90ef4bf 26495@endif sim
2a4cbe27 26496
a90ef4bf
JM
26497.PHONY: maybe-dvi-sim dvi-sim
26498maybe-dvi-sim:
26499@if sim
26500maybe-dvi-sim: dvi-sim
2a4cbe27 26501
a90ef4bf
JM
26502dvi-sim: \
26503 configure-sim
26504 @: $(MAKE); $(unstage)
26505 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 26506 r=`${PWD_COMMAND}`; export r; \
b40e3958 26507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26508 $(HOST_EXPORTS) \
b813574b 26509 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26511 done; \
22121df0 26512 echo "Doing dvi in sim"; \
a90ef4bf 26513 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26516 "RANLIB=$${RANLIB}" \
0c24b341 26517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26518 dvi) \
2a4cbe27
NN
26519 || exit 1
26520
a90ef4bf 26521@endif sim
2a4cbe27 26522
a90ef4bf
JM
26523.PHONY: maybe-pdf-sim pdf-sim
26524maybe-pdf-sim:
26525@if sim
26526maybe-pdf-sim: pdf-sim
56a8fe78 26527
a90ef4bf
JM
26528pdf-sim: \
26529 configure-sim
26530 @: $(MAKE); $(unstage)
26531 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
26532 r=`${PWD_COMMAND}`; export r; \
26533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26534 $(HOST_EXPORTS) \
26535 for flag in $(EXTRA_HOST_FLAGS) ; do \
26536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26537 done; \
22121df0 26538 echo "Doing pdf in sim"; \
a90ef4bf 26539 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
26540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26542 "RANLIB=$${RANLIB}" \
0c24b341 26543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26544 pdf) \
26545 || exit 1
26546
a90ef4bf 26547@endif sim
56a8fe78 26548
a90ef4bf
JM
26549.PHONY: maybe-html-sim html-sim
26550maybe-html-sim:
26551@if sim
26552maybe-html-sim: html-sim
6d389afc 26553
a90ef4bf
JM
26554html-sim: \
26555 configure-sim
26556 @: $(MAKE); $(unstage)
26557 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
26558 r=`${PWD_COMMAND}`; export r; \
26559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26560 $(HOST_EXPORTS) \
26561 for flag in $(EXTRA_HOST_FLAGS) ; do \
26562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26563 done; \
22121df0 26564 echo "Doing html in sim"; \
a90ef4bf 26565 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
26566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26568 "RANLIB=$${RANLIB}" \
0c24b341 26569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26570 html) \
26571 || exit 1
26572
a90ef4bf 26573@endif sim
6d389afc 26574
a90ef4bf
JM
26575.PHONY: maybe-TAGS-sim TAGS-sim
26576maybe-TAGS-sim:
26577@if sim
26578maybe-TAGS-sim: TAGS-sim
2a4cbe27 26579
a90ef4bf
JM
26580TAGS-sim: \
26581 configure-sim
26582 @: $(MAKE); $(unstage)
26583 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26584 r=`${PWD_COMMAND}`; export r; \
26585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26586 $(HOST_EXPORTS) \
b813574b 26587 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26589 done; \
22121df0 26590 echo "Doing TAGS in sim"; \
a90ef4bf 26591 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26594 "RANLIB=$${RANLIB}" \
0c24b341 26595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26596 TAGS) \
2a4cbe27
NN
26597 || exit 1
26598
a90ef4bf 26599@endif sim
2a4cbe27 26600
a90ef4bf
JM
26601.PHONY: maybe-install-info-sim install-info-sim
26602maybe-install-info-sim:
26603@if sim
26604maybe-install-info-sim: install-info-sim
2a4cbe27 26605
a90ef4bf
JM
26606install-info-sim: \
26607 configure-sim \
26608 info-sim
26609 @: $(MAKE); $(unstage)
26610 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26611 r=`${PWD_COMMAND}`; export r; \
26612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26613 $(HOST_EXPORTS) \
b813574b 26614 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26616 done; \
22121df0 26617 echo "Doing install-info in sim"; \
a90ef4bf
JM
26618 (cd $(HOST_SUBDIR)/sim && \
26619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
26620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26621 "RANLIB=$${RANLIB}" \
0c24b341 26622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26623 install-info) \
2a4cbe27
NN
26624 || exit 1
26625
a90ef4bf 26626@endif sim
2a4cbe27 26627
a90ef4bf
JM
26628.PHONY: maybe-install-pdf-sim install-pdf-sim
26629maybe-install-pdf-sim:
26630@if sim
26631maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 26632
a90ef4bf
JM
26633install-pdf-sim: \
26634 configure-sim \
26635 pdf-sim
26636 @: $(MAKE); $(unstage)
26637 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
26638 r=`${PWD_COMMAND}`; export r; \
26639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26640 $(HOST_EXPORTS) \
26641 for flag in $(EXTRA_HOST_FLAGS) ; do \
26642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26643 done; \
22121df0 26644 echo "Doing install-pdf in sim"; \
a90ef4bf 26645 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
26646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26648 "RANLIB=$${RANLIB}" \
0c24b341 26649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26650 install-pdf) \
26651 || exit 1
26652
a90ef4bf 26653@endif sim
a3ca38d2 26654
a90ef4bf
JM
26655.PHONY: maybe-install-html-sim install-html-sim
26656maybe-install-html-sim:
26657@if sim
26658maybe-install-html-sim: install-html-sim
108a6f8e 26659
a90ef4bf
JM
26660install-html-sim: \
26661 configure-sim \
26662 html-sim
26663 @: $(MAKE); $(unstage)
26664 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
26665 r=`${PWD_COMMAND}`; export r; \
26666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26667 $(HOST_EXPORTS) \
26668 for flag in $(EXTRA_HOST_FLAGS) ; do \
26669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26670 done; \
22121df0 26671 echo "Doing install-html in sim"; \
a90ef4bf 26672 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
26673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26675 "RANLIB=$${RANLIB}" \
0c24b341 26676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26677 install-html) \
26678 || exit 1
26679
a90ef4bf 26680@endif sim
108a6f8e 26681
a90ef4bf
JM
26682.PHONY: maybe-installcheck-sim installcheck-sim
26683maybe-installcheck-sim:
26684@if sim
26685maybe-installcheck-sim: installcheck-sim
2a4cbe27 26686
a90ef4bf
JM
26687installcheck-sim: \
26688 configure-sim
26689 @: $(MAKE); $(unstage)
26690 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26691 r=`${PWD_COMMAND}`; export r; \
26692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26693 $(HOST_EXPORTS) \
b813574b 26694 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26696 done; \
22121df0 26697 echo "Doing installcheck in sim"; \
a90ef4bf 26698 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26701 "RANLIB=$${RANLIB}" \
0c24b341 26702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26703 installcheck) \
2a4cbe27
NN
26704 || exit 1
26705
a90ef4bf 26706@endif sim
2a4cbe27 26707
a90ef4bf
JM
26708.PHONY: maybe-mostlyclean-sim mostlyclean-sim
26709maybe-mostlyclean-sim:
26710@if sim
26711maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 26712
a90ef4bf
JM
26713mostlyclean-sim:
26714 @: $(MAKE); $(unstage)
26715 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
26716 r=`${PWD_COMMAND}`; export r; \
26717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
26718 $(HOST_EXPORTS) \
26719 for flag in $(EXTRA_HOST_FLAGS) ; do \
26720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26721 done; \
22121df0 26722 echo "Doing mostlyclean in sim"; \
a90ef4bf 26723 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
26724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26726 "RANLIB=$${RANLIB}" \
0c24b341 26727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
26728 mostlyclean) \
26729 || exit 1
4fa63067 26730
a90ef4bf 26731@endif sim
4fa63067 26732
a90ef4bf
JM
26733.PHONY: maybe-clean-sim clean-sim
26734maybe-clean-sim:
26735@if sim
26736maybe-clean-sim: clean-sim
4fa63067 26737
a90ef4bf
JM
26738clean-sim:
26739 @: $(MAKE); $(unstage)
26740 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26741 r=`${PWD_COMMAND}`; export r; \
26742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26743 $(HOST_EXPORTS) \
b813574b 26744 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26746 done; \
22121df0 26747 echo "Doing clean in sim"; \
a90ef4bf 26748 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26751 "RANLIB=$${RANLIB}" \
0c24b341 26752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26753 clean) \
2a4cbe27
NN
26754 || exit 1
26755
a90ef4bf 26756@endif sim
2a4cbe27 26757
a90ef4bf
JM
26758.PHONY: maybe-distclean-sim distclean-sim
26759maybe-distclean-sim:
26760@if sim
26761maybe-distclean-sim: distclean-sim
2a4cbe27 26762
a90ef4bf
JM
26763distclean-sim:
26764 @: $(MAKE); $(unstage)
26765 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26766 r=`${PWD_COMMAND}`; export r; \
26767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26768 $(HOST_EXPORTS) \
b813574b 26769 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26771 done; \
22121df0 26772 echo "Doing distclean in sim"; \
a90ef4bf 26773 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26776 "RANLIB=$${RANLIB}" \
0c24b341 26777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26778 distclean) \
2a4cbe27
NN
26779 || exit 1
26780
a90ef4bf 26781@endif sim
2a4cbe27 26782
a90ef4bf
JM
26783.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
26784maybe-maintainer-clean-sim:
26785@if sim
26786maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 26787
a90ef4bf
JM
26788maintainer-clean-sim:
26789 @: $(MAKE); $(unstage)
26790 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26791 r=`${PWD_COMMAND}`; export r; \
26792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26793 $(HOST_EXPORTS) \
b813574b 26794 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26796 done; \
22121df0 26797 echo "Doing maintainer-clean in sim"; \
a90ef4bf 26798 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26801 "RANLIB=$${RANLIB}" \
0c24b341 26802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26803 maintainer-clean) \
2a4cbe27
NN
26804 || exit 1
26805
a90ef4bf 26806@endif sim
2a4cbe27 26807
2a4cbe27 26808
a7254363 26809
a90ef4bf
JM
26810.PHONY: configure-texinfo maybe-configure-texinfo
26811maybe-configure-texinfo:
4f0ef2d8 26812@if gcc-bootstrap
a90ef4bf 26813configure-texinfo: stage_current
4f0ef2d8 26814@endif gcc-bootstrap
a90ef4bf
JM
26815@if texinfo
26816maybe-configure-texinfo: configure-texinfo
26817configure-texinfo:
0aed8855 26818 @: $(MAKE); $(unstage)
c52c6897 26819 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26821 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 26822 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo; \
1f53ca9a 26823 $(HOST_EXPORTS) \
a90ef4bf
JM
26824 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26825 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 26826 case $(srcdir) in \
b00612cc 26827 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26828 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 26829 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26830 esac; \
1b6c0831
L
26831 module_srcdir=texinfo; \
26832 $(SHELL) \
26833 $$s/$$module_srcdir/configure \
26834 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26835 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26836 --target=${target_alias} \
2a4cbe27 26837 || exit 1
a90ef4bf 26838@endif texinfo
2a4cbe27 26839
a7254363
PB
26840
26841
d545f33b
PB
26842
26843
a90ef4bf
JM
26844.PHONY: all-texinfo maybe-all-texinfo
26845maybe-all-texinfo:
4f0ef2d8 26846@if gcc-bootstrap
a90ef4bf 26847all-texinfo: stage_current
4f0ef2d8 26848@endif gcc-bootstrap
a90ef4bf
JM
26849@if texinfo
26850TARGET-texinfo=all
26851maybe-all-texinfo: all-texinfo
26852all-texinfo: configure-texinfo
0aed8855 26853 @: $(MAKE); $(unstage)
4fa63067
NN
26854 @r=`${PWD_COMMAND}`; export r; \
26855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26856 $(HOST_EXPORTS) \
a90ef4bf 26857 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 26858 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26859 $(TARGET-texinfo))
26860@endif texinfo
4fa63067 26861
a7254363 26862
d545f33b
PB
26863
26864
a90ef4bf
JM
26865.PHONY: check-texinfo maybe-check-texinfo
26866maybe-check-texinfo:
26867@if texinfo
26868maybe-check-texinfo: check-texinfo
2a4cbe27 26869
a90ef4bf 26870check-texinfo:
0aed8855 26871 @: $(MAKE); $(unstage)
4fa63067
NN
26872 @r=`${PWD_COMMAND}`; export r; \
26873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26874 $(HOST_EXPORTS) \
a90ef4bf 26875 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 26876 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26877
a90ef4bf 26878@endif texinfo
4fa63067 26879
a90ef4bf
JM
26880.PHONY: install-texinfo maybe-install-texinfo
26881maybe-install-texinfo:
26882@if texinfo
26883maybe-install-texinfo: install-texinfo
4fa63067 26884
a90ef4bf 26885install-texinfo:
4fa63067 26886
a90ef4bf 26887@endif texinfo
4fa63067 26888
a90ef4bf
JM
26889.PHONY: install-strip-texinfo maybe-install-strip-texinfo
26890maybe-install-strip-texinfo:
26891@if texinfo
26892maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 26893
a90ef4bf 26894install-strip-texinfo:
9b980aa1 26895
a90ef4bf 26896@endif texinfo
9b980aa1 26897
56a8fe78 26898# Other targets (info, dvi, pdf, etc.)
4fa63067 26899
a90ef4bf
JM
26900.PHONY: maybe-info-texinfo info-texinfo
26901maybe-info-texinfo:
26902@if texinfo
26903maybe-info-texinfo: info-texinfo
4fa63067 26904
a90ef4bf
JM
26905info-texinfo: \
26906 configure-texinfo
0aed8855 26907 @: $(MAKE); $(unstage)
a90ef4bf 26908 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26909 r=`${PWD_COMMAND}`; export r; \
26910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26911 $(HOST_EXPORTS) \
b813574b 26912 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26914 done; \
22121df0 26915 echo "Doing info in texinfo"; \
a90ef4bf 26916 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26919 "RANLIB=$${RANLIB}" \
0c24b341 26920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26921 info) \
2a4cbe27
NN
26922 || exit 1
26923
a90ef4bf 26924@endif texinfo
2a4cbe27 26925
a90ef4bf
JM
26926.PHONY: maybe-dvi-texinfo dvi-texinfo
26927maybe-dvi-texinfo:
26928@if texinfo
26929maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 26930
a90ef4bf
JM
26931dvi-texinfo: \
26932 configure-texinfo
0aed8855 26933 @: $(MAKE); $(unstage)
a90ef4bf 26934 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26935 r=`${PWD_COMMAND}`; export r; \
26936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26937 $(HOST_EXPORTS) \
b813574b 26938 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26940 done; \
22121df0 26941 echo "Doing dvi in texinfo"; \
a90ef4bf 26942 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26945 "RANLIB=$${RANLIB}" \
0c24b341 26946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26947 dvi) \
2a4cbe27
NN
26948 || exit 1
26949
a90ef4bf 26950@endif texinfo
2a4cbe27 26951
a90ef4bf
JM
26952.PHONY: maybe-pdf-texinfo pdf-texinfo
26953maybe-pdf-texinfo:
26954@if texinfo
26955maybe-pdf-texinfo: pdf-texinfo
56a8fe78 26956
a90ef4bf
JM
26957pdf-texinfo: \
26958 configure-texinfo
56a8fe78 26959 @: $(MAKE); $(unstage)
a90ef4bf 26960 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
26961 r=`${PWD_COMMAND}`; export r; \
26962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26963 $(HOST_EXPORTS) \
26964 for flag in $(EXTRA_HOST_FLAGS) ; do \
26965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26966 done; \
22121df0 26967 echo "Doing pdf in texinfo"; \
a90ef4bf 26968 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
26969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26971 "RANLIB=$${RANLIB}" \
0c24b341 26972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26973 pdf) \
26974 || exit 1
26975
a90ef4bf 26976@endif texinfo
56a8fe78 26977
a90ef4bf
JM
26978.PHONY: maybe-html-texinfo html-texinfo
26979maybe-html-texinfo:
26980@if texinfo
26981maybe-html-texinfo: html-texinfo
6d389afc 26982
a90ef4bf
JM
26983html-texinfo: \
26984 configure-texinfo
0aed8855 26985 @: $(MAKE); $(unstage)
a90ef4bf 26986 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
26987 r=`${PWD_COMMAND}`; export r; \
26988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26989 $(HOST_EXPORTS) \
26990 for flag in $(EXTRA_HOST_FLAGS) ; do \
26991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26992 done; \
22121df0 26993 echo "Doing html in texinfo"; \
a90ef4bf 26994 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
26995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26997 "RANLIB=$${RANLIB}" \
0c24b341 26998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26999 html) \
27000 || exit 1
27001
a90ef4bf 27002@endif texinfo
6d389afc 27003
a90ef4bf
JM
27004.PHONY: maybe-TAGS-texinfo TAGS-texinfo
27005maybe-TAGS-texinfo:
27006@if texinfo
27007maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 27008
a90ef4bf
JM
27009TAGS-texinfo: \
27010 configure-texinfo
0aed8855 27011 @: $(MAKE); $(unstage)
a90ef4bf 27012 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27013 r=`${PWD_COMMAND}`; export r; \
27014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27015 $(HOST_EXPORTS) \
b813574b 27016 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27018 done; \
22121df0 27019 echo "Doing TAGS in texinfo"; \
a90ef4bf 27020 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27023 "RANLIB=$${RANLIB}" \
0c24b341 27024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27025 TAGS) \
2a4cbe27
NN
27026 || exit 1
27027
a90ef4bf 27028@endif texinfo
2a4cbe27 27029
a90ef4bf
JM
27030.PHONY: maybe-install-info-texinfo install-info-texinfo
27031maybe-install-info-texinfo:
27032@if texinfo
27033maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 27034
a90ef4bf
JM
27035install-info-texinfo: \
27036 configure-texinfo \
27037 info-texinfo
0aed8855 27038 @: $(MAKE); $(unstage)
a90ef4bf 27039 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27040 r=`${PWD_COMMAND}`; export r; \
27041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27042 $(HOST_EXPORTS) \
b813574b 27043 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27045 done; \
22121df0 27046 echo "Doing install-info in texinfo"; \
a90ef4bf 27047 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27050 "RANLIB=$${RANLIB}" \
0c24b341 27051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27052 install-info) \
2a4cbe27
NN
27053 || exit 1
27054
a90ef4bf 27055@endif texinfo
2a4cbe27 27056
a90ef4bf
JM
27057.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
27058maybe-install-pdf-texinfo:
27059@if texinfo
27060maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 27061
a90ef4bf
JM
27062install-pdf-texinfo: \
27063 configure-texinfo \
27064 pdf-texinfo
a3ca38d2 27065 @: $(MAKE); $(unstage)
a90ef4bf 27066 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
27067 r=`${PWD_COMMAND}`; export r; \
27068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27069 $(HOST_EXPORTS) \
27070 for flag in $(EXTRA_HOST_FLAGS) ; do \
27071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27072 done; \
22121df0 27073 echo "Doing install-pdf in texinfo"; \
a90ef4bf 27074 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
27075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27077 "RANLIB=$${RANLIB}" \
0c24b341 27078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27079 install-pdf) \
27080 || exit 1
27081
a90ef4bf 27082@endif texinfo
a3ca38d2 27083
a90ef4bf
JM
27084.PHONY: maybe-install-html-texinfo install-html-texinfo
27085maybe-install-html-texinfo:
27086@if texinfo
27087maybe-install-html-texinfo: install-html-texinfo
108a6f8e 27088
a90ef4bf
JM
27089install-html-texinfo: \
27090 configure-texinfo \
27091 html-texinfo
108a6f8e 27092 @: $(MAKE); $(unstage)
a90ef4bf 27093 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
27094 r=`${PWD_COMMAND}`; export r; \
27095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27096 $(HOST_EXPORTS) \
27097 for flag in $(EXTRA_HOST_FLAGS) ; do \
27098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27099 done; \
22121df0 27100 echo "Doing install-html in texinfo"; \
a90ef4bf 27101 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
27102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27104 "RANLIB=$${RANLIB}" \
0c24b341 27105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27106 install-html) \
27107 || exit 1
27108
a90ef4bf 27109@endif texinfo
108a6f8e 27110
a90ef4bf
JM
27111.PHONY: maybe-installcheck-texinfo installcheck-texinfo
27112maybe-installcheck-texinfo:
27113@if texinfo
27114maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 27115
a90ef4bf
JM
27116installcheck-texinfo: \
27117 configure-texinfo
0aed8855 27118 @: $(MAKE); $(unstage)
a90ef4bf 27119 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27120 r=`${PWD_COMMAND}`; export r; \
27121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27122 $(HOST_EXPORTS) \
b813574b 27123 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27125 done; \
22121df0 27126 echo "Doing installcheck in texinfo"; \
a90ef4bf 27127 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27130 "RANLIB=$${RANLIB}" \
0c24b341 27131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27132 installcheck) \
2a4cbe27
NN
27133 || exit 1
27134
a90ef4bf 27135@endif texinfo
2a4cbe27 27136
a90ef4bf
JM
27137.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
27138maybe-mostlyclean-texinfo:
27139@if texinfo
27140maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 27141
a90ef4bf 27142mostlyclean-texinfo:
0aed8855 27143 @: $(MAKE); $(unstage)
a90ef4bf 27144 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27145 r=`${PWD_COMMAND}`; export r; \
27146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27147 $(HOST_EXPORTS) \
b813574b 27148 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27150 done; \
22121df0 27151 echo "Doing mostlyclean in texinfo"; \
a90ef4bf 27152 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27155 "RANLIB=$${RANLIB}" \
0c24b341 27156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27157 mostlyclean) \
2a4cbe27
NN
27158 || exit 1
27159
a90ef4bf 27160@endif texinfo
2a4cbe27 27161
a90ef4bf
JM
27162.PHONY: maybe-clean-texinfo clean-texinfo
27163maybe-clean-texinfo:
27164@if texinfo
27165maybe-clean-texinfo: clean-texinfo
2a4cbe27 27166
a90ef4bf 27167clean-texinfo:
0aed8855 27168 @: $(MAKE); $(unstage)
a90ef4bf 27169 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27170 r=`${PWD_COMMAND}`; export r; \
27171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27172 $(HOST_EXPORTS) \
b813574b 27173 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27175 done; \
22121df0 27176 echo "Doing clean in texinfo"; \
a90ef4bf 27177 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27180 "RANLIB=$${RANLIB}" \
0c24b341 27181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27182 clean) \
2a4cbe27
NN
27183 || exit 1
27184
a90ef4bf 27185@endif texinfo
2a4cbe27 27186
a90ef4bf
JM
27187.PHONY: maybe-distclean-texinfo distclean-texinfo
27188maybe-distclean-texinfo:
27189@if texinfo
27190maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 27191
a90ef4bf 27192distclean-texinfo:
0aed8855 27193 @: $(MAKE); $(unstage)
a90ef4bf 27194 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27195 r=`${PWD_COMMAND}`; export r; \
27196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27197 $(HOST_EXPORTS) \
b813574b 27198 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27200 done; \
22121df0 27201 echo "Doing distclean in texinfo"; \
a90ef4bf 27202 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27205 "RANLIB=$${RANLIB}" \
0c24b341 27206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27207 distclean) \
2a4cbe27
NN
27208 || exit 1
27209
a90ef4bf 27210@endif texinfo
2a4cbe27 27211
a90ef4bf
JM
27212.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
27213maybe-maintainer-clean-texinfo:
27214@if texinfo
27215maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 27216
a90ef4bf 27217maintainer-clean-texinfo:
0aed8855 27218 @: $(MAKE); $(unstage)
a90ef4bf 27219 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27220 r=`${PWD_COMMAND}`; export r; \
27221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27222 $(HOST_EXPORTS) \
b813574b 27223 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27225 done; \
22121df0 27226 echo "Doing maintainer-clean in texinfo"; \
a90ef4bf 27227 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27230 "RANLIB=$${RANLIB}" \
0c24b341 27231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27232 maintainer-clean) \
2a4cbe27
NN
27233 || exit 1
27234
a90ef4bf 27235@endif texinfo
2a4cbe27 27236
2a4cbe27 27237
a7254363 27238
a90ef4bf
JM
27239.PHONY: configure-zlib maybe-configure-zlib
27240maybe-configure-zlib:
4f0ef2d8 27241@if gcc-bootstrap
a90ef4bf 27242configure-zlib: stage_current
4f0ef2d8 27243@endif gcc-bootstrap
a90ef4bf
JM
27244@if zlib
27245maybe-configure-zlib: configure-zlib
27246configure-zlib:
c52c6897
PB
27247 @r=`${PWD_COMMAND}`; export r; \
27248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27249 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 27250 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
1f53ca9a 27251 $(HOST_EXPORTS) \
a90ef4bf
JM
27252 echo Configuring in $(HOST_SUBDIR)/zlib; \
27253 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 27254 case $(srcdir) in \
b00612cc 27255 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27256 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 27257 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 27258 esac; \
1b6c0831
L
27259 module_srcdir=zlib; \
27260 $(SHELL) \
27261 $$s/$$module_srcdir/configure \
27262 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27263 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e81d5d05 27264 --target=${target_alias} @extra_host_zlib_configure_flags@ \
04cf1b77 27265 || exit 1
a90ef4bf 27266@endif zlib
04cf1b77 27267
a7254363
PB
27268
27269
a90ef4bf
JM
27270.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
27271maybe-configure-stage1-zlib:
27272@if zlib-bootstrap
27273maybe-configure-stage1-zlib: configure-stage1-zlib
27274configure-stage1-zlib:
c52c6897 27275 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 27276 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27277 @r=`${PWD_COMMAND}`; export r; \
27278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27279 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 27280 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 27281 $(HOST_EXPORTS) \
8ee82aff 27282 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27283 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27284 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
27285 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib; \
27286 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27287 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27288 case $(srcdir) in \
27289 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27290 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27291 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27292 esac; \
1b6c0831
L
27293 module_srcdir=zlib; \
27294 $(SHELL) $$s/$$module_srcdir/configure \
27295 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27296 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
27297 --target=${target_alias} \
27298 \
e81d5d05
L
27299 $(STAGE1_CONFIGURE_FLAGS) \
27300 @extra_host_zlib_configure_flags@
a90ef4bf 27301@endif zlib-bootstrap
d545f33b 27302
a90ef4bf
JM
27303.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
27304maybe-configure-stage2-zlib:
27305@if zlib-bootstrap
27306maybe-configure-stage2-zlib: configure-stage2-zlib
27307configure-stage2-zlib:
c52c6897 27308 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 27309 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27310 @r=`${PWD_COMMAND}`; export r; \
27311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27312 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 27313 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27314 $(HOST_EXPORTS) \
1b05fbbd 27315 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27316 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27317 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27318 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27319 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib; \
27320 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27321 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27322 case $(srcdir) in \
27323 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27324 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27325 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27326 esac; \
1b6c0831
L
27327 module_srcdir=zlib; \
27328 $(SHELL) $$s/$$module_srcdir/configure \
27329 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27330 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27331 --target=${target_alias} \
22121df0 27332 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27333 $(STAGE2_CONFIGURE_FLAGS) \
27334 @extra_host_zlib_configure_flags@
a90ef4bf 27335@endif zlib-bootstrap
8520c408 27336
a90ef4bf
JM
27337.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
27338maybe-configure-stage3-zlib:
27339@if zlib-bootstrap
27340maybe-configure-stage3-zlib: configure-stage3-zlib
27341configure-stage3-zlib:
c52c6897 27342 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 27343 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27344 @r=`${PWD_COMMAND}`; export r; \
27345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27346 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 27347 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27348 $(HOST_EXPORTS) \
1b05fbbd 27349 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27350 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27351 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
27352 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27353 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib; \
27354 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27355 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27356 case $(srcdir) in \
27357 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27358 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27359 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27360 esac; \
1b6c0831
L
27361 module_srcdir=zlib; \
27362 $(SHELL) $$s/$$module_srcdir/configure \
27363 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27364 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27365 --target=${target_alias} \
22121df0 27366 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27367 $(STAGE3_CONFIGURE_FLAGS) \
27368 @extra_host_zlib_configure_flags@
a90ef4bf 27369@endif zlib-bootstrap
8520c408 27370
a90ef4bf
JM
27371.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
27372maybe-configure-stage4-zlib:
27373@if zlib-bootstrap
27374maybe-configure-stage4-zlib: configure-stage4-zlib
27375configure-stage4-zlib:
c52c6897 27376 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 27377 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27378 @r=`${PWD_COMMAND}`; export r; \
27379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27380 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 27381 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27382 $(HOST_EXPORTS) \
1b05fbbd 27383 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27384 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27385 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
27386 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27387 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib; \
27388 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27389 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27390 case $(srcdir) in \
27391 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27392 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27393 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27394 esac; \
1b6c0831
L
27395 module_srcdir=zlib; \
27396 $(SHELL) $$s/$$module_srcdir/configure \
27397 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27398 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27399 --target=${target_alias} \
22121df0 27400 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27401 $(STAGE4_CONFIGURE_FLAGS) \
27402 @extra_host_zlib_configure_flags@
a90ef4bf 27403@endif zlib-bootstrap
d545f33b 27404
a90ef4bf
JM
27405.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
27406maybe-configure-stageprofile-zlib:
27407@if zlib-bootstrap
27408maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
27409configure-stageprofile-zlib:
c52c6897 27410 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 27411 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27412 @r=`${PWD_COMMAND}`; export r; \
27413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27414 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 27415 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27416 $(HOST_EXPORTS) \
1b05fbbd
AO
27417 $(POSTSTAGE1_HOST_EXPORTS) \
27418 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27419 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
27420 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27421 echo Configuring stage profile in $(HOST_SUBDIR)/zlib; \
27422 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27423 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27424 case $(srcdir) in \
27425 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27426 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27427 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27428 esac; \
1b6c0831
L
27429 module_srcdir=zlib; \
27430 $(SHELL) $$s/$$module_srcdir/configure \
27431 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27432 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27433 --target=${target_alias} \
22121df0 27434 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27435 $(STAGEprofile_CONFIGURE_FLAGS) \
27436 @extra_host_zlib_configure_flags@
a90ef4bf 27437@endif zlib-bootstrap
d545f33b 27438
a90ef4bf
JM
27439.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
27440maybe-configure-stagefeedback-zlib:
27441@if zlib-bootstrap
27442maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
27443configure-stagefeedback-zlib:
c52c6897 27444 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 27445 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27446 @r=`${PWD_COMMAND}`; export r; \
27447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27448 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 27449 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27450 $(HOST_EXPORTS) \
1b05fbbd
AO
27451 $(POSTSTAGE1_HOST_EXPORTS) \
27452 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27453 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
27454 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27455 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib; \
27456 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27457 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27458 case $(srcdir) in \
27459 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27460 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27461 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27462 esac; \
1b6c0831
L
27463 module_srcdir=zlib; \
27464 $(SHELL) $$s/$$module_srcdir/configure \
27465 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27466 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27467 --target=${target_alias} \
22121df0 27468 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27469 $(STAGEfeedback_CONFIGURE_FLAGS) \
27470 @extra_host_zlib_configure_flags@
a90ef4bf 27471@endif zlib-bootstrap
d545f33b
PB
27472
27473
27474
27475
27476
a90ef4bf
JM
27477.PHONY: all-zlib maybe-all-zlib
27478maybe-all-zlib:
4f0ef2d8 27479@if gcc-bootstrap
a90ef4bf 27480all-zlib: stage_current
4f0ef2d8 27481@endif gcc-bootstrap
a90ef4bf
JM
27482@if zlib
27483TARGET-zlib=all
27484maybe-all-zlib: all-zlib
27485all-zlib: configure-zlib
c52c6897 27486 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 27487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 27488 $(HOST_EXPORTS) \
a90ef4bf 27489 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 27490 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27491 $(TARGET-zlib))
27492@endif zlib
04cf1b77 27493
a7254363 27494
d545f33b 27495
a90ef4bf
JM
27496.PHONY: all-stage1-zlib maybe-all-stage1-zlib
27497.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
27498maybe-all-stage1-zlib:
27499maybe-clean-stage1-zlib:
27500@if zlib-bootstrap
27501maybe-all-stage1-zlib: all-stage1-zlib
27502all-stage1: all-stage1-zlib
27503TARGET-stage1-zlib = $(TARGET-zlib)
27504all-stage1-zlib: configure-stage1-zlib
c52c6897 27505 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
27506 @r=`${PWD_COMMAND}`; export r; \
27507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27508 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 27509 $(HOST_EXPORTS) \
a90ef4bf 27510 cd $(HOST_SUBDIR)/zlib && \
05a13254 27511 \
7f6ef0c0 27512 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27513 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 27514 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
27515 LIBCFLAGS="$(LIBCFLAGS)" \
27516 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27517 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27518 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
27519 $(EXTRA_HOST_FLAGS) \
27520 $(STAGE1_FLAGS_TO_PASS) \
05a13254 27521 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 27522 $(TARGET-stage1-zlib)
d545f33b 27523
a90ef4bf
JM
27524maybe-clean-stage1-zlib: clean-stage1-zlib
27525clean-stage1: clean-stage1-zlib
27526clean-stage1-zlib:
9dbaa842 27527 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 27528 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27529 else \
a90ef4bf 27530 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27531 $(MAKE) stage1-start; \
27532 fi; \
a90ef4bf 27533 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27534 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 27535 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27536@endif zlib-bootstrap
d545f33b
PB
27537
27538
a90ef4bf
JM
27539.PHONY: all-stage2-zlib maybe-all-stage2-zlib
27540.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
27541maybe-all-stage2-zlib:
27542maybe-clean-stage2-zlib:
27543@if zlib-bootstrap
27544maybe-all-stage2-zlib: all-stage2-zlib
27545all-stage2: all-stage2-zlib
27546TARGET-stage2-zlib = $(TARGET-zlib)
27547all-stage2-zlib: configure-stage2-zlib
c52c6897 27548 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
27549 @r=`${PWD_COMMAND}`; export r; \
27550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27551 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 27552 $(HOST_EXPORTS) \
1f53ca9a 27553 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27554 cd $(HOST_SUBDIR)/zlib && \
05a13254 27555 \
7f6ef0c0 27556 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27557 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27558 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27559 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27560 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27561 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27562 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27563 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27564 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27565 $(TARGET-stage2-zlib)
d545f33b 27566
a90ef4bf
JM
27567maybe-clean-stage2-zlib: clean-stage2-zlib
27568clean-stage2: clean-stage2-zlib
27569clean-stage2-zlib:
9dbaa842 27570 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27571 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27572 else \
a90ef4bf 27573 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27574 $(MAKE) stage2-start; \
27575 fi; \
a90ef4bf 27576 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27577 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27578@endif zlib-bootstrap
d545f33b
PB
27579
27580
a90ef4bf
JM
27581.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27582.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27583maybe-all-stage3-zlib:
27584maybe-clean-stage3-zlib:
27585@if zlib-bootstrap
27586maybe-all-stage3-zlib: all-stage3-zlib
27587all-stage3: all-stage3-zlib
27588TARGET-stage3-zlib = $(TARGET-zlib)
27589all-stage3-zlib: configure-stage3-zlib
c52c6897 27590 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27591 @r=`${PWD_COMMAND}`; export r; \
27592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27593 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27594 $(HOST_EXPORTS) \
1f53ca9a 27595 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27596 cd $(HOST_SUBDIR)/zlib && \
05a13254 27597 \
7f6ef0c0 27598 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27599 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27600 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27601 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27602 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27603 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27604 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27605 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27606 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27607 $(TARGET-stage3-zlib)
d545f33b 27608
a90ef4bf
JM
27609maybe-clean-stage3-zlib: clean-stage3-zlib
27610clean-stage3: clean-stage3-zlib
27611clean-stage3-zlib:
9dbaa842 27612 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27613 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27614 else \
a90ef4bf 27615 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27616 $(MAKE) stage3-start; \
27617 fi; \
a90ef4bf 27618 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27619 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27620@endif zlib-bootstrap
d545f33b
PB
27621
27622
a90ef4bf
JM
27623.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27624.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27625maybe-all-stage4-zlib:
27626maybe-clean-stage4-zlib:
27627@if zlib-bootstrap
27628maybe-all-stage4-zlib: all-stage4-zlib
27629all-stage4: all-stage4-zlib
27630TARGET-stage4-zlib = $(TARGET-zlib)
27631all-stage4-zlib: configure-stage4-zlib
c52c6897 27632 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27633 @r=`${PWD_COMMAND}`; export r; \
27634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27635 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27636 $(HOST_EXPORTS) \
1f53ca9a 27637 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27638 cd $(HOST_SUBDIR)/zlib && \
05a13254 27639 \
7f6ef0c0 27640 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27641 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27642 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27643 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27644 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27645 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27646 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27647 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27648 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27649 $(TARGET-stage4-zlib)
d545f33b 27650
a90ef4bf
JM
27651maybe-clean-stage4-zlib: clean-stage4-zlib
27652clean-stage4: clean-stage4-zlib
27653clean-stage4-zlib:
9dbaa842 27654 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27655 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27656 else \
a90ef4bf 27657 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27658 $(MAKE) stage4-start; \
27659 fi; \
a90ef4bf 27660 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27661 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27662@endif zlib-bootstrap
d545f33b
PB
27663
27664
a90ef4bf
JM
27665.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27666.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27667maybe-all-stageprofile-zlib:
27668maybe-clean-stageprofile-zlib:
27669@if zlib-bootstrap
27670maybe-all-stageprofile-zlib: all-stageprofile-zlib
27671all-stageprofile: all-stageprofile-zlib
27672TARGET-stageprofile-zlib = $(TARGET-zlib)
27673all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27674 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27675 @r=`${PWD_COMMAND}`; export r; \
27676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27677 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27678 $(HOST_EXPORTS) \
1f53ca9a 27679 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27680 cd $(HOST_SUBDIR)/zlib && \
05a13254 27681 \
7f6ef0c0 27682 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27683 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27684 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27685 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27686 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27687 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27688 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27689 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27690 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27691 $(TARGET-stageprofile-zlib)
d545f33b 27692
a90ef4bf
JM
27693maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27694clean-stageprofile: clean-stageprofile-zlib
27695clean-stageprofile-zlib:
9dbaa842 27696 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27697 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27698 else \
a90ef4bf 27699 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27700 $(MAKE) stageprofile-start; \
27701 fi; \
a90ef4bf 27702 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27703 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27704@endif zlib-bootstrap
d545f33b
PB
27705
27706
a90ef4bf
JM
27707.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27708.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27709maybe-all-stagefeedback-zlib:
27710maybe-clean-stagefeedback-zlib:
27711@if zlib-bootstrap
27712maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27713all-stagefeedback: all-stagefeedback-zlib
27714TARGET-stagefeedback-zlib = $(TARGET-zlib)
27715all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27716 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27717 @r=`${PWD_COMMAND}`; export r; \
27718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27719 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27720 $(HOST_EXPORTS) \
1f53ca9a 27721 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27722 cd $(HOST_SUBDIR)/zlib && \
05a13254 27723 \
7f6ef0c0 27724 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27725 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27726 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27727 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27728 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27729 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27730 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27731 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27732 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27733 $(TARGET-stagefeedback-zlib)
d545f33b 27734
a90ef4bf
JM
27735maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27736clean-stagefeedback: clean-stagefeedback-zlib
27737clean-stagefeedback-zlib:
9dbaa842 27738 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27739 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27740 else \
a90ef4bf 27741 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27742 $(MAKE) stagefeedback-start; \
27743 fi; \
a90ef4bf 27744 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27745 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27746@endif zlib-bootstrap
d545f33b
PB
27747
27748
27749
27750
27751
a90ef4bf
JM
27752.PHONY: check-zlib maybe-check-zlib
27753maybe-check-zlib:
27754@if zlib
27755maybe-check-zlib: check-zlib
04cf1b77 27756
a90ef4bf 27757check-zlib:
04cf1b77 27758
a90ef4bf 27759@endif zlib
04cf1b77 27760
a90ef4bf
JM
27761.PHONY: install-zlib maybe-install-zlib
27762maybe-install-zlib:
27763@if zlib
27764maybe-install-zlib: install-zlib
04cf1b77 27765
a90ef4bf 27766install-zlib:
04cf1b77 27767
a90ef4bf 27768@endif zlib
04cf1b77 27769
a90ef4bf
JM
27770.PHONY: install-strip-zlib maybe-install-strip-zlib
27771maybe-install-strip-zlib:
27772@if zlib
27773maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27774
a90ef4bf 27775install-strip-zlib:
9b980aa1 27776
a90ef4bf 27777@endif zlib
9b980aa1 27778
56a8fe78 27779# Other targets (info, dvi, pdf, etc.)
04cf1b77 27780
a90ef4bf
JM
27781.PHONY: maybe-info-zlib info-zlib
27782maybe-info-zlib:
27783@if zlib
27784maybe-info-zlib: info-zlib
04cf1b77 27785
a90ef4bf
JM
27786info-zlib: \
27787 configure-zlib
27788 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27789 r=`${PWD_COMMAND}`; export r; \
27790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27791 $(HOST_EXPORTS) \
b813574b 27792 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27794 done; \
22121df0 27795 echo "Doing info in zlib"; \
a90ef4bf 27796 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27799 "RANLIB=$${RANLIB}" \
0c24b341 27800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27801 info) \
04cf1b77
PB
27802 || exit 1
27803
a90ef4bf 27804@endif zlib
04cf1b77 27805
a90ef4bf
JM
27806.PHONY: maybe-dvi-zlib dvi-zlib
27807maybe-dvi-zlib:
27808@if zlib
27809maybe-dvi-zlib: dvi-zlib
04cf1b77 27810
a90ef4bf
JM
27811dvi-zlib: \
27812 configure-zlib
27813 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27814 r=`${PWD_COMMAND}`; export r; \
27815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27816 $(HOST_EXPORTS) \
b813574b 27817 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27819 done; \
22121df0 27820 echo "Doing dvi in zlib"; \
a90ef4bf 27821 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27824 "RANLIB=$${RANLIB}" \
0c24b341 27825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27826 dvi) \
04cf1b77
PB
27827 || exit 1
27828
a90ef4bf 27829@endif zlib
04cf1b77 27830
a90ef4bf
JM
27831.PHONY: maybe-pdf-zlib pdf-zlib
27832maybe-pdf-zlib:
27833@if zlib
27834maybe-pdf-zlib: pdf-zlib
56a8fe78 27835
a90ef4bf
JM
27836pdf-zlib: \
27837 configure-zlib
27838 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27839 r=`${PWD_COMMAND}`; export r; \
27840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27841 $(HOST_EXPORTS) \
27842 for flag in $(EXTRA_HOST_FLAGS) ; do \
27843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27844 done; \
22121df0 27845 echo "Doing pdf in zlib"; \
a90ef4bf 27846 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27849 "RANLIB=$${RANLIB}" \
0c24b341 27850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27851 pdf) \
27852 || exit 1
27853
a90ef4bf 27854@endif zlib
56a8fe78 27855
a90ef4bf
JM
27856.PHONY: maybe-html-zlib html-zlib
27857maybe-html-zlib:
27858@if zlib
27859maybe-html-zlib: html-zlib
6d389afc 27860
a90ef4bf
JM
27861html-zlib: \
27862 configure-zlib
27863 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27864 r=`${PWD_COMMAND}`; export r; \
27865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27866 $(HOST_EXPORTS) \
27867 for flag in $(EXTRA_HOST_FLAGS) ; do \
27868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27869 done; \
22121df0 27870 echo "Doing html in zlib"; \
a90ef4bf 27871 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27874 "RANLIB=$${RANLIB}" \
0c24b341 27875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27876 html) \
27877 || exit 1
27878
a90ef4bf 27879@endif zlib
6d389afc 27880
a90ef4bf
JM
27881.PHONY: maybe-TAGS-zlib TAGS-zlib
27882maybe-TAGS-zlib:
27883@if zlib
27884maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27885
a90ef4bf
JM
27886TAGS-zlib: \
27887 configure-zlib
27888 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27889 r=`${PWD_COMMAND}`; export r; \
27890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27891 $(HOST_EXPORTS) \
b813574b 27892 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27894 done; \
22121df0 27895 echo "Doing TAGS in zlib"; \
a90ef4bf 27896 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27899 "RANLIB=$${RANLIB}" \
0c24b341 27900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27901 TAGS) \
04cf1b77
PB
27902 || exit 1
27903
a90ef4bf 27904@endif zlib
04cf1b77 27905
a90ef4bf
JM
27906.PHONY: maybe-install-info-zlib install-info-zlib
27907maybe-install-info-zlib:
27908@if zlib
27909maybe-install-info-zlib: install-info-zlib
04cf1b77 27910
a90ef4bf
JM
27911install-info-zlib: \
27912 configure-zlib \
27913 info-zlib
27914 @[ -f ./zlib/Makefile ] || exit 0; \
27915 r=`${PWD_COMMAND}`; export r; \
27916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27917 $(HOST_EXPORTS) \
b813574b 27918 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27920 done; \
22121df0 27921 echo "Doing install-info in zlib"; \
a90ef4bf 27922 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27925 "RANLIB=$${RANLIB}" \
0c24b341 27926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27927 install-info) \
04cf1b77
PB
27928 || exit 1
27929
a90ef4bf 27930@endif zlib
04cf1b77 27931
a90ef4bf
JM
27932.PHONY: maybe-install-pdf-zlib install-pdf-zlib
27933maybe-install-pdf-zlib:
27934@if zlib
27935maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 27936
a90ef4bf
JM
27937install-pdf-zlib: \
27938 configure-zlib \
27939 pdf-zlib
27940 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
27941 r=`${PWD_COMMAND}`; export r; \
27942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27943 $(HOST_EXPORTS) \
27944 for flag in $(EXTRA_HOST_FLAGS) ; do \
27945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27946 done; \
22121df0 27947 echo "Doing install-pdf in zlib"; \
a90ef4bf 27948 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
27949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27951 "RANLIB=$${RANLIB}" \
0c24b341 27952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27953 install-pdf) \
27954 || exit 1
27955
a90ef4bf 27956@endif zlib
a3ca38d2 27957
a90ef4bf
JM
27958.PHONY: maybe-install-html-zlib install-html-zlib
27959maybe-install-html-zlib:
27960@if zlib
27961maybe-install-html-zlib: install-html-zlib
108a6f8e 27962
a90ef4bf
JM
27963install-html-zlib: \
27964 configure-zlib \
27965 html-zlib
27966 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
27967 r=`${PWD_COMMAND}`; export r; \
27968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27969 $(HOST_EXPORTS) \
27970 for flag in $(EXTRA_HOST_FLAGS) ; do \
27971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27972 done; \
22121df0 27973 echo "Doing install-html in zlib"; \
a90ef4bf 27974 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
27975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27977 "RANLIB=$${RANLIB}" \
0c24b341 27978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27979 install-html) \
27980 || exit 1
27981
a90ef4bf 27982@endif zlib
108a6f8e 27983
a90ef4bf
JM
27984.PHONY: maybe-installcheck-zlib installcheck-zlib
27985maybe-installcheck-zlib:
27986@if zlib
27987maybe-installcheck-zlib: installcheck-zlib
04cf1b77 27988
a90ef4bf
JM
27989installcheck-zlib: \
27990 configure-zlib
27991 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27992 r=`${PWD_COMMAND}`; export r; \
27993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27994 $(HOST_EXPORTS) \
b813574b 27995 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27997 done; \
22121df0 27998 echo "Doing installcheck in zlib"; \
a90ef4bf 27999 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28002 "RANLIB=$${RANLIB}" \
0c24b341 28003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28004 installcheck) \
04cf1b77
PB
28005 || exit 1
28006
a90ef4bf 28007@endif zlib
04cf1b77 28008
a90ef4bf
JM
28009.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
28010maybe-mostlyclean-zlib:
28011@if zlib
28012maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 28013
a90ef4bf
JM
28014mostlyclean-zlib:
28015 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28016 r=`${PWD_COMMAND}`; export r; \
28017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28018 $(HOST_EXPORTS) \
b813574b 28019 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28021 done; \
22121df0 28022 echo "Doing mostlyclean in zlib"; \
a90ef4bf 28023 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28026 "RANLIB=$${RANLIB}" \
0c24b341 28027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28028 mostlyclean) \
04cf1b77
PB
28029 || exit 1
28030
a90ef4bf 28031@endif zlib
04cf1b77 28032
a90ef4bf
JM
28033.PHONY: maybe-clean-zlib clean-zlib
28034maybe-clean-zlib:
28035@if zlib
28036maybe-clean-zlib: clean-zlib
04cf1b77 28037
a90ef4bf
JM
28038clean-zlib:
28039 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28040 r=`${PWD_COMMAND}`; export r; \
28041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28042 $(HOST_EXPORTS) \
b813574b 28043 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28045 done; \
22121df0 28046 echo "Doing clean in zlib"; \
a90ef4bf 28047 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28050 "RANLIB=$${RANLIB}" \
0c24b341 28051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28052 clean) \
04cf1b77
PB
28053 || exit 1
28054
a90ef4bf 28055@endif zlib
04cf1b77 28056
a90ef4bf
JM
28057.PHONY: maybe-distclean-zlib distclean-zlib
28058maybe-distclean-zlib:
28059@if zlib
28060maybe-distclean-zlib: distclean-zlib
04cf1b77 28061
a90ef4bf
JM
28062distclean-zlib:
28063 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28064 r=`${PWD_COMMAND}`; export r; \
28065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28066 $(HOST_EXPORTS) \
b813574b 28067 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28069 done; \
22121df0 28070 echo "Doing distclean in zlib"; \
a90ef4bf 28071 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28074 "RANLIB=$${RANLIB}" \
0c24b341 28075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28076 distclean) \
04cf1b77
PB
28077 || exit 1
28078
a90ef4bf 28079@endif zlib
04cf1b77 28080
a90ef4bf
JM
28081.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
28082maybe-maintainer-clean-zlib:
28083@if zlib
28084maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 28085
a90ef4bf
JM
28086maintainer-clean-zlib:
28087 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28088 r=`${PWD_COMMAND}`; export r; \
28089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28090 $(HOST_EXPORTS) \
b813574b 28091 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28093 done; \
22121df0 28094 echo "Doing maintainer-clean in zlib"; \
a90ef4bf 28095 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28098 "RANLIB=$${RANLIB}" \
0c24b341 28099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28100 maintainer-clean) \
04cf1b77
PB
28101 || exit 1
28102
a90ef4bf 28103@endif zlib
04cf1b77
PB
28104
28105
a7254363 28106
73cc7272
TT
28107.PHONY: configure-gnulib maybe-configure-gnulib
28108maybe-configure-gnulib:
28109@if gcc-bootstrap
28110configure-gnulib: stage_current
28111@endif gcc-bootstrap
28112@if gnulib
28113maybe-configure-gnulib: configure-gnulib
28114configure-gnulib:
28115 @: $(MAKE); $(unstage)
28116 @r=`${PWD_COMMAND}`; export r; \
28117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28118 test ! -f $(HOST_SUBDIR)/gnulib/Makefile || exit 0; \
28119 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnulib; \
28120 $(HOST_EXPORTS) \
28121 echo Configuring in $(HOST_SUBDIR)/gnulib; \
28122 cd "$(HOST_SUBDIR)/gnulib" || exit 1; \
28123 case $(srcdir) in \
28124 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28125 *) topdir=`echo $(HOST_SUBDIR)/gnulib/ | \
28126 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28127 esac; \
28128 module_srcdir=gnulib; \
28129 $(SHELL) \
28130 $$s/$$module_srcdir/configure \
28131 --srcdir=$${topdir}/$$module_srcdir \
28132 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28133 --target=${target_alias} \
28134 || exit 1
28135@endif gnulib
28136
28137
28138
28139
28140
28141.PHONY: all-gnulib maybe-all-gnulib
28142maybe-all-gnulib:
28143@if gcc-bootstrap
28144all-gnulib: stage_current
28145@endif gcc-bootstrap
28146@if gnulib
28147TARGET-gnulib=all
28148maybe-all-gnulib: all-gnulib
28149all-gnulib: configure-gnulib
28150 @: $(MAKE); $(unstage)
28151 @r=`${PWD_COMMAND}`; export r; \
28152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28153 $(HOST_EXPORTS) \
28154 (cd $(HOST_SUBDIR)/gnulib && \
28155 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
28156 $(TARGET-gnulib))
28157@endif gnulib
28158
28159
28160
28161
28162.PHONY: check-gnulib maybe-check-gnulib
28163maybe-check-gnulib:
28164@if gnulib
28165maybe-check-gnulib: check-gnulib
28166
28167check-gnulib:
28168 @: $(MAKE); $(unstage)
28169 @r=`${PWD_COMMAND}`; export r; \
28170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28171 $(HOST_EXPORTS) \
28172 (cd $(HOST_SUBDIR)/gnulib && \
28173 $(MAKE) $(FLAGS_TO_PASS) check)
28174
28175@endif gnulib
28176
28177.PHONY: install-gnulib maybe-install-gnulib
28178maybe-install-gnulib:
28179@if gnulib
28180maybe-install-gnulib: install-gnulib
28181
28182install-gnulib: installdirs
28183 @: $(MAKE); $(unstage)
28184 @r=`${PWD_COMMAND}`; export r; \
28185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28186 $(HOST_EXPORTS) \
28187 (cd $(HOST_SUBDIR)/gnulib && \
28188 $(MAKE) $(FLAGS_TO_PASS) install)
28189
28190@endif gnulib
28191
28192.PHONY: install-strip-gnulib maybe-install-strip-gnulib
28193maybe-install-strip-gnulib:
28194@if gnulib
28195maybe-install-strip-gnulib: install-strip-gnulib
28196
28197install-strip-gnulib: installdirs
28198 @: $(MAKE); $(unstage)
28199 @r=`${PWD_COMMAND}`; export r; \
28200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28201 $(HOST_EXPORTS) \
28202 (cd $(HOST_SUBDIR)/gnulib && \
28203 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28204
28205@endif gnulib
28206
28207# Other targets (info, dvi, pdf, etc.)
28208
28209.PHONY: maybe-info-gnulib info-gnulib
28210maybe-info-gnulib:
28211@if gnulib
28212maybe-info-gnulib: info-gnulib
28213
28214info-gnulib: \
28215 configure-gnulib
28216 @: $(MAKE); $(unstage)
28217 @[ -f ./gnulib/Makefile ] || exit 0; \
28218 r=`${PWD_COMMAND}`; export r; \
28219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28220 $(HOST_EXPORTS) \
28221 for flag in $(EXTRA_HOST_FLAGS) ; do \
28222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28223 done; \
28224 echo "Doing info in gnulib"; \
28225 (cd $(HOST_SUBDIR)/gnulib && \
28226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28228 "RANLIB=$${RANLIB}" \
28229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28230 info) \
28231 || exit 1
28232
28233@endif gnulib
28234
28235.PHONY: maybe-dvi-gnulib dvi-gnulib
28236maybe-dvi-gnulib:
28237@if gnulib
28238maybe-dvi-gnulib: dvi-gnulib
28239
28240dvi-gnulib: \
28241 configure-gnulib
28242 @: $(MAKE); $(unstage)
28243 @[ -f ./gnulib/Makefile ] || exit 0; \
28244 r=`${PWD_COMMAND}`; export r; \
28245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28246 $(HOST_EXPORTS) \
28247 for flag in $(EXTRA_HOST_FLAGS) ; do \
28248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28249 done; \
28250 echo "Doing dvi in gnulib"; \
28251 (cd $(HOST_SUBDIR)/gnulib && \
28252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28254 "RANLIB=$${RANLIB}" \
28255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28256 dvi) \
28257 || exit 1
28258
28259@endif gnulib
28260
28261.PHONY: maybe-pdf-gnulib pdf-gnulib
28262maybe-pdf-gnulib:
28263@if gnulib
28264maybe-pdf-gnulib: pdf-gnulib
28265
28266pdf-gnulib: \
28267 configure-gnulib
28268 @: $(MAKE); $(unstage)
28269 @[ -f ./gnulib/Makefile ] || exit 0; \
28270 r=`${PWD_COMMAND}`; export r; \
28271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28272 $(HOST_EXPORTS) \
28273 for flag in $(EXTRA_HOST_FLAGS) ; do \
28274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28275 done; \
28276 echo "Doing pdf in gnulib"; \
28277 (cd $(HOST_SUBDIR)/gnulib && \
28278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28280 "RANLIB=$${RANLIB}" \
28281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28282 pdf) \
28283 || exit 1
28284
28285@endif gnulib
28286
28287.PHONY: maybe-html-gnulib html-gnulib
28288maybe-html-gnulib:
28289@if gnulib
28290maybe-html-gnulib: html-gnulib
28291
28292html-gnulib: \
28293 configure-gnulib
28294 @: $(MAKE); $(unstage)
28295 @[ -f ./gnulib/Makefile ] || exit 0; \
28296 r=`${PWD_COMMAND}`; export r; \
28297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28298 $(HOST_EXPORTS) \
28299 for flag in $(EXTRA_HOST_FLAGS) ; do \
28300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28301 done; \
28302 echo "Doing html in gnulib"; \
28303 (cd $(HOST_SUBDIR)/gnulib && \
28304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28306 "RANLIB=$${RANLIB}" \
28307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28308 html) \
28309 || exit 1
28310
28311@endif gnulib
28312
28313.PHONY: maybe-TAGS-gnulib TAGS-gnulib
28314maybe-TAGS-gnulib:
28315@if gnulib
28316maybe-TAGS-gnulib: TAGS-gnulib
28317
28318TAGS-gnulib: \
28319 configure-gnulib
28320 @: $(MAKE); $(unstage)
28321 @[ -f ./gnulib/Makefile ] || exit 0; \
28322 r=`${PWD_COMMAND}`; export r; \
28323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28324 $(HOST_EXPORTS) \
28325 for flag in $(EXTRA_HOST_FLAGS) ; do \
28326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28327 done; \
28328 echo "Doing TAGS in gnulib"; \
28329 (cd $(HOST_SUBDIR)/gnulib && \
28330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28332 "RANLIB=$${RANLIB}" \
28333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28334 TAGS) \
28335 || exit 1
28336
28337@endif gnulib
28338
28339.PHONY: maybe-install-info-gnulib install-info-gnulib
28340maybe-install-info-gnulib:
28341@if gnulib
28342maybe-install-info-gnulib: install-info-gnulib
28343
28344install-info-gnulib: \
28345 configure-gnulib \
28346 info-gnulib
28347 @: $(MAKE); $(unstage)
28348 @[ -f ./gnulib/Makefile ] || exit 0; \
28349 r=`${PWD_COMMAND}`; export r; \
28350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28351 $(HOST_EXPORTS) \
28352 for flag in $(EXTRA_HOST_FLAGS) ; do \
28353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28354 done; \
28355 echo "Doing install-info in gnulib"; \
28356 (cd $(HOST_SUBDIR)/gnulib && \
28357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28359 "RANLIB=$${RANLIB}" \
28360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28361 install-info) \
28362 || exit 1
28363
28364@endif gnulib
28365
28366.PHONY: maybe-install-pdf-gnulib install-pdf-gnulib
28367maybe-install-pdf-gnulib:
28368@if gnulib
28369maybe-install-pdf-gnulib: install-pdf-gnulib
28370
28371install-pdf-gnulib: \
28372 configure-gnulib \
28373 pdf-gnulib
28374 @: $(MAKE); $(unstage)
28375 @[ -f ./gnulib/Makefile ] || exit 0; \
28376 r=`${PWD_COMMAND}`; export r; \
28377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28378 $(HOST_EXPORTS) \
28379 for flag in $(EXTRA_HOST_FLAGS) ; do \
28380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28381 done; \
28382 echo "Doing install-pdf in gnulib"; \
28383 (cd $(HOST_SUBDIR)/gnulib && \
28384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28386 "RANLIB=$${RANLIB}" \
28387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28388 install-pdf) \
28389 || exit 1
28390
28391@endif gnulib
28392
28393.PHONY: maybe-install-html-gnulib install-html-gnulib
28394maybe-install-html-gnulib:
28395@if gnulib
28396maybe-install-html-gnulib: install-html-gnulib
28397
28398install-html-gnulib: \
28399 configure-gnulib \
28400 html-gnulib
28401 @: $(MAKE); $(unstage)
28402 @[ -f ./gnulib/Makefile ] || exit 0; \
28403 r=`${PWD_COMMAND}`; export r; \
28404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28405 $(HOST_EXPORTS) \
28406 for flag in $(EXTRA_HOST_FLAGS) ; do \
28407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28408 done; \
28409 echo "Doing install-html in gnulib"; \
28410 (cd $(HOST_SUBDIR)/gnulib && \
28411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28413 "RANLIB=$${RANLIB}" \
28414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28415 install-html) \
28416 || exit 1
28417
28418@endif gnulib
28419
28420.PHONY: maybe-installcheck-gnulib installcheck-gnulib
28421maybe-installcheck-gnulib:
28422@if gnulib
28423maybe-installcheck-gnulib: installcheck-gnulib
28424
28425installcheck-gnulib: \
28426 configure-gnulib
28427 @: $(MAKE); $(unstage)
28428 @[ -f ./gnulib/Makefile ] || exit 0; \
28429 r=`${PWD_COMMAND}`; export r; \
28430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28431 $(HOST_EXPORTS) \
28432 for flag in $(EXTRA_HOST_FLAGS) ; do \
28433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28434 done; \
28435 echo "Doing installcheck in gnulib"; \
28436 (cd $(HOST_SUBDIR)/gnulib && \
28437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28439 "RANLIB=$${RANLIB}" \
28440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28441 installcheck) \
28442 || exit 1
28443
28444@endif gnulib
28445
28446.PHONY: maybe-mostlyclean-gnulib mostlyclean-gnulib
28447maybe-mostlyclean-gnulib:
28448@if gnulib
28449maybe-mostlyclean-gnulib: mostlyclean-gnulib
28450
28451mostlyclean-gnulib:
28452 @: $(MAKE); $(unstage)
28453 @[ -f ./gnulib/Makefile ] || exit 0; \
28454 r=`${PWD_COMMAND}`; export r; \
28455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28456 $(HOST_EXPORTS) \
28457 for flag in $(EXTRA_HOST_FLAGS) ; do \
28458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28459 done; \
28460 echo "Doing mostlyclean in gnulib"; \
28461 (cd $(HOST_SUBDIR)/gnulib && \
28462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28464 "RANLIB=$${RANLIB}" \
28465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28466 mostlyclean) \
28467 || exit 1
28468
28469@endif gnulib
28470
28471.PHONY: maybe-clean-gnulib clean-gnulib
28472maybe-clean-gnulib:
28473@if gnulib
28474maybe-clean-gnulib: clean-gnulib
28475
28476clean-gnulib:
28477 @: $(MAKE); $(unstage)
28478 @[ -f ./gnulib/Makefile ] || exit 0; \
28479 r=`${PWD_COMMAND}`; export r; \
28480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28481 $(HOST_EXPORTS) \
28482 for flag in $(EXTRA_HOST_FLAGS) ; do \
28483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28484 done; \
28485 echo "Doing clean in gnulib"; \
28486 (cd $(HOST_SUBDIR)/gnulib && \
28487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28489 "RANLIB=$${RANLIB}" \
28490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28491 clean) \
28492 || exit 1
28493
28494@endif gnulib
28495
28496.PHONY: maybe-distclean-gnulib distclean-gnulib
28497maybe-distclean-gnulib:
28498@if gnulib
28499maybe-distclean-gnulib: distclean-gnulib
28500
28501distclean-gnulib:
28502 @: $(MAKE); $(unstage)
28503 @[ -f ./gnulib/Makefile ] || exit 0; \
28504 r=`${PWD_COMMAND}`; export r; \
28505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28506 $(HOST_EXPORTS) \
28507 for flag in $(EXTRA_HOST_FLAGS) ; do \
28508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28509 done; \
28510 echo "Doing distclean in gnulib"; \
28511 (cd $(HOST_SUBDIR)/gnulib && \
28512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28514 "RANLIB=$${RANLIB}" \
28515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28516 distclean) \
28517 || exit 1
28518
28519@endif gnulib
28520
28521.PHONY: maybe-maintainer-clean-gnulib maintainer-clean-gnulib
28522maybe-maintainer-clean-gnulib:
28523@if gnulib
28524maybe-maintainer-clean-gnulib: maintainer-clean-gnulib
28525
28526maintainer-clean-gnulib:
28527 @: $(MAKE); $(unstage)
28528 @[ -f ./gnulib/Makefile ] || exit 0; \
28529 r=`${PWD_COMMAND}`; export r; \
28530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28531 $(HOST_EXPORTS) \
28532 for flag in $(EXTRA_HOST_FLAGS) ; do \
28533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28534 done; \
28535 echo "Doing maintainer-clean in gnulib"; \
28536 (cd $(HOST_SUBDIR)/gnulib && \
28537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28539 "RANLIB=$${RANLIB}" \
28540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28541 maintainer-clean) \
28542 || exit 1
28543
28544@endif gnulib
28545
28546
28547
a90ef4bf
JM
28548.PHONY: configure-gdb maybe-configure-gdb
28549maybe-configure-gdb:
4f0ef2d8 28550@if gcc-bootstrap
a90ef4bf 28551configure-gdb: stage_current
4f0ef2d8 28552@endif gcc-bootstrap
a90ef4bf
JM
28553@if gdb
28554maybe-configure-gdb: configure-gdb
28555configure-gdb:
28556 @: $(MAKE); $(unstage)
c52c6897
PB
28557 @r=`${PWD_COMMAND}`; export r; \
28558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28559 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
22121df0 28560 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb; \
1f53ca9a 28561 $(HOST_EXPORTS) \
a90ef4bf
JM
28562 echo Configuring in $(HOST_SUBDIR)/gdb; \
28563 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 28564 case $(srcdir) in \
b00612cc 28565 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28566 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 28567 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 28568 esac; \
1b6c0831
L
28569 module_srcdir=gdb; \
28570 $(SHELL) \
28571 $$s/$$module_srcdir/configure \
28572 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28573 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28574 --target=${target_alias} \
4fa63067 28575 || exit 1
a90ef4bf 28576@endif gdb
4fa63067 28577
a7254363
PB
28578
28579
d545f33b 28580
8520c408 28581
a90ef4bf
JM
28582.PHONY: all-gdb maybe-all-gdb
28583maybe-all-gdb:
28584@if gcc-bootstrap
28585all-gdb: stage_current
28586@endif gcc-bootstrap
28587@if gdb
28588TARGET-gdb=all
28589maybe-all-gdb: all-gdb
28590all-gdb: configure-gdb
28591 @: $(MAKE); $(unstage)
c52c6897
PB
28592 @r=`${PWD_COMMAND}`; export r; \
28593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28594 $(HOST_EXPORTS) \
28595 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 28596 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28597 $(TARGET-gdb))
28598@endif gdb
8520c408 28599
a90ef4bf
JM
28600
28601
28602
28603.PHONY: check-gdb maybe-check-gdb
28604maybe-check-gdb:
28605@if gdb
28606maybe-check-gdb: check-gdb
28607
28608check-gdb:
28609 @: $(MAKE); $(unstage)
c52c6897
PB
28610 @r=`${PWD_COMMAND}`; export r; \
28611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28612 $(HOST_EXPORTS) \
a90ef4bf
JM
28613 (cd $(HOST_SUBDIR)/gdb && \
28614 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 28615
a90ef4bf
JM
28616@endif gdb
28617
28618.PHONY: install-gdb maybe-install-gdb
28619maybe-install-gdb:
28620@if gdb
28621maybe-install-gdb: install-gdb
28622
28623install-gdb: installdirs
28624 @: $(MAKE); $(unstage)
c52c6897
PB
28625 @r=`${PWD_COMMAND}`; export r; \
28626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28627 $(HOST_EXPORTS) \
a90ef4bf
JM
28628 (cd $(HOST_SUBDIR)/gdb && \
28629 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 28630
a90ef4bf
JM
28631@endif gdb
28632
28633.PHONY: install-strip-gdb maybe-install-strip-gdb
28634maybe-install-strip-gdb:
28635@if gdb
28636maybe-install-strip-gdb: install-strip-gdb
28637
28638install-strip-gdb: installdirs
28639 @: $(MAKE); $(unstage)
c52c6897
PB
28640 @r=`${PWD_COMMAND}`; export r; \
28641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28642 $(HOST_EXPORTS) \
a90ef4bf
JM
28643 (cd $(HOST_SUBDIR)/gdb && \
28644 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 28645
a90ef4bf 28646@endif gdb
d545f33b 28647
a90ef4bf 28648# Other targets (info, dvi, pdf, etc.)
d545f33b 28649
a90ef4bf
JM
28650.PHONY: maybe-info-gdb info-gdb
28651maybe-info-gdb:
28652@if gdb
28653maybe-info-gdb: info-gdb
d545f33b 28654
a90ef4bf
JM
28655info-gdb: \
28656 configure-gdb
28657 @: $(MAKE); $(unstage)
28658 @[ -f ./gdb/Makefile ] || exit 0; \
28659 r=`${PWD_COMMAND}`; export r; \
4fa63067 28660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28661 $(HOST_EXPORTS) \
28662 for flag in $(EXTRA_HOST_FLAGS) ; do \
28663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28664 done; \
22121df0 28665 echo "Doing info in gdb"; \
a90ef4bf
JM
28666 (cd $(HOST_SUBDIR)/gdb && \
28667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28669 "RANLIB=$${RANLIB}" \
28670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28671 info) \
28672 || exit 1
4fa63067 28673
a90ef4bf 28674@endif gdb
a7254363 28675
a90ef4bf
JM
28676.PHONY: maybe-dvi-gdb dvi-gdb
28677maybe-dvi-gdb:
28678@if gdb
28679maybe-dvi-gdb: dvi-gdb
d545f33b 28680
a90ef4bf
JM
28681dvi-gdb: \
28682 configure-gdb
28683 @: $(MAKE); $(unstage)
28684 @[ -f ./gdb/Makefile ] || exit 0; \
28685 r=`${PWD_COMMAND}`; export r; \
d545f33b 28686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28687 $(HOST_EXPORTS) \
28688 for flag in $(EXTRA_HOST_FLAGS) ; do \
28689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28690 done; \
22121df0 28691 echo "Doing dvi in gdb"; \
a90ef4bf
JM
28692 (cd $(HOST_SUBDIR)/gdb && \
28693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28695 "RANLIB=$${RANLIB}" \
28696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28697 dvi) \
28698 || exit 1
d545f33b 28699
a90ef4bf 28700@endif gdb
d545f33b 28701
a90ef4bf
JM
28702.PHONY: maybe-pdf-gdb pdf-gdb
28703maybe-pdf-gdb:
28704@if gdb
28705maybe-pdf-gdb: pdf-gdb
d545f33b 28706
a90ef4bf
JM
28707pdf-gdb: \
28708 configure-gdb
9b980aa1 28709 @: $(MAKE); $(unstage)
a90ef4bf 28710 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28711 r=`${PWD_COMMAND}`; export r; \
28712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28713 $(HOST_EXPORTS) \
b813574b 28714 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28716 done; \
22121df0 28717 echo "Doing pdf in gdb"; \
a90ef4bf 28718 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28721 "RANLIB=$${RANLIB}" \
0c24b341 28722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28723 pdf) \
2a4cbe27
NN
28724 || exit 1
28725
a90ef4bf 28726@endif gdb
2a4cbe27 28727
a90ef4bf
JM
28728.PHONY: maybe-html-gdb html-gdb
28729maybe-html-gdb:
28730@if gdb
28731maybe-html-gdb: html-gdb
2a4cbe27 28732
a90ef4bf
JM
28733html-gdb: \
28734 configure-gdb
28735 @: $(MAKE); $(unstage)
28736 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28737 r=`${PWD_COMMAND}`; export r; \
28738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28739 $(HOST_EXPORTS) \
b813574b 28740 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28742 done; \
22121df0 28743 echo "Doing html in gdb"; \
a90ef4bf 28744 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28747 "RANLIB=$${RANLIB}" \
0c24b341 28748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28749 html) \
2a4cbe27
NN
28750 || exit 1
28751
a90ef4bf 28752@endif gdb
2a4cbe27 28753
a90ef4bf
JM
28754.PHONY: maybe-TAGS-gdb TAGS-gdb
28755maybe-TAGS-gdb:
28756@if gdb
28757maybe-TAGS-gdb: TAGS-gdb
56a8fe78 28758
a90ef4bf
JM
28759TAGS-gdb: \
28760 configure-gdb
28761 @: $(MAKE); $(unstage)
28762 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
28763 r=`${PWD_COMMAND}`; export r; \
28764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28765 $(HOST_EXPORTS) \
28766 for flag in $(EXTRA_HOST_FLAGS) ; do \
28767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28768 done; \
22121df0 28769 echo "Doing TAGS in gdb"; \
a90ef4bf 28770 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
28771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28773 "RANLIB=$${RANLIB}" \
0c24b341 28774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28775 TAGS) \
56a8fe78
DD
28776 || exit 1
28777
a90ef4bf 28778@endif gdb
56a8fe78 28779
a90ef4bf
JM
28780.PHONY: maybe-install-info-gdb install-info-gdb
28781maybe-install-info-gdb:
28782@if gdb
28783maybe-install-info-gdb: install-info-gdb
6d389afc 28784
a90ef4bf
JM
28785install-info-gdb: \
28786 configure-gdb \
28787 info-gdb
28788 @: $(MAKE); $(unstage)
28789 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
28790 r=`${PWD_COMMAND}`; export r; \
28791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
28792 $(HOST_EXPORTS) \
28793 for flag in $(EXTRA_HOST_FLAGS) ; do \
28794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28795 done; \
22121df0 28796 echo "Doing install-info in gdb"; \
a90ef4bf 28797 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
28798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28800 "RANLIB=$${RANLIB}" \
0c24b341 28801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28802 install-info) \
6d389afc
MS
28803 || exit 1
28804
a90ef4bf 28805@endif gdb
6d389afc 28806
a90ef4bf
JM
28807.PHONY: maybe-install-pdf-gdb install-pdf-gdb
28808maybe-install-pdf-gdb:
28809@if gdb
28810maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 28811
a90ef4bf
JM
28812install-pdf-gdb: \
28813 configure-gdb \
28814 pdf-gdb
28815 @: $(MAKE); $(unstage)
28816 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28817 r=`${PWD_COMMAND}`; export r; \
28818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28819 $(HOST_EXPORTS) \
b813574b 28820 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28822 done; \
22121df0 28823 echo "Doing install-pdf in gdb"; \
a90ef4bf 28824 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28827 "RANLIB=$${RANLIB}" \
0c24b341 28828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28829 install-pdf) \
2a4cbe27
NN
28830 || exit 1
28831
a90ef4bf 28832@endif gdb
2a4cbe27 28833
a90ef4bf
JM
28834.PHONY: maybe-install-html-gdb install-html-gdb
28835maybe-install-html-gdb:
28836@if gdb
28837maybe-install-html-gdb: install-html-gdb
2a4cbe27 28838
a90ef4bf
JM
28839install-html-gdb: \
28840 configure-gdb \
28841 html-gdb
28842 @: $(MAKE); $(unstage)
28843 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28844 r=`${PWD_COMMAND}`; export r; \
28845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28846 $(HOST_EXPORTS) \
b813574b 28847 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28849 done; \
22121df0 28850 echo "Doing install-html in gdb"; \
a90ef4bf 28851 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28854 "RANLIB=$${RANLIB}" \
0c24b341 28855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28856 install-html) \
2a4cbe27
NN
28857 || exit 1
28858
a90ef4bf 28859@endif gdb
2a4cbe27 28860
a90ef4bf
JM
28861.PHONY: maybe-installcheck-gdb installcheck-gdb
28862maybe-installcheck-gdb:
28863@if gdb
28864maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 28865
a90ef4bf
JM
28866installcheck-gdb: \
28867 configure-gdb
28868 @: $(MAKE); $(unstage)
28869 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
28870 r=`${PWD_COMMAND}`; export r; \
28871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28872 $(HOST_EXPORTS) \
28873 for flag in $(EXTRA_HOST_FLAGS) ; do \
28874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28875 done; \
22121df0 28876 echo "Doing installcheck in gdb"; \
a90ef4bf 28877 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
28878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28880 "RANLIB=$${RANLIB}" \
0c24b341 28881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28882 installcheck) \
a3ca38d2
DD
28883 || exit 1
28884
a90ef4bf 28885@endif gdb
a3ca38d2 28886
a90ef4bf
JM
28887.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
28888maybe-mostlyclean-gdb:
28889@if gdb
28890maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 28891
a90ef4bf
JM
28892mostlyclean-gdb:
28893 @: $(MAKE); $(unstage)
28894 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
28895 r=`${PWD_COMMAND}`; export r; \
28896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28897 $(HOST_EXPORTS) \
28898 for flag in $(EXTRA_HOST_FLAGS) ; do \
28899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28900 done; \
22121df0 28901 echo "Doing mostlyclean in gdb"; \
a90ef4bf 28902 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
28903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28905 "RANLIB=$${RANLIB}" \
0c24b341 28906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28907 mostlyclean) \
108a6f8e
CD
28908 || exit 1
28909
a90ef4bf 28910@endif gdb
108a6f8e 28911
a90ef4bf
JM
28912.PHONY: maybe-clean-gdb clean-gdb
28913maybe-clean-gdb:
28914@if gdb
28915maybe-clean-gdb: clean-gdb
2a4cbe27 28916
a90ef4bf
JM
28917clean-gdb:
28918 @: $(MAKE); $(unstage)
28919 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28920 r=`${PWD_COMMAND}`; export r; \
28921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28922 $(HOST_EXPORTS) \
b813574b 28923 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28925 done; \
22121df0 28926 echo "Doing clean in gdb"; \
a90ef4bf 28927 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28930 "RANLIB=$${RANLIB}" \
0c24b341 28931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28932 clean) \
2a4cbe27
NN
28933 || exit 1
28934
a90ef4bf 28935@endif gdb
2a4cbe27 28936
a90ef4bf
JM
28937.PHONY: maybe-distclean-gdb distclean-gdb
28938maybe-distclean-gdb:
28939@if gdb
28940maybe-distclean-gdb: distclean-gdb
2a4cbe27 28941
a90ef4bf
JM
28942distclean-gdb:
28943 @: $(MAKE); $(unstage)
28944 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28945 r=`${PWD_COMMAND}`; export r; \
28946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28947 $(HOST_EXPORTS) \
b813574b 28948 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28950 done; \
22121df0 28951 echo "Doing distclean in gdb"; \
a90ef4bf 28952 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28955 "RANLIB=$${RANLIB}" \
0c24b341 28956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28957 distclean) \
2a4cbe27
NN
28958 || exit 1
28959
a90ef4bf 28960@endif gdb
2a4cbe27 28961
a90ef4bf
JM
28962.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
28963maybe-maintainer-clean-gdb:
28964@if gdb
28965maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 28966
a90ef4bf
JM
28967maintainer-clean-gdb:
28968 @: $(MAKE); $(unstage)
28969 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28970 r=`${PWD_COMMAND}`; export r; \
28971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28972 $(HOST_EXPORTS) \
b813574b 28973 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28975 done; \
22121df0 28976 echo "Doing maintainer-clean in gdb"; \
a90ef4bf 28977 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28980 "RANLIB=$${RANLIB}" \
0c24b341 28981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28982 maintainer-clean) \
2a4cbe27
NN
28983 || exit 1
28984
a90ef4bf 28985@endif gdb
2a4cbe27 28986
2a4cbe27 28987
a7254363 28988
a90ef4bf
JM
28989.PHONY: configure-expect maybe-configure-expect
28990maybe-configure-expect:
4f0ef2d8 28991@if gcc-bootstrap
a90ef4bf 28992configure-expect: stage_current
4f0ef2d8 28993@endif gcc-bootstrap
a90ef4bf
JM
28994@if expect
28995maybe-configure-expect: configure-expect
28996configure-expect:
28997 @: $(MAKE); $(unstage)
c52c6897
PB
28998 @r=`${PWD_COMMAND}`; export r; \
28999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29000 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
22121df0 29001 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect; \
1f53ca9a 29002 $(HOST_EXPORTS) \
a90ef4bf
JM
29003 echo Configuring in $(HOST_SUBDIR)/expect; \
29004 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
29005 case $(srcdir) in \
29006 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29007 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
29008 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29009 esac; \
1b6c0831
L
29010 module_srcdir=expect; \
29011 $(SHELL) \
29012 $$s/$$module_srcdir/configure \
29013 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29014 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29015 --target=${target_alias} \
be01d343 29016 || exit 1
a90ef4bf 29017@endif expect
be01d343
PB
29018
29019
29020
be01d343 29021
8520c408 29022
a90ef4bf
JM
29023.PHONY: all-expect maybe-all-expect
29024maybe-all-expect:
29025@if gcc-bootstrap
29026all-expect: stage_current
29027@endif gcc-bootstrap
29028@if expect
29029TARGET-expect=all
29030maybe-all-expect: all-expect
29031all-expect: configure-expect
29032 @: $(MAKE); $(unstage)
c52c6897
PB
29033 @r=`${PWD_COMMAND}`; export r; \
29034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29035 $(HOST_EXPORTS) \
29036 (cd $(HOST_SUBDIR)/expect && \
b3676d82 29037 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29038 $(TARGET-expect))
29039@endif expect
8520c408 29040
a90ef4bf
JM
29041
29042
29043
29044.PHONY: check-expect maybe-check-expect
29045maybe-check-expect:
29046@if expect
29047maybe-check-expect: check-expect
29048
29049check-expect:
29050 @: $(MAKE); $(unstage)
c52c6897
PB
29051 @r=`${PWD_COMMAND}`; export r; \
29052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29053 $(HOST_EXPORTS) \
a90ef4bf
JM
29054 (cd $(HOST_SUBDIR)/expect && \
29055 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 29056
a90ef4bf
JM
29057@endif expect
29058
29059.PHONY: install-expect maybe-install-expect
29060maybe-install-expect:
29061@if expect
29062maybe-install-expect: install-expect
29063
29064install-expect: installdirs
29065 @: $(MAKE); $(unstage)
c52c6897
PB
29066 @r=`${PWD_COMMAND}`; export r; \
29067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 29068 $(HOST_EXPORTS) \
a90ef4bf
JM
29069 (cd $(HOST_SUBDIR)/expect && \
29070 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 29071
a90ef4bf
JM
29072@endif expect
29073
29074.PHONY: install-strip-expect maybe-install-strip-expect
29075maybe-install-strip-expect:
29076@if expect
29077maybe-install-strip-expect: install-strip-expect
29078
29079install-strip-expect: installdirs
29080 @: $(MAKE); $(unstage)
c52c6897
PB
29081 @r=`${PWD_COMMAND}`; export r; \
29082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 29083 $(HOST_EXPORTS) \
a90ef4bf
JM
29084 (cd $(HOST_SUBDIR)/expect && \
29085 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 29086
a90ef4bf 29087@endif expect
be01d343 29088
a90ef4bf 29089# Other targets (info, dvi, pdf, etc.)
be01d343 29090
a90ef4bf
JM
29091.PHONY: maybe-info-expect info-expect
29092maybe-info-expect:
29093@if expect
29094maybe-info-expect: info-expect
be01d343 29095
a90ef4bf
JM
29096info-expect: \
29097 configure-expect
29098 @: $(MAKE); $(unstage)
29099 @[ -f ./expect/Makefile ] || exit 0; \
29100 r=`${PWD_COMMAND}`; export r; \
be01d343 29101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29102 $(HOST_EXPORTS) \
29103 for flag in $(EXTRA_HOST_FLAGS) ; do \
29104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29105 done; \
22121df0 29106 echo "Doing info in expect"; \
a90ef4bf
JM
29107 (cd $(HOST_SUBDIR)/expect && \
29108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29110 "RANLIB=$${RANLIB}" \
29111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29112 info) \
29113 || exit 1
be01d343 29114
a90ef4bf 29115@endif expect
be01d343 29116
a90ef4bf
JM
29117.PHONY: maybe-dvi-expect dvi-expect
29118maybe-dvi-expect:
29119@if expect
29120maybe-dvi-expect: dvi-expect
be01d343 29121
a90ef4bf
JM
29122dvi-expect: \
29123 configure-expect
29124 @: $(MAKE); $(unstage)
29125 @[ -f ./expect/Makefile ] || exit 0; \
29126 r=`${PWD_COMMAND}`; export r; \
be01d343 29127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29128 $(HOST_EXPORTS) \
29129 for flag in $(EXTRA_HOST_FLAGS) ; do \
29130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29131 done; \
22121df0 29132 echo "Doing dvi in expect"; \
a90ef4bf
JM
29133 (cd $(HOST_SUBDIR)/expect && \
29134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29136 "RANLIB=$${RANLIB}" \
29137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29138 dvi) \
29139 || exit 1
be01d343 29140
a90ef4bf 29141@endif expect
be01d343 29142
a90ef4bf
JM
29143.PHONY: maybe-pdf-expect pdf-expect
29144maybe-pdf-expect:
29145@if expect
29146maybe-pdf-expect: pdf-expect
be01d343 29147
a90ef4bf
JM
29148pdf-expect: \
29149 configure-expect
29150 @: $(MAKE); $(unstage)
29151 @[ -f ./expect/Makefile ] || exit 0; \
29152 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
29153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29154 $(HOST_EXPORTS) \
a90ef4bf
JM
29155 for flag in $(EXTRA_HOST_FLAGS) ; do \
29156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29157 done; \
22121df0 29158 echo "Doing pdf in expect"; \
a90ef4bf
JM
29159 (cd $(HOST_SUBDIR)/expect && \
29160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29162 "RANLIB=$${RANLIB}" \
29163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29164 pdf) \
29165 || exit 1
be01d343 29166
a90ef4bf 29167@endif expect
be01d343 29168
a90ef4bf
JM
29169.PHONY: maybe-html-expect html-expect
29170maybe-html-expect:
29171@if expect
29172maybe-html-expect: html-expect
be01d343 29173
a90ef4bf
JM
29174html-expect: \
29175 configure-expect
29176 @: $(MAKE); $(unstage)
29177 @[ -f ./expect/Makefile ] || exit 0; \
29178 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
29179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29180 $(HOST_EXPORTS) \
a90ef4bf
JM
29181 for flag in $(EXTRA_HOST_FLAGS) ; do \
29182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29183 done; \
22121df0 29184 echo "Doing html in expect"; \
a90ef4bf
JM
29185 (cd $(HOST_SUBDIR)/expect && \
29186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29188 "RANLIB=$${RANLIB}" \
29189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29190 html) \
29191 || exit 1
be01d343 29192
a90ef4bf 29193@endif expect
be01d343 29194
a90ef4bf
JM
29195.PHONY: maybe-TAGS-expect TAGS-expect
29196maybe-TAGS-expect:
29197@if expect
29198maybe-TAGS-expect: TAGS-expect
9b980aa1 29199
a90ef4bf
JM
29200TAGS-expect: \
29201 configure-expect
9b980aa1 29202 @: $(MAKE); $(unstage)
a90ef4bf 29203 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29204 r=`${PWD_COMMAND}`; export r; \
29205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29206 $(HOST_EXPORTS) \
29207 for flag in $(EXTRA_HOST_FLAGS) ; do \
29208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29209 done; \
22121df0 29210 echo "Doing TAGS in expect"; \
a90ef4bf 29211 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29214 "RANLIB=$${RANLIB}" \
0c24b341 29215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29216 TAGS) \
29217 || exit 1
29218
a90ef4bf 29219@endif expect
be01d343 29220
a90ef4bf
JM
29221.PHONY: maybe-install-info-expect install-info-expect
29222maybe-install-info-expect:
29223@if expect
29224maybe-install-info-expect: install-info-expect
be01d343 29225
a90ef4bf
JM
29226install-info-expect: \
29227 configure-expect \
29228 info-expect
29229 @: $(MAKE); $(unstage)
29230 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29231 r=`${PWD_COMMAND}`; export r; \
29232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29233 $(HOST_EXPORTS) \
29234 for flag in $(EXTRA_HOST_FLAGS) ; do \
29235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29236 done; \
22121df0 29237 echo "Doing install-info in expect"; \
a90ef4bf 29238 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29241 "RANLIB=$${RANLIB}" \
0c24b341 29242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29243 install-info) \
29244 || exit 1
29245
a90ef4bf 29246@endif expect
be01d343 29247
a90ef4bf
JM
29248.PHONY: maybe-install-pdf-expect install-pdf-expect
29249maybe-install-pdf-expect:
29250@if expect
29251maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 29252
a90ef4bf
JM
29253install-pdf-expect: \
29254 configure-expect \
29255 pdf-expect
29256 @: $(MAKE); $(unstage)
29257 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
29258 r=`${PWD_COMMAND}`; export r; \
29259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29260 $(HOST_EXPORTS) \
29261 for flag in $(EXTRA_HOST_FLAGS) ; do \
29262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29263 done; \
22121df0 29264 echo "Doing install-pdf in expect"; \
a90ef4bf 29265 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
29266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29268 "RANLIB=$${RANLIB}" \
0c24b341 29269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29270 install-pdf) \
29271 || exit 1
29272
a90ef4bf 29273@endif expect
a3ca38d2 29274
a90ef4bf
JM
29275.PHONY: maybe-install-html-expect install-html-expect
29276maybe-install-html-expect:
29277@if expect
29278maybe-install-html-expect: install-html-expect
108a6f8e 29279
a90ef4bf
JM
29280install-html-expect: \
29281 configure-expect \
29282 html-expect
29283 @: $(MAKE); $(unstage)
29284 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
29285 r=`${PWD_COMMAND}`; export r; \
29286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29287 $(HOST_EXPORTS) \
29288 for flag in $(EXTRA_HOST_FLAGS) ; do \
29289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29290 done; \
22121df0 29291 echo "Doing install-html in expect"; \
a90ef4bf 29292 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
29293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29295 "RANLIB=$${RANLIB}" \
0c24b341 29296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29297 install-html) \
29298 || exit 1
29299
a90ef4bf 29300@endif expect
108a6f8e 29301
a90ef4bf
JM
29302.PHONY: maybe-installcheck-expect installcheck-expect
29303maybe-installcheck-expect:
29304@if expect
29305maybe-installcheck-expect: installcheck-expect
be01d343 29306
a90ef4bf
JM
29307installcheck-expect: \
29308 configure-expect
29309 @: $(MAKE); $(unstage)
29310 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29311 r=`${PWD_COMMAND}`; export r; \
29312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29313 $(HOST_EXPORTS) \
29314 for flag in $(EXTRA_HOST_FLAGS) ; do \
29315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29316 done; \
22121df0 29317 echo "Doing installcheck in expect"; \
a90ef4bf 29318 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29321 "RANLIB=$${RANLIB}" \
0c24b341 29322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29323 installcheck) \
29324 || exit 1
29325
a90ef4bf 29326@endif expect
be01d343 29327
a90ef4bf
JM
29328.PHONY: maybe-mostlyclean-expect mostlyclean-expect
29329maybe-mostlyclean-expect:
29330@if expect
29331maybe-mostlyclean-expect: mostlyclean-expect
be01d343 29332
a90ef4bf
JM
29333mostlyclean-expect:
29334 @: $(MAKE); $(unstage)
29335 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29336 r=`${PWD_COMMAND}`; export r; \
29337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29338 $(HOST_EXPORTS) \
29339 for flag in $(EXTRA_HOST_FLAGS) ; do \
29340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29341 done; \
22121df0 29342 echo "Doing mostlyclean in expect"; \
a90ef4bf 29343 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29346 "RANLIB=$${RANLIB}" \
0c24b341 29347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29348 mostlyclean) \
29349 || exit 1
29350
a90ef4bf 29351@endif expect
be01d343 29352
a90ef4bf
JM
29353.PHONY: maybe-clean-expect clean-expect
29354maybe-clean-expect:
29355@if expect
29356maybe-clean-expect: clean-expect
be01d343 29357
a90ef4bf
JM
29358clean-expect:
29359 @: $(MAKE); $(unstage)
29360 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29361 r=`${PWD_COMMAND}`; export r; \
29362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29363 $(HOST_EXPORTS) \
29364 for flag in $(EXTRA_HOST_FLAGS) ; do \
29365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29366 done; \
22121df0 29367 echo "Doing clean in expect"; \
a90ef4bf 29368 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29371 "RANLIB=$${RANLIB}" \
0c24b341 29372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29373 clean) \
29374 || exit 1
29375
a90ef4bf 29376@endif expect
be01d343 29377
a90ef4bf
JM
29378.PHONY: maybe-distclean-expect distclean-expect
29379maybe-distclean-expect:
29380@if expect
29381maybe-distclean-expect: distclean-expect
be01d343 29382
a90ef4bf
JM
29383distclean-expect:
29384 @: $(MAKE); $(unstage)
29385 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29386 r=`${PWD_COMMAND}`; export r; \
29387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29388 $(HOST_EXPORTS) \
29389 for flag in $(EXTRA_HOST_FLAGS) ; do \
29390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29391 done; \
22121df0 29392 echo "Doing distclean in expect"; \
a90ef4bf 29393 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29396 "RANLIB=$${RANLIB}" \
0c24b341 29397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29398 distclean) \
29399 || exit 1
29400
a90ef4bf 29401@endif expect
be01d343 29402
a90ef4bf
JM
29403.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
29404maybe-maintainer-clean-expect:
29405@if expect
29406maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 29407
a90ef4bf
JM
29408maintainer-clean-expect:
29409 @: $(MAKE); $(unstage)
29410 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29411 r=`${PWD_COMMAND}`; export r; \
29412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29413 $(HOST_EXPORTS) \
29414 for flag in $(EXTRA_HOST_FLAGS) ; do \
29415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29416 done; \
22121df0 29417 echo "Doing maintainer-clean in expect"; \
a90ef4bf 29418 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29421 "RANLIB=$${RANLIB}" \
0c24b341 29422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29423 maintainer-clean) \
29424 || exit 1
29425
a90ef4bf 29426@endif expect
be01d343
PB
29427
29428
29429
a90ef4bf
JM
29430.PHONY: configure-guile maybe-configure-guile
29431maybe-configure-guile:
4f0ef2d8 29432@if gcc-bootstrap
a90ef4bf 29433configure-guile: stage_current
4f0ef2d8 29434@endif gcc-bootstrap
a90ef4bf
JM
29435@if guile
29436maybe-configure-guile: configure-guile
29437configure-guile:
0aed8855 29438 @: $(MAKE); $(unstage)
c52c6897 29439 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 29440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29441 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
22121df0 29442 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile; \
1f53ca9a 29443 $(HOST_EXPORTS) \
a90ef4bf
JM
29444 echo Configuring in $(HOST_SUBDIR)/guile; \
29445 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 29446 case $(srcdir) in \
b00612cc 29447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29448 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 29449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 29450 esac; \
1b6c0831
L
29451 module_srcdir=guile; \
29452 $(SHELL) \
29453 $$s/$$module_srcdir/configure \
29454 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29455 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29456 --target=${target_alias} \
4b1cb4fe 29457 || exit 1
a90ef4bf 29458@endif guile
4b1cb4fe 29459
a7254363
PB
29460
29461
d545f33b
PB
29462
29463
a90ef4bf
JM
29464.PHONY: all-guile maybe-all-guile
29465maybe-all-guile:
4f0ef2d8 29466@if gcc-bootstrap
a90ef4bf 29467all-guile: stage_current
4f0ef2d8 29468@endif gcc-bootstrap
a90ef4bf
JM
29469@if guile
29470TARGET-guile=all
29471maybe-all-guile: all-guile
29472all-guile: configure-guile
29473 @: $(MAKE); $(unstage)
4b1cb4fe
DD
29474 @r=`${PWD_COMMAND}`; export r; \
29475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29476 $(HOST_EXPORTS) \
a90ef4bf 29477 (cd $(HOST_SUBDIR)/guile && \
b3676d82 29478 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29479 $(TARGET-guile))
29480@endif guile
4b1cb4fe 29481
a7254363 29482
d545f33b
PB
29483
29484
a90ef4bf
JM
29485.PHONY: check-guile maybe-check-guile
29486maybe-check-guile:
29487@if guile
29488maybe-check-guile: check-guile
4b1cb4fe 29489
a90ef4bf 29490check-guile:
0aed8855 29491 @: $(MAKE); $(unstage)
4b1cb4fe
DD
29492 @r=`${PWD_COMMAND}`; export r; \
29493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29494 $(HOST_EXPORTS) \
a90ef4bf 29495 (cd $(HOST_SUBDIR)/guile && \
b00612cc 29496 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 29497
a90ef4bf 29498@endif guile
4b1cb4fe 29499
a90ef4bf
JM
29500.PHONY: install-guile maybe-install-guile
29501maybe-install-guile:
29502@if guile
29503maybe-install-guile: install-guile
4b1cb4fe 29504
a90ef4bf 29505install-guile: installdirs
0aed8855 29506 @: $(MAKE); $(unstage)
b813574b
PB
29507 @r=`${PWD_COMMAND}`; export r; \
29508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 29509 $(HOST_EXPORTS) \
a90ef4bf 29510 (cd $(HOST_SUBDIR)/guile && \
2da12f12 29511 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 29512
a90ef4bf 29513@endif guile
4b1cb4fe 29514
a90ef4bf
JM
29515.PHONY: install-strip-guile maybe-install-strip-guile
29516maybe-install-strip-guile:
29517@if guile
29518maybe-install-strip-guile: install-strip-guile
9b980aa1 29519
a90ef4bf 29520install-strip-guile: installdirs
9b980aa1
RW
29521 @: $(MAKE); $(unstage)
29522 @r=`${PWD_COMMAND}`; export r; \
29523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29524 $(HOST_EXPORTS) \
a90ef4bf 29525 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
29526 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29527
a90ef4bf 29528@endif guile
9b980aa1 29529
56a8fe78 29530# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 29531
a90ef4bf
JM
29532.PHONY: maybe-info-guile info-guile
29533maybe-info-guile:
29534@if guile
29535maybe-info-guile: info-guile
4b1cb4fe 29536
a90ef4bf
JM
29537info-guile: \
29538 configure-guile
0aed8855 29539 @: $(MAKE); $(unstage)
a90ef4bf 29540 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29541 r=`${PWD_COMMAND}`; export r; \
29542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29543 $(HOST_EXPORTS) \
b813574b 29544 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29546 done; \
22121df0 29547 echo "Doing info in guile"; \
a90ef4bf 29548 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29551 "RANLIB=$${RANLIB}" \
0c24b341 29552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29553 info) \
4b1cb4fe
DD
29554 || exit 1
29555
a90ef4bf 29556@endif guile
4b1cb4fe 29557
a90ef4bf
JM
29558.PHONY: maybe-dvi-guile dvi-guile
29559maybe-dvi-guile:
29560@if guile
29561maybe-dvi-guile: dvi-guile
4b1cb4fe 29562
a90ef4bf
JM
29563dvi-guile: \
29564 configure-guile
0aed8855 29565 @: $(MAKE); $(unstage)
a90ef4bf 29566 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29567 r=`${PWD_COMMAND}`; export r; \
29568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29569 $(HOST_EXPORTS) \
b813574b 29570 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29572 done; \
22121df0 29573 echo "Doing dvi in guile"; \
a90ef4bf 29574 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29577 "RANLIB=$${RANLIB}" \
0c24b341 29578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29579 dvi) \
4b1cb4fe
DD
29580 || exit 1
29581
a90ef4bf 29582@endif guile
4b1cb4fe 29583
a90ef4bf
JM
29584.PHONY: maybe-pdf-guile pdf-guile
29585maybe-pdf-guile:
29586@if guile
29587maybe-pdf-guile: pdf-guile
56a8fe78 29588
a90ef4bf
JM
29589pdf-guile: \
29590 configure-guile
56a8fe78 29591 @: $(MAKE); $(unstage)
a90ef4bf 29592 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
29593 r=`${PWD_COMMAND}`; export r; \
29594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29595 $(HOST_EXPORTS) \
29596 for flag in $(EXTRA_HOST_FLAGS) ; do \
29597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29598 done; \
22121df0 29599 echo "Doing pdf in guile"; \
a90ef4bf 29600 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
29601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29603 "RANLIB=$${RANLIB}" \
0c24b341 29604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29605 pdf) \
29606 || exit 1
29607
a90ef4bf 29608@endif guile
56a8fe78 29609
a90ef4bf
JM
29610.PHONY: maybe-html-guile html-guile
29611maybe-html-guile:
29612@if guile
29613maybe-html-guile: html-guile
6d389afc 29614
a90ef4bf
JM
29615html-guile: \
29616 configure-guile
0aed8855 29617 @: $(MAKE); $(unstage)
a90ef4bf 29618 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
29619 r=`${PWD_COMMAND}`; export r; \
29620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29621 $(HOST_EXPORTS) \
29622 for flag in $(EXTRA_HOST_FLAGS) ; do \
29623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29624 done; \
22121df0 29625 echo "Doing html in guile"; \
a90ef4bf 29626 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
29627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29629 "RANLIB=$${RANLIB}" \
0c24b341 29630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29631 html) \
29632 || exit 1
29633
a90ef4bf 29634@endif guile
6d389afc 29635
a90ef4bf
JM
29636.PHONY: maybe-TAGS-guile TAGS-guile
29637maybe-TAGS-guile:
29638@if guile
29639maybe-TAGS-guile: TAGS-guile
4b1cb4fe 29640
a90ef4bf
JM
29641TAGS-guile: \
29642 configure-guile
0aed8855 29643 @: $(MAKE); $(unstage)
a90ef4bf 29644 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29645 r=`${PWD_COMMAND}`; export r; \
29646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29647 $(HOST_EXPORTS) \
b813574b 29648 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29650 done; \
22121df0 29651 echo "Doing TAGS in guile"; \
a90ef4bf 29652 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29655 "RANLIB=$${RANLIB}" \
0c24b341 29656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29657 TAGS) \
4b1cb4fe
DD
29658 || exit 1
29659
a90ef4bf 29660@endif guile
4b1cb4fe 29661
a90ef4bf
JM
29662.PHONY: maybe-install-info-guile install-info-guile
29663maybe-install-info-guile:
29664@if guile
29665maybe-install-info-guile: install-info-guile
4b1cb4fe 29666
a90ef4bf
JM
29667install-info-guile: \
29668 configure-guile \
29669 info-guile
0aed8855 29670 @: $(MAKE); $(unstage)
a90ef4bf 29671 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29672 r=`${PWD_COMMAND}`; export r; \
29673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29674 $(HOST_EXPORTS) \
b813574b 29675 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29677 done; \
22121df0 29678 echo "Doing install-info in guile"; \
a90ef4bf 29679 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29682 "RANLIB=$${RANLIB}" \
0c24b341 29683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29684 install-info) \
4b1cb4fe
DD
29685 || exit 1
29686
a90ef4bf 29687@endif guile
4b1cb4fe 29688
a90ef4bf
JM
29689.PHONY: maybe-install-pdf-guile install-pdf-guile
29690maybe-install-pdf-guile:
29691@if guile
29692maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 29693
a90ef4bf
JM
29694install-pdf-guile: \
29695 configure-guile \
29696 pdf-guile
a3ca38d2 29697 @: $(MAKE); $(unstage)
a90ef4bf 29698 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
29699 r=`${PWD_COMMAND}`; export r; \
29700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29701 $(HOST_EXPORTS) \
29702 for flag in $(EXTRA_HOST_FLAGS) ; do \
29703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29704 done; \
22121df0 29705 echo "Doing install-pdf in guile"; \
a90ef4bf 29706 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
29707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29709 "RANLIB=$${RANLIB}" \
0c24b341 29710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29711 install-pdf) \
29712 || exit 1
29713
a90ef4bf 29714@endif guile
a3ca38d2 29715
a90ef4bf
JM
29716.PHONY: maybe-install-html-guile install-html-guile
29717maybe-install-html-guile:
29718@if guile
29719maybe-install-html-guile: install-html-guile
108a6f8e 29720
a90ef4bf
JM
29721install-html-guile: \
29722 configure-guile \
29723 html-guile
108a6f8e 29724 @: $(MAKE); $(unstage)
a90ef4bf 29725 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
29726 r=`${PWD_COMMAND}`; export r; \
29727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29728 $(HOST_EXPORTS) \
29729 for flag in $(EXTRA_HOST_FLAGS) ; do \
29730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29731 done; \
22121df0 29732 echo "Doing install-html in guile"; \
a90ef4bf 29733 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
29734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29736 "RANLIB=$${RANLIB}" \
0c24b341 29737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29738 install-html) \
29739 || exit 1
29740
a90ef4bf 29741@endif guile
108a6f8e 29742
a90ef4bf
JM
29743.PHONY: maybe-installcheck-guile installcheck-guile
29744maybe-installcheck-guile:
29745@if guile
29746maybe-installcheck-guile: installcheck-guile
4b1cb4fe 29747
a90ef4bf
JM
29748installcheck-guile: \
29749 configure-guile
0aed8855 29750 @: $(MAKE); $(unstage)
a90ef4bf 29751 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29752 r=`${PWD_COMMAND}`; export r; \
29753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29754 $(HOST_EXPORTS) \
b813574b 29755 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29757 done; \
22121df0 29758 echo "Doing installcheck in guile"; \
a90ef4bf 29759 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29762 "RANLIB=$${RANLIB}" \
0c24b341 29763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29764 installcheck) \
4b1cb4fe
DD
29765 || exit 1
29766
a90ef4bf 29767@endif guile
4b1cb4fe 29768
a90ef4bf
JM
29769.PHONY: maybe-mostlyclean-guile mostlyclean-guile
29770maybe-mostlyclean-guile:
29771@if guile
29772maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 29773
a90ef4bf 29774mostlyclean-guile:
0aed8855 29775 @: $(MAKE); $(unstage)
a90ef4bf 29776 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29777 r=`${PWD_COMMAND}`; export r; \
29778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29779 $(HOST_EXPORTS) \
b813574b 29780 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29782 done; \
22121df0 29783 echo "Doing mostlyclean in guile"; \
a90ef4bf 29784 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29787 "RANLIB=$${RANLIB}" \
0c24b341 29788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29789 mostlyclean) \
4b1cb4fe
DD
29790 || exit 1
29791
a90ef4bf 29792@endif guile
4b1cb4fe 29793
a90ef4bf
JM
29794.PHONY: maybe-clean-guile clean-guile
29795maybe-clean-guile:
29796@if guile
29797maybe-clean-guile: clean-guile
4b1cb4fe 29798
a90ef4bf 29799clean-guile:
0aed8855 29800 @: $(MAKE); $(unstage)
a90ef4bf 29801 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29802 r=`${PWD_COMMAND}`; export r; \
29803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29804 $(HOST_EXPORTS) \
b813574b 29805 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29807 done; \
22121df0 29808 echo "Doing clean in guile"; \
a90ef4bf 29809 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29812 "RANLIB=$${RANLIB}" \
0c24b341 29813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29814 clean) \
4b1cb4fe
DD
29815 || exit 1
29816
a90ef4bf 29817@endif guile
4b1cb4fe 29818
a90ef4bf
JM
29819.PHONY: maybe-distclean-guile distclean-guile
29820maybe-distclean-guile:
29821@if guile
29822maybe-distclean-guile: distclean-guile
4b1cb4fe 29823
a90ef4bf 29824distclean-guile:
0aed8855 29825 @: $(MAKE); $(unstage)
a90ef4bf 29826 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29827 r=`${PWD_COMMAND}`; export r; \
29828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29829 $(HOST_EXPORTS) \
b813574b 29830 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29832 done; \
22121df0 29833 echo "Doing distclean in guile"; \
a90ef4bf 29834 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29837 "RANLIB=$${RANLIB}" \
0c24b341 29838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29839 distclean) \
4b1cb4fe
DD
29840 || exit 1
29841
a90ef4bf 29842@endif guile
4b1cb4fe 29843
a90ef4bf
JM
29844.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
29845maybe-maintainer-clean-guile:
29846@if guile
29847maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 29848
a90ef4bf 29849maintainer-clean-guile:
0aed8855 29850 @: $(MAKE); $(unstage)
a90ef4bf 29851 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29852 r=`${PWD_COMMAND}`; export r; \
29853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29854 $(HOST_EXPORTS) \
b813574b 29855 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29857 done; \
22121df0 29858 echo "Doing maintainer-clean in guile"; \
a90ef4bf 29859 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29862 "RANLIB=$${RANLIB}" \
0c24b341 29863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29864 maintainer-clean) \
4b1cb4fe
DD
29865 || exit 1
29866
a90ef4bf 29867@endif guile
4b1cb4fe
DD
29868
29869
a7254363 29870
a90ef4bf
JM
29871.PHONY: configure-tk maybe-configure-tk
29872maybe-configure-tk:
4f0ef2d8 29873@if gcc-bootstrap
a90ef4bf 29874configure-tk: stage_current
4f0ef2d8 29875@endif gcc-bootstrap
a90ef4bf
JM
29876@if tk
29877maybe-configure-tk: configure-tk
29878configure-tk:
29879 @: $(MAKE); $(unstage)
c52c6897
PB
29880 @r=`${PWD_COMMAND}`; export r; \
29881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29882 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
22121df0 29883 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk; \
1f53ca9a 29884 $(HOST_EXPORTS) \
a90ef4bf
JM
29885 echo Configuring in $(HOST_SUBDIR)/tk; \
29886 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 29887 case $(srcdir) in \
b00612cc 29888 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29889 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 29890 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29891 esac; \
1b6c0831
L
29892 module_srcdir=tk; \
29893 $(SHELL) \
29894 $$s/$$module_srcdir/configure \
29895 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29896 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29897 --target=${target_alias} \
2a4cbe27 29898 || exit 1
a90ef4bf 29899@endif tk
2a4cbe27 29900
a7254363
PB
29901
29902
a90ef4bf
JM
29903
29904
29905.PHONY: all-tk maybe-all-tk
29906maybe-all-tk:
29907@if gcc-bootstrap
29908all-tk: stage_current
29909@endif gcc-bootstrap
29910@if tk
29911TARGET-tk=all
29912maybe-all-tk: all-tk
29913all-tk: configure-tk
29914 @: $(MAKE); $(unstage)
c52c6897
PB
29915 @r=`${PWD_COMMAND}`; export r; \
29916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29917 $(HOST_EXPORTS) \
29918 (cd $(HOST_SUBDIR)/tk && \
b3676d82 29919 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29920 $(TARGET-tk))
29921@endif tk
d545f33b 29922
a90ef4bf
JM
29923
29924
29925
29926.PHONY: check-tk maybe-check-tk
29927maybe-check-tk:
29928@if tk
29929maybe-check-tk: check-tk
29930
29931check-tk:
29932 @: $(MAKE); $(unstage)
c52c6897
PB
29933 @r=`${PWD_COMMAND}`; export r; \
29934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29935 $(HOST_EXPORTS) \
a90ef4bf
JM
29936 (cd $(HOST_SUBDIR)/tk && \
29937 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 29938
a90ef4bf
JM
29939@endif tk
29940
29941.PHONY: install-tk maybe-install-tk
29942maybe-install-tk:
29943@if tk
29944maybe-install-tk: install-tk
29945
29946install-tk: installdirs
29947 @: $(MAKE); $(unstage)
c52c6897
PB
29948 @r=`${PWD_COMMAND}`; export r; \
29949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29950 $(HOST_EXPORTS) \
a90ef4bf
JM
29951 (cd $(HOST_SUBDIR)/tk && \
29952 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 29953
a90ef4bf
JM
29954@endif tk
29955
29956.PHONY: install-strip-tk maybe-install-strip-tk
29957maybe-install-strip-tk:
29958@if tk
29959maybe-install-strip-tk: install-strip-tk
29960
29961install-strip-tk: installdirs
29962 @: $(MAKE); $(unstage)
c52c6897
PB
29963 @r=`${PWD_COMMAND}`; export r; \
29964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29965 $(HOST_EXPORTS) \
a90ef4bf
JM
29966 (cd $(HOST_SUBDIR)/tk && \
29967 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 29968
a90ef4bf 29969@endif tk
9b980aa1 29970
56a8fe78 29971# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29972
a90ef4bf
JM
29973.PHONY: maybe-info-tk info-tk
29974maybe-info-tk:
29975@if tk
29976maybe-info-tk: info-tk
4fa63067 29977
a90ef4bf
JM
29978info-tk: \
29979 configure-tk
29980 @: $(MAKE); $(unstage)
29981 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29982 r=`${PWD_COMMAND}`; export r; \
29983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29984 $(HOST_EXPORTS) \
b813574b 29985 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29987 done; \
22121df0 29988 echo "Doing info in tk"; \
a90ef4bf 29989 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
29990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29992 "RANLIB=$${RANLIB}" \
0c24b341 29993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29994 info) \
29995 || exit 1
29996
a90ef4bf 29997@endif tk
6d389afc 29998
a90ef4bf
JM
29999.PHONY: maybe-dvi-tk dvi-tk
30000maybe-dvi-tk:
30001@if tk
30002maybe-dvi-tk: dvi-tk
6d389afc 30003
a90ef4bf
JM
30004dvi-tk: \
30005 configure-tk
30006 @: $(MAKE); $(unstage)
30007 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
30008 r=`${PWD_COMMAND}`; export r; \
30009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30010 $(HOST_EXPORTS) \
30011 for flag in $(EXTRA_HOST_FLAGS) ; do \
30012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30013 done; \
22121df0 30014 echo "Doing dvi in tk"; \
a90ef4bf 30015 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30018 "RANLIB=$${RANLIB}" \
0c24b341 30019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 30020 dvi) \
2a4cbe27
NN
30021 || exit 1
30022
a90ef4bf 30023@endif tk
2a4cbe27 30024
a90ef4bf
JM
30025.PHONY: maybe-pdf-tk pdf-tk
30026maybe-pdf-tk:
30027@if tk
30028maybe-pdf-tk: pdf-tk
56a8fe78 30029
a90ef4bf
JM
30030pdf-tk: \
30031 configure-tk
30032 @: $(MAKE); $(unstage)
30033 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
30034 r=`${PWD_COMMAND}`; export r; \
30035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30036 $(HOST_EXPORTS) \
30037 for flag in $(EXTRA_HOST_FLAGS) ; do \
30038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30039 done; \
22121df0 30040 echo "Doing pdf in tk"; \
a90ef4bf 30041 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
30042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30044 "RANLIB=$${RANLIB}" \
0c24b341 30045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30046 pdf) \
30047 || exit 1
30048
a90ef4bf 30049@endif tk
56a8fe78 30050
a90ef4bf
JM
30051.PHONY: maybe-html-tk html-tk
30052maybe-html-tk:
30053@if tk
30054maybe-html-tk: html-tk
2a4cbe27 30055
a90ef4bf
JM
30056html-tk: \
30057 configure-tk
30058 @: $(MAKE); $(unstage)
30059 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30060 r=`${PWD_COMMAND}`; export r; \
30061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30062 $(HOST_EXPORTS) \
b813574b 30063 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30065 done; \
22121df0 30066 echo "Doing html in tk"; \
a90ef4bf 30067 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30070 "RANLIB=$${RANLIB}" \
0c24b341 30071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 30072 html) \
2a4cbe27
NN
30073 || exit 1
30074
a90ef4bf 30075@endif tk
2a4cbe27 30076
a90ef4bf
JM
30077.PHONY: maybe-TAGS-tk TAGS-tk
30078maybe-TAGS-tk:
30079@if tk
30080maybe-TAGS-tk: TAGS-tk
2a4cbe27 30081
a90ef4bf
JM
30082TAGS-tk: \
30083 configure-tk
30084 @: $(MAKE); $(unstage)
30085 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30086 r=`${PWD_COMMAND}`; export r; \
30087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30088 $(HOST_EXPORTS) \
b813574b 30089 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30091 done; \
22121df0 30092 echo "Doing TAGS in tk"; \
a90ef4bf 30093 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30096 "RANLIB=$${RANLIB}" \
0c24b341 30097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30098 TAGS) \
2a4cbe27
NN
30099 || exit 1
30100
a90ef4bf 30101@endif tk
2a4cbe27 30102
a90ef4bf
JM
30103.PHONY: maybe-install-info-tk install-info-tk
30104maybe-install-info-tk:
30105@if tk
30106maybe-install-info-tk: install-info-tk
2a4cbe27 30107
a90ef4bf
JM
30108install-info-tk: \
30109 configure-tk \
30110 info-tk
30111 @: $(MAKE); $(unstage)
30112 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30113 r=`${PWD_COMMAND}`; export r; \
30114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30115 $(HOST_EXPORTS) \
b813574b 30116 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30118 done; \
22121df0 30119 echo "Doing install-info in tk"; \
a90ef4bf 30120 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30123 "RANLIB=$${RANLIB}" \
0c24b341 30124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30125 install-info) \
2a4cbe27
NN
30126 || exit 1
30127
a90ef4bf 30128@endif tk
2a4cbe27 30129
a90ef4bf
JM
30130.PHONY: maybe-install-pdf-tk install-pdf-tk
30131maybe-install-pdf-tk:
30132@if tk
30133maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 30134
a90ef4bf
JM
30135install-pdf-tk: \
30136 configure-tk \
30137 pdf-tk
30138 @: $(MAKE); $(unstage)
30139 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
30140 r=`${PWD_COMMAND}`; export r; \
30141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30142 $(HOST_EXPORTS) \
30143 for flag in $(EXTRA_HOST_FLAGS) ; do \
30144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30145 done; \
22121df0 30146 echo "Doing install-pdf in tk"; \
a90ef4bf 30147 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
30148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30150 "RANLIB=$${RANLIB}" \
0c24b341 30151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30152 install-pdf) \
30153 || exit 1
30154
a90ef4bf 30155@endif tk
a3ca38d2 30156
a90ef4bf
JM
30157.PHONY: maybe-install-html-tk install-html-tk
30158maybe-install-html-tk:
30159@if tk
30160maybe-install-html-tk: install-html-tk
108a6f8e 30161
a90ef4bf
JM
30162install-html-tk: \
30163 configure-tk \
30164 html-tk
30165 @: $(MAKE); $(unstage)
30166 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
30167 r=`${PWD_COMMAND}`; export r; \
30168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30169 $(HOST_EXPORTS) \
30170 for flag in $(EXTRA_HOST_FLAGS) ; do \
30171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30172 done; \
22121df0 30173 echo "Doing install-html in tk"; \
a90ef4bf 30174 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
30175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30177 "RANLIB=$${RANLIB}" \
0c24b341 30178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30179 install-html) \
30180 || exit 1
30181
a90ef4bf 30182@endif tk
108a6f8e 30183
a90ef4bf
JM
30184.PHONY: maybe-installcheck-tk installcheck-tk
30185maybe-installcheck-tk:
30186@if tk
30187maybe-installcheck-tk: installcheck-tk
2a4cbe27 30188
a90ef4bf
JM
30189installcheck-tk: \
30190 configure-tk
30191 @: $(MAKE); $(unstage)
30192 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30193 r=`${PWD_COMMAND}`; export r; \
30194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30195 $(HOST_EXPORTS) \
b813574b 30196 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30198 done; \
22121df0 30199 echo "Doing installcheck in tk"; \
a90ef4bf 30200 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30203 "RANLIB=$${RANLIB}" \
0c24b341 30204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30205 installcheck) \
2a4cbe27
NN
30206 || exit 1
30207
a90ef4bf 30208@endif tk
2a4cbe27 30209
a90ef4bf
JM
30210.PHONY: maybe-mostlyclean-tk mostlyclean-tk
30211maybe-mostlyclean-tk:
30212@if tk
30213maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 30214
a90ef4bf
JM
30215mostlyclean-tk:
30216 @: $(MAKE); $(unstage)
30217 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30218 r=`${PWD_COMMAND}`; export r; \
30219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30220 $(HOST_EXPORTS) \
b813574b 30221 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30223 done; \
22121df0 30224 echo "Doing mostlyclean in tk"; \
a90ef4bf 30225 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30228 "RANLIB=$${RANLIB}" \
0c24b341 30229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30230 mostlyclean) \
2a4cbe27
NN
30231 || exit 1
30232
a90ef4bf 30233@endif tk
2a4cbe27 30234
a90ef4bf
JM
30235.PHONY: maybe-clean-tk clean-tk
30236maybe-clean-tk:
30237@if tk
30238maybe-clean-tk: clean-tk
2a4cbe27 30239
a90ef4bf
JM
30240clean-tk:
30241 @: $(MAKE); $(unstage)
30242 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30243 r=`${PWD_COMMAND}`; export r; \
30244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30245 $(HOST_EXPORTS) \
b813574b 30246 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30248 done; \
22121df0 30249 echo "Doing clean in tk"; \
a90ef4bf 30250 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30253 "RANLIB=$${RANLIB}" \
0c24b341 30254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30255 clean) \
2a4cbe27
NN
30256 || exit 1
30257
a90ef4bf 30258@endif tk
2a4cbe27 30259
a90ef4bf
JM
30260.PHONY: maybe-distclean-tk distclean-tk
30261maybe-distclean-tk:
30262@if tk
30263maybe-distclean-tk: distclean-tk
2a4cbe27 30264
a90ef4bf
JM
30265distclean-tk:
30266 @: $(MAKE); $(unstage)
30267 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30268 r=`${PWD_COMMAND}`; export r; \
30269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30270 $(HOST_EXPORTS) \
b813574b 30271 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30273 done; \
22121df0 30274 echo "Doing distclean in tk"; \
a90ef4bf 30275 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30278 "RANLIB=$${RANLIB}" \
0c24b341 30279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30280 distclean) \
2a4cbe27
NN
30281 || exit 1
30282
a90ef4bf 30283@endif tk
2a4cbe27 30284
a90ef4bf
JM
30285.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
30286maybe-maintainer-clean-tk:
30287@if tk
30288maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 30289
a90ef4bf
JM
30290maintainer-clean-tk:
30291 @: $(MAKE); $(unstage)
30292 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30293 r=`${PWD_COMMAND}`; export r; \
30294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30295 $(HOST_EXPORTS) \
b813574b 30296 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30298 done; \
22121df0 30299 echo "Doing maintainer-clean in tk"; \
a90ef4bf 30300 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30303 "RANLIB=$${RANLIB}" \
0c24b341 30304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30305 maintainer-clean) \
2a4cbe27
NN
30306 || exit 1
30307
a90ef4bf 30308@endif tk
2a4cbe27 30309
2a4cbe27 30310
a7254363 30311
a90ef4bf
JM
30312.PHONY: configure-libtermcap maybe-configure-libtermcap
30313maybe-configure-libtermcap:
dc448a7b 30314@if gcc-bootstrap
a90ef4bf 30315configure-libtermcap: stage_current
dc448a7b 30316@endif gcc-bootstrap
a90ef4bf
JM
30317@if libtermcap
30318maybe-configure-libtermcap: configure-libtermcap
30319configure-libtermcap:
dc448a7b
TT
30320 @: $(MAKE); $(unstage)
30321 @r=`${PWD_COMMAND}`; export r; \
30322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30323 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 30324 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap; \
1f53ca9a 30325 $(HOST_EXPORTS) \
a90ef4bf
JM
30326 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
30327 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
30328 case $(srcdir) in \
30329 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30330 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
30331 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30332 esac; \
1b6c0831
L
30333 module_srcdir=libtermcap; \
30334 $(SHELL) \
30335 $$s/$$module_srcdir/configure \
30336 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 30337 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30338 --target=${target_alias} \
dc448a7b 30339 || exit 1
a90ef4bf 30340@endif libtermcap
dc448a7b
TT
30341
30342
30343
30344
30345
a90ef4bf
JM
30346.PHONY: all-libtermcap maybe-all-libtermcap
30347maybe-all-libtermcap:
dc448a7b 30348@if gcc-bootstrap
a90ef4bf 30349all-libtermcap: stage_current
dc448a7b 30350@endif gcc-bootstrap
a90ef4bf
JM
30351@if libtermcap
30352TARGET-libtermcap=all
30353maybe-all-libtermcap: all-libtermcap
30354all-libtermcap: configure-libtermcap
dc448a7b
TT
30355 @: $(MAKE); $(unstage)
30356 @r=`${PWD_COMMAND}`; export r; \
30357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30358 $(HOST_EXPORTS) \
a90ef4bf 30359 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 30360 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30361 $(TARGET-libtermcap))
30362@endif libtermcap
dc448a7b
TT
30363
30364
30365
30366
a90ef4bf
JM
30367.PHONY: check-libtermcap maybe-check-libtermcap
30368maybe-check-libtermcap:
30369@if libtermcap
30370maybe-check-libtermcap: check-libtermcap
dc448a7b 30371
a90ef4bf
JM
30372check-libtermcap:
30373
30374@endif libtermcap
30375
30376.PHONY: install-libtermcap maybe-install-libtermcap
30377maybe-install-libtermcap:
30378@if libtermcap
30379maybe-install-libtermcap: install-libtermcap
30380
30381install-libtermcap: installdirs
dc448a7b
TT
30382 @: $(MAKE); $(unstage)
30383 @r=`${PWD_COMMAND}`; export r; \
30384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30385 $(HOST_EXPORTS) \
a90ef4bf
JM
30386 (cd $(HOST_SUBDIR)/libtermcap && \
30387 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 30388
a90ef4bf 30389@endif libtermcap
dc448a7b 30390
a90ef4bf
JM
30391.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
30392maybe-install-strip-libtermcap:
30393@if libtermcap
30394maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 30395
a90ef4bf
JM
30396install-strip-libtermcap: installdirs
30397 @: $(MAKE); $(unstage)
30398 @r=`${PWD_COMMAND}`; export r; \
30399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30400 $(HOST_EXPORTS) \
30401 (cd $(HOST_SUBDIR)/libtermcap && \
30402 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 30403
a90ef4bf 30404@endif libtermcap
9b980aa1 30405
dc448a7b
TT
30406# Other targets (info, dvi, pdf, etc.)
30407
a90ef4bf
JM
30408.PHONY: maybe-info-libtermcap info-libtermcap
30409maybe-info-libtermcap:
30410@if libtermcap
30411maybe-info-libtermcap: info-libtermcap
dc448a7b 30412
a90ef4bf
JM
30413info-libtermcap: \
30414 configure-libtermcap
dc448a7b 30415 @: $(MAKE); $(unstage)
a90ef4bf 30416 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30417 r=`${PWD_COMMAND}`; export r; \
30418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30419 $(HOST_EXPORTS) \
30420 for flag in $(EXTRA_HOST_FLAGS) ; do \
30421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30422 done; \
22121df0 30423 echo "Doing info in libtermcap"; \
a90ef4bf 30424 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30427 "RANLIB=$${RANLIB}" \
30428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30429 info) \
30430 || exit 1
30431
a90ef4bf 30432@endif libtermcap
dc448a7b 30433
a90ef4bf
JM
30434.PHONY: maybe-dvi-libtermcap dvi-libtermcap
30435maybe-dvi-libtermcap:
30436@if libtermcap
30437maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 30438
a90ef4bf
JM
30439dvi-libtermcap: \
30440 configure-libtermcap
dc448a7b 30441 @: $(MAKE); $(unstage)
a90ef4bf 30442 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30443 r=`${PWD_COMMAND}`; export r; \
30444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30445 $(HOST_EXPORTS) \
30446 for flag in $(EXTRA_HOST_FLAGS) ; do \
30447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30448 done; \
22121df0 30449 echo "Doing dvi in libtermcap"; \
a90ef4bf 30450 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30453 "RANLIB=$${RANLIB}" \
30454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30455 dvi) \
30456 || exit 1
30457
a90ef4bf 30458@endif libtermcap
dc448a7b 30459
a90ef4bf
JM
30460.PHONY: maybe-pdf-libtermcap pdf-libtermcap
30461maybe-pdf-libtermcap:
30462@if libtermcap
30463maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 30464
a90ef4bf
JM
30465pdf-libtermcap: \
30466 configure-libtermcap
dc448a7b 30467 @: $(MAKE); $(unstage)
a90ef4bf 30468 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30469 r=`${PWD_COMMAND}`; export r; \
30470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30471 $(HOST_EXPORTS) \
30472 for flag in $(EXTRA_HOST_FLAGS) ; do \
30473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30474 done; \
22121df0 30475 echo "Doing pdf in libtermcap"; \
a90ef4bf 30476 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30479 "RANLIB=$${RANLIB}" \
30480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30481 pdf) \
30482 || exit 1
30483
a90ef4bf 30484@endif libtermcap
dc448a7b 30485
a90ef4bf
JM
30486.PHONY: maybe-html-libtermcap html-libtermcap
30487maybe-html-libtermcap:
30488@if libtermcap
30489maybe-html-libtermcap: html-libtermcap
dc448a7b 30490
a90ef4bf
JM
30491html-libtermcap: \
30492 configure-libtermcap
dc448a7b 30493 @: $(MAKE); $(unstage)
a90ef4bf 30494 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30495 r=`${PWD_COMMAND}`; export r; \
30496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30497 $(HOST_EXPORTS) \
30498 for flag in $(EXTRA_HOST_FLAGS) ; do \
30499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30500 done; \
22121df0 30501 echo "Doing html in libtermcap"; \
a90ef4bf 30502 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30505 "RANLIB=$${RANLIB}" \
30506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30507 html) \
30508 || exit 1
30509
a90ef4bf 30510@endif libtermcap
dc448a7b 30511
a90ef4bf
JM
30512.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
30513maybe-TAGS-libtermcap:
30514@if libtermcap
30515maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 30516
a90ef4bf
JM
30517TAGS-libtermcap: \
30518 configure-libtermcap
dc448a7b 30519 @: $(MAKE); $(unstage)
a90ef4bf 30520 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30521 r=`${PWD_COMMAND}`; export r; \
30522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30523 $(HOST_EXPORTS) \
30524 for flag in $(EXTRA_HOST_FLAGS) ; do \
30525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30526 done; \
22121df0 30527 echo "Doing TAGS in libtermcap"; \
a90ef4bf 30528 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30531 "RANLIB=$${RANLIB}" \
30532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30533 TAGS) \
30534 || exit 1
30535
a90ef4bf 30536@endif libtermcap
dc448a7b 30537
a90ef4bf
JM
30538.PHONY: maybe-install-info-libtermcap install-info-libtermcap
30539maybe-install-info-libtermcap:
30540@if libtermcap
30541maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 30542
a90ef4bf
JM
30543install-info-libtermcap: \
30544 configure-libtermcap \
30545 info-libtermcap
dc448a7b 30546 @: $(MAKE); $(unstage)
a90ef4bf 30547 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30548 r=`${PWD_COMMAND}`; export r; \
30549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30550 $(HOST_EXPORTS) \
30551 for flag in $(EXTRA_HOST_FLAGS) ; do \
30552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30553 done; \
22121df0 30554 echo "Doing install-info in libtermcap"; \
a90ef4bf 30555 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30558 "RANLIB=$${RANLIB}" \
30559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30560 install-info) \
dc448a7b
TT
30561 || exit 1
30562
a90ef4bf 30563@endif libtermcap
dc448a7b 30564
a90ef4bf
JM
30565.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
30566maybe-install-pdf-libtermcap:
30567@if libtermcap
30568maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 30569
a90ef4bf
JM
30570install-pdf-libtermcap: \
30571 configure-libtermcap \
30572 pdf-libtermcap
dc448a7b 30573 @: $(MAKE); $(unstage)
a90ef4bf 30574 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30575 r=`${PWD_COMMAND}`; export r; \
30576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30577 $(HOST_EXPORTS) \
30578 for flag in $(EXTRA_HOST_FLAGS) ; do \
30579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30580 done; \
22121df0 30581 echo "Doing install-pdf in libtermcap"; \
a90ef4bf 30582 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30585 "RANLIB=$${RANLIB}" \
30586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30587 install-pdf) \
dc448a7b
TT
30588 || exit 1
30589
a90ef4bf 30590@endif libtermcap
dc448a7b 30591
a90ef4bf
JM
30592.PHONY: maybe-install-html-libtermcap install-html-libtermcap
30593maybe-install-html-libtermcap:
30594@if libtermcap
30595maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 30596
a90ef4bf
JM
30597install-html-libtermcap: \
30598 configure-libtermcap \
30599 html-libtermcap
dc448a7b 30600 @: $(MAKE); $(unstage)
a90ef4bf 30601 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30602 r=`${PWD_COMMAND}`; export r; \
30603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30604 $(HOST_EXPORTS) \
30605 for flag in $(EXTRA_HOST_FLAGS) ; do \
30606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30607 done; \
22121df0 30608 echo "Doing install-html in libtermcap"; \
a90ef4bf 30609 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30612 "RANLIB=$${RANLIB}" \
30613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30614 install-html) \
dc448a7b
TT
30615 || exit 1
30616
a90ef4bf 30617@endif libtermcap
dc448a7b 30618
a90ef4bf
JM
30619.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
30620maybe-installcheck-libtermcap:
30621@if libtermcap
30622maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 30623
a90ef4bf
JM
30624installcheck-libtermcap: \
30625 configure-libtermcap
dc448a7b 30626 @: $(MAKE); $(unstage)
a90ef4bf 30627 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30628 r=`${PWD_COMMAND}`; export r; \
30629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30630 $(HOST_EXPORTS) \
30631 for flag in $(EXTRA_HOST_FLAGS) ; do \
30632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30633 done; \
22121df0 30634 echo "Doing installcheck in libtermcap"; \
a90ef4bf 30635 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30638 "RANLIB=$${RANLIB}" \
30639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30640 installcheck) \
dc448a7b
TT
30641 || exit 1
30642
a90ef4bf 30643@endif libtermcap
dc448a7b 30644
a90ef4bf
JM
30645.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
30646maybe-mostlyclean-libtermcap:
30647@if libtermcap
30648maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 30649
a90ef4bf
JM
30650# libtermcap doesn't support mostlyclean.
30651mostlyclean-libtermcap:
dc448a7b 30652
a90ef4bf 30653@endif libtermcap
dc448a7b 30654
a90ef4bf
JM
30655.PHONY: maybe-clean-libtermcap clean-libtermcap
30656maybe-clean-libtermcap:
30657@if libtermcap
30658maybe-clean-libtermcap: clean-libtermcap
dc448a7b 30659
a90ef4bf
JM
30660# libtermcap doesn't support clean.
30661clean-libtermcap:
dc448a7b 30662
a90ef4bf
JM
30663@endif libtermcap
30664
30665.PHONY: maybe-distclean-libtermcap distclean-libtermcap
30666maybe-distclean-libtermcap:
30667@if libtermcap
30668maybe-distclean-libtermcap: distclean-libtermcap
30669
30670# libtermcap doesn't support distclean.
30671distclean-libtermcap:
30672
30673@endif libtermcap
30674
30675.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
30676maybe-maintainer-clean-libtermcap:
30677@if libtermcap
30678maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
30679
30680# libtermcap doesn't support maintainer-clean.
30681maintainer-clean-libtermcap:
30682
30683@endif libtermcap
30684
30685
30686
30687.PHONY: configure-utils maybe-configure-utils
30688maybe-configure-utils:
30689@if gcc-bootstrap
30690configure-utils: stage_current
30691@endif gcc-bootstrap
30692@if utils
30693maybe-configure-utils: configure-utils
30694configure-utils:
30695 @: $(MAKE); $(unstage)
c52c6897 30696 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30698 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
22121df0 30699 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils; \
1f53ca9a 30700 $(HOST_EXPORTS) \
a90ef4bf
JM
30701 echo Configuring in $(HOST_SUBDIR)/utils; \
30702 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 30703 case $(srcdir) in \
b00612cc 30704 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30705 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 30706 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30707 esac; \
1b6c0831
L
30708 module_srcdir=utils; \
30709 $(SHELL) \
30710 $$s/$$module_srcdir/configure \
30711 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30712 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30713 --target=${target_alias} \
2a4cbe27 30714 || exit 1
a90ef4bf 30715@endif utils
2a4cbe27 30716
a7254363
PB
30717
30718
d545f33b
PB
30719
30720
a90ef4bf
JM
30721.PHONY: all-utils maybe-all-utils
30722maybe-all-utils:
4f0ef2d8 30723@if gcc-bootstrap
a90ef4bf 30724all-utils: stage_current
4f0ef2d8 30725@endif gcc-bootstrap
a90ef4bf
JM
30726@if utils
30727TARGET-utils=all
30728maybe-all-utils: all-utils
30729all-utils: configure-utils
0aed8855 30730 @: $(MAKE); $(unstage)
4fa63067
NN
30731 @r=`${PWD_COMMAND}`; export r; \
30732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30733 $(HOST_EXPORTS) \
a90ef4bf 30734 (cd $(HOST_SUBDIR)/utils && \
b3676d82 30735 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30736 $(TARGET-utils))
30737@endif utils
2a4cbe27 30738
a7254363 30739
d545f33b
PB
30740
30741
a90ef4bf
JM
30742.PHONY: check-utils maybe-check-utils
30743maybe-check-utils:
30744@if utils
30745maybe-check-utils: check-utils
2a4cbe27 30746
a90ef4bf 30747check-utils:
2a4cbe27 30748
a90ef4bf 30749@endif utils
2a4cbe27 30750
a90ef4bf
JM
30751.PHONY: install-utils maybe-install-utils
30752maybe-install-utils:
30753@if utils
30754maybe-install-utils: install-utils
2a4cbe27 30755
a90ef4bf 30756install-utils: installdirs
0aed8855 30757 @: $(MAKE); $(unstage)
4fa63067 30758 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30760 $(HOST_EXPORTS) \
a90ef4bf 30761 (cd $(HOST_SUBDIR)/utils && \
2da12f12 30762 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 30763
a90ef4bf 30764@endif utils
2a4cbe27 30765
a90ef4bf
JM
30766.PHONY: install-strip-utils maybe-install-strip-utils
30767maybe-install-strip-utils:
30768@if utils
30769maybe-install-strip-utils: install-strip-utils
9b980aa1 30770
a90ef4bf 30771install-strip-utils: installdirs
9b980aa1
RW
30772 @: $(MAKE); $(unstage)
30773 @r=`${PWD_COMMAND}`; export r; \
30774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30775 $(HOST_EXPORTS) \
a90ef4bf 30776 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
30777 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30778
a90ef4bf 30779@endif utils
9b980aa1 30780
56a8fe78 30781# Other targets (info, dvi, pdf, etc.)
2a4cbe27 30782
a90ef4bf
JM
30783.PHONY: maybe-info-utils info-utils
30784maybe-info-utils:
30785@if utils
30786maybe-info-utils: info-utils
4fa63067 30787
a90ef4bf
JM
30788info-utils: \
30789 configure-utils
0aed8855 30790 @: $(MAKE); $(unstage)
a90ef4bf 30791 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30792 r=`${PWD_COMMAND}`; export r; \
30793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30794 $(HOST_EXPORTS) \
b813574b 30795 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30797 done; \
22121df0 30798 echo "Doing info in utils"; \
a90ef4bf 30799 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30802 "RANLIB=$${RANLIB}" \
0c24b341 30803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30804 info) \
2a4cbe27
NN
30805 || exit 1
30806
a90ef4bf 30807@endif utils
2a4cbe27 30808
a90ef4bf
JM
30809.PHONY: maybe-dvi-utils dvi-utils
30810maybe-dvi-utils:
30811@if utils
30812maybe-dvi-utils: dvi-utils
2a4cbe27 30813
a90ef4bf
JM
30814dvi-utils: \
30815 configure-utils
0aed8855 30816 @: $(MAKE); $(unstage)
a90ef4bf 30817 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30818 r=`${PWD_COMMAND}`; export r; \
30819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30820 $(HOST_EXPORTS) \
b813574b 30821 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30823 done; \
22121df0 30824 echo "Doing dvi in utils"; \
a90ef4bf 30825 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30828 "RANLIB=$${RANLIB}" \
0c24b341 30829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30830 dvi) \
2a4cbe27
NN
30831 || exit 1
30832
a90ef4bf 30833@endif utils
2a4cbe27 30834
a90ef4bf
JM
30835.PHONY: maybe-pdf-utils pdf-utils
30836maybe-pdf-utils:
30837@if utils
30838maybe-pdf-utils: pdf-utils
56a8fe78 30839
a90ef4bf
JM
30840pdf-utils: \
30841 configure-utils
56a8fe78 30842 @: $(MAKE); $(unstage)
a90ef4bf 30843 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
30844 r=`${PWD_COMMAND}`; export r; \
30845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30846 $(HOST_EXPORTS) \
30847 for flag in $(EXTRA_HOST_FLAGS) ; do \
30848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30849 done; \
22121df0 30850 echo "Doing pdf in utils"; \
a90ef4bf 30851 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
30852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30854 "RANLIB=$${RANLIB}" \
0c24b341 30855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30856 pdf) \
30857 || exit 1
30858
a90ef4bf 30859@endif utils
56a8fe78 30860
a90ef4bf
JM
30861.PHONY: maybe-html-utils html-utils
30862maybe-html-utils:
30863@if utils
30864maybe-html-utils: html-utils
6d389afc 30865
a90ef4bf
JM
30866html-utils: \
30867 configure-utils
0aed8855 30868 @: $(MAKE); $(unstage)
a90ef4bf 30869 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
30870 r=`${PWD_COMMAND}`; export r; \
30871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30872 $(HOST_EXPORTS) \
30873 for flag in $(EXTRA_HOST_FLAGS) ; do \
30874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30875 done; \
22121df0 30876 echo "Doing html in utils"; \
a90ef4bf 30877 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
30878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30880 "RANLIB=$${RANLIB}" \
0c24b341 30881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30882 html) \
30883 || exit 1
30884
a90ef4bf 30885@endif utils
6d389afc 30886
a90ef4bf
JM
30887.PHONY: maybe-TAGS-utils TAGS-utils
30888maybe-TAGS-utils:
30889@if utils
30890maybe-TAGS-utils: TAGS-utils
2a4cbe27 30891
a90ef4bf
JM
30892TAGS-utils: \
30893 configure-utils
0aed8855 30894 @: $(MAKE); $(unstage)
a90ef4bf 30895 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30896 r=`${PWD_COMMAND}`; export r; \
30897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30898 $(HOST_EXPORTS) \
b813574b 30899 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30901 done; \
22121df0 30902 echo "Doing TAGS in utils"; \
a90ef4bf 30903 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30906 "RANLIB=$${RANLIB}" \
0c24b341 30907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30908 TAGS) \
2a4cbe27
NN
30909 || exit 1
30910
a90ef4bf 30911@endif utils
2a4cbe27 30912
a90ef4bf
JM
30913.PHONY: maybe-install-info-utils install-info-utils
30914maybe-install-info-utils:
30915@if utils
30916maybe-install-info-utils: install-info-utils
2a4cbe27 30917
a90ef4bf
JM
30918install-info-utils: \
30919 configure-utils \
30920 info-utils
0aed8855 30921 @: $(MAKE); $(unstage)
a90ef4bf 30922 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30923 r=`${PWD_COMMAND}`; export r; \
30924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30925 $(HOST_EXPORTS) \
b813574b 30926 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30928 done; \
22121df0 30929 echo "Doing install-info in utils"; \
a90ef4bf 30930 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30933 "RANLIB=$${RANLIB}" \
0c24b341 30934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30935 install-info) \
2a4cbe27
NN
30936 || exit 1
30937
a90ef4bf 30938@endif utils
2a4cbe27 30939
a90ef4bf
JM
30940.PHONY: maybe-install-pdf-utils install-pdf-utils
30941maybe-install-pdf-utils:
30942@if utils
30943maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 30944
a90ef4bf
JM
30945install-pdf-utils: \
30946 configure-utils \
30947 pdf-utils
a3ca38d2 30948 @: $(MAKE); $(unstage)
a90ef4bf 30949 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
30950 r=`${PWD_COMMAND}`; export r; \
30951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30952 $(HOST_EXPORTS) \
30953 for flag in $(EXTRA_HOST_FLAGS) ; do \
30954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30955 done; \
22121df0 30956 echo "Doing install-pdf in utils"; \
a90ef4bf 30957 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
30958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30960 "RANLIB=$${RANLIB}" \
0c24b341 30961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30962 install-pdf) \
30963 || exit 1
30964
a90ef4bf 30965@endif utils
a3ca38d2 30966
a90ef4bf
JM
30967.PHONY: maybe-install-html-utils install-html-utils
30968maybe-install-html-utils:
30969@if utils
30970maybe-install-html-utils: install-html-utils
108a6f8e 30971
a90ef4bf
JM
30972install-html-utils: \
30973 configure-utils \
30974 html-utils
108a6f8e 30975 @: $(MAKE); $(unstage)
a90ef4bf 30976 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
30977 r=`${PWD_COMMAND}`; export r; \
30978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30979 $(HOST_EXPORTS) \
30980 for flag in $(EXTRA_HOST_FLAGS) ; do \
30981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30982 done; \
22121df0 30983 echo "Doing install-html in utils"; \
a90ef4bf 30984 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
30985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30987 "RANLIB=$${RANLIB}" \
0c24b341 30988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30989 install-html) \
30990 || exit 1
30991
a90ef4bf 30992@endif utils
108a6f8e 30993
a90ef4bf
JM
30994.PHONY: maybe-installcheck-utils installcheck-utils
30995maybe-installcheck-utils:
30996@if utils
30997maybe-installcheck-utils: installcheck-utils
2a4cbe27 30998
a90ef4bf
JM
30999installcheck-utils: \
31000 configure-utils
0aed8855 31001 @: $(MAKE); $(unstage)
a90ef4bf 31002 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31003 r=`${PWD_COMMAND}`; export r; \
31004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31005 $(HOST_EXPORTS) \
b813574b 31006 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31008 done; \
22121df0 31009 echo "Doing installcheck in utils"; \
a90ef4bf 31010 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31013 "RANLIB=$${RANLIB}" \
0c24b341 31014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31015 installcheck) \
2a4cbe27
NN
31016 || exit 1
31017
a90ef4bf 31018@endif utils
2a4cbe27 31019
a90ef4bf
JM
31020.PHONY: maybe-mostlyclean-utils mostlyclean-utils
31021maybe-mostlyclean-utils:
31022@if utils
31023maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 31024
a90ef4bf 31025mostlyclean-utils:
0aed8855 31026 @: $(MAKE); $(unstage)
a90ef4bf 31027 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31028 r=`${PWD_COMMAND}`; export r; \
31029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31030 $(HOST_EXPORTS) \
b813574b 31031 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31033 done; \
22121df0 31034 echo "Doing mostlyclean in utils"; \
a90ef4bf 31035 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31038 "RANLIB=$${RANLIB}" \
0c24b341 31039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31040 mostlyclean) \
2a4cbe27
NN
31041 || exit 1
31042
a90ef4bf 31043@endif utils
2a4cbe27 31044
a90ef4bf
JM
31045.PHONY: maybe-clean-utils clean-utils
31046maybe-clean-utils:
31047@if utils
31048maybe-clean-utils: clean-utils
2a4cbe27 31049
a90ef4bf 31050clean-utils:
0aed8855 31051 @: $(MAKE); $(unstage)
a90ef4bf 31052 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31053 r=`${PWD_COMMAND}`; export r; \
31054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31055 $(HOST_EXPORTS) \
b813574b 31056 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31058 done; \
22121df0 31059 echo "Doing clean in utils"; \
a90ef4bf 31060 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31063 "RANLIB=$${RANLIB}" \
0c24b341 31064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31065 clean) \
2a4cbe27
NN
31066 || exit 1
31067
a90ef4bf 31068@endif utils
2a4cbe27 31069
a90ef4bf
JM
31070.PHONY: maybe-distclean-utils distclean-utils
31071maybe-distclean-utils:
31072@if utils
31073maybe-distclean-utils: distclean-utils
2a4cbe27 31074
a90ef4bf 31075distclean-utils:
0aed8855 31076 @: $(MAKE); $(unstage)
a90ef4bf 31077 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31078 r=`${PWD_COMMAND}`; export r; \
31079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31080 $(HOST_EXPORTS) \
b813574b 31081 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31083 done; \
22121df0 31084 echo "Doing distclean in utils"; \
a90ef4bf 31085 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31088 "RANLIB=$${RANLIB}" \
0c24b341 31089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31090 distclean) \
2a4cbe27
NN
31091 || exit 1
31092
a90ef4bf 31093@endif utils
2a4cbe27 31094
a90ef4bf
JM
31095.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
31096maybe-maintainer-clean-utils:
31097@if utils
31098maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 31099
a90ef4bf 31100maintainer-clean-utils:
0aed8855 31101 @: $(MAKE); $(unstage)
a90ef4bf 31102 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31103 r=`${PWD_COMMAND}`; export r; \
31104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31105 $(HOST_EXPORTS) \
b813574b 31106 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31108 done; \
22121df0 31109 echo "Doing maintainer-clean in utils"; \
a90ef4bf 31110 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31113 "RANLIB=$${RANLIB}" \
0c24b341 31114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31115 maintainer-clean) \
2a4cbe27
NN
31116 || exit 1
31117
a90ef4bf 31118@endif utils
2a4cbe27 31119
2a4cbe27 31120
a7254363 31121
a90ef4bf
JM
31122.PHONY: configure-gnattools maybe-configure-gnattools
31123maybe-configure-gnattools:
4f0ef2d8 31124@if gcc-bootstrap
a90ef4bf 31125configure-gnattools: stage_current
4f0ef2d8 31126@endif gcc-bootstrap
a90ef4bf
JM
31127@if gnattools
31128maybe-configure-gnattools: configure-gnattools
31129configure-gnattools:
0aed8855 31130 @: $(MAKE); $(unstage)
c52c6897 31131 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31133 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
22121df0 31134 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools; \
1f53ca9a 31135 $(HOST_EXPORTS) \
a90ef4bf
JM
31136 echo Configuring in $(HOST_SUBDIR)/gnattools; \
31137 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 31138 case $(srcdir) in \
b00612cc 31139 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31140 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 31141 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31142 esac; \
1b6c0831
L
31143 module_srcdir=gnattools; \
31144 $(SHELL) \
31145 $$s/$$module_srcdir/configure \
31146 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31147 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31148 --target=${target_alias} \
2a4cbe27 31149 || exit 1
a90ef4bf 31150@endif gnattools
2a4cbe27 31151
a7254363
PB
31152
31153
d545f33b
PB
31154
31155
a90ef4bf
JM
31156.PHONY: all-gnattools maybe-all-gnattools
31157maybe-all-gnattools:
4f0ef2d8 31158@if gcc-bootstrap
a90ef4bf 31159all-gnattools: stage_current
4f0ef2d8 31160@endif gcc-bootstrap
a90ef4bf
JM
31161@if gnattools
31162TARGET-gnattools=all
31163maybe-all-gnattools: all-gnattools
31164all-gnattools: configure-gnattools
0aed8855 31165 @: $(MAKE); $(unstage)
4fa63067
NN
31166 @r=`${PWD_COMMAND}`; export r; \
31167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 31168 $(HOST_EXPORTS) \
a90ef4bf 31169 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 31170 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
31171 $(TARGET-gnattools))
31172@endif gnattools
4fa63067 31173
a7254363 31174
d545f33b
PB
31175
31176
a90ef4bf
JM
31177.PHONY: check-gnattools maybe-check-gnattools
31178maybe-check-gnattools:
31179@if gnattools
31180maybe-check-gnattools: check-gnattools
2a4cbe27 31181
a90ef4bf 31182check-gnattools:
0aed8855 31183 @: $(MAKE); $(unstage)
4fa63067
NN
31184 @r=`${PWD_COMMAND}`; export r; \
31185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31186 $(HOST_EXPORTS) \
a90ef4bf 31187 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 31188 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 31189
a90ef4bf 31190@endif gnattools
4fa63067 31191
a90ef4bf
JM
31192.PHONY: install-gnattools maybe-install-gnattools
31193maybe-install-gnattools:
31194@if gnattools
31195maybe-install-gnattools: install-gnattools
4fa63067 31196
a90ef4bf 31197install-gnattools: installdirs
0aed8855 31198 @: $(MAKE); $(unstage)
4fa63067
NN
31199 @r=`${PWD_COMMAND}`; export r; \
31200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31201 $(HOST_EXPORTS) \
a90ef4bf 31202 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 31203 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 31204
a90ef4bf 31205@endif gnattools
4fa63067 31206
a90ef4bf
JM
31207.PHONY: install-strip-gnattools maybe-install-strip-gnattools
31208maybe-install-strip-gnattools:
31209@if gnattools
31210maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 31211
a90ef4bf 31212install-strip-gnattools: installdirs
9b980aa1
RW
31213 @: $(MAKE); $(unstage)
31214 @r=`${PWD_COMMAND}`; export r; \
31215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31216 $(HOST_EXPORTS) \
a90ef4bf 31217 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
31218 $(MAKE) $(FLAGS_TO_PASS) install-strip)
31219
a90ef4bf 31220@endif gnattools
9b980aa1 31221
56a8fe78 31222# Other targets (info, dvi, pdf, etc.)
4fa63067 31223
a90ef4bf
JM
31224.PHONY: maybe-info-gnattools info-gnattools
31225maybe-info-gnattools:
31226@if gnattools
31227maybe-info-gnattools: info-gnattools
4fa63067 31228
a90ef4bf
JM
31229info-gnattools: \
31230 configure-gnattools
0aed8855 31231 @: $(MAKE); $(unstage)
a90ef4bf 31232 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31233 r=`${PWD_COMMAND}`; export r; \
31234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31235 $(HOST_EXPORTS) \
b813574b 31236 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31238 done; \
22121df0 31239 echo "Doing info in gnattools"; \
a90ef4bf 31240 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31243 "RANLIB=$${RANLIB}" \
0c24b341 31244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31245 info) \
2a4cbe27
NN
31246 || exit 1
31247
a90ef4bf 31248@endif gnattools
2a4cbe27 31249
a90ef4bf
JM
31250.PHONY: maybe-dvi-gnattools dvi-gnattools
31251maybe-dvi-gnattools:
31252@if gnattools
31253maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 31254
a90ef4bf
JM
31255dvi-gnattools: \
31256 configure-gnattools
0aed8855 31257 @: $(MAKE); $(unstage)
a90ef4bf 31258 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31259 r=`${PWD_COMMAND}`; export r; \
31260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31261 $(HOST_EXPORTS) \
b813574b 31262 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31264 done; \
22121df0 31265 echo "Doing dvi in gnattools"; \
a90ef4bf 31266 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31269 "RANLIB=$${RANLIB}" \
0c24b341 31270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31271 dvi) \
2a4cbe27
NN
31272 || exit 1
31273
a90ef4bf 31274@endif gnattools
2a4cbe27 31275
a90ef4bf
JM
31276.PHONY: maybe-pdf-gnattools pdf-gnattools
31277maybe-pdf-gnattools:
31278@if gnattools
31279maybe-pdf-gnattools: pdf-gnattools
56a8fe78 31280
a90ef4bf
JM
31281pdf-gnattools: \
31282 configure-gnattools
56a8fe78 31283 @: $(MAKE); $(unstage)
a90ef4bf 31284 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
31285 r=`${PWD_COMMAND}`; export r; \
31286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31287 $(HOST_EXPORTS) \
31288 for flag in $(EXTRA_HOST_FLAGS) ; do \
31289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31290 done; \
22121df0 31291 echo "Doing pdf in gnattools"; \
a90ef4bf 31292 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
31293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31295 "RANLIB=$${RANLIB}" \
0c24b341 31296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31297 pdf) \
31298 || exit 1
31299
a90ef4bf 31300@endif gnattools
56a8fe78 31301
a90ef4bf
JM
31302.PHONY: maybe-html-gnattools html-gnattools
31303maybe-html-gnattools:
31304@if gnattools
31305maybe-html-gnattools: html-gnattools
6d389afc 31306
a90ef4bf
JM
31307html-gnattools: \
31308 configure-gnattools
0aed8855 31309 @: $(MAKE); $(unstage)
a90ef4bf 31310 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
31311 r=`${PWD_COMMAND}`; export r; \
31312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
31313 $(HOST_EXPORTS) \
31314 for flag in $(EXTRA_HOST_FLAGS) ; do \
31315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31316 done; \
22121df0 31317 echo "Doing html in gnattools"; \
a90ef4bf 31318 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
31319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31321 "RANLIB=$${RANLIB}" \
0c24b341 31322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31323 html) \
31324 || exit 1
31325
a90ef4bf 31326@endif gnattools
6d389afc 31327
a90ef4bf
JM
31328.PHONY: maybe-TAGS-gnattools TAGS-gnattools
31329maybe-TAGS-gnattools:
31330@if gnattools
31331maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 31332
a90ef4bf
JM
31333TAGS-gnattools: \
31334 configure-gnattools
0aed8855 31335 @: $(MAKE); $(unstage)
a90ef4bf 31336 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31337 r=`${PWD_COMMAND}`; export r; \
31338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31339 $(HOST_EXPORTS) \
b813574b 31340 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31342 done; \
22121df0 31343 echo "Doing TAGS in gnattools"; \
a90ef4bf 31344 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31347 "RANLIB=$${RANLIB}" \
0c24b341 31348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31349 TAGS) \
2a4cbe27
NN
31350 || exit 1
31351
a90ef4bf 31352@endif gnattools
2a4cbe27 31353
a90ef4bf
JM
31354.PHONY: maybe-install-info-gnattools install-info-gnattools
31355maybe-install-info-gnattools:
31356@if gnattools
31357maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 31358
a90ef4bf
JM
31359install-info-gnattools: \
31360 configure-gnattools \
31361 info-gnattools
0aed8855 31362 @: $(MAKE); $(unstage)
a90ef4bf 31363 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31364 r=`${PWD_COMMAND}`; export r; \
31365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31366 $(HOST_EXPORTS) \
b813574b 31367 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31369 done; \
22121df0 31370 echo "Doing install-info in gnattools"; \
a90ef4bf 31371 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31374 "RANLIB=$${RANLIB}" \
0c24b341 31375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31376 install-info) \
2a4cbe27
NN
31377 || exit 1
31378
a90ef4bf 31379@endif gnattools
2a4cbe27 31380
a90ef4bf
JM
31381.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
31382maybe-install-pdf-gnattools:
31383@if gnattools
31384maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 31385
a90ef4bf
JM
31386install-pdf-gnattools: \
31387 configure-gnattools \
31388 pdf-gnattools
a3ca38d2 31389 @: $(MAKE); $(unstage)
a90ef4bf 31390 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
31391 r=`${PWD_COMMAND}`; export r; \
31392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31393 $(HOST_EXPORTS) \
31394 for flag in $(EXTRA_HOST_FLAGS) ; do \
31395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31396 done; \
22121df0 31397 echo "Doing install-pdf in gnattools"; \
a90ef4bf 31398 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
31399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31401 "RANLIB=$${RANLIB}" \
0c24b341 31402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31403 install-pdf) \
31404 || exit 1
31405
a90ef4bf 31406@endif gnattools
a3ca38d2 31407
a90ef4bf
JM
31408.PHONY: maybe-install-html-gnattools install-html-gnattools
31409maybe-install-html-gnattools:
31410@if gnattools
31411maybe-install-html-gnattools: install-html-gnattools
108a6f8e 31412
a90ef4bf
JM
31413install-html-gnattools: \
31414 configure-gnattools \
31415 html-gnattools
108a6f8e 31416 @: $(MAKE); $(unstage)
a90ef4bf 31417 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
31418 r=`${PWD_COMMAND}`; export r; \
31419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31420 $(HOST_EXPORTS) \
31421 for flag in $(EXTRA_HOST_FLAGS) ; do \
31422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31423 done; \
22121df0 31424 echo "Doing install-html in gnattools"; \
a90ef4bf 31425 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
31426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31428 "RANLIB=$${RANLIB}" \
0c24b341 31429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31430 install-html) \
31431 || exit 1
31432
a90ef4bf 31433@endif gnattools
108a6f8e 31434
a90ef4bf
JM
31435.PHONY: maybe-installcheck-gnattools installcheck-gnattools
31436maybe-installcheck-gnattools:
31437@if gnattools
31438maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 31439
a90ef4bf
JM
31440installcheck-gnattools: \
31441 configure-gnattools
0aed8855 31442 @: $(MAKE); $(unstage)
a90ef4bf 31443 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31444 r=`${PWD_COMMAND}`; export r; \
31445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31446 $(HOST_EXPORTS) \
b813574b 31447 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31449 done; \
22121df0 31450 echo "Doing installcheck in gnattools"; \
a90ef4bf 31451 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31454 "RANLIB=$${RANLIB}" \
0c24b341 31455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31456 installcheck) \
2a4cbe27
NN
31457 || exit 1
31458
a90ef4bf 31459@endif gnattools
2a4cbe27 31460
a90ef4bf
JM
31461.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
31462maybe-mostlyclean-gnattools:
31463@if gnattools
31464maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 31465
a90ef4bf 31466mostlyclean-gnattools:
0aed8855 31467 @: $(MAKE); $(unstage)
a90ef4bf 31468 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31469 r=`${PWD_COMMAND}`; export r; \
31470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31471 $(HOST_EXPORTS) \
b813574b 31472 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31474 done; \
22121df0 31475 echo "Doing mostlyclean in gnattools"; \
a90ef4bf 31476 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31479 "RANLIB=$${RANLIB}" \
0c24b341 31480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31481 mostlyclean) \
2a4cbe27
NN
31482 || exit 1
31483
a90ef4bf 31484@endif gnattools
2a4cbe27 31485
a90ef4bf
JM
31486.PHONY: maybe-clean-gnattools clean-gnattools
31487maybe-clean-gnattools:
31488@if gnattools
31489maybe-clean-gnattools: clean-gnattools
2a4cbe27 31490
a90ef4bf 31491clean-gnattools:
0aed8855 31492 @: $(MAKE); $(unstage)
a90ef4bf 31493 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31494 r=`${PWD_COMMAND}`; export r; \
31495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31496 $(HOST_EXPORTS) \
b813574b 31497 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31499 done; \
22121df0 31500 echo "Doing clean in gnattools"; \
a90ef4bf 31501 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31504 "RANLIB=$${RANLIB}" \
0c24b341 31505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31506 clean) \
2a4cbe27
NN
31507 || exit 1
31508
a90ef4bf 31509@endif gnattools
2a4cbe27 31510
a90ef4bf
JM
31511.PHONY: maybe-distclean-gnattools distclean-gnattools
31512maybe-distclean-gnattools:
31513@if gnattools
31514maybe-distclean-gnattools: distclean-gnattools
a2592b1b 31515
a90ef4bf 31516distclean-gnattools:
0aed8855 31517 @: $(MAKE); $(unstage)
a90ef4bf 31518 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
31519 r=`${PWD_COMMAND}`; export r; \
31520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31521 $(HOST_EXPORTS) \
b813574b 31522 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
31523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31524 done; \
22121df0 31525 echo "Doing distclean in gnattools"; \
a90ef4bf 31526 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
31527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31529 "RANLIB=$${RANLIB}" \
0c24b341 31530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31531 distclean) \
a2592b1b
DD
31532 || exit 1
31533
a90ef4bf 31534@endif gnattools
a2592b1b 31535
a90ef4bf
JM
31536.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
31537maybe-maintainer-clean-gnattools:
31538@if gnattools
31539maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 31540
a90ef4bf 31541maintainer-clean-gnattools:
0aed8855 31542 @: $(MAKE); $(unstage)
a90ef4bf 31543 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 31544 r=`${PWD_COMMAND}`; export r; \
b40e3958 31545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31546 $(HOST_EXPORTS) \
b813574b 31547 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
31548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31549 done; \
22121df0 31550 echo "Doing maintainer-clean in gnattools"; \
a90ef4bf 31551 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
31552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31554 "RANLIB=$${RANLIB}" \
0c24b341 31555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31556 maintainer-clean) \
4fa63067 31557 || exit 1
252b5132 31558
a90ef4bf 31559@endif gnattools
252b5132 31560
252b5132 31561
a7254363 31562
a90ef4bf
JM
31563.PHONY: configure-lto-plugin maybe-configure-lto-plugin
31564maybe-configure-lto-plugin:
4f0ef2d8 31565@if gcc-bootstrap
a90ef4bf 31566configure-lto-plugin: stage_current
4f0ef2d8 31567@endif gcc-bootstrap
a90ef4bf
JM
31568@if lto-plugin
31569maybe-configure-lto-plugin: configure-lto-plugin
31570configure-lto-plugin:
c52c6897 31571 @r=`${PWD_COMMAND}`; export r; \
b813574b 31572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31573 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
22121df0 31574 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
1f53ca9a 31575 $(HOST_EXPORTS) \
a90ef4bf
JM
31576 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
31577 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 31578 case $(srcdir) in \
b00612cc 31579 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31580 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 31581 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31582 esac; \
1b6c0831
L
31583 module_srcdir=lto-plugin; \
31584 $(SHELL) \
31585 $$s/$$module_srcdir/configure \
31586 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31587 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31588 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 31589 || exit 1
a90ef4bf 31590@endif lto-plugin
a7254363 31591
d545f33b
PB
31592
31593
a90ef4bf
JM
31594.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
31595maybe-configure-stage1-lto-plugin:
31596@if lto-plugin-bootstrap
31597maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
31598configure-stage1-lto-plugin:
31599 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31600 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31601 @r=`${PWD_COMMAND}`; export r; \
31602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31603 TFLAGS="$(STAGE1_TFLAGS)"; \
31604 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
31605 $(HOST_EXPORTS) \
31606 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
31607 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
31608 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
31609 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin; \
31610 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31611 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31612 case $(srcdir) in \
31613 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31614 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31615 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31616 esac; \
1b6c0831
L
31617 module_srcdir=lto-plugin; \
31618 $(SHELL) $$s/$$module_srcdir/configure \
31619 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31620 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
31621 --target=${target_alias} \
31622 \
a90ef4bf 31623 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 31624 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31625@endif lto-plugin-bootstrap
252b5132 31626
a90ef4bf
JM
31627.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
31628maybe-configure-stage2-lto-plugin:
31629@if lto-plugin-bootstrap
31630maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
31631configure-stage2-lto-plugin:
31632 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31633 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
31634 @r=`${PWD_COMMAND}`; export r; \
31635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31636 TFLAGS="$(STAGE2_TFLAGS)"; \
31637 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 31638 $(HOST_EXPORTS) \
a90ef4bf
JM
31639 $(POSTSTAGE1_HOST_EXPORTS) \
31640 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
31641 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
31642 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31643 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin; \
31644 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31645 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31646 case $(srcdir) in \
31647 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31648 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31649 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31650 esac; \
1b6c0831
L
31651 module_srcdir=lto-plugin; \
31652 $(SHELL) $$s/$$module_srcdir/configure \
31653 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31654 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31655 --target=${target_alias} \
22121df0 31656 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31657 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 31658 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31659@endif lto-plugin-bootstrap
4fa63067 31660
a90ef4bf
JM
31661.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
31662maybe-configure-stage3-lto-plugin:
31663@if lto-plugin-bootstrap
31664maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
31665configure-stage3-lto-plugin:
31666 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31667 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31668 @r=`${PWD_COMMAND}`; export r; \
31669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31670 TFLAGS="$(STAGE3_TFLAGS)"; \
31671 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31672 $(HOST_EXPORTS) \
a90ef4bf
JM
31673 $(POSTSTAGE1_HOST_EXPORTS) \
31674 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
31675 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
31676 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31677 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin; \
31678 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31679 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31680 case $(srcdir) in \
31681 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31682 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31683 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31684 esac; \
1b6c0831
L
31685 module_srcdir=lto-plugin; \
31686 $(SHELL) $$s/$$module_srcdir/configure \
31687 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31688 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31689 --target=${target_alias} \
22121df0 31690 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31691 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 31692 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31693@endif lto-plugin-bootstrap
9b980aa1 31694
a90ef4bf
JM
31695.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
31696maybe-configure-stage4-lto-plugin:
31697@if lto-plugin-bootstrap
31698maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
31699configure-stage4-lto-plugin:
31700 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31701 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
31702 @r=`${PWD_COMMAND}`; export r; \
31703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31704 TFLAGS="$(STAGE4_TFLAGS)"; \
31705 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 31706 $(HOST_EXPORTS) \
a90ef4bf
JM
31707 $(POSTSTAGE1_HOST_EXPORTS) \
31708 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
31709 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
31710 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31711 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin; \
31712 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31713 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31714 case $(srcdir) in \
31715 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31716 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31717 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31718 esac; \
1b6c0831
L
31719 module_srcdir=lto-plugin; \
31720 $(SHELL) $$s/$$module_srcdir/configure \
31721 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31722 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31723 --target=${target_alias} \
22121df0 31724 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31725 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 31726 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31727@endif lto-plugin-bootstrap
4fa63067 31728
a90ef4bf
JM
31729.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
31730maybe-configure-stageprofile-lto-plugin:
31731@if lto-plugin-bootstrap
31732maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31733configure-stageprofile-lto-plugin:
31734 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31735 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31736 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31738 TFLAGS="$(STAGEprofile_TFLAGS)"; \
31739 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31740 $(HOST_EXPORTS) \
a90ef4bf
JM
31741 $(POSTSTAGE1_HOST_EXPORTS) \
31742 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
31743 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
31744 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31745 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin; \
31746 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31747 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31748 case $(srcdir) in \
31749 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31750 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31751 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31752 esac; \
1b6c0831
L
31753 module_srcdir=lto-plugin; \
31754 $(SHELL) $$s/$$module_srcdir/configure \
31755 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31756 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31757 --target=${target_alias} \
22121df0 31758 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31759 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 31760 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31761@endif lto-plugin-bootstrap
4fa63067 31762
a90ef4bf
JM
31763.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
31764maybe-configure-stagefeedback-lto-plugin:
31765@if lto-plugin-bootstrap
31766maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31767configure-stagefeedback-lto-plugin:
31768 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31769 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31770 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31772 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
31773 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31774 $(HOST_EXPORTS) \
a90ef4bf
JM
31775 $(POSTSTAGE1_HOST_EXPORTS) \
31776 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
31777 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
31778 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31779 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin; \
31780 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31781 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31782 case $(srcdir) in \
31783 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31784 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31785 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31786 esac; \
1b6c0831
L
31787 module_srcdir=lto-plugin; \
31788 $(SHELL) $$s/$$module_srcdir/configure \
31789 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31790 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31791 --target=${target_alias} \
22121df0 31792 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31793 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 31794 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31795@endif lto-plugin-bootstrap
252b5132 31796
56a8fe78 31797
56a8fe78 31798
56a8fe78 31799
6d389afc 31800
a90ef4bf
JM
31801.PHONY: all-lto-plugin maybe-all-lto-plugin
31802maybe-all-lto-plugin:
31803@if gcc-bootstrap
31804all-lto-plugin: stage_current
31805@endif gcc-bootstrap
31806@if lto-plugin
31807TARGET-lto-plugin=all
31808maybe-all-lto-plugin: all-lto-plugin
31809all-lto-plugin: configure-lto-plugin
31810 @r=`${PWD_COMMAND}`; export r; \
6d389afc 31811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31812 $(HOST_EXPORTS) \
31813 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31814 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31815 $(TARGET-lto-plugin))
31816@endif lto-plugin
6d389afc 31817
6d389afc 31818
252b5132 31819
a90ef4bf
JM
31820.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
31821.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
31822maybe-all-stage1-lto-plugin:
31823maybe-clean-stage1-lto-plugin:
31824@if lto-plugin-bootstrap
31825maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
31826all-stage1: all-stage1-lto-plugin
31827TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
31828all-stage1-lto-plugin: configure-stage1-lto-plugin
31829 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31830 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31832 TFLAGS="$(STAGE1_TFLAGS)"; \
31833 $(HOST_EXPORTS) \
31834 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31835 \
a90ef4bf
JM
31836 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31837 CFLAGS="$(STAGE1_CFLAGS)" \
31838 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
31839 LIBCFLAGS="$(LIBCFLAGS)" \
31840 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31841 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31842 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 31843 $(EXTRA_HOST_FLAGS) \
1b6c0831 31844 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31845 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 31846 $(TARGET-stage1-lto-plugin)
3866be5d 31847
a90ef4bf
JM
31848maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
31849clean-stage1: clean-stage1-lto-plugin
31850clean-stage1-lto-plugin:
31851 @if [ $(current_stage) = stage1 ]; then \
31852 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31853 else \
31854 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
31855 $(MAKE) stage1-start; \
31856 fi; \
31857 cd $(HOST_SUBDIR)/lto-plugin && \
31858 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 31859 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31860@endif lto-plugin-bootstrap
3866be5d 31861
3866be5d 31862
a90ef4bf
JM
31863.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
31864.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
31865maybe-all-stage2-lto-plugin:
31866maybe-clean-stage2-lto-plugin:
31867@if lto-plugin-bootstrap
31868maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
31869all-stage2: all-stage2-lto-plugin
31870TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
31871all-stage2-lto-plugin: configure-stage2-lto-plugin
31872 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31873 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31875 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 31876 $(HOST_EXPORTS) \
a90ef4bf
JM
31877 $(POSTSTAGE1_HOST_EXPORTS) \
31878 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31879 \
a90ef4bf
JM
31880 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31881 CFLAGS="$(STAGE2_CFLAGS)" \
31882 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
31883 LIBCFLAGS="$(STAGE2_CFLAGS)" \
31884 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31885 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31886 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31887 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31888 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 31889 $(TARGET-stage2-lto-plugin)
3866be5d 31890
a90ef4bf
JM
31891maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
31892clean-stage2: clean-stage2-lto-plugin
31893clean-stage2-lto-plugin:
31894 @if [ $(current_stage) = stage2 ]; then \
31895 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31896 else \
31897 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
31898 $(MAKE) stage2-start; \
31899 fi; \
31900 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31901 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31902@endif lto-plugin-bootstrap
3866be5d 31903
a3ca38d2 31904
a90ef4bf
JM
31905.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
31906.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
31907maybe-all-stage3-lto-plugin:
31908maybe-clean-stage3-lto-plugin:
31909@if lto-plugin-bootstrap
31910maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
31911all-stage3: all-stage3-lto-plugin
31912TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
31913all-stage3-lto-plugin: configure-stage3-lto-plugin
31914 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31915 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 31916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31917 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 31918 $(HOST_EXPORTS) \
a90ef4bf
JM
31919 $(POSTSTAGE1_HOST_EXPORTS) \
31920 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31921 \
a90ef4bf
JM
31922 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31923 CFLAGS="$(STAGE3_CFLAGS)" \
31924 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
31925 LIBCFLAGS="$(STAGE3_CFLAGS)" \
31926 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31927 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31928 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31929 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31930 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 31931 $(TARGET-stage3-lto-plugin)
a3ca38d2 31932
a90ef4bf
JM
31933maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
31934clean-stage3: clean-stage3-lto-plugin
31935clean-stage3-lto-plugin:
31936 @if [ $(current_stage) = stage3 ]; then \
31937 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31938 else \
31939 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
31940 $(MAKE) stage3-start; \
31941 fi; \
31942 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31943 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31944@endif lto-plugin-bootstrap
a3ca38d2 31945
108a6f8e 31946
a90ef4bf
JM
31947.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
31948.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
31949maybe-all-stage4-lto-plugin:
31950maybe-clean-stage4-lto-plugin:
31951@if lto-plugin-bootstrap
31952maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
31953all-stage4: all-stage4-lto-plugin
31954TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
31955all-stage4-lto-plugin: configure-stage4-lto-plugin
31956 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31957 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 31958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31959 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 31960 $(HOST_EXPORTS) \
a90ef4bf
JM
31961 $(POSTSTAGE1_HOST_EXPORTS) \
31962 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31963 \
a90ef4bf
JM
31964 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31965 CFLAGS="$(STAGE4_CFLAGS)" \
31966 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
31967 LIBCFLAGS="$(STAGE4_CFLAGS)" \
31968 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31969 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31970 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31971 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31972 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 31973 $(TARGET-stage4-lto-plugin)
108a6f8e 31974
a90ef4bf
JM
31975maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
31976clean-stage4: clean-stage4-lto-plugin
31977clean-stage4-lto-plugin:
31978 @if [ $(current_stage) = stage4 ]; then \
31979 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31980 else \
31981 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
31982 $(MAKE) stage4-start; \
31983 fi; \
31984 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31985 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31986@endif lto-plugin-bootstrap
4fa63067 31987
4fa63067 31988
a90ef4bf
JM
31989.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
31990.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
31991maybe-all-stageprofile-lto-plugin:
31992maybe-clean-stageprofile-lto-plugin:
31993@if lto-plugin-bootstrap
31994maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
31995all-stageprofile: all-stageprofile-lto-plugin
31996TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
31997all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31998 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31999 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32001 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 32002 $(HOST_EXPORTS) \
a90ef4bf
JM
32003 $(POSTSTAGE1_HOST_EXPORTS) \
32004 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32005 \
a90ef4bf
JM
32006 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32007 CFLAGS="$(STAGEprofile_CFLAGS)" \
32008 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
32009 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
32010 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32011 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32012 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32013 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32014 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 32015 $(TARGET-stageprofile-lto-plugin)
4fa63067 32016
a90ef4bf
JM
32017maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
32018clean-stageprofile: clean-stageprofile-lto-plugin
32019clean-stageprofile-lto-plugin:
32020 @if [ $(current_stage) = stageprofile ]; then \
32021 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32022 else \
32023 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
32024 $(MAKE) stageprofile-start; \
32025 fi; \
32026 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32027 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32028@endif lto-plugin-bootstrap
4fa63067 32029
4fa63067 32030
a90ef4bf
JM
32031.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
32032.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
32033maybe-all-stagefeedback-lto-plugin:
32034maybe-clean-stagefeedback-lto-plugin:
32035@if lto-plugin-bootstrap
32036maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
32037all-stagefeedback: all-stagefeedback-lto-plugin
32038TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
32039all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
32040 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32041 @r=`${PWD_COMMAND}`; export r; \
b40e3958 32042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32043 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 32044 $(HOST_EXPORTS) \
a90ef4bf
JM
32045 $(POSTSTAGE1_HOST_EXPORTS) \
32046 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32047 \
a90ef4bf
JM
32048 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32049 CFLAGS="$(STAGEfeedback_CFLAGS)" \
32050 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
32051 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
32052 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32053 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32054 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32055 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32056 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 32057 $(TARGET-stagefeedback-lto-plugin)
3866be5d 32058
a90ef4bf
JM
32059maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
32060clean-stagefeedback: clean-stagefeedback-lto-plugin
32061clean-stagefeedback-lto-plugin:
32062 @if [ $(current_stage) = stagefeedback ]; then \
32063 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32064 else \
32065 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
32066 $(MAKE) stagefeedback-start; \
32067 fi; \
32068 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32069 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32070@endif lto-plugin-bootstrap
a7254363 32071
e2b9e2dc 32072
a7254363
PB
32073
32074
d545f33b 32075
a90ef4bf
JM
32076.PHONY: check-lto-plugin maybe-check-lto-plugin
32077maybe-check-lto-plugin:
32078@if lto-plugin
32079maybe-check-lto-plugin: check-lto-plugin
d545f33b 32080
a90ef4bf 32081check-lto-plugin:
0aed8855 32082 @: $(MAKE); $(unstage)
b40e3958
L
32083 @r=`${PWD_COMMAND}`; export r; \
32084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32085 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 32086 (cd $(HOST_SUBDIR)/lto-plugin && \
f91ca6bc 32087 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
3866be5d 32088
a90ef4bf 32089@endif lto-plugin
3866be5d 32090
a90ef4bf
JM
32091.PHONY: install-lto-plugin maybe-install-lto-plugin
32092maybe-install-lto-plugin:
32093@if lto-plugin
32094maybe-install-lto-plugin: install-lto-plugin
4fa63067 32095
a90ef4bf 32096install-lto-plugin: installdirs
0aed8855 32097 @: $(MAKE); $(unstage)
4fa63067
NN
32098 @r=`${PWD_COMMAND}`; export r; \
32099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32100 $(HOST_EXPORTS) \
a90ef4bf 32101 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32102 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 32103
a90ef4bf 32104@endif lto-plugin
4fa63067 32105
a90ef4bf
JM
32106.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
32107maybe-install-strip-lto-plugin:
32108@if lto-plugin
32109maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 32110
a90ef4bf 32111install-strip-lto-plugin: installdirs
9b980aa1
RW
32112 @: $(MAKE); $(unstage)
32113 @r=`${PWD_COMMAND}`; export r; \
32114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32115 $(HOST_EXPORTS) \
a90ef4bf 32116 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32117 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 32118
a90ef4bf 32119@endif lto-plugin
9b980aa1 32120
56a8fe78 32121# Other targets (info, dvi, pdf, etc.)
4fa63067 32122
a90ef4bf
JM
32123.PHONY: maybe-info-lto-plugin info-lto-plugin
32124maybe-info-lto-plugin:
32125@if lto-plugin
32126maybe-info-lto-plugin: info-lto-plugin
4fa63067 32127
a90ef4bf
JM
32128info-lto-plugin: \
32129 configure-lto-plugin
32130 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32131 r=`${PWD_COMMAND}`; export r; \
32132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32133 $(HOST_EXPORTS) \
1b6c0831 32134 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32136 done; \
22121df0 32137 echo "Doing info in lto-plugin"; \
a90ef4bf 32138 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32141 "RANLIB=$${RANLIB}" \
0c24b341 32142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32143 info) \
4fa63067
NN
32144 || exit 1
32145
a90ef4bf 32146@endif lto-plugin
4fa63067 32147
a90ef4bf
JM
32148.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
32149maybe-dvi-lto-plugin:
32150@if lto-plugin
32151maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 32152
a90ef4bf
JM
32153dvi-lto-plugin: \
32154 configure-lto-plugin
32155 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32156 r=`${PWD_COMMAND}`; export r; \
32157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32158 $(HOST_EXPORTS) \
1b6c0831 32159 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32161 done; \
22121df0 32162 echo "Doing dvi in lto-plugin"; \
a90ef4bf 32163 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32166 "RANLIB=$${RANLIB}" \
0c24b341 32167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32168 dvi) \
4fa63067
NN
32169 || exit 1
32170
a90ef4bf 32171@endif lto-plugin
4fa63067 32172
a90ef4bf
JM
32173.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
32174maybe-pdf-lto-plugin:
32175@if lto-plugin
32176maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 32177
a90ef4bf
JM
32178pdf-lto-plugin: \
32179 configure-lto-plugin
32180 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
32181 r=`${PWD_COMMAND}`; export r; \
32182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32183 $(HOST_EXPORTS) \
1b6c0831 32184 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
32185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32186 done; \
22121df0 32187 echo "Doing pdf in lto-plugin"; \
a90ef4bf 32188 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
32189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32191 "RANLIB=$${RANLIB}" \
0c24b341 32192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
32193 pdf) \
32194 || exit 1
32195
a90ef4bf 32196@endif lto-plugin
56a8fe78 32197
a90ef4bf
JM
32198.PHONY: maybe-html-lto-plugin html-lto-plugin
32199maybe-html-lto-plugin:
32200@if lto-plugin
32201maybe-html-lto-plugin: html-lto-plugin
6d389afc 32202
a90ef4bf
JM
32203html-lto-plugin: \
32204 configure-lto-plugin
32205 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
32206 r=`${PWD_COMMAND}`; export r; \
32207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 32208 $(HOST_EXPORTS) \
1b6c0831 32209 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
32210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32211 done; \
22121df0 32212 echo "Doing html in lto-plugin"; \
a90ef4bf 32213 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
32214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32216 "RANLIB=$${RANLIB}" \
0c24b341 32217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
32218 html) \
32219 || exit 1
32220
a90ef4bf 32221@endif lto-plugin
6d389afc 32222
a90ef4bf
JM
32223.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
32224maybe-TAGS-lto-plugin:
32225@if lto-plugin
32226maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 32227
a90ef4bf
JM
32228TAGS-lto-plugin: \
32229 configure-lto-plugin
32230 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32231 r=`${PWD_COMMAND}`; export r; \
32232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32233 $(HOST_EXPORTS) \
1b6c0831 32234 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32236 done; \
22121df0 32237 echo "Doing TAGS in lto-plugin"; \
a90ef4bf 32238 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32241 "RANLIB=$${RANLIB}" \
0c24b341 32242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32243 TAGS) \
4fa63067
NN
32244 || exit 1
32245
a90ef4bf 32246@endif lto-plugin
4fa63067 32247
a90ef4bf
JM
32248.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
32249maybe-install-info-lto-plugin:
32250@if lto-plugin
32251maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 32252
a90ef4bf
JM
32253install-info-lto-plugin: \
32254 configure-lto-plugin \
32255 info-lto-plugin
32256 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32257 r=`${PWD_COMMAND}`; export r; \
32258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32259 $(HOST_EXPORTS) \
1b6c0831 32260 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32262 done; \
22121df0 32263 echo "Doing install-info in lto-plugin"; \
a90ef4bf 32264 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32267 "RANLIB=$${RANLIB}" \
0c24b341 32268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32269 install-info) \
4fa63067
NN
32270 || exit 1
32271
a90ef4bf 32272@endif lto-plugin
4fa63067 32273
a90ef4bf
JM
32274.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
32275maybe-install-pdf-lto-plugin:
32276@if lto-plugin
32277maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 32278
a90ef4bf
JM
32279install-pdf-lto-plugin: \
32280 configure-lto-plugin \
32281 pdf-lto-plugin
32282 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
32283 r=`${PWD_COMMAND}`; export r; \
32284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32285 $(HOST_EXPORTS) \
1b6c0831 32286 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
32287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32288 done; \
22121df0 32289 echo "Doing install-pdf in lto-plugin"; \
a90ef4bf 32290 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
32291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32293 "RANLIB=$${RANLIB}" \
0c24b341 32294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
32295 install-pdf) \
32296 || exit 1
32297
a90ef4bf 32298@endif lto-plugin
a3ca38d2 32299
a90ef4bf
JM
32300.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
32301maybe-install-html-lto-plugin:
32302@if lto-plugin
32303maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 32304
a90ef4bf
JM
32305install-html-lto-plugin: \
32306 configure-lto-plugin \
32307 html-lto-plugin
32308 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
32309 r=`${PWD_COMMAND}`; export r; \
32310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32311 $(HOST_EXPORTS) \
1b6c0831 32312 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
32313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32314 done; \
22121df0 32315 echo "Doing install-html in lto-plugin"; \
a90ef4bf 32316 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
32317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32319 "RANLIB=$${RANLIB}" \
0c24b341 32320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
32321 install-html) \
32322 || exit 1
32323
a90ef4bf 32324@endif lto-plugin
108a6f8e 32325
a90ef4bf
JM
32326.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
32327maybe-installcheck-lto-plugin:
32328@if lto-plugin
32329maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 32330
a90ef4bf
JM
32331installcheck-lto-plugin: \
32332 configure-lto-plugin
32333 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32334 r=`${PWD_COMMAND}`; export r; \
32335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32336 $(HOST_EXPORTS) \
1b6c0831 32337 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32339 done; \
22121df0 32340 echo "Doing installcheck in lto-plugin"; \
a90ef4bf 32341 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32344 "RANLIB=$${RANLIB}" \
0c24b341 32345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32346 installcheck) \
4fa63067
NN
32347 || exit 1
32348
a90ef4bf 32349@endif lto-plugin
4fa63067 32350
a90ef4bf
JM
32351.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
32352maybe-mostlyclean-lto-plugin:
32353@if lto-plugin
32354maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 32355
a90ef4bf
JM
32356mostlyclean-lto-plugin:
32357 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32358 r=`${PWD_COMMAND}`; export r; \
32359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32360 $(HOST_EXPORTS) \
1b6c0831 32361 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32363 done; \
22121df0 32364 echo "Doing mostlyclean in lto-plugin"; \
a90ef4bf 32365 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32368 "RANLIB=$${RANLIB}" \
0c24b341 32369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32370 mostlyclean) \
4fa63067
NN
32371 || exit 1
32372
a90ef4bf 32373@endif lto-plugin
4fa63067 32374
a90ef4bf
JM
32375.PHONY: maybe-clean-lto-plugin clean-lto-plugin
32376maybe-clean-lto-plugin:
32377@if lto-plugin
32378maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 32379
a90ef4bf
JM
32380clean-lto-plugin:
32381 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32382 r=`${PWD_COMMAND}`; export r; \
32383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32384 $(HOST_EXPORTS) \
1b6c0831 32385 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32387 done; \
22121df0 32388 echo "Doing clean in lto-plugin"; \
a90ef4bf 32389 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32392 "RANLIB=$${RANLIB}" \
0c24b341 32393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32394 clean) \
4fa63067
NN
32395 || exit 1
32396
a90ef4bf 32397@endif lto-plugin
4fa63067 32398
a90ef4bf
JM
32399.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
32400maybe-distclean-lto-plugin:
32401@if lto-plugin
32402maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 32403
a90ef4bf
JM
32404distclean-lto-plugin:
32405 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32406 r=`${PWD_COMMAND}`; export r; \
32407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32408 $(HOST_EXPORTS) \
1b6c0831 32409 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32411 done; \
22121df0 32412 echo "Doing distclean in lto-plugin"; \
a90ef4bf 32413 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32416 "RANLIB=$${RANLIB}" \
0c24b341 32417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32418 distclean) \
4fa63067
NN
32419 || exit 1
32420
a90ef4bf 32421@endif lto-plugin
4fa63067 32422
a90ef4bf
JM
32423.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
32424maybe-maintainer-clean-lto-plugin:
32425@if lto-plugin
32426maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 32427
a90ef4bf
JM
32428maintainer-clean-lto-plugin:
32429 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32430 r=`${PWD_COMMAND}`; export r; \
32431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32432 $(HOST_EXPORTS) \
1b6c0831 32433 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32435 done; \
22121df0 32436 echo "Doing maintainer-clean in lto-plugin"; \
a90ef4bf 32437 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32440 "RANLIB=$${RANLIB}" \
0c24b341 32441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32442 maintainer-clean) \
4fa63067 32443 || exit 1
16ae0395 32444
a90ef4bf
JM
32445@endif lto-plugin
32446
32447
32448
1b6c0831
L
32449.PHONY: configure-libcc1 maybe-configure-libcc1
32450maybe-configure-libcc1:
4f0ef2d8 32451@if gcc-bootstrap
1b6c0831 32452configure-libcc1: stage_current
4f0ef2d8 32453@endif gcc-bootstrap
1b6c0831
L
32454@if libcc1
32455maybe-configure-libcc1: configure-libcc1
32456configure-libcc1:
32457 @: $(MAKE); $(unstage)
c52c6897 32458 @r=`${PWD_COMMAND}`; export r; \
b40e3958 32459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 32460 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
22121df0 32461 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \
1b6c0831
L
32462 $(HOST_EXPORTS) \
32463 echo Configuring in $(HOST_SUBDIR)/libcc1; \
32464 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 32465 case $(srcdir) in \
b00612cc 32466 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 32467 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 32468 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 32469 esac; \
1b6c0831
L
32470 module_srcdir=libcc1; \
32471 $(SHELL) \
32472 $$s/$$module_srcdir/configure \
32473 --srcdir=$${topdir}/$$module_srcdir \
32474 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32475 --target=${target_alias} --enable-shared \
e2b9e2dc 32476 || exit 1
1b6c0831 32477@endif libcc1
d545f33b
PB
32478
32479
3866be5d 32480
16ae0395 32481
9b980aa1 32482
1b6c0831
L
32483.PHONY: all-libcc1 maybe-all-libcc1
32484maybe-all-libcc1:
32485@if gcc-bootstrap
32486all-libcc1: stage_current
32487@endif gcc-bootstrap
32488@if libcc1
32489TARGET-libcc1=all
32490maybe-all-libcc1: all-libcc1
32491all-libcc1: configure-libcc1
32492 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32493 @r=`${PWD_COMMAND}`; export r; \
32494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32495 $(HOST_EXPORTS) \
32496 (cd $(HOST_SUBDIR)/libcc1 && \
32497 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
32498 $(TARGET-libcc1))
32499@endif libcc1
e8a5fa9c 32500
1b6c0831
L
32501
32502
32503
32504.PHONY: check-libcc1 maybe-check-libcc1
32505maybe-check-libcc1:
32506@if libcc1
32507maybe-check-libcc1: check-libcc1
32508
32509check-libcc1:
32510 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32511 @r=`${PWD_COMMAND}`; export r; \
32512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32513 $(HOST_EXPORTS) \
1b6c0831
L
32514 (cd $(HOST_SUBDIR)/libcc1 && \
32515 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 32516
1b6c0831
L
32517@endif libcc1
32518
32519.PHONY: install-libcc1 maybe-install-libcc1
32520maybe-install-libcc1:
32521@if libcc1
32522maybe-install-libcc1: install-libcc1
32523
32524install-libcc1: installdirs
32525 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32526 @r=`${PWD_COMMAND}`; export r; \
32527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32528 $(HOST_EXPORTS) \
32529 (cd $(HOST_SUBDIR)/libcc1 && \
32530 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 32531
1b6c0831
L
32532@endif libcc1
32533
32534.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
32535maybe-install-strip-libcc1:
32536@if libcc1
32537maybe-install-strip-libcc1: install-strip-libcc1
32538
32539install-strip-libcc1: installdirs
32540 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32541 @r=`${PWD_COMMAND}`; export r; \
32542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32543 $(HOST_EXPORTS) \
32544 (cd $(HOST_SUBDIR)/libcc1 && \
32545 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 32546
1b6c0831 32547@endif libcc1
e8a5fa9c 32548
1b6c0831 32549# Other targets (info, dvi, pdf, etc.)
d545f33b 32550
1b6c0831
L
32551.PHONY: maybe-info-libcc1 info-libcc1
32552maybe-info-libcc1:
32553@if libcc1
32554maybe-info-libcc1: info-libcc1
d545f33b 32555
1b6c0831
L
32556info-libcc1: \
32557 configure-libcc1
32558 @: $(MAKE); $(unstage)
32559 @[ -f ./libcc1/Makefile ] || exit 0; \
32560 r=`${PWD_COMMAND}`; export r; \
b40e3958 32561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32562 $(HOST_EXPORTS) \
32563 for flag in $(EXTRA_HOST_FLAGS) ; do \
32564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32565 done; \
22121df0 32566 echo "Doing info in libcc1"; \
1b6c0831
L
32567 (cd $(HOST_SUBDIR)/libcc1 && \
32568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32570 "RANLIB=$${RANLIB}" \
32571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32572 info) \
32573 || exit 1
3866be5d 32574
1b6c0831 32575@endif libcc1
a7254363 32576
1b6c0831
L
32577.PHONY: maybe-dvi-libcc1 dvi-libcc1
32578maybe-dvi-libcc1:
32579@if libcc1
32580maybe-dvi-libcc1: dvi-libcc1
a7254363 32581
1b6c0831
L
32582dvi-libcc1: \
32583 configure-libcc1
32584 @: $(MAKE); $(unstage)
32585 @[ -f ./libcc1/Makefile ] || exit 0; \
32586 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32588 $(HOST_EXPORTS) \
32589 for flag in $(EXTRA_HOST_FLAGS) ; do \
32590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32591 done; \
22121df0 32592 echo "Doing dvi in libcc1"; \
1b6c0831
L
32593 (cd $(HOST_SUBDIR)/libcc1 && \
32594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32596 "RANLIB=$${RANLIB}" \
32597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32598 dvi) \
32599 || exit 1
e8a5fa9c 32600
1b6c0831 32601@endif libcc1
e8a5fa9c 32602
1b6c0831
L
32603.PHONY: maybe-pdf-libcc1 pdf-libcc1
32604maybe-pdf-libcc1:
32605@if libcc1
32606maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 32607
1b6c0831
L
32608pdf-libcc1: \
32609 configure-libcc1
32610 @: $(MAKE); $(unstage)
32611 @[ -f ./libcc1/Makefile ] || exit 0; \
32612 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32614 $(HOST_EXPORTS) \
32615 for flag in $(EXTRA_HOST_FLAGS) ; do \
32616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32617 done; \
22121df0 32618 echo "Doing pdf in libcc1"; \
1b6c0831
L
32619 (cd $(HOST_SUBDIR)/libcc1 && \
32620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32622 "RANLIB=$${RANLIB}" \
32623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32624 pdf) \
32625 || exit 1
e8a5fa9c 32626
1b6c0831 32627@endif libcc1
e8a5fa9c 32628
1b6c0831
L
32629.PHONY: maybe-html-libcc1 html-libcc1
32630maybe-html-libcc1:
32631@if libcc1
32632maybe-html-libcc1: html-libcc1
e8a5fa9c 32633
1b6c0831
L
32634html-libcc1: \
32635 configure-libcc1
32636 @: $(MAKE); $(unstage)
32637 @[ -f ./libcc1/Makefile ] || exit 0; \
32638 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32640 $(HOST_EXPORTS) \
32641 for flag in $(EXTRA_HOST_FLAGS) ; do \
32642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32643 done; \
22121df0 32644 echo "Doing html in libcc1"; \
1b6c0831
L
32645 (cd $(HOST_SUBDIR)/libcc1 && \
32646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32648 "RANLIB=$${RANLIB}" \
32649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32650 html) \
32651 || exit 1
e8a5fa9c 32652
1b6c0831 32653@endif libcc1
e8a5fa9c 32654
1b6c0831
L
32655.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
32656maybe-TAGS-libcc1:
32657@if libcc1
32658maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 32659
1b6c0831
L
32660TAGS-libcc1: \
32661 configure-libcc1
32662 @: $(MAKE); $(unstage)
32663 @[ -f ./libcc1/Makefile ] || exit 0; \
32664 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32666 $(HOST_EXPORTS) \
32667 for flag in $(EXTRA_HOST_FLAGS) ; do \
32668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32669 done; \
22121df0 32670 echo "Doing TAGS in libcc1"; \
1b6c0831
L
32671 (cd $(HOST_SUBDIR)/libcc1 && \
32672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32674 "RANLIB=$${RANLIB}" \
32675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32676 TAGS) \
32677 || exit 1
32678
32679@endif libcc1
32680
32681.PHONY: maybe-install-info-libcc1 install-info-libcc1
32682maybe-install-info-libcc1:
32683@if libcc1
32684maybe-install-info-libcc1: install-info-libcc1
32685
32686install-info-libcc1: \
32687 configure-libcc1 \
32688 info-libcc1
32689 @: $(MAKE); $(unstage)
32690 @[ -f ./libcc1/Makefile ] || exit 0; \
32691 r=`${PWD_COMMAND}`; export r; \
32692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32693 $(HOST_EXPORTS) \
32694 for flag in $(EXTRA_HOST_FLAGS) ; do \
32695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32696 done; \
22121df0 32697 echo "Doing install-info in libcc1"; \
1b6c0831
L
32698 (cd $(HOST_SUBDIR)/libcc1 && \
32699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32701 "RANLIB=$${RANLIB}" \
32702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32703 install-info) \
32704 || exit 1
32705
32706@endif libcc1
32707
32708.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
32709maybe-install-pdf-libcc1:
32710@if libcc1
32711maybe-install-pdf-libcc1: install-pdf-libcc1
32712
32713install-pdf-libcc1: \
32714 configure-libcc1 \
32715 pdf-libcc1
32716 @: $(MAKE); $(unstage)
32717 @[ -f ./libcc1/Makefile ] || exit 0; \
32718 r=`${PWD_COMMAND}`; export r; \
32719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32720 $(HOST_EXPORTS) \
32721 for flag in $(EXTRA_HOST_FLAGS) ; do \
32722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32723 done; \
22121df0 32724 echo "Doing install-pdf in libcc1"; \
1b6c0831
L
32725 (cd $(HOST_SUBDIR)/libcc1 && \
32726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32728 "RANLIB=$${RANLIB}" \
32729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32730 install-pdf) \
32731 || exit 1
32732
32733@endif libcc1
32734
32735.PHONY: maybe-install-html-libcc1 install-html-libcc1
32736maybe-install-html-libcc1:
32737@if libcc1
32738maybe-install-html-libcc1: install-html-libcc1
32739
32740install-html-libcc1: \
32741 configure-libcc1 \
32742 html-libcc1
32743 @: $(MAKE); $(unstage)
32744 @[ -f ./libcc1/Makefile ] || exit 0; \
32745 r=`${PWD_COMMAND}`; export r; \
32746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32747 $(HOST_EXPORTS) \
32748 for flag in $(EXTRA_HOST_FLAGS) ; do \
32749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32750 done; \
22121df0 32751 echo "Doing install-html in libcc1"; \
1b6c0831
L
32752 (cd $(HOST_SUBDIR)/libcc1 && \
32753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32755 "RANLIB=$${RANLIB}" \
32756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32757 install-html) \
32758 || exit 1
32759
32760@endif libcc1
32761
32762.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
32763maybe-installcheck-libcc1:
32764@if libcc1
32765maybe-installcheck-libcc1: installcheck-libcc1
32766
32767installcheck-libcc1: \
32768 configure-libcc1
32769 @: $(MAKE); $(unstage)
32770 @[ -f ./libcc1/Makefile ] || exit 0; \
32771 r=`${PWD_COMMAND}`; export r; \
32772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32773 $(HOST_EXPORTS) \
32774 for flag in $(EXTRA_HOST_FLAGS) ; do \
32775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32776 done; \
22121df0 32777 echo "Doing installcheck in libcc1"; \
1b6c0831
L
32778 (cd $(HOST_SUBDIR)/libcc1 && \
32779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32781 "RANLIB=$${RANLIB}" \
32782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32783 installcheck) \
32784 || exit 1
32785
32786@endif libcc1
32787
32788.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
32789maybe-mostlyclean-libcc1:
32790@if libcc1
32791maybe-mostlyclean-libcc1: mostlyclean-libcc1
32792
32793mostlyclean-libcc1:
32794 @: $(MAKE); $(unstage)
32795 @[ -f ./libcc1/Makefile ] || exit 0; \
32796 r=`${PWD_COMMAND}`; export r; \
32797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32798 $(HOST_EXPORTS) \
32799 for flag in $(EXTRA_HOST_FLAGS) ; do \
32800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32801 done; \
22121df0 32802 echo "Doing mostlyclean in libcc1"; \
1b6c0831
L
32803 (cd $(HOST_SUBDIR)/libcc1 && \
32804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32806 "RANLIB=$${RANLIB}" \
32807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32808 mostlyclean) \
32809 || exit 1
32810
32811@endif libcc1
32812
32813.PHONY: maybe-clean-libcc1 clean-libcc1
32814maybe-clean-libcc1:
32815@if libcc1
32816maybe-clean-libcc1: clean-libcc1
32817
32818clean-libcc1:
32819 @: $(MAKE); $(unstage)
32820 @[ -f ./libcc1/Makefile ] || exit 0; \
32821 r=`${PWD_COMMAND}`; export r; \
32822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32823 $(HOST_EXPORTS) \
32824 for flag in $(EXTRA_HOST_FLAGS) ; do \
32825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32826 done; \
22121df0 32827 echo "Doing clean in libcc1"; \
1b6c0831
L
32828 (cd $(HOST_SUBDIR)/libcc1 && \
32829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32831 "RANLIB=$${RANLIB}" \
32832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32833 clean) \
32834 || exit 1
32835
32836@endif libcc1
32837
32838.PHONY: maybe-distclean-libcc1 distclean-libcc1
32839maybe-distclean-libcc1:
32840@if libcc1
32841maybe-distclean-libcc1: distclean-libcc1
32842
32843distclean-libcc1:
32844 @: $(MAKE); $(unstage)
32845 @[ -f ./libcc1/Makefile ] || exit 0; \
32846 r=`${PWD_COMMAND}`; export r; \
32847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32848 $(HOST_EXPORTS) \
32849 for flag in $(EXTRA_HOST_FLAGS) ; do \
32850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32851 done; \
22121df0 32852 echo "Doing distclean in libcc1"; \
1b6c0831
L
32853 (cd $(HOST_SUBDIR)/libcc1 && \
32854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32856 "RANLIB=$${RANLIB}" \
32857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32858 distclean) \
32859 || exit 1
32860
32861@endif libcc1
32862
32863.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
32864maybe-maintainer-clean-libcc1:
32865@if libcc1
32866maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
32867
32868maintainer-clean-libcc1:
32869 @: $(MAKE); $(unstage)
32870 @[ -f ./libcc1/Makefile ] || exit 0; \
32871 r=`${PWD_COMMAND}`; export r; \
32872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32873 $(HOST_EXPORTS) \
32874 for flag in $(EXTRA_HOST_FLAGS) ; do \
32875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32876 done; \
22121df0 32877 echo "Doing maintainer-clean in libcc1"; \
1b6c0831
L
32878 (cd $(HOST_SUBDIR)/libcc1 && \
32879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32881 "RANLIB=$${RANLIB}" \
32882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32883 maintainer-clean) \
32884 || exit 1
32885
32886@endif libcc1
32887
32888
32889
32890.PHONY: configure-gotools maybe-configure-gotools
32891maybe-configure-gotools:
32892@if gcc-bootstrap
32893configure-gotools: stage_current
32894@endif gcc-bootstrap
32895@if gotools
32896maybe-configure-gotools: configure-gotools
32897configure-gotools:
32898 @: $(MAKE); $(unstage)
32899 @r=`${PWD_COMMAND}`; export r; \
32900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32901 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
22121df0 32902 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools; \
1b6c0831
L
32903 $(HOST_EXPORTS) \
32904 echo Configuring in $(HOST_SUBDIR)/gotools; \
32905 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
32906 case $(srcdir) in \
32907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32908 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
32909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32910 esac; \
32911 module_srcdir=gotools; \
32912 $(SHELL) \
32913 $$s/$$module_srcdir/configure \
32914 --srcdir=$${topdir}/$$module_srcdir \
32915 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32916 --target=${target_alias} \
32917 || exit 1
32918@endif gotools
32919
32920
32921
32922
32923
32924.PHONY: all-gotools maybe-all-gotools
32925maybe-all-gotools:
32926@if gcc-bootstrap
32927all-gotools: stage_current
32928@endif gcc-bootstrap
32929@if gotools
32930TARGET-gotools=all
32931maybe-all-gotools: all-gotools
32932all-gotools: configure-gotools
32933 @: $(MAKE); $(unstage)
32934 @r=`${PWD_COMMAND}`; export r; \
32935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32936 $(HOST_EXPORTS) \
32937 (cd $(HOST_SUBDIR)/gotools && \
32938 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
32939 $(TARGET-gotools))
32940@endif gotools
32941
32942
32943
32944
32945.PHONY: check-gotools maybe-check-gotools
32946maybe-check-gotools:
32947@if gotools
32948maybe-check-gotools: check-gotools
32949
32950check-gotools:
32951 @: $(MAKE); $(unstage)
32952 @r=`${PWD_COMMAND}`; export r; \
32953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32954 $(HOST_EXPORTS) \
1b6c0831
L
32955 (cd $(HOST_SUBDIR)/gotools && \
32956 $(MAKE) $(FLAGS_TO_PASS) check)
32957
32958@endif gotools
32959
32960.PHONY: install-gotools maybe-install-gotools
32961maybe-install-gotools:
32962@if gotools
32963maybe-install-gotools: install-gotools
32964
32965install-gotools: installdirs
32966 @: $(MAKE); $(unstage)
32967 @r=`${PWD_COMMAND}`; export r; \
32968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32969 $(HOST_EXPORTS) \
32970 (cd $(HOST_SUBDIR)/gotools && \
32971 $(MAKE) $(FLAGS_TO_PASS) install)
32972
32973@endif gotools
32974
32975.PHONY: install-strip-gotools maybe-install-strip-gotools
32976maybe-install-strip-gotools:
32977@if gotools
32978maybe-install-strip-gotools: install-strip-gotools
32979
32980install-strip-gotools: installdirs
32981 @: $(MAKE); $(unstage)
32982 @r=`${PWD_COMMAND}`; export r; \
32983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32984 $(HOST_EXPORTS) \
32985 (cd $(HOST_SUBDIR)/gotools && \
32986 $(MAKE) $(FLAGS_TO_PASS) install-strip)
32987
32988@endif gotools
32989
32990# Other targets (info, dvi, pdf, etc.)
32991
32992.PHONY: maybe-info-gotools info-gotools
32993maybe-info-gotools:
32994@if gotools
32995maybe-info-gotools: info-gotools
32996
32997info-gotools: \
32998 configure-gotools
32999 @: $(MAKE); $(unstage)
33000 @[ -f ./gotools/Makefile ] || exit 0; \
33001 r=`${PWD_COMMAND}`; export r; \
33002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33003 $(HOST_EXPORTS) \
33004 for flag in $(EXTRA_HOST_FLAGS) ; do \
33005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33006 done; \
22121df0 33007 echo "Doing info in gotools"; \
1b6c0831
L
33008 (cd $(HOST_SUBDIR)/gotools && \
33009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33011 "RANLIB=$${RANLIB}" \
33012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33013 info) \
33014 || exit 1
33015
33016@endif gotools
33017
33018.PHONY: maybe-dvi-gotools dvi-gotools
33019maybe-dvi-gotools:
33020@if gotools
33021maybe-dvi-gotools: dvi-gotools
33022
33023dvi-gotools: \
33024 configure-gotools
33025 @: $(MAKE); $(unstage)
33026 @[ -f ./gotools/Makefile ] || exit 0; \
33027 r=`${PWD_COMMAND}`; export r; \
33028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33029 $(HOST_EXPORTS) \
33030 for flag in $(EXTRA_HOST_FLAGS) ; do \
33031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33032 done; \
22121df0 33033 echo "Doing dvi in gotools"; \
1b6c0831
L
33034 (cd $(HOST_SUBDIR)/gotools && \
33035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33037 "RANLIB=$${RANLIB}" \
33038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33039 dvi) \
33040 || exit 1
33041
33042@endif gotools
33043
33044.PHONY: maybe-pdf-gotools pdf-gotools
33045maybe-pdf-gotools:
33046@if gotools
33047maybe-pdf-gotools: pdf-gotools
33048
33049pdf-gotools: \
33050 configure-gotools
33051 @: $(MAKE); $(unstage)
33052 @[ -f ./gotools/Makefile ] || exit 0; \
33053 r=`${PWD_COMMAND}`; export r; \
33054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33055 $(HOST_EXPORTS) \
33056 for flag in $(EXTRA_HOST_FLAGS) ; do \
33057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33058 done; \
22121df0 33059 echo "Doing pdf in gotools"; \
1b6c0831
L
33060 (cd $(HOST_SUBDIR)/gotools && \
33061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33063 "RANLIB=$${RANLIB}" \
33064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33065 pdf) \
33066 || exit 1
33067
33068@endif gotools
33069
33070.PHONY: maybe-html-gotools html-gotools
33071maybe-html-gotools:
33072@if gotools
33073maybe-html-gotools: html-gotools
33074
33075html-gotools: \
33076 configure-gotools
33077 @: $(MAKE); $(unstage)
33078 @[ -f ./gotools/Makefile ] || exit 0; \
33079 r=`${PWD_COMMAND}`; export r; \
33080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33081 $(HOST_EXPORTS) \
33082 for flag in $(EXTRA_HOST_FLAGS) ; do \
33083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33084 done; \
22121df0 33085 echo "Doing html in gotools"; \
1b6c0831
L
33086 (cd $(HOST_SUBDIR)/gotools && \
33087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33089 "RANLIB=$${RANLIB}" \
33090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33091 html) \
33092 || exit 1
33093
33094@endif gotools
33095
33096.PHONY: maybe-TAGS-gotools TAGS-gotools
33097maybe-TAGS-gotools:
33098@if gotools
33099maybe-TAGS-gotools: TAGS-gotools
33100
33101TAGS-gotools: \
33102 configure-gotools
33103 @: $(MAKE); $(unstage)
33104 @[ -f ./gotools/Makefile ] || exit 0; \
33105 r=`${PWD_COMMAND}`; export r; \
33106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33107 $(HOST_EXPORTS) \
33108 for flag in $(EXTRA_HOST_FLAGS) ; do \
33109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33110 done; \
22121df0 33111 echo "Doing TAGS in gotools"; \
1b6c0831
L
33112 (cd $(HOST_SUBDIR)/gotools && \
33113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33115 "RANLIB=$${RANLIB}" \
33116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33117 TAGS) \
33118 || exit 1
33119
33120@endif gotools
33121
33122.PHONY: maybe-install-info-gotools install-info-gotools
33123maybe-install-info-gotools:
33124@if gotools
33125maybe-install-info-gotools: install-info-gotools
33126
33127install-info-gotools: \
33128 configure-gotools \
33129 info-gotools
33130 @: $(MAKE); $(unstage)
33131 @[ -f ./gotools/Makefile ] || exit 0; \
33132 r=`${PWD_COMMAND}`; export r; \
33133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33134 $(HOST_EXPORTS) \
33135 for flag in $(EXTRA_HOST_FLAGS) ; do \
33136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33137 done; \
22121df0 33138 echo "Doing install-info in gotools"; \
1b6c0831
L
33139 (cd $(HOST_SUBDIR)/gotools && \
33140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33142 "RANLIB=$${RANLIB}" \
33143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33144 install-info) \
33145 || exit 1
33146
33147@endif gotools
33148
33149.PHONY: maybe-install-pdf-gotools install-pdf-gotools
33150maybe-install-pdf-gotools:
33151@if gotools
33152maybe-install-pdf-gotools: install-pdf-gotools
33153
33154install-pdf-gotools: \
33155 configure-gotools \
33156 pdf-gotools
33157 @: $(MAKE); $(unstage)
33158 @[ -f ./gotools/Makefile ] || exit 0; \
33159 r=`${PWD_COMMAND}`; export r; \
33160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33161 $(HOST_EXPORTS) \
33162 for flag in $(EXTRA_HOST_FLAGS) ; do \
33163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33164 done; \
22121df0 33165 echo "Doing install-pdf in gotools"; \
1b6c0831
L
33166 (cd $(HOST_SUBDIR)/gotools && \
33167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33169 "RANLIB=$${RANLIB}" \
33170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33171 install-pdf) \
33172 || exit 1
33173
33174@endif gotools
33175
33176.PHONY: maybe-install-html-gotools install-html-gotools
33177maybe-install-html-gotools:
33178@if gotools
33179maybe-install-html-gotools: install-html-gotools
33180
33181install-html-gotools: \
33182 configure-gotools \
33183 html-gotools
33184 @: $(MAKE); $(unstage)
33185 @[ -f ./gotools/Makefile ] || exit 0; \
33186 r=`${PWD_COMMAND}`; export r; \
33187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33188 $(HOST_EXPORTS) \
33189 for flag in $(EXTRA_HOST_FLAGS) ; do \
33190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33191 done; \
22121df0 33192 echo "Doing install-html in gotools"; \
1b6c0831
L
33193 (cd $(HOST_SUBDIR)/gotools && \
33194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33196 "RANLIB=$${RANLIB}" \
33197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33198 install-html) \
33199 || exit 1
33200
33201@endif gotools
33202
33203.PHONY: maybe-installcheck-gotools installcheck-gotools
33204maybe-installcheck-gotools:
33205@if gotools
33206maybe-installcheck-gotools: installcheck-gotools
33207
33208installcheck-gotools: \
33209 configure-gotools
33210 @: $(MAKE); $(unstage)
33211 @[ -f ./gotools/Makefile ] || exit 0; \
33212 r=`${PWD_COMMAND}`; export r; \
33213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33214 $(HOST_EXPORTS) \
33215 for flag in $(EXTRA_HOST_FLAGS) ; do \
33216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33217 done; \
22121df0 33218 echo "Doing installcheck in gotools"; \
1b6c0831
L
33219 (cd $(HOST_SUBDIR)/gotools && \
33220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33222 "RANLIB=$${RANLIB}" \
33223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33224 installcheck) \
33225 || exit 1
33226
33227@endif gotools
33228
33229.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
33230maybe-mostlyclean-gotools:
33231@if gotools
33232maybe-mostlyclean-gotools: mostlyclean-gotools
33233
33234mostlyclean-gotools:
33235 @: $(MAKE); $(unstage)
33236 @[ -f ./gotools/Makefile ] || exit 0; \
33237 r=`${PWD_COMMAND}`; export r; \
33238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33239 $(HOST_EXPORTS) \
33240 for flag in $(EXTRA_HOST_FLAGS) ; do \
33241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33242 done; \
22121df0 33243 echo "Doing mostlyclean in gotools"; \
1b6c0831
L
33244 (cd $(HOST_SUBDIR)/gotools && \
33245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33247 "RANLIB=$${RANLIB}" \
33248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33249 mostlyclean) \
33250 || exit 1
33251
33252@endif gotools
33253
33254.PHONY: maybe-clean-gotools clean-gotools
33255maybe-clean-gotools:
33256@if gotools
33257maybe-clean-gotools: clean-gotools
33258
33259clean-gotools:
33260 @: $(MAKE); $(unstage)
33261 @[ -f ./gotools/Makefile ] || exit 0; \
33262 r=`${PWD_COMMAND}`; export r; \
33263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33264 $(HOST_EXPORTS) \
33265 for flag in $(EXTRA_HOST_FLAGS) ; do \
33266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33267 done; \
22121df0 33268 echo "Doing clean in gotools"; \
1b6c0831
L
33269 (cd $(HOST_SUBDIR)/gotools && \
33270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33272 "RANLIB=$${RANLIB}" \
33273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33274 clean) \
33275 || exit 1
33276
33277@endif gotools
33278
33279.PHONY: maybe-distclean-gotools distclean-gotools
33280maybe-distclean-gotools:
33281@if gotools
33282maybe-distclean-gotools: distclean-gotools
33283
33284distclean-gotools:
33285 @: $(MAKE); $(unstage)
33286 @[ -f ./gotools/Makefile ] || exit 0; \
33287 r=`${PWD_COMMAND}`; export r; \
33288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33289 $(HOST_EXPORTS) \
33290 for flag in $(EXTRA_HOST_FLAGS) ; do \
33291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33292 done; \
22121df0 33293 echo "Doing distclean in gotools"; \
1b6c0831
L
33294 (cd $(HOST_SUBDIR)/gotools && \
33295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33297 "RANLIB=$${RANLIB}" \
33298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33299 distclean) \
33300 || exit 1
33301
33302@endif gotools
33303
33304.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
33305maybe-maintainer-clean-gotools:
33306@if gotools
33307maybe-maintainer-clean-gotools: maintainer-clean-gotools
33308
33309maintainer-clean-gotools:
33310 @: $(MAKE); $(unstage)
33311 @[ -f ./gotools/Makefile ] || exit 0; \
33312 r=`${PWD_COMMAND}`; export r; \
33313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33314 $(HOST_EXPORTS) \
33315 for flag in $(EXTRA_HOST_FLAGS) ; do \
33316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33317 done; \
22121df0 33318 echo "Doing maintainer-clean in gotools"; \
1b6c0831
L
33319 (cd $(HOST_SUBDIR)/gotools && \
33320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33322 "RANLIB=$${RANLIB}" \
33323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33324 maintainer-clean) \
33325 || exit 1
33326
33327@endif gotools
33328
33329
33330
0e65dfba
NA
33331.PHONY: configure-libctf maybe-configure-libctf
33332maybe-configure-libctf:
33333@if gcc-bootstrap
33334configure-libctf: stage_current
33335@endif gcc-bootstrap
33336@if libctf
33337maybe-configure-libctf: configure-libctf
33338configure-libctf:
33339 @r=`${PWD_COMMAND}`; export r; \
33340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33341 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33342 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33343 $(HOST_EXPORTS) \
33344 echo Configuring in $(HOST_SUBDIR)/libctf; \
33345 cd "$(HOST_SUBDIR)/libctf" || exit 1; \
33346 case $(srcdir) in \
33347 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33348 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33349 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33350 esac; \
33351 module_srcdir=libctf; \
33352 $(SHELL) \
33353 $$s/$$module_srcdir/configure \
33354 --srcdir=$${topdir}/$$module_srcdir \
33355 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33356 --target=${target_alias} \
33357 || exit 1
33358@endif libctf
33359
33360
33361
33362.PHONY: configure-stage1-libctf maybe-configure-stage1-libctf
33363maybe-configure-stage1-libctf:
33364@if libctf-bootstrap
33365maybe-configure-stage1-libctf: configure-stage1-libctf
33366configure-stage1-libctf:
33367 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33368 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33369 @r=`${PWD_COMMAND}`; export r; \
33370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33371 TFLAGS="$(STAGE1_TFLAGS)"; \
33372 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33373 $(HOST_EXPORTS) \
33374 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
33375 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
33376 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
33377 echo Configuring stage 1 in $(HOST_SUBDIR)/libctf; \
33378 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33379 cd $(HOST_SUBDIR)/libctf || exit 1; \
33380 case $(srcdir) in \
33381 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33382 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33383 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33384 esac; \
33385 module_srcdir=libctf; \
33386 $(SHELL) $$s/$$module_srcdir/configure \
33387 --srcdir=$${topdir}/$$module_srcdir \
33388 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33389 --target=${target_alias} \
33390 \
33391 $(STAGE1_CONFIGURE_FLAGS)
33392@endif libctf-bootstrap
33393
33394.PHONY: configure-stage2-libctf maybe-configure-stage2-libctf
33395maybe-configure-stage2-libctf:
33396@if libctf-bootstrap
33397maybe-configure-stage2-libctf: configure-stage2-libctf
33398configure-stage2-libctf:
33399 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33400 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33401 @r=`${PWD_COMMAND}`; export r; \
33402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33403 TFLAGS="$(STAGE2_TFLAGS)"; \
33404 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33405 $(HOST_EXPORTS) \
33406 $(POSTSTAGE1_HOST_EXPORTS) \
33407 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
33408 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
33409 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
33410 echo Configuring stage 2 in $(HOST_SUBDIR)/libctf; \
33411 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33412 cd $(HOST_SUBDIR)/libctf || exit 1; \
33413 case $(srcdir) in \
33414 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33415 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33416 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33417 esac; \
33418 module_srcdir=libctf; \
33419 $(SHELL) $$s/$$module_srcdir/configure \
33420 --srcdir=$${topdir}/$$module_srcdir \
33421 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33422 --target=${target_alias} \
33423 --with-build-libsubdir=$(HOST_SUBDIR) \
33424 $(STAGE2_CONFIGURE_FLAGS)
33425@endif libctf-bootstrap
33426
33427.PHONY: configure-stage3-libctf maybe-configure-stage3-libctf
33428maybe-configure-stage3-libctf:
33429@if libctf-bootstrap
33430maybe-configure-stage3-libctf: configure-stage3-libctf
33431configure-stage3-libctf:
33432 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33433 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33434 @r=`${PWD_COMMAND}`; export r; \
33435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33436 TFLAGS="$(STAGE3_TFLAGS)"; \
33437 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33438 $(HOST_EXPORTS) \
33439 $(POSTSTAGE1_HOST_EXPORTS) \
33440 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
33441 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
33442 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
33443 echo Configuring stage 3 in $(HOST_SUBDIR)/libctf; \
33444 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33445 cd $(HOST_SUBDIR)/libctf || exit 1; \
33446 case $(srcdir) in \
33447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33448 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33450 esac; \
33451 module_srcdir=libctf; \
33452 $(SHELL) $$s/$$module_srcdir/configure \
33453 --srcdir=$${topdir}/$$module_srcdir \
33454 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33455 --target=${target_alias} \
33456 --with-build-libsubdir=$(HOST_SUBDIR) \
33457 $(STAGE3_CONFIGURE_FLAGS)
33458@endif libctf-bootstrap
33459
33460.PHONY: configure-stage4-libctf maybe-configure-stage4-libctf
33461maybe-configure-stage4-libctf:
33462@if libctf-bootstrap
33463maybe-configure-stage4-libctf: configure-stage4-libctf
33464configure-stage4-libctf:
33465 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33466 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33467 @r=`${PWD_COMMAND}`; export r; \
33468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33469 TFLAGS="$(STAGE4_TFLAGS)"; \
33470 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33471 $(HOST_EXPORTS) \
33472 $(POSTSTAGE1_HOST_EXPORTS) \
33473 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
33474 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
33475 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
33476 echo Configuring stage 4 in $(HOST_SUBDIR)/libctf; \
33477 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33478 cd $(HOST_SUBDIR)/libctf || exit 1; \
33479 case $(srcdir) in \
33480 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33481 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33482 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33483 esac; \
33484 module_srcdir=libctf; \
33485 $(SHELL) $$s/$$module_srcdir/configure \
33486 --srcdir=$${topdir}/$$module_srcdir \
33487 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33488 --target=${target_alias} \
33489 --with-build-libsubdir=$(HOST_SUBDIR) \
33490 $(STAGE4_CONFIGURE_FLAGS)
33491@endif libctf-bootstrap
33492
33493.PHONY: configure-stageprofile-libctf maybe-configure-stageprofile-libctf
33494maybe-configure-stageprofile-libctf:
33495@if libctf-bootstrap
33496maybe-configure-stageprofile-libctf: configure-stageprofile-libctf
33497configure-stageprofile-libctf:
33498 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33499 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33500 @r=`${PWD_COMMAND}`; export r; \
33501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33502 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33503 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33504 $(HOST_EXPORTS) \
33505 $(POSTSTAGE1_HOST_EXPORTS) \
33506 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
33507 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
33508 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
33509 echo Configuring stage profile in $(HOST_SUBDIR)/libctf; \
33510 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33511 cd $(HOST_SUBDIR)/libctf || exit 1; \
33512 case $(srcdir) in \
33513 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33514 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33515 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33516 esac; \
33517 module_srcdir=libctf; \
33518 $(SHELL) $$s/$$module_srcdir/configure \
33519 --srcdir=$${topdir}/$$module_srcdir \
33520 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33521 --target=${target_alias} \
33522 --with-build-libsubdir=$(HOST_SUBDIR) \
33523 $(STAGEprofile_CONFIGURE_FLAGS)
33524@endif libctf-bootstrap
33525
33526.PHONY: configure-stagefeedback-libctf maybe-configure-stagefeedback-libctf
33527maybe-configure-stagefeedback-libctf:
33528@if libctf-bootstrap
33529maybe-configure-stagefeedback-libctf: configure-stagefeedback-libctf
33530configure-stagefeedback-libctf:
33531 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33532 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33533 @r=`${PWD_COMMAND}`; export r; \
33534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33535 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33536 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33537 $(HOST_EXPORTS) \
33538 $(POSTSTAGE1_HOST_EXPORTS) \
33539 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
33540 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
33541 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
33542 echo Configuring stage feedback in $(HOST_SUBDIR)/libctf; \
33543 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33544 cd $(HOST_SUBDIR)/libctf || exit 1; \
33545 case $(srcdir) in \
33546 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33547 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33548 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33549 esac; \
33550 module_srcdir=libctf; \
33551 $(SHELL) $$s/$$module_srcdir/configure \
33552 --srcdir=$${topdir}/$$module_srcdir \
33553 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33554 --target=${target_alias} \
33555 --with-build-libsubdir=$(HOST_SUBDIR) \
33556 $(STAGEfeedback_CONFIGURE_FLAGS)
33557@endif libctf-bootstrap
33558
33559
33560
33561
33562
33563.PHONY: all-libctf maybe-all-libctf
33564maybe-all-libctf:
33565@if gcc-bootstrap
33566all-libctf: stage_current
33567@endif gcc-bootstrap
33568@if libctf
33569TARGET-libctf=all
33570maybe-all-libctf: all-libctf
33571all-libctf: configure-libctf
33572 @r=`${PWD_COMMAND}`; export r; \
33573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33574 $(HOST_EXPORTS) \
33575 (cd $(HOST_SUBDIR)/libctf && \
33576 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
33577 $(TARGET-libctf))
33578@endif libctf
33579
33580
33581
33582.PHONY: all-stage1-libctf maybe-all-stage1-libctf
33583.PHONY: clean-stage1-libctf maybe-clean-stage1-libctf
33584maybe-all-stage1-libctf:
33585maybe-clean-stage1-libctf:
33586@if libctf-bootstrap
33587maybe-all-stage1-libctf: all-stage1-libctf
33588all-stage1: all-stage1-libctf
33589TARGET-stage1-libctf = $(TARGET-libctf)
33590all-stage1-libctf: configure-stage1-libctf
33591 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33592 @r=`${PWD_COMMAND}`; export r; \
33593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33594 TFLAGS="$(STAGE1_TFLAGS)"; \
33595 $(HOST_EXPORTS) \
33596 cd $(HOST_SUBDIR)/libctf && \
33597 \
33598 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33599 CFLAGS="$(STAGE1_CFLAGS)" \
33600 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
33601 LIBCFLAGS="$(LIBCFLAGS)" \
33602 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33603 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33604 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33605 $(EXTRA_HOST_FLAGS) \
33606 $(STAGE1_FLAGS_TO_PASS) \
33607 TFLAGS="$(STAGE1_TFLAGS)" \
33608 $(TARGET-stage1-libctf)
33609
33610maybe-clean-stage1-libctf: clean-stage1-libctf
33611clean-stage1: clean-stage1-libctf
33612clean-stage1-libctf:
33613 @if [ $(current_stage) = stage1 ]; then \
33614 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33615 else \
33616 [ -f $(HOST_SUBDIR)/stage1-libctf/Makefile ] || exit 0; \
33617 $(MAKE) stage1-start; \
33618 fi; \
33619 cd $(HOST_SUBDIR)/libctf && \
33620 $(MAKE) $(EXTRA_HOST_FLAGS) \
33621 $(STAGE1_FLAGS_TO_PASS) clean
33622@endif libctf-bootstrap
33623
33624
33625.PHONY: all-stage2-libctf maybe-all-stage2-libctf
33626.PHONY: clean-stage2-libctf maybe-clean-stage2-libctf
33627maybe-all-stage2-libctf:
33628maybe-clean-stage2-libctf:
33629@if libctf-bootstrap
33630maybe-all-stage2-libctf: all-stage2-libctf
33631all-stage2: all-stage2-libctf
33632TARGET-stage2-libctf = $(TARGET-libctf)
33633all-stage2-libctf: configure-stage2-libctf
33634 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33635 @r=`${PWD_COMMAND}`; export r; \
33636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33637 TFLAGS="$(STAGE2_TFLAGS)"; \
33638 $(HOST_EXPORTS) \
33639 $(POSTSTAGE1_HOST_EXPORTS) \
33640 cd $(HOST_SUBDIR)/libctf && \
33641 \
33642 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33643 CFLAGS="$(STAGE2_CFLAGS)" \
33644 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
33645 LIBCFLAGS="$(STAGE2_CFLAGS)" \
33646 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33647 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33648 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33649 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33650 TFLAGS="$(STAGE2_TFLAGS)" \
33651 $(TARGET-stage2-libctf)
33652
33653maybe-clean-stage2-libctf: clean-stage2-libctf
33654clean-stage2: clean-stage2-libctf
33655clean-stage2-libctf:
33656 @if [ $(current_stage) = stage2 ]; then \
33657 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33658 else \
33659 [ -f $(HOST_SUBDIR)/stage2-libctf/Makefile ] || exit 0; \
33660 $(MAKE) stage2-start; \
33661 fi; \
33662 cd $(HOST_SUBDIR)/libctf && \
33663 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33664@endif libctf-bootstrap
33665
33666
33667.PHONY: all-stage3-libctf maybe-all-stage3-libctf
33668.PHONY: clean-stage3-libctf maybe-clean-stage3-libctf
33669maybe-all-stage3-libctf:
33670maybe-clean-stage3-libctf:
33671@if libctf-bootstrap
33672maybe-all-stage3-libctf: all-stage3-libctf
33673all-stage3: all-stage3-libctf
33674TARGET-stage3-libctf = $(TARGET-libctf)
33675all-stage3-libctf: configure-stage3-libctf
33676 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33677 @r=`${PWD_COMMAND}`; export r; \
33678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33679 TFLAGS="$(STAGE3_TFLAGS)"; \
33680 $(HOST_EXPORTS) \
33681 $(POSTSTAGE1_HOST_EXPORTS) \
33682 cd $(HOST_SUBDIR)/libctf && \
33683 \
33684 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33685 CFLAGS="$(STAGE3_CFLAGS)" \
33686 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
33687 LIBCFLAGS="$(STAGE3_CFLAGS)" \
33688 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33689 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33690 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33691 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33692 TFLAGS="$(STAGE3_TFLAGS)" \
33693 $(TARGET-stage3-libctf)
33694
33695maybe-clean-stage3-libctf: clean-stage3-libctf
33696clean-stage3: clean-stage3-libctf
33697clean-stage3-libctf:
33698 @if [ $(current_stage) = stage3 ]; then \
33699 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33700 else \
33701 [ -f $(HOST_SUBDIR)/stage3-libctf/Makefile ] || exit 0; \
33702 $(MAKE) stage3-start; \
33703 fi; \
33704 cd $(HOST_SUBDIR)/libctf && \
33705 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33706@endif libctf-bootstrap
33707
33708
33709.PHONY: all-stage4-libctf maybe-all-stage4-libctf
33710.PHONY: clean-stage4-libctf maybe-clean-stage4-libctf
33711maybe-all-stage4-libctf:
33712maybe-clean-stage4-libctf:
33713@if libctf-bootstrap
33714maybe-all-stage4-libctf: all-stage4-libctf
33715all-stage4: all-stage4-libctf
33716TARGET-stage4-libctf = $(TARGET-libctf)
33717all-stage4-libctf: configure-stage4-libctf
33718 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33719 @r=`${PWD_COMMAND}`; export r; \
33720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33721 TFLAGS="$(STAGE4_TFLAGS)"; \
33722 $(HOST_EXPORTS) \
33723 $(POSTSTAGE1_HOST_EXPORTS) \
33724 cd $(HOST_SUBDIR)/libctf && \
33725 \
33726 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33727 CFLAGS="$(STAGE4_CFLAGS)" \
33728 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
33729 LIBCFLAGS="$(STAGE4_CFLAGS)" \
33730 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33731 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33732 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33733 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33734 TFLAGS="$(STAGE4_TFLAGS)" \
33735 $(TARGET-stage4-libctf)
33736
33737maybe-clean-stage4-libctf: clean-stage4-libctf
33738clean-stage4: clean-stage4-libctf
33739clean-stage4-libctf:
33740 @if [ $(current_stage) = stage4 ]; then \
33741 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33742 else \
33743 [ -f $(HOST_SUBDIR)/stage4-libctf/Makefile ] || exit 0; \
33744 $(MAKE) stage4-start; \
33745 fi; \
33746 cd $(HOST_SUBDIR)/libctf && \
33747 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33748@endif libctf-bootstrap
33749
33750
33751.PHONY: all-stageprofile-libctf maybe-all-stageprofile-libctf
33752.PHONY: clean-stageprofile-libctf maybe-clean-stageprofile-libctf
33753maybe-all-stageprofile-libctf:
33754maybe-clean-stageprofile-libctf:
33755@if libctf-bootstrap
33756maybe-all-stageprofile-libctf: all-stageprofile-libctf
33757all-stageprofile: all-stageprofile-libctf
33758TARGET-stageprofile-libctf = $(TARGET-libctf)
33759all-stageprofile-libctf: configure-stageprofile-libctf
33760 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33761 @r=`${PWD_COMMAND}`; export r; \
33762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33763 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33764 $(HOST_EXPORTS) \
33765 $(POSTSTAGE1_HOST_EXPORTS) \
33766 cd $(HOST_SUBDIR)/libctf && \
33767 \
33768 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33769 CFLAGS="$(STAGEprofile_CFLAGS)" \
33770 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
33771 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
33772 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33773 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33774 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33775 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33776 TFLAGS="$(STAGEprofile_TFLAGS)" \
33777 $(TARGET-stageprofile-libctf)
33778
33779maybe-clean-stageprofile-libctf: clean-stageprofile-libctf
33780clean-stageprofile: clean-stageprofile-libctf
33781clean-stageprofile-libctf:
33782 @if [ $(current_stage) = stageprofile ]; then \
33783 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33784 else \
33785 [ -f $(HOST_SUBDIR)/stageprofile-libctf/Makefile ] || exit 0; \
33786 $(MAKE) stageprofile-start; \
33787 fi; \
33788 cd $(HOST_SUBDIR)/libctf && \
33789 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33790@endif libctf-bootstrap
33791
33792
33793.PHONY: all-stagefeedback-libctf maybe-all-stagefeedback-libctf
33794.PHONY: clean-stagefeedback-libctf maybe-clean-stagefeedback-libctf
33795maybe-all-stagefeedback-libctf:
33796maybe-clean-stagefeedback-libctf:
33797@if libctf-bootstrap
33798maybe-all-stagefeedback-libctf: all-stagefeedback-libctf
33799all-stagefeedback: all-stagefeedback-libctf
33800TARGET-stagefeedback-libctf = $(TARGET-libctf)
33801all-stagefeedback-libctf: configure-stagefeedback-libctf
33802 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33803 @r=`${PWD_COMMAND}`; export r; \
33804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33805 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33806 $(HOST_EXPORTS) \
33807 $(POSTSTAGE1_HOST_EXPORTS) \
33808 cd $(HOST_SUBDIR)/libctf && \
33809 \
33810 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33811 CFLAGS="$(STAGEfeedback_CFLAGS)" \
33812 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
33813 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
33814 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33815 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33816 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33817 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33818 TFLAGS="$(STAGEfeedback_TFLAGS)" \
33819 $(TARGET-stagefeedback-libctf)
33820
33821maybe-clean-stagefeedback-libctf: clean-stagefeedback-libctf
33822clean-stagefeedback: clean-stagefeedback-libctf
33823clean-stagefeedback-libctf:
33824 @if [ $(current_stage) = stagefeedback ]; then \
33825 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33826 else \
33827 [ -f $(HOST_SUBDIR)/stagefeedback-libctf/Makefile ] || exit 0; \
33828 $(MAKE) stagefeedback-start; \
33829 fi; \
33830 cd $(HOST_SUBDIR)/libctf && \
33831 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33832@endif libctf-bootstrap
33833
33834
33835
33836
33837
33838.PHONY: check-libctf maybe-check-libctf
33839maybe-check-libctf:
33840@if libctf
33841maybe-check-libctf: check-libctf
33842
33843check-libctf:
33844
33845@endif libctf
33846
33847.PHONY: install-libctf maybe-install-libctf
33848maybe-install-libctf:
33849@if libctf
33850maybe-install-libctf: install-libctf
33851
87279e3c
NA
33852install-libctf: installdirs
33853 @: $(MAKE); $(unstage)
33854 @r=`${PWD_COMMAND}`; export r; \
33855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33856 $(HOST_EXPORTS) \
33857 (cd $(HOST_SUBDIR)/libctf && \
33858 $(MAKE) $(FLAGS_TO_PASS) install)
0e65dfba
NA
33859
33860@endif libctf
33861
33862.PHONY: install-strip-libctf maybe-install-strip-libctf
33863maybe-install-strip-libctf:
33864@if libctf
33865maybe-install-strip-libctf: install-strip-libctf
33866
87279e3c
NA
33867install-strip-libctf: installdirs
33868 @: $(MAKE); $(unstage)
33869 @r=`${PWD_COMMAND}`; export r; \
33870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33871 $(HOST_EXPORTS) \
33872 (cd $(HOST_SUBDIR)/libctf && \
33873 $(MAKE) $(FLAGS_TO_PASS) install-strip)
0e65dfba
NA
33874
33875@endif libctf
33876
33877# Other targets (info, dvi, pdf, etc.)
33878
33879.PHONY: maybe-info-libctf info-libctf
33880maybe-info-libctf:
33881@if libctf
33882maybe-info-libctf: info-libctf
33883
33884info-libctf: \
33885 configure-libctf
33886 @[ -f ./libctf/Makefile ] || exit 0; \
33887 r=`${PWD_COMMAND}`; export r; \
33888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33889 $(HOST_EXPORTS) \
33890 for flag in $(EXTRA_HOST_FLAGS) ; do \
33891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33892 done; \
33893 echo "Doing info in libctf"; \
33894 (cd $(HOST_SUBDIR)/libctf && \
33895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33897 "RANLIB=$${RANLIB}" \
33898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33899 info) \
33900 || exit 1
33901
33902@endif libctf
33903
33904.PHONY: maybe-dvi-libctf dvi-libctf
33905maybe-dvi-libctf:
33906@if libctf
33907maybe-dvi-libctf: dvi-libctf
33908
33909dvi-libctf: \
33910 configure-libctf
33911 @[ -f ./libctf/Makefile ] || exit 0; \
33912 r=`${PWD_COMMAND}`; export r; \
33913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33914 $(HOST_EXPORTS) \
33915 for flag in $(EXTRA_HOST_FLAGS) ; do \
33916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33917 done; \
33918 echo "Doing dvi in libctf"; \
33919 (cd $(HOST_SUBDIR)/libctf && \
33920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33922 "RANLIB=$${RANLIB}" \
33923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33924 dvi) \
33925 || exit 1
33926
33927@endif libctf
33928
33929.PHONY: maybe-pdf-libctf pdf-libctf
33930maybe-pdf-libctf:
33931@if libctf
33932maybe-pdf-libctf: pdf-libctf
33933
33934pdf-libctf: \
33935 configure-libctf
33936 @[ -f ./libctf/Makefile ] || exit 0; \
33937 r=`${PWD_COMMAND}`; export r; \
33938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33939 $(HOST_EXPORTS) \
33940 for flag in $(EXTRA_HOST_FLAGS) ; do \
33941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33942 done; \
33943 echo "Doing pdf in libctf"; \
33944 (cd $(HOST_SUBDIR)/libctf && \
33945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33947 "RANLIB=$${RANLIB}" \
33948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33949 pdf) \
33950 || exit 1
33951
33952@endif libctf
33953
33954.PHONY: maybe-html-libctf html-libctf
33955maybe-html-libctf:
33956@if libctf
33957maybe-html-libctf: html-libctf
33958
33959html-libctf: \
33960 configure-libctf
33961 @[ -f ./libctf/Makefile ] || exit 0; \
33962 r=`${PWD_COMMAND}`; export r; \
33963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33964 $(HOST_EXPORTS) \
33965 for flag in $(EXTRA_HOST_FLAGS) ; do \
33966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33967 done; \
33968 echo "Doing html in libctf"; \
33969 (cd $(HOST_SUBDIR)/libctf && \
33970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33972 "RANLIB=$${RANLIB}" \
33973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33974 html) \
33975 || exit 1
33976
33977@endif libctf
33978
33979.PHONY: maybe-TAGS-libctf TAGS-libctf
33980maybe-TAGS-libctf:
33981@if libctf
33982maybe-TAGS-libctf: TAGS-libctf
33983
33984TAGS-libctf: \
33985 configure-libctf
33986 @[ -f ./libctf/Makefile ] || exit 0; \
33987 r=`${PWD_COMMAND}`; export r; \
33988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33989 $(HOST_EXPORTS) \
33990 for flag in $(EXTRA_HOST_FLAGS) ; do \
33991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33992 done; \
33993 echo "Doing TAGS in libctf"; \
33994 (cd $(HOST_SUBDIR)/libctf && \
33995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33997 "RANLIB=$${RANLIB}" \
33998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33999 TAGS) \
34000 || exit 1
34001
34002@endif libctf
34003
34004.PHONY: maybe-install-info-libctf install-info-libctf
34005maybe-install-info-libctf:
34006@if libctf
34007maybe-install-info-libctf: install-info-libctf
34008
34009install-info-libctf: \
34010 configure-libctf \
34011 info-libctf
34012 @[ -f ./libctf/Makefile ] || exit 0; \
34013 r=`${PWD_COMMAND}`; export r; \
34014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34015 $(HOST_EXPORTS) \
34016 for flag in $(EXTRA_HOST_FLAGS) ; do \
34017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34018 done; \
34019 echo "Doing install-info in libctf"; \
34020 (cd $(HOST_SUBDIR)/libctf && \
34021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34023 "RANLIB=$${RANLIB}" \
34024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34025 install-info) \
34026 || exit 1
34027
34028@endif libctf
34029
34030.PHONY: maybe-install-pdf-libctf install-pdf-libctf
34031maybe-install-pdf-libctf:
34032@if libctf
34033maybe-install-pdf-libctf: install-pdf-libctf
34034
34035install-pdf-libctf: \
34036 configure-libctf \
34037 pdf-libctf
34038 @[ -f ./libctf/Makefile ] || exit 0; \
34039 r=`${PWD_COMMAND}`; export r; \
34040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34041 $(HOST_EXPORTS) \
34042 for flag in $(EXTRA_HOST_FLAGS) ; do \
34043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34044 done; \
34045 echo "Doing install-pdf in libctf"; \
34046 (cd $(HOST_SUBDIR)/libctf && \
34047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34049 "RANLIB=$${RANLIB}" \
34050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34051 install-pdf) \
34052 || exit 1
34053
34054@endif libctf
34055
34056.PHONY: maybe-install-html-libctf install-html-libctf
34057maybe-install-html-libctf:
34058@if libctf
34059maybe-install-html-libctf: install-html-libctf
34060
34061install-html-libctf: \
34062 configure-libctf \
34063 html-libctf
34064 @[ -f ./libctf/Makefile ] || exit 0; \
34065 r=`${PWD_COMMAND}`; export r; \
34066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34067 $(HOST_EXPORTS) \
34068 for flag in $(EXTRA_HOST_FLAGS) ; do \
34069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34070 done; \
34071 echo "Doing install-html in libctf"; \
34072 (cd $(HOST_SUBDIR)/libctf && \
34073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34075 "RANLIB=$${RANLIB}" \
34076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34077 install-html) \
34078 || exit 1
34079
34080@endif libctf
34081
34082.PHONY: maybe-installcheck-libctf installcheck-libctf
34083maybe-installcheck-libctf:
34084@if libctf
34085maybe-installcheck-libctf: installcheck-libctf
34086
34087installcheck-libctf: \
34088 configure-libctf
34089 @[ -f ./libctf/Makefile ] || exit 0; \
34090 r=`${PWD_COMMAND}`; export r; \
34091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34092 $(HOST_EXPORTS) \
34093 for flag in $(EXTRA_HOST_FLAGS) ; do \
34094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34095 done; \
34096 echo "Doing installcheck in libctf"; \
34097 (cd $(HOST_SUBDIR)/libctf && \
34098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34100 "RANLIB=$${RANLIB}" \
34101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34102 installcheck) \
34103 || exit 1
34104
34105@endif libctf
34106
34107.PHONY: maybe-mostlyclean-libctf mostlyclean-libctf
34108maybe-mostlyclean-libctf:
34109@if libctf
34110maybe-mostlyclean-libctf: mostlyclean-libctf
34111
34112mostlyclean-libctf:
34113 @[ -f ./libctf/Makefile ] || exit 0; \
34114 r=`${PWD_COMMAND}`; export r; \
34115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34116 $(HOST_EXPORTS) \
34117 for flag in $(EXTRA_HOST_FLAGS) ; do \
34118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34119 done; \
34120 echo "Doing mostlyclean in libctf"; \
34121 (cd $(HOST_SUBDIR)/libctf && \
34122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34124 "RANLIB=$${RANLIB}" \
34125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34126 mostlyclean) \
34127 || exit 1
34128
34129@endif libctf
34130
34131.PHONY: maybe-clean-libctf clean-libctf
34132maybe-clean-libctf:
34133@if libctf
34134maybe-clean-libctf: clean-libctf
34135
34136clean-libctf:
34137 @[ -f ./libctf/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; \
34144 echo "Doing clean in libctf"; \
34145 (cd $(HOST_SUBDIR)/libctf && \
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 clean) \
34151 || exit 1
34152
34153@endif libctf
34154
34155.PHONY: maybe-distclean-libctf distclean-libctf
34156maybe-distclean-libctf:
34157@if libctf
34158maybe-distclean-libctf: distclean-libctf
34159
34160distclean-libctf:
34161 @[ -f ./libctf/Makefile ] || exit 0; \
34162 r=`${PWD_COMMAND}`; export r; \
34163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34164 $(HOST_EXPORTS) \
34165 for flag in $(EXTRA_HOST_FLAGS) ; do \
34166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34167 done; \
34168 echo "Doing distclean in libctf"; \
34169 (cd $(HOST_SUBDIR)/libctf && \
34170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34172 "RANLIB=$${RANLIB}" \
34173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34174 distclean) \
34175 || exit 1
34176
34177@endif libctf
34178
34179.PHONY: maybe-maintainer-clean-libctf maintainer-clean-libctf
34180maybe-maintainer-clean-libctf:
34181@if libctf
34182maybe-maintainer-clean-libctf: maintainer-clean-libctf
34183
34184maintainer-clean-libctf:
34185 @[ -f ./libctf/Makefile ] || exit 0; \
34186 r=`${PWD_COMMAND}`; export r; \
34187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34188 $(HOST_EXPORTS) \
34189 for flag in $(EXTRA_HOST_FLAGS) ; do \
34190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34191 done; \
34192 echo "Doing maintainer-clean in libctf"; \
34193 (cd $(HOST_SUBDIR)/libctf && \
34194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34196 "RANLIB=$${RANLIB}" \
34197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34198 maintainer-clean) \
34199 || exit 1
34200
34201@endif libctf
34202
34203
34204
1b6c0831
L
34205# ---------------------------------------
34206# Modules which run on the target machine
34207# ---------------------------------------
34208
34209
34210
34211
34212.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
34213maybe-configure-target-libstdc++-v3:
34214@if gcc-bootstrap
34215configure-target-libstdc++-v3: stage_current
34216@endif gcc-bootstrap
34217@if target-libstdc++-v3
34218maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
34219configure-target-libstdc++-v3:
34220 @r=`${PWD_COMMAND}`; export r; \
34221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34222 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0
L
34223 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
34224 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34225 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34226 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34227 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34228 else \
34229 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34230 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34231 fi; \
34232 else \
34233 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34234 fi; \
34235 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22121df0 34236 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34237 $(RAW_CXX_TARGET_EXPORTS) \
34238 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
34239 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
34240 case $(srcdir) in \
34241 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34242 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34243 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34244 esac; \
34245 module_srcdir=libstdc++-v3; \
34246 rm -f no-such-file || : ; \
34247 CONFIG_SITE=no-such-file $(SHELL) \
34248 $$s/$$module_srcdir/configure \
34249 --srcdir=$${topdir}/$$module_srcdir \
34250 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34251 --target=${target_alias} \
34252 || exit 1
34253@endif target-libstdc++-v3
34254
34255
34256
34257.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
34258maybe-configure-stage1-target-libstdc++-v3:
34259@if target-libstdc++-v3-bootstrap
34260maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
34261configure-stage1-target-libstdc++-v3:
34262 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34263 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34264 @r=`${PWD_COMMAND}`; export r; \
34265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34266 TFLAGS="$(STAGE1_TFLAGS)"; \
34267 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34268 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34269 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34270 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34271 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34272 else \
34273 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34274 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34275 fi; \
34276 else \
34277 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34278 fi; \
34279 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34280 $(RAW_CXX_TARGET_EXPORTS) \
34281 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34282 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34283 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34284 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \
34285 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34286 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34287 case $(srcdir) in \
34288 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34289 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34290 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34291 esac; \
34292 module_srcdir=libstdc++-v3; \
34293 $(SHELL) $$s/$$module_srcdir/configure \
34294 --srcdir=$${topdir}/$$module_srcdir \
34295 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34296 --target=${target_alias} \
34297 \
34298 $(STAGE1_CONFIGURE_FLAGS)
34299@endif target-libstdc++-v3-bootstrap
34300
34301.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
34302maybe-configure-stage2-target-libstdc++-v3:
34303@if target-libstdc++-v3-bootstrap
34304maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
34305configure-stage2-target-libstdc++-v3:
34306 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34307 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34308 @r=`${PWD_COMMAND}`; export r; \
34309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34310 TFLAGS="$(STAGE2_TFLAGS)"; \
34311 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34312 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34313 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34314 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34315 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34316 else \
34317 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34318 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34319 fi; \
34320 else \
34321 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34322 fi; \
34323 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34324 $(RAW_CXX_TARGET_EXPORTS) \
34325 \
34326 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34327 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34328 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34329 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \
34330 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34331 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34332 case $(srcdir) in \
34333 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34334 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34335 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34336 esac; \
34337 module_srcdir=libstdc++-v3; \
34338 $(SHELL) $$s/$$module_srcdir/configure \
34339 --srcdir=$${topdir}/$$module_srcdir \
34340 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34341 --target=${target_alias} \
22121df0 34342 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34343 $(STAGE2_CONFIGURE_FLAGS)
34344@endif target-libstdc++-v3-bootstrap
34345
34346.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
34347maybe-configure-stage3-target-libstdc++-v3:
34348@if target-libstdc++-v3-bootstrap
34349maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
34350configure-stage3-target-libstdc++-v3:
34351 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34352 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34353 @r=`${PWD_COMMAND}`; export r; \
34354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34355 TFLAGS="$(STAGE3_TFLAGS)"; \
34356 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34357 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34358 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34359 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34360 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34361 else \
34362 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34363 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34364 fi; \
34365 else \
34366 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34367 fi; \
34368 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34369 $(RAW_CXX_TARGET_EXPORTS) \
34370 \
34371 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34372 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34373 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34374 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \
34375 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34376 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34377 case $(srcdir) in \
34378 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34379 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34380 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34381 esac; \
34382 module_srcdir=libstdc++-v3; \
34383 $(SHELL) $$s/$$module_srcdir/configure \
34384 --srcdir=$${topdir}/$$module_srcdir \
34385 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34386 --target=${target_alias} \
22121df0 34387 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34388 $(STAGE3_CONFIGURE_FLAGS)
34389@endif target-libstdc++-v3-bootstrap
34390
34391.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
34392maybe-configure-stage4-target-libstdc++-v3:
34393@if target-libstdc++-v3-bootstrap
34394maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
34395configure-stage4-target-libstdc++-v3:
34396 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34397 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34398 @r=`${PWD_COMMAND}`; export r; \
34399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34400 TFLAGS="$(STAGE4_TFLAGS)"; \
34401 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34402 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34403 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34404 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34405 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34406 else \
34407 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34408 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34409 fi; \
34410 else \
34411 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34412 fi; \
34413 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34414 $(RAW_CXX_TARGET_EXPORTS) \
34415 \
34416 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34417 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34418 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34419 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \
34420 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34421 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34422 case $(srcdir) in \
34423 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34424 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34425 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34426 esac; \
34427 module_srcdir=libstdc++-v3; \
34428 $(SHELL) $$s/$$module_srcdir/configure \
34429 --srcdir=$${topdir}/$$module_srcdir \
34430 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34431 --target=${target_alias} \
22121df0 34432 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34433 $(STAGE4_CONFIGURE_FLAGS)
34434@endif target-libstdc++-v3-bootstrap
34435
34436.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
34437maybe-configure-stageprofile-target-libstdc++-v3:
34438@if target-libstdc++-v3-bootstrap
34439maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
34440configure-stageprofile-target-libstdc++-v3:
34441 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34442 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34443 @r=`${PWD_COMMAND}`; export r; \
34444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34445 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34446 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34447 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34448 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34449 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34450 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34451 else \
34452 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34453 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34454 fi; \
34455 else \
34456 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34457 fi; \
34458 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34459 $(RAW_CXX_TARGET_EXPORTS) \
34460 \
34461 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34462 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34463 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34464 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \
34465 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34466 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34467 case $(srcdir) in \
34468 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34469 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34470 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34471 esac; \
34472 module_srcdir=libstdc++-v3; \
34473 $(SHELL) $$s/$$module_srcdir/configure \
34474 --srcdir=$${topdir}/$$module_srcdir \
34475 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34476 --target=${target_alias} \
22121df0 34477 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34478 $(STAGEprofile_CONFIGURE_FLAGS)
34479@endif target-libstdc++-v3-bootstrap
34480
34481.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
34482maybe-configure-stagefeedback-target-libstdc++-v3:
34483@if target-libstdc++-v3-bootstrap
34484maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
34485configure-stagefeedback-target-libstdc++-v3:
34486 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34487 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34488 @r=`${PWD_COMMAND}`; export r; \
34489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34490 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34491 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34492 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34493 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34494 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34495 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34496 else \
34497 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34498 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34499 fi; \
34500 else \
34501 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34502 fi; \
34503 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34504 $(RAW_CXX_TARGET_EXPORTS) \
34505 \
34506 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34507 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34508 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34509 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \
34510 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34511 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34512 case $(srcdir) in \
34513 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34514 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34515 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34516 esac; \
34517 module_srcdir=libstdc++-v3; \
34518 $(SHELL) $$s/$$module_srcdir/configure \
34519 --srcdir=$${topdir}/$$module_srcdir \
34520 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34521 --target=${target_alias} \
22121df0 34522 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34523 $(STAGEfeedback_CONFIGURE_FLAGS)
34524@endif target-libstdc++-v3-bootstrap
34525
34526
34527
34528
34529
34530.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
34531maybe-all-target-libstdc++-v3:
34532@if gcc-bootstrap
34533all-target-libstdc++-v3: stage_current
34534@endif gcc-bootstrap
34535@if target-libstdc++-v3
34536TARGET-target-libstdc++-v3=all
34537maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
34538all-target-libstdc++-v3: configure-target-libstdc++-v3
34539 @r=`${PWD_COMMAND}`; export r; \
34540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34541 $(RAW_CXX_TARGET_EXPORTS) \
34542 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34543 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34544 $(TARGET-target-libstdc++-v3))
34545@endif target-libstdc++-v3
34546
34547
34548
34549.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
34550.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
34551maybe-all-stage1-target-libstdc++-v3:
34552maybe-clean-stage1-target-libstdc++-v3:
34553@if target-libstdc++-v3-bootstrap
34554maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
34555all-stage1: all-stage1-target-libstdc++-v3
34556TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34557all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
34558 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34559 @r=`${PWD_COMMAND}`; export r; \
34560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34561 TFLAGS="$(STAGE1_TFLAGS)"; \
34562 $(RAW_CXX_TARGET_EXPORTS) \
34563 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34564 \
1b6c0831
L
34565 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34566 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34567 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34568 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34569 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34570 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34571 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34572 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34573 \
05a13254 34574 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
34575 $(TARGET-stage1-target-libstdc++-v3)
34576
34577maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
34578clean-stage1: clean-stage1-target-libstdc++-v3
34579clean-stage1-target-libstdc++-v3:
34580 @if [ $(current_stage) = stage1 ]; then \
34581 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34582 else \
34583 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
34584 $(MAKE) stage1-start; \
34585 fi; \
34586 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34587 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34588 clean
34589@endif target-libstdc++-v3-bootstrap
34590
34591
34592.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
34593.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
34594maybe-all-stage2-target-libstdc++-v3:
34595maybe-clean-stage2-target-libstdc++-v3:
34596@if target-libstdc++-v3-bootstrap
34597maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
34598all-stage2: all-stage2-target-libstdc++-v3
34599TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34600all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
34601 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34602 @r=`${PWD_COMMAND}`; export r; \
34603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34604 TFLAGS="$(STAGE2_TFLAGS)"; \
34605 $(RAW_CXX_TARGET_EXPORTS) \
34606 \
34607 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34608 \
1b6c0831
L
34609 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34610 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34611 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34612 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34613 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34614 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34615 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34616 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34617 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
34618 $(TARGET-stage2-target-libstdc++-v3)
34619
34620maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
34621clean-stage2: clean-stage2-target-libstdc++-v3
34622clean-stage2-target-libstdc++-v3:
34623 @if [ $(current_stage) = stage2 ]; then \
34624 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34625 else \
34626 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
34627 $(MAKE) stage2-start; \
34628 fi; \
34629 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34630 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34631@endif target-libstdc++-v3-bootstrap
34632
34633
34634.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
34635.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
34636maybe-all-stage3-target-libstdc++-v3:
34637maybe-clean-stage3-target-libstdc++-v3:
34638@if target-libstdc++-v3-bootstrap
34639maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
34640all-stage3: all-stage3-target-libstdc++-v3
34641TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34642all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
34643 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34644 @r=`${PWD_COMMAND}`; export r; \
34645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34646 TFLAGS="$(STAGE3_TFLAGS)"; \
34647 $(RAW_CXX_TARGET_EXPORTS) \
34648 \
34649 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34650 \
1b6c0831
L
34651 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34652 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34653 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34654 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34655 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34656 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34657 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34658 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34659 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
34660 $(TARGET-stage3-target-libstdc++-v3)
34661
34662maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
34663clean-stage3: clean-stage3-target-libstdc++-v3
34664clean-stage3-target-libstdc++-v3:
34665 @if [ $(current_stage) = stage3 ]; then \
34666 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34667 else \
34668 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
34669 $(MAKE) stage3-start; \
34670 fi; \
34671 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34672 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34673@endif target-libstdc++-v3-bootstrap
34674
34675
34676.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
34677.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
34678maybe-all-stage4-target-libstdc++-v3:
34679maybe-clean-stage4-target-libstdc++-v3:
34680@if target-libstdc++-v3-bootstrap
34681maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
34682all-stage4: all-stage4-target-libstdc++-v3
34683TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34684all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
34685 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34686 @r=`${PWD_COMMAND}`; export r; \
34687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34688 TFLAGS="$(STAGE4_TFLAGS)"; \
34689 $(RAW_CXX_TARGET_EXPORTS) \
34690 \
34691 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34692 \
1b6c0831
L
34693 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34694 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34695 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34696 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34697 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34698 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34699 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34700 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34701 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
34702 $(TARGET-stage4-target-libstdc++-v3)
34703
34704maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
34705clean-stage4: clean-stage4-target-libstdc++-v3
34706clean-stage4-target-libstdc++-v3:
34707 @if [ $(current_stage) = stage4 ]; then \
34708 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34709 else \
34710 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
34711 $(MAKE) stage4-start; \
34712 fi; \
34713 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34714 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34715@endif target-libstdc++-v3-bootstrap
34716
34717
34718.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
34719.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
34720maybe-all-stageprofile-target-libstdc++-v3:
34721maybe-clean-stageprofile-target-libstdc++-v3:
34722@if target-libstdc++-v3-bootstrap
34723maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
34724all-stageprofile: all-stageprofile-target-libstdc++-v3
34725TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34726all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
34727 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34728 @r=`${PWD_COMMAND}`; export r; \
34729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34730 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34731 $(RAW_CXX_TARGET_EXPORTS) \
34732 \
34733 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34734 \
1b6c0831
L
34735 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34736 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34737 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34738 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34739 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34740 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34741 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34742 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34743 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
34744 $(TARGET-stageprofile-target-libstdc++-v3)
34745
34746maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
34747clean-stageprofile: clean-stageprofile-target-libstdc++-v3
34748clean-stageprofile-target-libstdc++-v3:
34749 @if [ $(current_stage) = stageprofile ]; then \
34750 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34751 else \
34752 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
34753 $(MAKE) stageprofile-start; \
34754 fi; \
34755 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34756 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34757@endif target-libstdc++-v3-bootstrap
34758
34759
34760.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
34761.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
34762maybe-all-stagefeedback-target-libstdc++-v3:
34763maybe-clean-stagefeedback-target-libstdc++-v3:
34764@if target-libstdc++-v3-bootstrap
34765maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
34766all-stagefeedback: all-stagefeedback-target-libstdc++-v3
34767TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34768all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
34769 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34770 @r=`${PWD_COMMAND}`; export r; \
34771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34772 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34773 $(RAW_CXX_TARGET_EXPORTS) \
34774 \
34775 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34776 \
1b6c0831
L
34777 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34778 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34779 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34780 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34781 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34782 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34783 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34784 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34785 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
34786 $(TARGET-stagefeedback-target-libstdc++-v3)
34787
34788maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
34789clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
34790clean-stagefeedback-target-libstdc++-v3:
34791 @if [ $(current_stage) = stagefeedback ]; then \
34792 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34793 else \
34794 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
34795 $(MAKE) stagefeedback-start; \
34796 fi; \
34797 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34798 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34799@endif target-libstdc++-v3-bootstrap
34800
34801
34802
34803
34804
34805
34806.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
34807maybe-check-target-libstdc++-v3:
34808@if target-libstdc++-v3
34809maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
34810
34811check-target-libstdc++-v3:
34812 @: $(MAKE); $(unstage)
34813 @r=`${PWD_COMMAND}`; export r; \
34814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34815 $(RAW_CXX_TARGET_EXPORTS) \
34816 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34817 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
34818
34819@endif target-libstdc++-v3
34820
34821.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
34822maybe-install-target-libstdc++-v3:
34823@if target-libstdc++-v3
34824maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
34825
34826install-target-libstdc++-v3: installdirs
34827 @: $(MAKE); $(unstage)
34828 @r=`${PWD_COMMAND}`; export r; \
34829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34830 $(RAW_CXX_TARGET_EXPORTS) \
34831 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34832 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
34833
34834@endif target-libstdc++-v3
34835
34836.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
34837maybe-install-strip-target-libstdc++-v3:
34838@if target-libstdc++-v3
34839maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
34840
34841install-strip-target-libstdc++-v3: installdirs
34842 @: $(MAKE); $(unstage)
34843 @r=`${PWD_COMMAND}`; export r; \
34844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34845 $(RAW_CXX_TARGET_EXPORTS) \
34846 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34847 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34848
34849@endif target-libstdc++-v3
34850
34851# Other targets (info, dvi, pdf, etc.)
34852
34853.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
34854maybe-info-target-libstdc++-v3:
34855@if target-libstdc++-v3
34856maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
34857
34858info-target-libstdc++-v3: \
34859 configure-target-libstdc++-v3
34860 @: $(MAKE); $(unstage)
22121df0 34861 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34862 r=`${PWD_COMMAND}`; export r; \
34863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34864 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34865 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34866 for flag in $(EXTRA_TARGET_FLAGS); do \
34867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34868 done; \
34869 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34872 "RANLIB=$${RANLIB}" \
34873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34874 info) \
34875 || exit 1
34876
34877@endif target-libstdc++-v3
34878
34879.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
34880maybe-dvi-target-libstdc++-v3:
34881@if target-libstdc++-v3
34882maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
34883
34884dvi-target-libstdc++-v3: \
34885 configure-target-libstdc++-v3
34886 @: $(MAKE); $(unstage)
22121df0 34887 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34888 r=`${PWD_COMMAND}`; export r; \
34889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34890 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34891 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34892 for flag in $(EXTRA_TARGET_FLAGS); do \
34893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34894 done; \
34895 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34898 "RANLIB=$${RANLIB}" \
34899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34900 dvi) \
34901 || exit 1
34902
34903@endif target-libstdc++-v3
34904
34905.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
34906maybe-pdf-target-libstdc++-v3:
34907@if target-libstdc++-v3
34908maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
34909
34910pdf-target-libstdc++-v3: \
34911 configure-target-libstdc++-v3
34912 @: $(MAKE); $(unstage)
22121df0 34913 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34914 r=`${PWD_COMMAND}`; export r; \
34915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34916 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34917 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34918 for flag in $(EXTRA_TARGET_FLAGS); do \
34919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34920 done; \
34921 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34924 "RANLIB=$${RANLIB}" \
34925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34926 pdf) \
34927 || exit 1
34928
34929@endif target-libstdc++-v3
34930
34931.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
34932maybe-html-target-libstdc++-v3:
34933@if target-libstdc++-v3
34934maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
34935
34936html-target-libstdc++-v3: \
34937 configure-target-libstdc++-v3
34938 @: $(MAKE); $(unstage)
22121df0 34939 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34940 r=`${PWD_COMMAND}`; export r; \
34941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34942 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34943 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34944 for flag in $(EXTRA_TARGET_FLAGS); do \
34945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34946 done; \
34947 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34950 "RANLIB=$${RANLIB}" \
34951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34952 html) \
34953 || exit 1
34954
34955@endif target-libstdc++-v3
34956
34957.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
34958maybe-TAGS-target-libstdc++-v3:
34959@if target-libstdc++-v3
34960maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
34961
34962TAGS-target-libstdc++-v3: \
34963 configure-target-libstdc++-v3
34964 @: $(MAKE); $(unstage)
22121df0 34965 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34966 r=`${PWD_COMMAND}`; export r; \
34967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34968 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34969 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34970 for flag in $(EXTRA_TARGET_FLAGS); do \
34971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34972 done; \
34973 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34976 "RANLIB=$${RANLIB}" \
34977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34978 TAGS) \
34979 || exit 1
34980
34981@endif target-libstdc++-v3
34982
34983.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
34984maybe-install-info-target-libstdc++-v3:
34985@if target-libstdc++-v3
34986maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
34987
34988install-info-target-libstdc++-v3: \
34989 configure-target-libstdc++-v3 \
34990 info-target-libstdc++-v3
34991 @: $(MAKE); $(unstage)
22121df0 34992 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34993 r=`${PWD_COMMAND}`; export r; \
34994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34995 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34996 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34997 for flag in $(EXTRA_TARGET_FLAGS); do \
34998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34999 done; \
35000 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35003 "RANLIB=$${RANLIB}" \
35004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35005 install-info) \
35006 || exit 1
35007
35008@endif target-libstdc++-v3
35009
35010.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
35011maybe-install-pdf-target-libstdc++-v3:
35012@if target-libstdc++-v3
35013maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
35014
35015install-pdf-target-libstdc++-v3: \
35016 configure-target-libstdc++-v3 \
35017 pdf-target-libstdc++-v3
35018 @: $(MAKE); $(unstage)
22121df0 35019 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35020 r=`${PWD_COMMAND}`; export r; \
35021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35022 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35023 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35024 for flag in $(EXTRA_TARGET_FLAGS); do \
35025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35026 done; \
35027 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35030 "RANLIB=$${RANLIB}" \
35031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35032 install-pdf) \
35033 || exit 1
35034
35035@endif target-libstdc++-v3
35036
35037.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
35038maybe-install-html-target-libstdc++-v3:
35039@if target-libstdc++-v3
35040maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
35041
35042install-html-target-libstdc++-v3: \
35043 configure-target-libstdc++-v3 \
35044 html-target-libstdc++-v3
35045 @: $(MAKE); $(unstage)
22121df0 35046 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35047 r=`${PWD_COMMAND}`; export r; \
35048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35049 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35050 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35051 for flag in $(EXTRA_TARGET_FLAGS); do \
35052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35053 done; \
35054 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35057 "RANLIB=$${RANLIB}" \
35058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35059 install-html) \
35060 || exit 1
35061
35062@endif target-libstdc++-v3
35063
35064.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
35065maybe-installcheck-target-libstdc++-v3:
35066@if target-libstdc++-v3
35067maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
35068
35069installcheck-target-libstdc++-v3: \
35070 configure-target-libstdc++-v3
35071 @: $(MAKE); $(unstage)
22121df0 35072 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35073 r=`${PWD_COMMAND}`; export r; \
35074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35075 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35076 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35077 for flag in $(EXTRA_TARGET_FLAGS); do \
35078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35079 done; \
35080 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35083 "RANLIB=$${RANLIB}" \
35084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35085 installcheck) \
35086 || exit 1
35087
35088@endif target-libstdc++-v3
35089
35090.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
35091maybe-mostlyclean-target-libstdc++-v3:
35092@if target-libstdc++-v3
35093maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
35094
35095mostlyclean-target-libstdc++-v3:
35096 @: $(MAKE); $(unstage)
22121df0 35097 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35098 r=`${PWD_COMMAND}`; export r; \
35099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35100 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35101 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35102 for flag in $(EXTRA_TARGET_FLAGS); do \
35103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35104 done; \
35105 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35108 "RANLIB=$${RANLIB}" \
35109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35110 mostlyclean) \
35111 || exit 1
35112
35113@endif target-libstdc++-v3
35114
35115.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
35116maybe-clean-target-libstdc++-v3:
35117@if target-libstdc++-v3
35118maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
35119
35120clean-target-libstdc++-v3:
35121 @: $(MAKE); $(unstage)
22121df0 35122 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35123 r=`${PWD_COMMAND}`; export r; \
35124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35125 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35126 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35127 for flag in $(EXTRA_TARGET_FLAGS); do \
35128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35129 done; \
35130 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
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 target-libstdc++-v3
35139
35140.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
35141maybe-distclean-target-libstdc++-v3:
35142@if target-libstdc++-v3
35143maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
35144
35145distclean-target-libstdc++-v3:
35146 @: $(MAKE); $(unstage)
22121df0 35147 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35148 r=`${PWD_COMMAND}`; export r; \
35149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35150 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35151 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35152 for flag in $(EXTRA_TARGET_FLAGS); do \
35153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35154 done; \
35155 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35158 "RANLIB=$${RANLIB}" \
35159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35160 distclean) \
35161 || exit 1
35162
35163@endif target-libstdc++-v3
35164
35165.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
35166maybe-maintainer-clean-target-libstdc++-v3:
35167@if target-libstdc++-v3
35168maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
35169
35170maintainer-clean-target-libstdc++-v3:
35171 @: $(MAKE); $(unstage)
22121df0 35172 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35173 r=`${PWD_COMMAND}`; export r; \
35174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35175 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35176 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35177 for flag in $(EXTRA_TARGET_FLAGS); do \
35178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35179 done; \
35180 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35183 "RANLIB=$${RANLIB}" \
35184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35185 maintainer-clean) \
35186 || exit 1
35187
35188@endif target-libstdc++-v3
35189
35190
35191
35192
35193
35194.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
35195maybe-configure-target-libsanitizer:
35196@if gcc-bootstrap
35197configure-target-libsanitizer: stage_current
35198@endif gcc-bootstrap
35199@if target-libsanitizer
35200maybe-configure-target-libsanitizer: configure-target-libsanitizer
35201configure-target-libsanitizer:
35202 @r=`${PWD_COMMAND}`; export r; \
35203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35204 echo "Checking multilib configuration for libsanitizer..."; \
22121df0
L
35205 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
35206 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35207 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35208 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35209 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35210 else \
35211 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35212 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35213 fi; \
35214 else \
35215 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35216 fi; \
35217 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
22121df0 35218 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35219 $(RAW_CXX_TARGET_EXPORTS) \
35220 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
35221 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
35222 case $(srcdir) in \
35223 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35224 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35225 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35226 esac; \
35227 module_srcdir=libsanitizer; \
35228 rm -f no-such-file || : ; \
35229 CONFIG_SITE=no-such-file $(SHELL) \
35230 $$s/$$module_srcdir/configure \
35231 --srcdir=$${topdir}/$$module_srcdir \
35232 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35233 --target=${target_alias} \
35234 || exit 1
35235@endif target-libsanitizer
35236
35237
35238
35239.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
35240maybe-configure-stage1-target-libsanitizer:
35241@if target-libsanitizer-bootstrap
35242maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
35243configure-stage1-target-libsanitizer:
35244 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35245 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35246 @r=`${PWD_COMMAND}`; export r; \
35247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35248 TFLAGS="$(STAGE1_TFLAGS)"; \
35249 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35250 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35251 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35252 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35253 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35254 else \
35255 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35256 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35257 fi; \
35258 else \
35259 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35260 fi; \
35261 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35262 $(RAW_CXX_TARGET_EXPORTS) \
35263 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35264 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35265 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35266 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \
35267 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35268 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35269 case $(srcdir) in \
35270 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35271 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35272 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35273 esac; \
35274 module_srcdir=libsanitizer; \
35275 $(SHELL) $$s/$$module_srcdir/configure \
35276 --srcdir=$${topdir}/$$module_srcdir \
35277 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35278 --target=${target_alias} \
35279 \
35280 $(STAGE1_CONFIGURE_FLAGS)
35281@endif target-libsanitizer-bootstrap
35282
35283.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
35284maybe-configure-stage2-target-libsanitizer:
35285@if target-libsanitizer-bootstrap
35286maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
35287configure-stage2-target-libsanitizer:
35288 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35289 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35290 @r=`${PWD_COMMAND}`; export r; \
35291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35292 TFLAGS="$(STAGE2_TFLAGS)"; \
35293 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35294 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35295 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35296 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35297 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35298 else \
35299 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35300 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35301 fi; \
35302 else \
35303 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35304 fi; \
35305 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35306 $(RAW_CXX_TARGET_EXPORTS) \
35307 \
35308 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35309 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35310 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35311 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \
35312 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35313 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35314 case $(srcdir) in \
35315 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35316 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35317 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35318 esac; \
35319 module_srcdir=libsanitizer; \
35320 $(SHELL) $$s/$$module_srcdir/configure \
35321 --srcdir=$${topdir}/$$module_srcdir \
35322 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35323 --target=${target_alias} \
22121df0 35324 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35325 $(STAGE2_CONFIGURE_FLAGS)
35326@endif target-libsanitizer-bootstrap
35327
35328.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
35329maybe-configure-stage3-target-libsanitizer:
35330@if target-libsanitizer-bootstrap
35331maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
35332configure-stage3-target-libsanitizer:
35333 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35334 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35335 @r=`${PWD_COMMAND}`; export r; \
35336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35337 TFLAGS="$(STAGE3_TFLAGS)"; \
35338 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35339 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35340 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35341 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35342 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35343 else \
35344 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35345 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35346 fi; \
35347 else \
35348 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35349 fi; \
35350 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35351 $(RAW_CXX_TARGET_EXPORTS) \
35352 \
35353 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35354 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35355 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35356 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \
35357 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35358 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35359 case $(srcdir) in \
35360 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35361 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35362 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35363 esac; \
35364 module_srcdir=libsanitizer; \
35365 $(SHELL) $$s/$$module_srcdir/configure \
35366 --srcdir=$${topdir}/$$module_srcdir \
35367 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35368 --target=${target_alias} \
22121df0 35369 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35370 $(STAGE3_CONFIGURE_FLAGS)
35371@endif target-libsanitizer-bootstrap
35372
35373.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
35374maybe-configure-stage4-target-libsanitizer:
35375@if target-libsanitizer-bootstrap
35376maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
35377configure-stage4-target-libsanitizer:
35378 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35379 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35380 @r=`${PWD_COMMAND}`; export r; \
35381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35382 TFLAGS="$(STAGE4_TFLAGS)"; \
35383 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35384 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35385 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35386 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35387 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35388 else \
35389 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35390 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35391 fi; \
35392 else \
35393 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35394 fi; \
35395 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35396 $(RAW_CXX_TARGET_EXPORTS) \
35397 \
35398 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35399 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35400 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35401 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \
35402 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35403 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35404 case $(srcdir) in \
35405 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35406 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35407 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35408 esac; \
35409 module_srcdir=libsanitizer; \
35410 $(SHELL) $$s/$$module_srcdir/configure \
35411 --srcdir=$${topdir}/$$module_srcdir \
35412 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35413 --target=${target_alias} \
22121df0 35414 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35415 $(STAGE4_CONFIGURE_FLAGS)
35416@endif target-libsanitizer-bootstrap
35417
35418.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
35419maybe-configure-stageprofile-target-libsanitizer:
35420@if target-libsanitizer-bootstrap
35421maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
35422configure-stageprofile-target-libsanitizer:
35423 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35424 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35425 @r=`${PWD_COMMAND}`; export r; \
35426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35427 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35428 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35429 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35430 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35431 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35432 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35433 else \
35434 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35435 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35436 fi; \
35437 else \
35438 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35439 fi; \
35440 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35441 $(RAW_CXX_TARGET_EXPORTS) \
35442 \
35443 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35444 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35445 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35446 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \
35447 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35448 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35449 case $(srcdir) in \
35450 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35451 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35452 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35453 esac; \
35454 module_srcdir=libsanitizer; \
35455 $(SHELL) $$s/$$module_srcdir/configure \
35456 --srcdir=$${topdir}/$$module_srcdir \
35457 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35458 --target=${target_alias} \
22121df0 35459 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35460 $(STAGEprofile_CONFIGURE_FLAGS)
35461@endif target-libsanitizer-bootstrap
35462
35463.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
35464maybe-configure-stagefeedback-target-libsanitizer:
35465@if target-libsanitizer-bootstrap
35466maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
35467configure-stagefeedback-target-libsanitizer:
35468 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35469 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35470 @r=`${PWD_COMMAND}`; export r; \
35471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35472 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35473 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35474 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35475 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35476 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35477 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35478 else \
35479 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35480 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35481 fi; \
35482 else \
35483 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35484 fi; \
35485 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35486 $(RAW_CXX_TARGET_EXPORTS) \
35487 \
35488 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35489 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35490 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35491 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \
35492 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35493 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35494 case $(srcdir) in \
35495 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35496 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35497 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35498 esac; \
35499 module_srcdir=libsanitizer; \
35500 $(SHELL) $$s/$$module_srcdir/configure \
35501 --srcdir=$${topdir}/$$module_srcdir \
35502 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35503 --target=${target_alias} \
22121df0 35504 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35505 $(STAGEfeedback_CONFIGURE_FLAGS)
35506@endif target-libsanitizer-bootstrap
35507
35508
35509
35510
35511
35512.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
35513maybe-all-target-libsanitizer:
35514@if gcc-bootstrap
35515all-target-libsanitizer: stage_current
35516@endif gcc-bootstrap
35517@if target-libsanitizer
35518TARGET-target-libsanitizer=all
35519maybe-all-target-libsanitizer: all-target-libsanitizer
35520all-target-libsanitizer: configure-target-libsanitizer
35521 @r=`${PWD_COMMAND}`; export r; \
35522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35523 $(RAW_CXX_TARGET_EXPORTS) \
35524 (cd $(TARGET_SUBDIR)/libsanitizer && \
35525 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35526 $(TARGET-target-libsanitizer))
35527@endif target-libsanitizer
35528
35529
35530
35531.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
35532.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
35533maybe-all-stage1-target-libsanitizer:
35534maybe-clean-stage1-target-libsanitizer:
35535@if target-libsanitizer-bootstrap
35536maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
35537all-stage1: all-stage1-target-libsanitizer
35538TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
35539all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
35540 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35541 @r=`${PWD_COMMAND}`; export r; \
35542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35543 TFLAGS="$(STAGE1_TFLAGS)"; \
35544 $(RAW_CXX_TARGET_EXPORTS) \
35545 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35546 \
1b6c0831
L
35547 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35548 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35549 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35550 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35551 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35552 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35553 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35554 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35555 \
05a13254 35556 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
35557 $(TARGET-stage1-target-libsanitizer)
35558
35559maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
35560clean-stage1: clean-stage1-target-libsanitizer
35561clean-stage1-target-libsanitizer:
35562 @if [ $(current_stage) = stage1 ]; then \
35563 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
35564 else \
35565 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
35566 $(MAKE) stage1-start; \
35567 fi; \
35568 cd $(TARGET_SUBDIR)/libsanitizer && \
35569 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35570 clean
35571@endif target-libsanitizer-bootstrap
35572
35573
35574.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
35575.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
35576maybe-all-stage2-target-libsanitizer:
35577maybe-clean-stage2-target-libsanitizer:
35578@if target-libsanitizer-bootstrap
35579maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
35580all-stage2: all-stage2-target-libsanitizer
35581TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
35582all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
35583 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35584 @r=`${PWD_COMMAND}`; export r; \
35585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35586 TFLAGS="$(STAGE2_TFLAGS)"; \
35587 $(RAW_CXX_TARGET_EXPORTS) \
35588 \
35589 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35590 \
1b6c0831
L
35591 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35592 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35593 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35594 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35595 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35596 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35597 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35598 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35599 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
35600 $(TARGET-stage2-target-libsanitizer)
35601
35602maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
35603clean-stage2: clean-stage2-target-libsanitizer
35604clean-stage2-target-libsanitizer:
35605 @if [ $(current_stage) = stage2 ]; then \
35606 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
35607 else \
35608 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
35609 $(MAKE) stage2-start; \
35610 fi; \
35611 cd $(TARGET_SUBDIR)/libsanitizer && \
35612 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35613@endif target-libsanitizer-bootstrap
35614
35615
35616.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
35617.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
35618maybe-all-stage3-target-libsanitizer:
35619maybe-clean-stage3-target-libsanitizer:
35620@if target-libsanitizer-bootstrap
35621maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
35622all-stage3: all-stage3-target-libsanitizer
35623TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
35624all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
35625 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35626 @r=`${PWD_COMMAND}`; export r; \
35627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35628 TFLAGS="$(STAGE3_TFLAGS)"; \
35629 $(RAW_CXX_TARGET_EXPORTS) \
35630 \
35631 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35632 \
1b6c0831
L
35633 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35634 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35635 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35636 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35637 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35638 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35639 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35640 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35641 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
35642 $(TARGET-stage3-target-libsanitizer)
35643
35644maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
35645clean-stage3: clean-stage3-target-libsanitizer
35646clean-stage3-target-libsanitizer:
35647 @if [ $(current_stage) = stage3 ]; then \
35648 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
35649 else \
35650 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
35651 $(MAKE) stage3-start; \
35652 fi; \
35653 cd $(TARGET_SUBDIR)/libsanitizer && \
35654 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35655@endif target-libsanitizer-bootstrap
35656
35657
35658.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
35659.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
35660maybe-all-stage4-target-libsanitizer:
35661maybe-clean-stage4-target-libsanitizer:
35662@if target-libsanitizer-bootstrap
35663maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
35664all-stage4: all-stage4-target-libsanitizer
35665TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
35666all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
35667 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35668 @r=`${PWD_COMMAND}`; export r; \
35669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35670 TFLAGS="$(STAGE4_TFLAGS)"; \
35671 $(RAW_CXX_TARGET_EXPORTS) \
35672 \
35673 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35674 \
1b6c0831
L
35675 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35676 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35677 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35678 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
35679 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35680 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35681 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35682 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35683 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 35684 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 35685
1b6c0831
L
35686maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
35687clean-stage4: clean-stage4-target-libsanitizer
35688clean-stage4-target-libsanitizer:
e8a5fa9c 35689 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 35690 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 35691 else \
1b6c0831 35692 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
35693 $(MAKE) stage4-start; \
35694 fi; \
1b6c0831 35695 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 35696 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 35697@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
35698
35699
1b6c0831
L
35700.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
35701.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
35702maybe-all-stageprofile-target-libsanitizer:
35703maybe-clean-stageprofile-target-libsanitizer:
35704@if target-libsanitizer-bootstrap
35705maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
35706all-stageprofile: all-stageprofile-target-libsanitizer
35707TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
35708all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
35709 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35710 @r=`${PWD_COMMAND}`; export r; \
35711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35712 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35713 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 35714 \
1b6c0831 35715 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35716 \
e8a5fa9c
RW
35717 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35718 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35719 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35720 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35721 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35722 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35723 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35724 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35725 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 35726 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 35727
1b6c0831
L
35728maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
35729clean-stageprofile: clean-stageprofile-target-libsanitizer
35730clean-stageprofile-target-libsanitizer:
e8a5fa9c 35731 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 35732 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 35733 else \
1b6c0831 35734 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
35735 $(MAKE) stageprofile-start; \
35736 fi; \
1b6c0831 35737 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 35738 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 35739@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
35740
35741
1b6c0831
L
35742.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
35743.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
35744maybe-all-stagefeedback-target-libsanitizer:
35745maybe-clean-stagefeedback-target-libsanitizer:
35746@if target-libsanitizer-bootstrap
35747maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
35748all-stagefeedback: all-stagefeedback-target-libsanitizer
35749TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
35750all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
35751 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35752 @r=`${PWD_COMMAND}`; export r; \
35753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35754 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35755 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 35756 \
1b6c0831 35757 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35758 \
e8a5fa9c
RW
35759 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35760 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35761 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35762 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35763 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35764 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35765 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35766 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35767 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 35768 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 35769
1b6c0831
L
35770maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
35771clean-stagefeedback: clean-stagefeedback-target-libsanitizer
35772clean-stagefeedback-target-libsanitizer:
e8a5fa9c 35773 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 35774 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 35775 else \
1b6c0831 35776 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
35777 $(MAKE) stagefeedback-start; \
35778 fi; \
1b6c0831 35779 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 35780 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 35781@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
35782
35783
35784
35785
d545f33b
PB
35786
35787
1b6c0831
L
35788.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
35789maybe-check-target-libsanitizer:
35790@if target-libsanitizer
35791maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 35792
1b6c0831 35793check-target-libsanitizer:
0aed8855 35794 @: $(MAKE); $(unstage)
b40e3958
L
35795 @r=`${PWD_COMMAND}`; export r; \
35796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35797 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 35798 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 35799 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 35800
1b6c0831 35801@endif target-libsanitizer
3866be5d 35802
1b6c0831
L
35803.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
35804maybe-install-target-libsanitizer:
35805@if target-libsanitizer
35806maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 35807
1b6c0831 35808install-target-libsanitizer: installdirs
0aed8855 35809 @: $(MAKE); $(unstage)
b40e3958
L
35810 @r=`${PWD_COMMAND}`; export r; \
35811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35812 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 35813 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 35814 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 35815
1b6c0831 35816@endif target-libsanitizer
e2b9e2dc 35817
1b6c0831
L
35818.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
35819maybe-install-strip-target-libsanitizer:
35820@if target-libsanitizer
35821maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 35822
1b6c0831 35823install-strip-target-libsanitizer: installdirs
9b980aa1
RW
35824 @: $(MAKE); $(unstage)
35825 @r=`${PWD_COMMAND}`; export r; \
35826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35827 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 35828 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
35829 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35830
1b6c0831 35831@endif target-libsanitizer
9b980aa1 35832
56a8fe78 35833# Other targets (info, dvi, pdf, etc.)
3866be5d 35834
1b6c0831
L
35835.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
35836maybe-info-target-libsanitizer:
35837@if target-libsanitizer
35838maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 35839
1b6c0831
L
35840info-target-libsanitizer: \
35841 configure-target-libsanitizer
0aed8855 35842 @: $(MAKE); $(unstage)
22121df0 35843 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35844 r=`${PWD_COMMAND}`; export r; \
b40e3958 35845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35846 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35847 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35848 for flag in $(EXTRA_TARGET_FLAGS); do \
35849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35850 done; \
1b6c0831 35851 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35854 "RANLIB=$${RANLIB}" \
0c24b341 35855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35856 info) \
4fa63067 35857 || exit 1
3866be5d 35858
1b6c0831 35859@endif target-libsanitizer
3866be5d 35860
1b6c0831
L
35861.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
35862maybe-dvi-target-libsanitizer:
35863@if target-libsanitizer
35864maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 35865
1b6c0831
L
35866dvi-target-libsanitizer: \
35867 configure-target-libsanitizer
0aed8855 35868 @: $(MAKE); $(unstage)
22121df0 35869 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35870 r=`${PWD_COMMAND}`; export r; \
b40e3958 35871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35872 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35873 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35874 for flag in $(EXTRA_TARGET_FLAGS); do \
35875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35876 done; \
1b6c0831 35877 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35880 "RANLIB=$${RANLIB}" \
0c24b341 35881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35882 dvi) \
4fa63067 35883 || exit 1
3866be5d 35884
1b6c0831 35885@endif target-libsanitizer
3866be5d 35886
1b6c0831
L
35887.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
35888maybe-pdf-target-libsanitizer:
35889@if target-libsanitizer
35890maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 35891
1b6c0831
L
35892pdf-target-libsanitizer: \
35893 configure-target-libsanitizer
56a8fe78 35894 @: $(MAKE); $(unstage)
22121df0 35895 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
56a8fe78
DD
35896 r=`${PWD_COMMAND}`; export r; \
35897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35898 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35899 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \
56a8fe78
DD
35900 for flag in $(EXTRA_TARGET_FLAGS); do \
35901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35902 done; \
1b6c0831 35903 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
35904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35906 "RANLIB=$${RANLIB}" \
0c24b341 35907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
35908 pdf) \
35909 || exit 1
35910
1b6c0831 35911@endif target-libsanitizer
56a8fe78 35912
1b6c0831
L
35913.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
35914maybe-html-target-libsanitizer:
35915@if target-libsanitizer
35916maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 35917
1b6c0831
L
35918html-target-libsanitizer: \
35919 configure-target-libsanitizer
0aed8855 35920 @: $(MAKE); $(unstage)
22121df0 35921 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
6d389afc
MS
35922 r=`${PWD_COMMAND}`; export r; \
35923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 35924 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35925 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \
6d389afc
MS
35926 for flag in $(EXTRA_TARGET_FLAGS); do \
35927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35928 done; \
1b6c0831 35929 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
35930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35932 "RANLIB=$${RANLIB}" \
0c24b341 35933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
35934 html) \
35935 || exit 1
35936
1b6c0831 35937@endif target-libsanitizer
6d389afc 35938
1b6c0831
L
35939.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
35940maybe-TAGS-target-libsanitizer:
35941@if target-libsanitizer
35942maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 35943
1b6c0831
L
35944TAGS-target-libsanitizer: \
35945 configure-target-libsanitizer
0aed8855 35946 @: $(MAKE); $(unstage)
22121df0 35947 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
35948 r=`${PWD_COMMAND}`; export r; \
35949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35950 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35951 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35952 for flag in $(EXTRA_TARGET_FLAGS); do \
35953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35954 done; \
1b6c0831 35955 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35958 "RANLIB=$${RANLIB}" \
0c24b341 35959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35960 TAGS) \
e2b9e2dc
NN
35961 || exit 1
35962
1b6c0831 35963@endif target-libsanitizer
3866be5d 35964
1b6c0831
L
35965.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
35966maybe-install-info-target-libsanitizer:
35967@if target-libsanitizer
35968maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 35969
1b6c0831
L
35970install-info-target-libsanitizer: \
35971 configure-target-libsanitizer \
35972 info-target-libsanitizer
0aed8855 35973 @: $(MAKE); $(unstage)
22121df0 35974 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35975 r=`${PWD_COMMAND}`; export r; \
b40e3958 35976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35977 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35978 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35979 for flag in $(EXTRA_TARGET_FLAGS); do \
35980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35981 done; \
1b6c0831 35982 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35985 "RANLIB=$${RANLIB}" \
0c24b341 35986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35987 install-info) \
4fa63067 35988 || exit 1
3866be5d 35989
1b6c0831 35990@endif target-libsanitizer
3866be5d 35991
1b6c0831
L
35992.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
35993maybe-install-pdf-target-libsanitizer:
35994@if target-libsanitizer
35995maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 35996
1b6c0831
L
35997install-pdf-target-libsanitizer: \
35998 configure-target-libsanitizer \
35999 pdf-target-libsanitizer
a3ca38d2 36000 @: $(MAKE); $(unstage)
22121df0 36001 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
a3ca38d2
DD
36002 r=`${PWD_COMMAND}`; export r; \
36003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36004 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36005 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \
a3ca38d2
DD
36006 for flag in $(EXTRA_TARGET_FLAGS); do \
36007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36008 done; \
1b6c0831 36009 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
36010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36012 "RANLIB=$${RANLIB}" \
0c24b341 36013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
36014 install-pdf) \
36015 || exit 1
36016
1b6c0831 36017@endif target-libsanitizer
a3ca38d2 36018
1b6c0831
L
36019.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
36020maybe-install-html-target-libsanitizer:
36021@if target-libsanitizer
36022maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 36023
1b6c0831
L
36024install-html-target-libsanitizer: \
36025 configure-target-libsanitizer \
36026 html-target-libsanitizer
108a6f8e 36027 @: $(MAKE); $(unstage)
22121df0 36028 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
108a6f8e
CD
36029 r=`${PWD_COMMAND}`; export r; \
36030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36031 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36032 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \
108a6f8e
CD
36033 for flag in $(EXTRA_TARGET_FLAGS); do \
36034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36035 done; \
1b6c0831 36036 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
36037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36039 "RANLIB=$${RANLIB}" \
0c24b341 36040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
36041 install-html) \
36042 || exit 1
36043
1b6c0831 36044@endif target-libsanitizer
108a6f8e 36045
1b6c0831
L
36046.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
36047maybe-installcheck-target-libsanitizer:
36048@if target-libsanitizer
36049maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 36050
1b6c0831
L
36051installcheck-target-libsanitizer: \
36052 configure-target-libsanitizer
0aed8855 36053 @: $(MAKE); $(unstage)
22121df0 36054 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36055 r=`${PWD_COMMAND}`; export r; \
b40e3958 36056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36057 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36058 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36059 for flag in $(EXTRA_TARGET_FLAGS); do \
36060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36061 done; \
1b6c0831 36062 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36065 "RANLIB=$${RANLIB}" \
0c24b341 36066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36067 installcheck) \
4fa63067 36068 || exit 1
3866be5d 36069
1b6c0831 36070@endif target-libsanitizer
3866be5d 36071
1b6c0831
L
36072.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
36073maybe-mostlyclean-target-libsanitizer:
36074@if target-libsanitizer
36075maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 36076
1b6c0831 36077mostlyclean-target-libsanitizer:
0aed8855 36078 @: $(MAKE); $(unstage)
22121df0 36079 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
36080 r=`${PWD_COMMAND}`; export r; \
36081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36082 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36083 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36084 for flag in $(EXTRA_TARGET_FLAGS); do \
36085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36086 done; \
1b6c0831 36087 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36090 "RANLIB=$${RANLIB}" \
0c24b341 36091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36092 mostlyclean) \
e2b9e2dc
NN
36093 || exit 1
36094
1b6c0831 36095@endif target-libsanitizer
4fa63067 36096
1b6c0831
L
36097.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
36098maybe-clean-target-libsanitizer:
36099@if target-libsanitizer
36100maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 36101
1b6c0831 36102clean-target-libsanitizer:
0aed8855 36103 @: $(MAKE); $(unstage)
22121df0 36104 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36105 r=`${PWD_COMMAND}`; export r; \
b40e3958 36106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36107 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36108 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36109 for flag in $(EXTRA_TARGET_FLAGS); do \
36110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36111 done; \
1b6c0831 36112 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36115 "RANLIB=$${RANLIB}" \
0c24b341 36116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36117 clean) \
4fa63067 36118 || exit 1
3866be5d 36119
1b6c0831 36120@endif target-libsanitizer
3866be5d 36121
1b6c0831
L
36122.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
36123maybe-distclean-target-libsanitizer:
36124@if target-libsanitizer
36125maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 36126
1b6c0831 36127distclean-target-libsanitizer:
0aed8855 36128 @: $(MAKE); $(unstage)
22121df0 36129 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36130 r=`${PWD_COMMAND}`; export r; \
b40e3958 36131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36132 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36133 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36134 for flag in $(EXTRA_TARGET_FLAGS); do \
36135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36136 done; \
1b6c0831 36137 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36140 "RANLIB=$${RANLIB}" \
0c24b341 36141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36142 distclean) \
4fa63067 36143 || exit 1
3866be5d 36144
1b6c0831 36145@endif target-libsanitizer
3866be5d 36146
1b6c0831
L
36147.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
36148maybe-maintainer-clean-target-libsanitizer:
36149@if target-libsanitizer
36150maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 36151
1b6c0831 36152maintainer-clean-target-libsanitizer:
0aed8855 36153 @: $(MAKE); $(unstage)
22121df0 36154 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36155 r=`${PWD_COMMAND}`; export r; \
b40e3958 36156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36157 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36158 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36159 for flag in $(EXTRA_TARGET_FLAGS); do \
36160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36161 done; \
1b6c0831 36162 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36165 "RANLIB=$${RANLIB}" \
0c24b341 36166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36167 maintainer-clean) \
4fa63067 36168 || exit 1
3866be5d 36169
1b6c0831 36170@endif target-libsanitizer
3866be5d 36171
4fa63067 36172
4fa63067 36173
a7254363
PB
36174
36175
1b6c0831
L
36176.PHONY: configure-target-libmpx maybe-configure-target-libmpx
36177maybe-configure-target-libmpx:
5286fdef 36178@if gcc-bootstrap
1b6c0831 36179configure-target-libmpx: stage_current
5286fdef 36180@endif gcc-bootstrap
1b6c0831
L
36181@if target-libmpx
36182maybe-configure-target-libmpx: configure-target-libmpx
36183configure-target-libmpx:
5286fdef
L
36184 @r=`${PWD_COMMAND}`; export r; \
36185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36186 echo "Checking multilib configuration for libmpx..."; \
22121df0
L
36187 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
36188 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36189 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36190 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36191 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 36192 else \
1b6c0831
L
36193 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36194 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
36195 fi; \
36196 else \
1b6c0831 36197 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 36198 fi; \
1b6c0831 36199 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
22121df0 36200 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831
L
36201 $(NORMAL_TARGET_EXPORTS) \
36202 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
36203 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
36204 case $(srcdir) in \
36205 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36206 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
36207 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36208 esac; \
1b6c0831 36209 module_srcdir=libmpx; \
5286fdef 36210 rm -f no-such-file || : ; \
1b6c0831
L
36211 CONFIG_SITE=no-such-file $(SHELL) \
36212 $$s/$$module_srcdir/configure \
36213 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 36214 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36215 --target=${target_alias} \
5286fdef 36216 || exit 1
1b6c0831 36217@endif target-libmpx
5286fdef
L
36218
36219
36220
1b6c0831
L
36221.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
36222maybe-configure-stage1-target-libmpx:
36223@if target-libmpx-bootstrap
36224maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
36225configure-stage1-target-libmpx:
5eb08693 36226 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 36227 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36228 @r=`${PWD_COMMAND}`; export r; \
36229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36230 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831 36231 echo "Checking multilib configuration for libmpx..."; \
22121df0 36232 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36233 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36234 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36235 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36236 else \
1b6c0831
L
36237 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36238 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36239 fi; \
36240 else \
1b6c0831 36241 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36242 fi; \
1b6c0831
L
36243 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36244 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36245 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36246 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36247 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36248 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \
36249 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36250 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36251 case $(srcdir) in \
36252 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36253 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36254 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36255 esac; \
1b6c0831
L
36256 module_srcdir=libmpx; \
36257 $(SHELL) $$s/$$module_srcdir/configure \
36258 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36259 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
36260 --target=${target_alias} \
36261 \
5eb08693 36262 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 36263@endif target-libmpx-bootstrap
5eb08693 36264
1b6c0831
L
36265.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
36266maybe-configure-stage2-target-libmpx:
36267@if target-libmpx-bootstrap
36268maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
36269configure-stage2-target-libmpx:
5eb08693 36270 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 36271 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36272 @r=`${PWD_COMMAND}`; export r; \
36273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36274 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 36275 echo "Checking multilib configuration for libmpx..."; \
22121df0 36276 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36277 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36278 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36279 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36280 else \
1b6c0831
L
36281 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36282 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36283 fi; \
36284 else \
1b6c0831 36285 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36286 fi; \
1b6c0831
L
36287 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36288 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36289 \
36290 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36291 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36292 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36293 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \
36294 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36295 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36296 case $(srcdir) in \
36297 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36298 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36299 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36300 esac; \
1b6c0831
L
36301 module_srcdir=libmpx; \
36302 $(SHELL) $$s/$$module_srcdir/configure \
36303 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36304 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36305 --target=${target_alias} \
22121df0 36306 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36307 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 36308@endif target-libmpx-bootstrap
5eb08693 36309
1b6c0831
L
36310.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
36311maybe-configure-stage3-target-libmpx:
36312@if target-libmpx-bootstrap
36313maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
36314configure-stage3-target-libmpx:
5eb08693 36315 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 36316 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36317 @r=`${PWD_COMMAND}`; export r; \
36318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36319 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 36320 echo "Checking multilib configuration for libmpx..."; \
22121df0 36321 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36322 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36323 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36324 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36325 else \
1b6c0831
L
36326 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36327 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36328 fi; \
36329 else \
1b6c0831 36330 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36331 fi; \
1b6c0831
L
36332 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36333 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36334 \
36335 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36336 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36337 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36338 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \
36339 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36340 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36341 case $(srcdir) in \
36342 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36343 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36344 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36345 esac; \
1b6c0831
L
36346 module_srcdir=libmpx; \
36347 $(SHELL) $$s/$$module_srcdir/configure \
36348 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36349 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36350 --target=${target_alias} \
22121df0 36351 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36352 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 36353@endif target-libmpx-bootstrap
5eb08693 36354
1b6c0831
L
36355.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
36356maybe-configure-stage4-target-libmpx:
36357@if target-libmpx-bootstrap
36358maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
36359configure-stage4-target-libmpx:
5eb08693 36360 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 36361 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36362 @r=`${PWD_COMMAND}`; export r; \
36363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36364 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 36365 echo "Checking multilib configuration for libmpx..."; \
22121df0 36366 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36367 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36368 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36369 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36370 else \
1b6c0831
L
36371 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36372 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36373 fi; \
36374 else \
1b6c0831 36375 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36376 fi; \
1b6c0831
L
36377 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36378 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36379 \
36380 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36381 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36382 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36383 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \
36384 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36385 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36386 case $(srcdir) in \
36387 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36388 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36389 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36390 esac; \
1b6c0831
L
36391 module_srcdir=libmpx; \
36392 $(SHELL) $$s/$$module_srcdir/configure \
36393 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36394 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36395 --target=${target_alias} \
22121df0 36396 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36397 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 36398@endif target-libmpx-bootstrap
5eb08693 36399
1b6c0831
L
36400.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
36401maybe-configure-stageprofile-target-libmpx:
36402@if target-libmpx-bootstrap
36403maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
36404configure-stageprofile-target-libmpx:
5eb08693 36405 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 36406 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36407 @r=`${PWD_COMMAND}`; export r; \
36408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36409 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 36410 echo "Checking multilib configuration for libmpx..."; \
22121df0 36411 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36412 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36413 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36414 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36415 else \
1b6c0831
L
36416 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36417 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36418 fi; \
36419 else \
1b6c0831 36420 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36421 fi; \
1b6c0831
L
36422 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36423 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36424 \
36425 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36426 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36427 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36428 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \
36429 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36430 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36431 case $(srcdir) in \
36432 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36433 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36434 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36435 esac; \
1b6c0831
L
36436 module_srcdir=libmpx; \
36437 $(SHELL) $$s/$$module_srcdir/configure \
36438 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36439 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36440 --target=${target_alias} \
22121df0 36441 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36442 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 36443@endif target-libmpx-bootstrap
5eb08693 36444
1b6c0831
L
36445.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
36446maybe-configure-stagefeedback-target-libmpx:
36447@if target-libmpx-bootstrap
36448maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
36449configure-stagefeedback-target-libmpx:
5eb08693 36450 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 36451 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36452 @r=`${PWD_COMMAND}`; export r; \
36453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36454 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 36455 echo "Checking multilib configuration for libmpx..."; \
22121df0 36456 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36457 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36458 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36459 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36460 else \
1b6c0831
L
36461 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36462 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36463 fi; \
36464 else \
1b6c0831 36465 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36466 fi; \
1b6c0831
L
36467 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36468 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36469 \
36470 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36471 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36472 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36473 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \
36474 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36475 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36476 case $(srcdir) in \
36477 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36478 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36479 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36480 esac; \
1b6c0831
L
36481 module_srcdir=libmpx; \
36482 $(SHELL) $$s/$$module_srcdir/configure \
36483 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36484 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36485 --target=${target_alias} \
22121df0 36486 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36487 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 36488@endif target-libmpx-bootstrap
5eb08693
L
36489
36490
36491
5286fdef
L
36492
36493
1b6c0831
L
36494.PHONY: all-target-libmpx maybe-all-target-libmpx
36495maybe-all-target-libmpx:
5286fdef 36496@if gcc-bootstrap
1b6c0831 36497all-target-libmpx: stage_current
5286fdef 36498@endif gcc-bootstrap
1b6c0831
L
36499@if target-libmpx
36500TARGET-target-libmpx=all
36501maybe-all-target-libmpx: all-target-libmpx
36502all-target-libmpx: configure-target-libmpx
5286fdef
L
36503 @r=`${PWD_COMMAND}`; export r; \
36504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36505 $(NORMAL_TARGET_EXPORTS) \
36506 (cd $(TARGET_SUBDIR)/libmpx && \
36507 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36508 $(TARGET-target-libmpx))
36509@endif target-libmpx
5286fdef
L
36510
36511
36512
1b6c0831
L
36513.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
36514.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
36515maybe-all-stage1-target-libmpx:
36516maybe-clean-stage1-target-libmpx:
36517@if target-libmpx-bootstrap
36518maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
36519all-stage1: all-stage1-target-libmpx
36520TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
36521all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
36522 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36523 @r=`${PWD_COMMAND}`; export r; \
36524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36525 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
36526 $(NORMAL_TARGET_EXPORTS) \
36527 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36528 \
5eb08693
L
36529 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36530 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36531 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36532 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36533 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36534 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36535 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36536 $(EXTRA_TARGET_FLAGS) \
5eb08693 36537 \
05a13254 36538 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 36539 $(TARGET-stage1-target-libmpx)
5eb08693 36540
1b6c0831
L
36541maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
36542clean-stage1: clean-stage1-target-libmpx
36543clean-stage1-target-libmpx:
5eb08693 36544 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 36545 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36546 else \
1b6c0831 36547 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
36548 $(MAKE) stage1-start; \
36549 fi; \
1b6c0831
L
36550 cd $(TARGET_SUBDIR)/libmpx && \
36551 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 36552 clean
1b6c0831
L
36553@endif target-libmpx-bootstrap
36554
36555
36556.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
36557.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
36558maybe-all-stage2-target-libmpx:
36559maybe-clean-stage2-target-libmpx:
36560@if target-libmpx-bootstrap
36561maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
36562all-stage2: all-stage2-target-libmpx
36563TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
36564all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
36565 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36566 @r=`${PWD_COMMAND}`; export r; \
36567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36568 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 36569 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36570 \
1b6c0831 36571 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36572 \
5eb08693
L
36573 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36574 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36575 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36576 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36577 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36578 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36579 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36580 $(EXTRA_TARGET_FLAGS) \
05a13254 36581 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 36582 $(TARGET-stage2-target-libmpx)
5eb08693 36583
1b6c0831
L
36584maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
36585clean-stage2: clean-stage2-target-libmpx
36586clean-stage2-target-libmpx:
5eb08693 36587 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 36588 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36589 else \
1b6c0831 36590 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
36591 $(MAKE) stage2-start; \
36592 fi; \
1b6c0831
L
36593 cd $(TARGET_SUBDIR)/libmpx && \
36594 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36595@endif target-libmpx-bootstrap
36596
36597
36598.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
36599.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
36600maybe-all-stage3-target-libmpx:
36601maybe-clean-stage3-target-libmpx:
36602@if target-libmpx-bootstrap
36603maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
36604all-stage3: all-stage3-target-libmpx
36605TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
36606all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
36607 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36608 @r=`${PWD_COMMAND}`; export r; \
36609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36610 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 36611 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36612 \
1b6c0831 36613 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36614 \
5eb08693
L
36615 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36616 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36617 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36618 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36619 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36620 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36621 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36622 $(EXTRA_TARGET_FLAGS) \
05a13254 36623 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 36624 $(TARGET-stage3-target-libmpx)
5eb08693 36625
1b6c0831
L
36626maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
36627clean-stage3: clean-stage3-target-libmpx
36628clean-stage3-target-libmpx:
5eb08693 36629 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 36630 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36631 else \
1b6c0831 36632 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
36633 $(MAKE) stage3-start; \
36634 fi; \
1b6c0831
L
36635 cd $(TARGET_SUBDIR)/libmpx && \
36636 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36637@endif target-libmpx-bootstrap
36638
36639
36640.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
36641.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
36642maybe-all-stage4-target-libmpx:
36643maybe-clean-stage4-target-libmpx:
36644@if target-libmpx-bootstrap
36645maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
36646all-stage4: all-stage4-target-libmpx
36647TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
36648all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
36649 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36650 @r=`${PWD_COMMAND}`; export r; \
36651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36652 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 36653 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36654 \
1b6c0831 36655 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36656 \
5eb08693
L
36657 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36658 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36659 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36660 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36661 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36662 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36663 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36664 $(EXTRA_TARGET_FLAGS) \
05a13254 36665 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 36666 $(TARGET-stage4-target-libmpx)
5eb08693 36667
1b6c0831
L
36668maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
36669clean-stage4: clean-stage4-target-libmpx
36670clean-stage4-target-libmpx:
5eb08693 36671 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 36672 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36673 else \
1b6c0831 36674 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
36675 $(MAKE) stage4-start; \
36676 fi; \
1b6c0831
L
36677 cd $(TARGET_SUBDIR)/libmpx && \
36678 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36679@endif target-libmpx-bootstrap
36680
36681
36682.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
36683.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
36684maybe-all-stageprofile-target-libmpx:
36685maybe-clean-stageprofile-target-libmpx:
36686@if target-libmpx-bootstrap
36687maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
36688all-stageprofile: all-stageprofile-target-libmpx
36689TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
36690all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
36691 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36692 @r=`${PWD_COMMAND}`; export r; \
36693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36694 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 36695 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36696 \
1b6c0831 36697 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36698 \
5eb08693
L
36699 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36700 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36701 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36702 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36703 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36704 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36705 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36706 $(EXTRA_TARGET_FLAGS) \
05a13254 36707 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 36708 $(TARGET-stageprofile-target-libmpx)
5eb08693 36709
1b6c0831
L
36710maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
36711clean-stageprofile: clean-stageprofile-target-libmpx
36712clean-stageprofile-target-libmpx:
5eb08693 36713 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 36714 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36715 else \
1b6c0831 36716 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
36717 $(MAKE) stageprofile-start; \
36718 fi; \
1b6c0831
L
36719 cd $(TARGET_SUBDIR)/libmpx && \
36720 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36721@endif target-libmpx-bootstrap
36722
36723
36724.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
36725.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
36726maybe-all-stagefeedback-target-libmpx:
36727maybe-clean-stagefeedback-target-libmpx:
36728@if target-libmpx-bootstrap
36729maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
36730all-stagefeedback: all-stagefeedback-target-libmpx
36731TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
36732all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
36733 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36734 @r=`${PWD_COMMAND}`; export r; \
36735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36736 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 36737 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36738 \
1b6c0831 36739 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36740 \
5eb08693
L
36741 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36742 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36743 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36744 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36745 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36746 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36747 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36748 $(EXTRA_TARGET_FLAGS) \
05a13254 36749 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 36750 $(TARGET-stagefeedback-target-libmpx)
5eb08693 36751
1b6c0831
L
36752maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
36753clean-stagefeedback: clean-stagefeedback-target-libmpx
36754clean-stagefeedback-target-libmpx:
5eb08693 36755 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 36756 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36757 else \
1b6c0831 36758 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
36759 $(MAKE) stagefeedback-start; \
36760 fi; \
1b6c0831
L
36761 cd $(TARGET_SUBDIR)/libmpx && \
36762 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36763@endif target-libmpx-bootstrap
5eb08693
L
36764
36765
36766
36767
5286fdef
L
36768
36769
1b6c0831
L
36770.PHONY: check-target-libmpx maybe-check-target-libmpx
36771maybe-check-target-libmpx:
36772@if target-libmpx
36773maybe-check-target-libmpx: check-target-libmpx
5286fdef 36774
1b6c0831 36775check-target-libmpx:
5286fdef
L
36776 @: $(MAKE); $(unstage)
36777 @r=`${PWD_COMMAND}`; export r; \
36778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36779 $(NORMAL_TARGET_EXPORTS) \
36780 (cd $(TARGET_SUBDIR)/libmpx && \
36781 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 36782
1b6c0831 36783@endif target-libmpx
5286fdef 36784
1b6c0831
L
36785.PHONY: install-target-libmpx maybe-install-target-libmpx
36786maybe-install-target-libmpx:
36787@if target-libmpx
36788maybe-install-target-libmpx: install-target-libmpx
5286fdef 36789
1b6c0831 36790install-target-libmpx: installdirs
5286fdef
L
36791 @: $(MAKE); $(unstage)
36792 @r=`${PWD_COMMAND}`; export r; \
36793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36794 $(NORMAL_TARGET_EXPORTS) \
36795 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36796 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36797
1b6c0831 36798@endif target-libmpx
5286fdef 36799
1b6c0831
L
36800.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
36801maybe-install-strip-target-libmpx:
36802@if target-libmpx
36803maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 36804
1b6c0831 36805install-strip-target-libmpx: installdirs
5286fdef
L
36806 @: $(MAKE); $(unstage)
36807 @r=`${PWD_COMMAND}`; export r; \
36808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36809 $(NORMAL_TARGET_EXPORTS) \
36810 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36811 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36812
1b6c0831 36813@endif target-libmpx
5286fdef
L
36814
36815# Other targets (info, dvi, pdf, etc.)
36816
1b6c0831
L
36817.PHONY: maybe-info-target-libmpx info-target-libmpx
36818maybe-info-target-libmpx:
36819@if target-libmpx
36820maybe-info-target-libmpx: info-target-libmpx
5286fdef 36821
1b6c0831
L
36822info-target-libmpx: \
36823 configure-target-libmpx
5286fdef 36824 @: $(MAKE); $(unstage)
22121df0 36825 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36826 r=`${PWD_COMMAND}`; export r; \
36827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36828 $(NORMAL_TARGET_EXPORTS) \
22121df0 36829 echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36830 for flag in $(EXTRA_TARGET_FLAGS); do \
36831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36832 done; \
1b6c0831 36833 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36836 "RANLIB=$${RANLIB}" \
36837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36838 info) \
36839 || exit 1
36840
1b6c0831 36841@endif target-libmpx
5286fdef 36842
1b6c0831
L
36843.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
36844maybe-dvi-target-libmpx:
36845@if target-libmpx
36846maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 36847
1b6c0831
L
36848dvi-target-libmpx: \
36849 configure-target-libmpx
5286fdef 36850 @: $(MAKE); $(unstage)
22121df0 36851 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36852 r=`${PWD_COMMAND}`; export r; \
36853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36854 $(NORMAL_TARGET_EXPORTS) \
22121df0 36855 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36856 for flag in $(EXTRA_TARGET_FLAGS); do \
36857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36858 done; \
1b6c0831 36859 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36862 "RANLIB=$${RANLIB}" \
36863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36864 dvi) \
36865 || exit 1
36866
1b6c0831 36867@endif target-libmpx
5286fdef 36868
1b6c0831
L
36869.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
36870maybe-pdf-target-libmpx:
36871@if target-libmpx
36872maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 36873
1b6c0831
L
36874pdf-target-libmpx: \
36875 configure-target-libmpx
5286fdef 36876 @: $(MAKE); $(unstage)
22121df0 36877 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36878 r=`${PWD_COMMAND}`; export r; \
36879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36880 $(NORMAL_TARGET_EXPORTS) \
22121df0 36881 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36882 for flag in $(EXTRA_TARGET_FLAGS); do \
36883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36884 done; \
1b6c0831 36885 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36888 "RANLIB=$${RANLIB}" \
36889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36890 pdf) \
36891 || exit 1
36892
1b6c0831 36893@endif target-libmpx
5286fdef 36894
1b6c0831
L
36895.PHONY: maybe-html-target-libmpx html-target-libmpx
36896maybe-html-target-libmpx:
36897@if target-libmpx
36898maybe-html-target-libmpx: html-target-libmpx
5286fdef 36899
1b6c0831
L
36900html-target-libmpx: \
36901 configure-target-libmpx
5286fdef 36902 @: $(MAKE); $(unstage)
22121df0 36903 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36904 r=`${PWD_COMMAND}`; export r; \
36905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36906 $(NORMAL_TARGET_EXPORTS) \
22121df0 36907 echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36908 for flag in $(EXTRA_TARGET_FLAGS); do \
36909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36910 done; \
1b6c0831 36911 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36914 "RANLIB=$${RANLIB}" \
36915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36916 html) \
36917 || exit 1
36918
1b6c0831 36919@endif target-libmpx
5286fdef 36920
1b6c0831
L
36921.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
36922maybe-TAGS-target-libmpx:
36923@if target-libmpx
36924maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 36925
1b6c0831
L
36926TAGS-target-libmpx: \
36927 configure-target-libmpx
5286fdef 36928 @: $(MAKE); $(unstage)
22121df0 36929 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36930 r=`${PWD_COMMAND}`; export r; \
36931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36932 $(NORMAL_TARGET_EXPORTS) \
22121df0 36933 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36934 for flag in $(EXTRA_TARGET_FLAGS); do \
36935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36936 done; \
1b6c0831 36937 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36940 "RANLIB=$${RANLIB}" \
36941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36942 TAGS) \
36943 || exit 1
36944
1b6c0831 36945@endif target-libmpx
5286fdef 36946
1b6c0831
L
36947.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
36948maybe-install-info-target-libmpx:
36949@if target-libmpx
36950maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 36951
1b6c0831
L
36952install-info-target-libmpx: \
36953 configure-target-libmpx \
36954 info-target-libmpx
5286fdef 36955 @: $(MAKE); $(unstage)
22121df0 36956 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36957 r=`${PWD_COMMAND}`; export r; \
36958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36959 $(NORMAL_TARGET_EXPORTS) \
22121df0 36960 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36961 for flag in $(EXTRA_TARGET_FLAGS); do \
36962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36963 done; \
1b6c0831 36964 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36967 "RANLIB=$${RANLIB}" \
36968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36969 install-info) \
36970 || exit 1
36971
1b6c0831 36972@endif target-libmpx
5286fdef 36973
1b6c0831
L
36974.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
36975maybe-install-pdf-target-libmpx:
36976@if target-libmpx
36977maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 36978
1b6c0831
L
36979install-pdf-target-libmpx: \
36980 configure-target-libmpx \
36981 pdf-target-libmpx
5286fdef 36982 @: $(MAKE); $(unstage)
22121df0 36983 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36984 r=`${PWD_COMMAND}`; export r; \
36985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36986 $(NORMAL_TARGET_EXPORTS) \
22121df0 36987 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36988 for flag in $(EXTRA_TARGET_FLAGS); do \
36989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36990 done; \
1b6c0831 36991 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36994 "RANLIB=$${RANLIB}" \
36995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36996 install-pdf) \
36997 || exit 1
36998
1b6c0831 36999@endif target-libmpx
5286fdef 37000
1b6c0831
L
37001.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
37002maybe-install-html-target-libmpx:
37003@if target-libmpx
37004maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 37005
1b6c0831
L
37006install-html-target-libmpx: \
37007 configure-target-libmpx \
37008 html-target-libmpx
5286fdef 37009 @: $(MAKE); $(unstage)
22121df0 37010 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37011 r=`${PWD_COMMAND}`; export r; \
37012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37013 $(NORMAL_TARGET_EXPORTS) \
22121df0 37014 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37015 for flag in $(EXTRA_TARGET_FLAGS); do \
37016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37017 done; \
1b6c0831 37018 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37021 "RANLIB=$${RANLIB}" \
37022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37023 install-html) \
37024 || exit 1
37025
1b6c0831 37026@endif target-libmpx
5286fdef 37027
1b6c0831
L
37028.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
37029maybe-installcheck-target-libmpx:
37030@if target-libmpx
37031maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 37032
1b6c0831
L
37033installcheck-target-libmpx: \
37034 configure-target-libmpx
5286fdef 37035 @: $(MAKE); $(unstage)
22121df0 37036 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37037 r=`${PWD_COMMAND}`; export r; \
37038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37039 $(NORMAL_TARGET_EXPORTS) \
22121df0 37040 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37041 for flag in $(EXTRA_TARGET_FLAGS); do \
37042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37043 done; \
1b6c0831 37044 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37047 "RANLIB=$${RANLIB}" \
37048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37049 installcheck) \
37050 || exit 1
37051
1b6c0831 37052@endif target-libmpx
5286fdef 37053
1b6c0831
L
37054.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
37055maybe-mostlyclean-target-libmpx:
37056@if target-libmpx
37057maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 37058
1b6c0831 37059mostlyclean-target-libmpx:
5286fdef 37060 @: $(MAKE); $(unstage)
22121df0 37061 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37062 r=`${PWD_COMMAND}`; export r; \
37063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37064 $(NORMAL_TARGET_EXPORTS) \
22121df0 37065 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37066 for flag in $(EXTRA_TARGET_FLAGS); do \
37067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37068 done; \
1b6c0831 37069 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37072 "RANLIB=$${RANLIB}" \
37073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37074 mostlyclean) \
37075 || exit 1
37076
1b6c0831 37077@endif target-libmpx
5286fdef 37078
1b6c0831
L
37079.PHONY: maybe-clean-target-libmpx clean-target-libmpx
37080maybe-clean-target-libmpx:
37081@if target-libmpx
37082maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 37083
1b6c0831 37084clean-target-libmpx:
5286fdef 37085 @: $(MAKE); $(unstage)
22121df0 37086 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37087 r=`${PWD_COMMAND}`; export r; \
37088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37089 $(NORMAL_TARGET_EXPORTS) \
22121df0 37090 echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37091 for flag in $(EXTRA_TARGET_FLAGS); do \
37092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37093 done; \
1b6c0831 37094 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37097 "RANLIB=$${RANLIB}" \
37098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37099 clean) \
37100 || exit 1
37101
1b6c0831 37102@endif target-libmpx
5286fdef 37103
1b6c0831
L
37104.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
37105maybe-distclean-target-libmpx:
37106@if target-libmpx
37107maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 37108
1b6c0831 37109distclean-target-libmpx:
5286fdef 37110 @: $(MAKE); $(unstage)
22121df0 37111 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37112 r=`${PWD_COMMAND}`; export r; \
37113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37114 $(NORMAL_TARGET_EXPORTS) \
22121df0 37115 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37116 for flag in $(EXTRA_TARGET_FLAGS); do \
37117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37118 done; \
1b6c0831 37119 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37122 "RANLIB=$${RANLIB}" \
37123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37124 distclean) \
37125 || exit 1
37126
1b6c0831 37127@endif target-libmpx
5286fdef 37128
1b6c0831
L
37129.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
37130maybe-maintainer-clean-target-libmpx:
37131@if target-libmpx
37132maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 37133
1b6c0831 37134maintainer-clean-target-libmpx:
5286fdef 37135 @: $(MAKE); $(unstage)
22121df0 37136 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37137 r=`${PWD_COMMAND}`; export r; \
37138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37139 $(NORMAL_TARGET_EXPORTS) \
22121df0 37140 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37141 for flag in $(EXTRA_TARGET_FLAGS); do \
37142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37143 done; \
1b6c0831 37144 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37147 "RANLIB=$${RANLIB}" \
37148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37149 maintainer-clean) \
37150 || exit 1
37151
1b6c0831 37152@endif target-libmpx
5286fdef
L
37153
37154
37155
37156
37157
95e43135
JBG
37158.PHONY: configure-target-libvtv maybe-configure-target-libvtv
37159maybe-configure-target-libvtv:
37160@if gcc-bootstrap
37161configure-target-libvtv: stage_current
37162@endif gcc-bootstrap
37163@if target-libvtv
37164maybe-configure-target-libvtv: configure-target-libvtv
37165configure-target-libvtv:
37166 @r=`${PWD_COMMAND}`; export r; \
37167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37168 echo "Checking multilib configuration for libvtv..."; \
22121df0
L
37169 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
37170 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37171 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37172 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37173 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37174 else \
37175 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37176 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37177 fi; \
37178 else \
37179 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37180 fi; \
37181 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
22121df0 37182 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37183 $(RAW_CXX_TARGET_EXPORTS) \
37184 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
37185 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
37186 case $(srcdir) in \
37187 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37188 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37189 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37190 esac; \
1b6c0831 37191 module_srcdir=libvtv; \
95e43135 37192 rm -f no-such-file || : ; \
1b6c0831
L
37193 CONFIG_SITE=no-such-file $(SHELL) \
37194 $$s/$$module_srcdir/configure \
37195 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37196 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37197 --target=${target_alias} \
95e43135
JBG
37198 || exit 1
37199@endif target-libvtv
37200
37201
37202
37203.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
37204maybe-configure-stage1-target-libvtv:
37205@if target-libvtv-bootstrap
37206maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
37207configure-stage1-target-libvtv:
37208 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
37209 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37210 @r=`${PWD_COMMAND}`; export r; \
37211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37212 TFLAGS="$(STAGE1_TFLAGS)"; \
37213 echo "Checking multilib configuration for libvtv..."; \
22121df0 37214 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37215 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37216 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37217 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37218 else \
37219 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37220 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37221 fi; \
37222 else \
37223 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37224 fi; \
37225 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37226 $(RAW_CXX_TARGET_EXPORTS) \
37227 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37228 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37229 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37230 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \
37231 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37232 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37233 case $(srcdir) in \
37234 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37235 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37236 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37237 esac; \
1b6c0831
L
37238 module_srcdir=libvtv; \
37239 $(SHELL) $$s/$$module_srcdir/configure \
37240 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37241 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
37242 --target=${target_alias} \
37243 \
95e43135
JBG
37244 $(STAGE1_CONFIGURE_FLAGS)
37245@endif target-libvtv-bootstrap
37246
37247.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
37248maybe-configure-stage2-target-libvtv:
37249@if target-libvtv-bootstrap
37250maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
37251configure-stage2-target-libvtv:
37252 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
37253 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37254 @r=`${PWD_COMMAND}`; export r; \
37255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37256 TFLAGS="$(STAGE2_TFLAGS)"; \
37257 echo "Checking multilib configuration for libvtv..."; \
22121df0 37258 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37259 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37260 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37261 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37262 else \
37263 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37264 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37265 fi; \
37266 else \
37267 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37268 fi; \
37269 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37270 $(RAW_CXX_TARGET_EXPORTS) \
37271 \
37272 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37273 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37274 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37275 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \
37276 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37277 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37278 case $(srcdir) in \
37279 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37280 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37281 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37282 esac; \
1b6c0831
L
37283 module_srcdir=libvtv; \
37284 $(SHELL) $$s/$$module_srcdir/configure \
37285 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37286 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37287 --target=${target_alias} \
22121df0 37288 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37289 $(STAGE2_CONFIGURE_FLAGS)
37290@endif target-libvtv-bootstrap
37291
37292.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
37293maybe-configure-stage3-target-libvtv:
37294@if target-libvtv-bootstrap
37295maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
37296configure-stage3-target-libvtv:
37297 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
37298 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37299 @r=`${PWD_COMMAND}`; export r; \
37300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37301 TFLAGS="$(STAGE3_TFLAGS)"; \
37302 echo "Checking multilib configuration for libvtv..."; \
22121df0 37303 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37304 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37305 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37306 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37307 else \
37308 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37309 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37310 fi; \
37311 else \
37312 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37313 fi; \
37314 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37315 $(RAW_CXX_TARGET_EXPORTS) \
37316 \
37317 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37318 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37319 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37320 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \
37321 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37322 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37323 case $(srcdir) in \
37324 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37325 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37326 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37327 esac; \
1b6c0831
L
37328 module_srcdir=libvtv; \
37329 $(SHELL) $$s/$$module_srcdir/configure \
37330 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37331 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37332 --target=${target_alias} \
22121df0 37333 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37334 $(STAGE3_CONFIGURE_FLAGS)
37335@endif target-libvtv-bootstrap
37336
37337.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
37338maybe-configure-stage4-target-libvtv:
37339@if target-libvtv-bootstrap
37340maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
37341configure-stage4-target-libvtv:
37342 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
37343 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37344 @r=`${PWD_COMMAND}`; export r; \
37345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37346 TFLAGS="$(STAGE4_TFLAGS)"; \
37347 echo "Checking multilib configuration for libvtv..."; \
22121df0 37348 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37349 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37350 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37351 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37352 else \
37353 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37354 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37355 fi; \
37356 else \
37357 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37358 fi; \
37359 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37360 $(RAW_CXX_TARGET_EXPORTS) \
37361 \
37362 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37363 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37364 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37365 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \
37366 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37367 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37368 case $(srcdir) in \
37369 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37370 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37371 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37372 esac; \
1b6c0831
L
37373 module_srcdir=libvtv; \
37374 $(SHELL) $$s/$$module_srcdir/configure \
37375 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37376 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37377 --target=${target_alias} \
22121df0 37378 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37379 $(STAGE4_CONFIGURE_FLAGS)
37380@endif target-libvtv-bootstrap
37381
37382.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
37383maybe-configure-stageprofile-target-libvtv:
37384@if target-libvtv-bootstrap
37385maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
37386configure-stageprofile-target-libvtv:
37387 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
37388 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37389 @r=`${PWD_COMMAND}`; export r; \
37390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37391 TFLAGS="$(STAGEprofile_TFLAGS)"; \
37392 echo "Checking multilib configuration for libvtv..."; \
22121df0 37393 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37394 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37395 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37396 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37397 else \
37398 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37399 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37400 fi; \
37401 else \
37402 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37403 fi; \
37404 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37405 $(RAW_CXX_TARGET_EXPORTS) \
37406 \
37407 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37408 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37409 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37410 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \
37411 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37412 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37413 case $(srcdir) in \
37414 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37415 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37416 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37417 esac; \
1b6c0831
L
37418 module_srcdir=libvtv; \
37419 $(SHELL) $$s/$$module_srcdir/configure \
37420 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37421 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37422 --target=${target_alias} \
22121df0 37423 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37424 $(STAGEprofile_CONFIGURE_FLAGS)
37425@endif target-libvtv-bootstrap
37426
37427.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
37428maybe-configure-stagefeedback-target-libvtv:
37429@if target-libvtv-bootstrap
37430maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
37431configure-stagefeedback-target-libvtv:
37432 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
37433 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37434 @r=`${PWD_COMMAND}`; export r; \
37435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37436 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
37437 echo "Checking multilib configuration for libvtv..."; \
22121df0 37438 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37439 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37440 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37441 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37442 else \
37443 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37444 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37445 fi; \
37446 else \
37447 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37448 fi; \
37449 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37450 $(RAW_CXX_TARGET_EXPORTS) \
37451 \
37452 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37453 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37454 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37455 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \
37456 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37457 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37458 case $(srcdir) in \
37459 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37460 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37461 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37462 esac; \
1b6c0831
L
37463 module_srcdir=libvtv; \
37464 $(SHELL) $$s/$$module_srcdir/configure \
37465 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37466 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37467 --target=${target_alias} \
22121df0 37468 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37469 $(STAGEfeedback_CONFIGURE_FLAGS)
37470@endif target-libvtv-bootstrap
37471
37472
37473
37474
37475
37476.PHONY: all-target-libvtv maybe-all-target-libvtv
37477maybe-all-target-libvtv:
37478@if gcc-bootstrap
37479all-target-libvtv: stage_current
37480@endif gcc-bootstrap
37481@if target-libvtv
37482TARGET-target-libvtv=all
37483maybe-all-target-libvtv: all-target-libvtv
37484all-target-libvtv: configure-target-libvtv
37485 @r=`${PWD_COMMAND}`; export r; \
37486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37487 $(RAW_CXX_TARGET_EXPORTS) \
37488 (cd $(TARGET_SUBDIR)/libvtv && \
37489 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
37490 $(TARGET-target-libvtv))
37491@endif target-libvtv
37492
37493
37494
37495.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
37496.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
37497maybe-all-stage1-target-libvtv:
37498maybe-clean-stage1-target-libvtv:
37499@if target-libvtv-bootstrap
37500maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
37501all-stage1: all-stage1-target-libvtv
37502TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
37503all-stage1-target-libvtv: configure-stage1-target-libvtv
37504 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
37505 @r=`${PWD_COMMAND}`; export r; \
37506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37507 TFLAGS="$(STAGE1_TFLAGS)"; \
37508 $(RAW_CXX_TARGET_EXPORTS) \
37509 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37510 \
95e43135
JBG
37511 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37512 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37513 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37514 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37515 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37516 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37517 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37518 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
37519 \
05a13254 37520 TFLAGS="$(STAGE1_TFLAGS)" \
95e43135
JBG
37521 $(TARGET-stage1-target-libvtv)
37522
37523maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
37524clean-stage1: clean-stage1-target-libvtv
37525clean-stage1-target-libvtv:
37526 @if [ $(current_stage) = stage1 ]; then \
37527 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37528 else \
37529 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
37530 $(MAKE) stage1-start; \
37531 fi; \
37532 cd $(TARGET_SUBDIR)/libvtv && \
37533 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
37534 clean
37535@endif target-libvtv-bootstrap
37536
37537
37538.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
37539.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
37540maybe-all-stage2-target-libvtv:
37541maybe-clean-stage2-target-libvtv:
37542@if target-libvtv-bootstrap
37543maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
37544all-stage2: all-stage2-target-libvtv
37545TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
37546all-stage2-target-libvtv: configure-stage2-target-libvtv
37547 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
37548 @r=`${PWD_COMMAND}`; export r; \
37549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37550 TFLAGS="$(STAGE2_TFLAGS)"; \
37551 $(RAW_CXX_TARGET_EXPORTS) \
37552 \
37553 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37554 \
95e43135
JBG
37555 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37556 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37557 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37558 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37559 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37560 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37561 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37562 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37563 TFLAGS="$(STAGE2_TFLAGS)" \
95e43135
JBG
37564 $(TARGET-stage2-target-libvtv)
37565
37566maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
37567clean-stage2: clean-stage2-target-libvtv
37568clean-stage2-target-libvtv:
37569 @if [ $(current_stage) = stage2 ]; then \
37570 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37571 else \
37572 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
37573 $(MAKE) stage2-start; \
37574 fi; \
37575 cd $(TARGET_SUBDIR)/libvtv && \
37576 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37577@endif target-libvtv-bootstrap
37578
37579
37580.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
37581.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
37582maybe-all-stage3-target-libvtv:
37583maybe-clean-stage3-target-libvtv:
37584@if target-libvtv-bootstrap
37585maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
37586all-stage3: all-stage3-target-libvtv
37587TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
37588all-stage3-target-libvtv: configure-stage3-target-libvtv
37589 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
37590 @r=`${PWD_COMMAND}`; export r; \
37591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37592 TFLAGS="$(STAGE3_TFLAGS)"; \
37593 $(RAW_CXX_TARGET_EXPORTS) \
37594 \
37595 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37596 \
95e43135
JBG
37597 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37598 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37599 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37600 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37601 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37602 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37603 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37604 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37605 TFLAGS="$(STAGE3_TFLAGS)" \
95e43135
JBG
37606 $(TARGET-stage3-target-libvtv)
37607
37608maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
37609clean-stage3: clean-stage3-target-libvtv
37610clean-stage3-target-libvtv:
37611 @if [ $(current_stage) = stage3 ]; then \
37612 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37613 else \
37614 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
37615 $(MAKE) stage3-start; \
37616 fi; \
37617 cd $(TARGET_SUBDIR)/libvtv && \
37618 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37619@endif target-libvtv-bootstrap
37620
37621
37622.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
37623.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
37624maybe-all-stage4-target-libvtv:
37625maybe-clean-stage4-target-libvtv:
37626@if target-libvtv-bootstrap
37627maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
37628all-stage4: all-stage4-target-libvtv
37629TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
37630all-stage4-target-libvtv: configure-stage4-target-libvtv
37631 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
37632 @r=`${PWD_COMMAND}`; export r; \
37633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37634 TFLAGS="$(STAGE4_TFLAGS)"; \
37635 $(RAW_CXX_TARGET_EXPORTS) \
37636 \
37637 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37638 \
95e43135
JBG
37639 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37640 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37641 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37642 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37643 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37644 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37645 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37646 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37647 TFLAGS="$(STAGE4_TFLAGS)" \
95e43135
JBG
37648 $(TARGET-stage4-target-libvtv)
37649
37650maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
37651clean-stage4: clean-stage4-target-libvtv
37652clean-stage4-target-libvtv:
37653 @if [ $(current_stage) = stage4 ]; then \
37654 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37655 else \
37656 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
37657 $(MAKE) stage4-start; \
37658 fi; \
37659 cd $(TARGET_SUBDIR)/libvtv && \
37660 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37661@endif target-libvtv-bootstrap
37662
37663
37664.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
37665.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
37666maybe-all-stageprofile-target-libvtv:
37667maybe-clean-stageprofile-target-libvtv:
37668@if target-libvtv-bootstrap
37669maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
37670all-stageprofile: all-stageprofile-target-libvtv
37671TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
37672all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
37673 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
37674 @r=`${PWD_COMMAND}`; export r; \
37675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37676 TFLAGS="$(STAGEprofile_TFLAGS)"; \
37677 $(RAW_CXX_TARGET_EXPORTS) \
37678 \
37679 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37680 \
95e43135
JBG
37681 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37682 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37683 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37684 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37685 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37686 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37687 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37688 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37689 TFLAGS="$(STAGEprofile_TFLAGS)" \
95e43135
JBG
37690 $(TARGET-stageprofile-target-libvtv)
37691
37692maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
37693clean-stageprofile: clean-stageprofile-target-libvtv
37694clean-stageprofile-target-libvtv:
37695 @if [ $(current_stage) = stageprofile ]; then \
37696 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37697 else \
37698 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
37699 $(MAKE) stageprofile-start; \
37700 fi; \
37701 cd $(TARGET_SUBDIR)/libvtv && \
37702 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37703@endif target-libvtv-bootstrap
37704
37705
37706.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
37707.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
37708maybe-all-stagefeedback-target-libvtv:
37709maybe-clean-stagefeedback-target-libvtv:
37710@if target-libvtv-bootstrap
37711maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
37712all-stagefeedback: all-stagefeedback-target-libvtv
37713TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
37714all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
37715 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
37716 @r=`${PWD_COMMAND}`; export r; \
37717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37718 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
37719 $(RAW_CXX_TARGET_EXPORTS) \
37720 \
37721 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37722 \
95e43135
JBG
37723 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37724 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37725 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37726 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37727 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37728 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37729 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37730 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37731 TFLAGS="$(STAGEfeedback_TFLAGS)" \
95e43135
JBG
37732 $(TARGET-stagefeedback-target-libvtv)
37733
37734maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
37735clean-stagefeedback: clean-stagefeedback-target-libvtv
37736clean-stagefeedback-target-libvtv:
37737 @if [ $(current_stage) = stagefeedback ]; then \
37738 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37739 else \
37740 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
37741 $(MAKE) stagefeedback-start; \
37742 fi; \
37743 cd $(TARGET_SUBDIR)/libvtv && \
37744 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37745@endif target-libvtv-bootstrap
37746
37747
37748
37749
37750
37751
37752.PHONY: check-target-libvtv maybe-check-target-libvtv
37753maybe-check-target-libvtv:
37754@if target-libvtv
37755maybe-check-target-libvtv: check-target-libvtv
37756
37757check-target-libvtv:
37758 @: $(MAKE); $(unstage)
37759 @r=`${PWD_COMMAND}`; export r; \
37760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37761 $(RAW_CXX_TARGET_EXPORTS) \
37762 (cd $(TARGET_SUBDIR)/libvtv && \
37763 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
37764
37765@endif target-libvtv
37766
37767.PHONY: install-target-libvtv maybe-install-target-libvtv
37768maybe-install-target-libvtv:
37769@if target-libvtv
37770maybe-install-target-libvtv: install-target-libvtv
37771
37772install-target-libvtv: installdirs
37773 @: $(MAKE); $(unstage)
37774 @r=`${PWD_COMMAND}`; export r; \
37775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37776 $(RAW_CXX_TARGET_EXPORTS) \
37777 (cd $(TARGET_SUBDIR)/libvtv && \
37778 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37779
37780@endif target-libvtv
37781
37782.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
37783maybe-install-strip-target-libvtv:
37784@if target-libvtv
37785maybe-install-strip-target-libvtv: install-strip-target-libvtv
37786
37787install-strip-target-libvtv: installdirs
37788 @: $(MAKE); $(unstage)
37789 @r=`${PWD_COMMAND}`; export r; \
37790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37791 $(RAW_CXX_TARGET_EXPORTS) \
37792 (cd $(TARGET_SUBDIR)/libvtv && \
37793 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37794
37795@endif target-libvtv
37796
37797# Other targets (info, dvi, pdf, etc.)
37798
37799.PHONY: maybe-info-target-libvtv info-target-libvtv
37800maybe-info-target-libvtv:
37801@if target-libvtv
37802maybe-info-target-libvtv: info-target-libvtv
37803
37804info-target-libvtv: \
37805 configure-target-libvtv
37806 @: $(MAKE); $(unstage)
22121df0 37807 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37808 r=`${PWD_COMMAND}`; export r; \
37809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37810 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37811 echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37812 for flag in $(EXTRA_TARGET_FLAGS); do \
37813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37814 done; \
37815 (cd $(TARGET_SUBDIR)/libvtv && \
37816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37818 "RANLIB=$${RANLIB}" \
37819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37820 info) \
37821 || exit 1
37822
37823@endif target-libvtv
37824
37825.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
37826maybe-dvi-target-libvtv:
37827@if target-libvtv
37828maybe-dvi-target-libvtv: dvi-target-libvtv
37829
37830dvi-target-libvtv: \
37831 configure-target-libvtv
37832 @: $(MAKE); $(unstage)
22121df0 37833 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37834 r=`${PWD_COMMAND}`; export r; \
37835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37836 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37837 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37838 for flag in $(EXTRA_TARGET_FLAGS); do \
37839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37840 done; \
37841 (cd $(TARGET_SUBDIR)/libvtv && \
37842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37844 "RANLIB=$${RANLIB}" \
37845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37846 dvi) \
37847 || exit 1
37848
37849@endif target-libvtv
37850
37851.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
37852maybe-pdf-target-libvtv:
37853@if target-libvtv
37854maybe-pdf-target-libvtv: pdf-target-libvtv
37855
37856pdf-target-libvtv: \
37857 configure-target-libvtv
37858 @: $(MAKE); $(unstage)
22121df0 37859 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37860 r=`${PWD_COMMAND}`; export r; \
37861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37862 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37863 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37864 for flag in $(EXTRA_TARGET_FLAGS); do \
37865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37866 done; \
37867 (cd $(TARGET_SUBDIR)/libvtv && \
37868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37870 "RANLIB=$${RANLIB}" \
37871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37872 pdf) \
37873 || exit 1
37874
37875@endif target-libvtv
37876
37877.PHONY: maybe-html-target-libvtv html-target-libvtv
37878maybe-html-target-libvtv:
37879@if target-libvtv
37880maybe-html-target-libvtv: html-target-libvtv
37881
37882html-target-libvtv: \
37883 configure-target-libvtv
37884 @: $(MAKE); $(unstage)
22121df0 37885 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37886 r=`${PWD_COMMAND}`; export r; \
37887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37888 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37889 echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37890 for flag in $(EXTRA_TARGET_FLAGS); do \
37891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37892 done; \
37893 (cd $(TARGET_SUBDIR)/libvtv && \
37894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37896 "RANLIB=$${RANLIB}" \
37897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37898 html) \
37899 || exit 1
37900
37901@endif target-libvtv
37902
37903.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
37904maybe-TAGS-target-libvtv:
37905@if target-libvtv
37906maybe-TAGS-target-libvtv: TAGS-target-libvtv
37907
37908TAGS-target-libvtv: \
37909 configure-target-libvtv
37910 @: $(MAKE); $(unstage)
22121df0 37911 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37912 r=`${PWD_COMMAND}`; export r; \
37913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37914 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37915 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37916 for flag in $(EXTRA_TARGET_FLAGS); do \
37917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37918 done; \
37919 (cd $(TARGET_SUBDIR)/libvtv && \
37920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37922 "RANLIB=$${RANLIB}" \
37923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37924 TAGS) \
37925 || exit 1
37926
37927@endif target-libvtv
37928
37929.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
37930maybe-install-info-target-libvtv:
37931@if target-libvtv
37932maybe-install-info-target-libvtv: install-info-target-libvtv
37933
37934install-info-target-libvtv: \
37935 configure-target-libvtv \
37936 info-target-libvtv
37937 @: $(MAKE); $(unstage)
22121df0 37938 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37939 r=`${PWD_COMMAND}`; export r; \
37940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37941 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37942 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37943 for flag in $(EXTRA_TARGET_FLAGS); do \
37944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37945 done; \
37946 (cd $(TARGET_SUBDIR)/libvtv && \
37947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37949 "RANLIB=$${RANLIB}" \
37950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37951 install-info) \
37952 || exit 1
37953
37954@endif target-libvtv
37955
37956.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
37957maybe-install-pdf-target-libvtv:
37958@if target-libvtv
37959maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
37960
37961install-pdf-target-libvtv: \
37962 configure-target-libvtv \
37963 pdf-target-libvtv
37964 @: $(MAKE); $(unstage)
22121df0 37965 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37966 r=`${PWD_COMMAND}`; export r; \
37967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37968 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37969 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37970 for flag in $(EXTRA_TARGET_FLAGS); do \
37971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37972 done; \
37973 (cd $(TARGET_SUBDIR)/libvtv && \
37974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37976 "RANLIB=$${RANLIB}" \
37977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37978 install-pdf) \
37979 || exit 1
37980
37981@endif target-libvtv
37982
37983.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
37984maybe-install-html-target-libvtv:
37985@if target-libvtv
37986maybe-install-html-target-libvtv: install-html-target-libvtv
37987
37988install-html-target-libvtv: \
37989 configure-target-libvtv \
37990 html-target-libvtv
37991 @: $(MAKE); $(unstage)
22121df0 37992 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37993 r=`${PWD_COMMAND}`; export r; \
37994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37995 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37996 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37997 for flag in $(EXTRA_TARGET_FLAGS); do \
37998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37999 done; \
38000 (cd $(TARGET_SUBDIR)/libvtv && \
38001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38003 "RANLIB=$${RANLIB}" \
38004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38005 install-html) \
38006 || exit 1
38007
38008@endif target-libvtv
38009
38010.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
38011maybe-installcheck-target-libvtv:
38012@if target-libvtv
38013maybe-installcheck-target-libvtv: installcheck-target-libvtv
38014
38015installcheck-target-libvtv: \
38016 configure-target-libvtv
38017 @: $(MAKE); $(unstage)
22121df0 38018 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38019 r=`${PWD_COMMAND}`; export r; \
38020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38021 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38022 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38023 for flag in $(EXTRA_TARGET_FLAGS); do \
38024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38025 done; \
38026 (cd $(TARGET_SUBDIR)/libvtv && \
38027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38029 "RANLIB=$${RANLIB}" \
38030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38031 installcheck) \
38032 || exit 1
38033
38034@endif target-libvtv
38035
38036.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
38037maybe-mostlyclean-target-libvtv:
38038@if target-libvtv
38039maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
38040
38041mostlyclean-target-libvtv:
38042 @: $(MAKE); $(unstage)
22121df0 38043 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38044 r=`${PWD_COMMAND}`; export r; \
38045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38046 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38047 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38048 for flag in $(EXTRA_TARGET_FLAGS); do \
38049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38050 done; \
38051 (cd $(TARGET_SUBDIR)/libvtv && \
38052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38054 "RANLIB=$${RANLIB}" \
38055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38056 mostlyclean) \
38057 || exit 1
38058
38059@endif target-libvtv
38060
38061.PHONY: maybe-clean-target-libvtv clean-target-libvtv
38062maybe-clean-target-libvtv:
38063@if target-libvtv
38064maybe-clean-target-libvtv: clean-target-libvtv
38065
38066clean-target-libvtv:
38067 @: $(MAKE); $(unstage)
22121df0 38068 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38069 r=`${PWD_COMMAND}`; export r; \
38070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38071 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38072 echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38073 for flag in $(EXTRA_TARGET_FLAGS); do \
38074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38075 done; \
38076 (cd $(TARGET_SUBDIR)/libvtv && \
38077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38079 "RANLIB=$${RANLIB}" \
38080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38081 clean) \
38082 || exit 1
38083
38084@endif target-libvtv
38085
38086.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
38087maybe-distclean-target-libvtv:
38088@if target-libvtv
38089maybe-distclean-target-libvtv: distclean-target-libvtv
38090
38091distclean-target-libvtv:
38092 @: $(MAKE); $(unstage)
22121df0 38093 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38094 r=`${PWD_COMMAND}`; export r; \
38095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38096 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38097 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38098 for flag in $(EXTRA_TARGET_FLAGS); do \
38099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38100 done; \
38101 (cd $(TARGET_SUBDIR)/libvtv && \
38102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38104 "RANLIB=$${RANLIB}" \
38105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38106 distclean) \
38107 || exit 1
38108
38109@endif target-libvtv
38110
38111.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
38112maybe-maintainer-clean-target-libvtv:
38113@if target-libvtv
38114maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
38115
38116maintainer-clean-target-libvtv:
38117 @: $(MAKE); $(unstage)
22121df0 38118 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38119 r=`${PWD_COMMAND}`; export r; \
38120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38121 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38122 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38123 for flag in $(EXTRA_TARGET_FLAGS); do \
38124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38125 done; \
38126 (cd $(TARGET_SUBDIR)/libvtv && \
38127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38129 "RANLIB=$${RANLIB}" \
38130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38131 maintainer-clean) \
38132 || exit 1
38133
38134@endif target-libvtv
38135
38136
38137
38138
38139
e3f56a99
NC
38140.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
38141maybe-configure-target-libcilkrts:
38142@if gcc-bootstrap
38143configure-target-libcilkrts: stage_current
38144@endif gcc-bootstrap
38145@if target-libcilkrts
38146maybe-configure-target-libcilkrts: configure-target-libcilkrts
38147configure-target-libcilkrts:
38148 @: $(MAKE); $(unstage)
38149 @r=`${PWD_COMMAND}`; export r; \
38150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38151 echo "Checking multilib configuration for libcilkrts..."; \
38152 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
38153 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null; \
38154 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
38155 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
38156 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
38157 else \
38158 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
38159 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
38160 fi; \
38161 else \
38162 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
38163 fi; \
38164 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
38165 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
38166 $(NORMAL_TARGET_EXPORTS) \
38167 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
38168 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
38169 case $(srcdir) in \
38170 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38171 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
38172 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38173 esac; \
38174 module_srcdir=libcilkrts; \
38175 rm -f no-such-file || : ; \
38176 CONFIG_SITE=no-such-file $(SHELL) \
38177 $$s/$$module_srcdir/configure \
38178 --srcdir=$${topdir}/$$module_srcdir \
38179 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
38180 --target=${target_alias} \
38181 || exit 1
38182@endif target-libcilkrts
38183
38184
38185
38186
38187
38188.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
38189maybe-all-target-libcilkrts:
38190@if gcc-bootstrap
38191all-target-libcilkrts: stage_current
38192@endif gcc-bootstrap
38193@if target-libcilkrts
38194TARGET-target-libcilkrts=all
38195maybe-all-target-libcilkrts: all-target-libcilkrts
38196all-target-libcilkrts: configure-target-libcilkrts
38197 @: $(MAKE); $(unstage)
38198 @r=`${PWD_COMMAND}`; export r; \
38199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38200 $(NORMAL_TARGET_EXPORTS) \
38201 (cd $(TARGET_SUBDIR)/libcilkrts && \
38202 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
38203 $(TARGET-target-libcilkrts))
38204@endif target-libcilkrts
38205
38206
38207
38208
38209
38210.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
38211maybe-check-target-libcilkrts:
38212@if target-libcilkrts
38213maybe-check-target-libcilkrts: check-target-libcilkrts
38214
38215check-target-libcilkrts:
38216 @: $(MAKE); $(unstage)
38217 @r=`${PWD_COMMAND}`; export r; \
38218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38219 $(NORMAL_TARGET_EXPORTS) \
38220 (cd $(TARGET_SUBDIR)/libcilkrts && \
38221 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
38222
38223@endif target-libcilkrts
38224
38225.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
38226maybe-install-target-libcilkrts:
38227@if target-libcilkrts
38228maybe-install-target-libcilkrts: install-target-libcilkrts
38229
38230install-target-libcilkrts: installdirs
38231 @: $(MAKE); $(unstage)
38232 @r=`${PWD_COMMAND}`; export r; \
38233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38234 $(NORMAL_TARGET_EXPORTS) \
38235 (cd $(TARGET_SUBDIR)/libcilkrts && \
38236 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38237
38238@endif target-libcilkrts
38239
38240.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
38241maybe-install-strip-target-libcilkrts:
38242@if target-libcilkrts
38243maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
38244
38245install-strip-target-libcilkrts: installdirs
38246 @: $(MAKE); $(unstage)
38247 @r=`${PWD_COMMAND}`; export r; \
38248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38249 $(NORMAL_TARGET_EXPORTS) \
38250 (cd $(TARGET_SUBDIR)/libcilkrts && \
38251 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38252
38253@endif target-libcilkrts
38254
38255# Other targets (info, dvi, pdf, etc.)
38256
38257.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
38258maybe-info-target-libcilkrts:
38259@if target-libcilkrts
38260maybe-info-target-libcilkrts: info-target-libcilkrts
38261
38262info-target-libcilkrts: \
38263 configure-target-libcilkrts
38264 @: $(MAKE); $(unstage)
38265 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38266 r=`${PWD_COMMAND}`; export r; \
38267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38268 $(NORMAL_TARGET_EXPORTS) \
38269 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts"; \
38270 for flag in $(EXTRA_TARGET_FLAGS); do \
38271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38272 done; \
38273 (cd $(TARGET_SUBDIR)/libcilkrts && \
38274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38276 "RANLIB=$${RANLIB}" \
38277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38278 info) \
38279 || exit 1
38280
38281@endif target-libcilkrts
38282
38283.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
38284maybe-dvi-target-libcilkrts:
38285@if target-libcilkrts
38286maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
38287
38288dvi-target-libcilkrts: \
38289 configure-target-libcilkrts
38290 @: $(MAKE); $(unstage)
38291 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38292 r=`${PWD_COMMAND}`; export r; \
38293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38294 $(NORMAL_TARGET_EXPORTS) \
38295 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts"; \
38296 for flag in $(EXTRA_TARGET_FLAGS); do \
38297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38298 done; \
38299 (cd $(TARGET_SUBDIR)/libcilkrts && \
38300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38302 "RANLIB=$${RANLIB}" \
38303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38304 dvi) \
38305 || exit 1
38306
38307@endif target-libcilkrts
38308
38309.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
38310maybe-pdf-target-libcilkrts:
38311@if target-libcilkrts
38312maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
38313
38314pdf-target-libcilkrts: \
38315 configure-target-libcilkrts
38316 @: $(MAKE); $(unstage)
38317 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38318 r=`${PWD_COMMAND}`; export r; \
38319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38320 $(NORMAL_TARGET_EXPORTS) \
38321 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts"; \
38322 for flag in $(EXTRA_TARGET_FLAGS); do \
38323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38324 done; \
38325 (cd $(TARGET_SUBDIR)/libcilkrts && \
38326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38328 "RANLIB=$${RANLIB}" \
38329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38330 pdf) \
38331 || exit 1
38332
38333@endif target-libcilkrts
38334
38335.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
38336maybe-html-target-libcilkrts:
38337@if target-libcilkrts
38338maybe-html-target-libcilkrts: html-target-libcilkrts
38339
38340html-target-libcilkrts: \
38341 configure-target-libcilkrts
38342 @: $(MAKE); $(unstage)
38343 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38344 r=`${PWD_COMMAND}`; export r; \
38345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38346 $(NORMAL_TARGET_EXPORTS) \
38347 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts"; \
38348 for flag in $(EXTRA_TARGET_FLAGS); do \
38349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38350 done; \
38351 (cd $(TARGET_SUBDIR)/libcilkrts && \
38352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38354 "RANLIB=$${RANLIB}" \
38355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38356 html) \
38357 || exit 1
38358
38359@endif target-libcilkrts
38360
38361.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
38362maybe-TAGS-target-libcilkrts:
38363@if target-libcilkrts
38364maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
38365
38366TAGS-target-libcilkrts: \
38367 configure-target-libcilkrts
38368 @: $(MAKE); $(unstage)
38369 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38370 r=`${PWD_COMMAND}`; export r; \
38371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38372 $(NORMAL_TARGET_EXPORTS) \
38373 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts"; \
38374 for flag in $(EXTRA_TARGET_FLAGS); do \
38375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38376 done; \
38377 (cd $(TARGET_SUBDIR)/libcilkrts && \
38378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38380 "RANLIB=$${RANLIB}" \
38381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38382 TAGS) \
38383 || exit 1
38384
38385@endif target-libcilkrts
38386
38387.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
38388maybe-install-info-target-libcilkrts:
38389@if target-libcilkrts
38390maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
38391
38392install-info-target-libcilkrts: \
38393 configure-target-libcilkrts \
38394 info-target-libcilkrts
38395 @: $(MAKE); $(unstage)
38396 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38397 r=`${PWD_COMMAND}`; export r; \
38398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38399 $(NORMAL_TARGET_EXPORTS) \
38400 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts"; \
38401 for flag in $(EXTRA_TARGET_FLAGS); do \
38402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38403 done; \
38404 (cd $(TARGET_SUBDIR)/libcilkrts && \
38405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38407 "RANLIB=$${RANLIB}" \
38408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38409 install-info) \
38410 || exit 1
38411
38412@endif target-libcilkrts
38413
38414.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
38415maybe-install-pdf-target-libcilkrts:
38416@if target-libcilkrts
38417maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
38418
38419install-pdf-target-libcilkrts: \
38420 configure-target-libcilkrts \
38421 pdf-target-libcilkrts
38422 @: $(MAKE); $(unstage)
38423 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38424 r=`${PWD_COMMAND}`; export r; \
38425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38426 $(NORMAL_TARGET_EXPORTS) \
38427 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts"; \
38428 for flag in $(EXTRA_TARGET_FLAGS); do \
38429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38430 done; \
38431 (cd $(TARGET_SUBDIR)/libcilkrts && \
38432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38434 "RANLIB=$${RANLIB}" \
38435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38436 install-pdf) \
38437 || exit 1
38438
38439@endif target-libcilkrts
38440
38441.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
38442maybe-install-html-target-libcilkrts:
38443@if target-libcilkrts
38444maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
38445
38446install-html-target-libcilkrts: \
38447 configure-target-libcilkrts \
38448 html-target-libcilkrts
38449 @: $(MAKE); $(unstage)
38450 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38451 r=`${PWD_COMMAND}`; export r; \
38452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38453 $(NORMAL_TARGET_EXPORTS) \
38454 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts"; \
38455 for flag in $(EXTRA_TARGET_FLAGS); do \
38456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38457 done; \
38458 (cd $(TARGET_SUBDIR)/libcilkrts && \
38459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38461 "RANLIB=$${RANLIB}" \
38462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38463 install-html) \
38464 || exit 1
38465
38466@endif target-libcilkrts
38467
38468.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
38469maybe-installcheck-target-libcilkrts:
38470@if target-libcilkrts
38471maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
38472
38473installcheck-target-libcilkrts: \
38474 configure-target-libcilkrts
38475 @: $(MAKE); $(unstage)
38476 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38477 r=`${PWD_COMMAND}`; export r; \
38478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38479 $(NORMAL_TARGET_EXPORTS) \
38480 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts"; \
38481 for flag in $(EXTRA_TARGET_FLAGS); do \
38482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38483 done; \
38484 (cd $(TARGET_SUBDIR)/libcilkrts && \
38485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38487 "RANLIB=$${RANLIB}" \
38488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38489 installcheck) \
38490 || exit 1
38491
38492@endif target-libcilkrts
38493
38494.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
38495maybe-mostlyclean-target-libcilkrts:
38496@if target-libcilkrts
38497maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
38498
38499mostlyclean-target-libcilkrts:
38500 @: $(MAKE); $(unstage)
38501 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38502 r=`${PWD_COMMAND}`; export r; \
38503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38504 $(NORMAL_TARGET_EXPORTS) \
38505 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts"; \
38506 for flag in $(EXTRA_TARGET_FLAGS); do \
38507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38508 done; \
38509 (cd $(TARGET_SUBDIR)/libcilkrts && \
38510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38512 "RANLIB=$${RANLIB}" \
38513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38514 mostlyclean) \
38515 || exit 1
38516
38517@endif target-libcilkrts
38518
38519.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
38520maybe-clean-target-libcilkrts:
38521@if target-libcilkrts
38522maybe-clean-target-libcilkrts: clean-target-libcilkrts
38523
38524clean-target-libcilkrts:
38525 @: $(MAKE); $(unstage)
38526 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38527 r=`${PWD_COMMAND}`; export r; \
38528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38529 $(NORMAL_TARGET_EXPORTS) \
38530 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts"; \
38531 for flag in $(EXTRA_TARGET_FLAGS); do \
38532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38533 done; \
38534 (cd $(TARGET_SUBDIR)/libcilkrts && \
38535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38537 "RANLIB=$${RANLIB}" \
38538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38539 clean) \
38540 || exit 1
38541
38542@endif target-libcilkrts
38543
38544.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
38545maybe-distclean-target-libcilkrts:
38546@if target-libcilkrts
38547maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
38548
38549distclean-target-libcilkrts:
38550 @: $(MAKE); $(unstage)
38551 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38552 r=`${PWD_COMMAND}`; export r; \
38553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38554 $(NORMAL_TARGET_EXPORTS) \
38555 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts"; \
38556 for flag in $(EXTRA_TARGET_FLAGS); do \
38557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38558 done; \
38559 (cd $(TARGET_SUBDIR)/libcilkrts && \
38560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38562 "RANLIB=$${RANLIB}" \
38563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38564 distclean) \
38565 || exit 1
38566
38567@endif target-libcilkrts
38568
38569.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
38570maybe-maintainer-clean-target-libcilkrts:
38571@if target-libcilkrts
38572maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
38573
38574maintainer-clean-target-libcilkrts:
38575 @: $(MAKE); $(unstage)
38576 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38577 r=`${PWD_COMMAND}`; export r; \
38578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38579 $(NORMAL_TARGET_EXPORTS) \
38580 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts"; \
38581 for flag in $(EXTRA_TARGET_FLAGS); do \
38582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38583 done; \
38584 (cd $(TARGET_SUBDIR)/libcilkrts && \
38585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38587 "RANLIB=$${RANLIB}" \
38588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38589 maintainer-clean) \
38590 || exit 1
38591
38592@endif target-libcilkrts
38593
38594
38595
38596
38597
1b6c0831
L
38598.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
38599maybe-configure-target-liboffloadmic:
38600@if gcc-bootstrap
38601configure-target-liboffloadmic: stage_current
38602@endif gcc-bootstrap
38603@if target-liboffloadmic
38604maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
38605configure-target-liboffloadmic:
38606 @: $(MAKE); $(unstage)
38607 @r=`${PWD_COMMAND}`; export r; \
38608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38609 echo "Checking multilib configuration for liboffloadmic..."; \
22121df0
L
38610 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
38611 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \
1b6c0831
L
38612 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
38613 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
38614 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
38615 else \
38616 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
38617 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
38618 fi; \
38619 else \
38620 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
38621 fi; \
38622 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
22121df0 38623 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
1b6c0831
L
38624 $(NORMAL_TARGET_EXPORTS) \
38625 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
38626 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
38627 case $(srcdir) in \
38628 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38629 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
38630 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38631 esac; \
38632 module_srcdir=liboffloadmic; \
38633 rm -f no-such-file || : ; \
38634 CONFIG_SITE=no-such-file $(SHELL) \
38635 $$s/$$module_srcdir/configure \
38636 --srcdir=$${topdir}/$$module_srcdir \
38637 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
38638 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
38639 || exit 1
38640@endif target-liboffloadmic
38641
38642
38643
38644
38645
38646.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
38647maybe-all-target-liboffloadmic:
38648@if gcc-bootstrap
38649all-target-liboffloadmic: stage_current
38650@endif gcc-bootstrap
38651@if target-liboffloadmic
38652TARGET-target-liboffloadmic=all
38653maybe-all-target-liboffloadmic: all-target-liboffloadmic
38654all-target-liboffloadmic: configure-target-liboffloadmic
38655 @: $(MAKE); $(unstage)
38656 @r=`${PWD_COMMAND}`; export r; \
38657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38658 $(NORMAL_TARGET_EXPORTS) \
38659 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38660 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
38661 $(TARGET-target-liboffloadmic))
38662@endif target-liboffloadmic
38663
38664
38665
38666
38667
38668.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
38669maybe-check-target-liboffloadmic:
38670@if target-liboffloadmic
38671maybe-check-target-liboffloadmic: check-target-liboffloadmic
38672
38673check-target-liboffloadmic:
38674 @: $(MAKE); $(unstage)
38675 @r=`${PWD_COMMAND}`; export r; \
38676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38677 $(NORMAL_TARGET_EXPORTS) \
38678 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38679 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
38680
38681@endif target-liboffloadmic
38682
38683.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
38684maybe-install-target-liboffloadmic:
38685@if target-liboffloadmic
38686maybe-install-target-liboffloadmic: install-target-liboffloadmic
38687
38688install-target-liboffloadmic: installdirs
38689 @: $(MAKE); $(unstage)
38690 @r=`${PWD_COMMAND}`; export r; \
38691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38692 $(NORMAL_TARGET_EXPORTS) \
38693 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38694 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38695
38696@endif target-liboffloadmic
38697
38698.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
38699maybe-install-strip-target-liboffloadmic:
38700@if target-liboffloadmic
38701maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
38702
38703install-strip-target-liboffloadmic: installdirs
38704 @: $(MAKE); $(unstage)
38705 @r=`${PWD_COMMAND}`; export r; \
38706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38707 $(NORMAL_TARGET_EXPORTS) \
38708 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38709 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38710
38711@endif target-liboffloadmic
38712
38713# Other targets (info, dvi, pdf, etc.)
38714
38715.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
38716maybe-info-target-liboffloadmic:
38717@if target-liboffloadmic
38718maybe-info-target-liboffloadmic: info-target-liboffloadmic
38719
38720info-target-liboffloadmic: \
38721 configure-target-liboffloadmic
38722 @: $(MAKE); $(unstage)
22121df0 38723 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38724 r=`${PWD_COMMAND}`; export r; \
38725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38726 $(NORMAL_TARGET_EXPORTS) \
22121df0 38727 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38728 for flag in $(EXTRA_TARGET_FLAGS); do \
38729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38730 done; \
38731 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38734 "RANLIB=$${RANLIB}" \
38735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38736 info) \
38737 || exit 1
38738
38739@endif target-liboffloadmic
38740
38741.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
38742maybe-dvi-target-liboffloadmic:
38743@if target-liboffloadmic
38744maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
38745
38746dvi-target-liboffloadmic: \
38747 configure-target-liboffloadmic
38748 @: $(MAKE); $(unstage)
22121df0 38749 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38750 r=`${PWD_COMMAND}`; export r; \
38751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38752 $(NORMAL_TARGET_EXPORTS) \
22121df0 38753 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38754 for flag in $(EXTRA_TARGET_FLAGS); do \
38755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38756 done; \
38757 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38760 "RANLIB=$${RANLIB}" \
38761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38762 dvi) \
38763 || exit 1
38764
38765@endif target-liboffloadmic
38766
38767.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
38768maybe-pdf-target-liboffloadmic:
38769@if target-liboffloadmic
38770maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
38771
38772pdf-target-liboffloadmic: \
38773 configure-target-liboffloadmic
38774 @: $(MAKE); $(unstage)
22121df0 38775 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38776 r=`${PWD_COMMAND}`; export r; \
38777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38778 $(NORMAL_TARGET_EXPORTS) \
22121df0 38779 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38780 for flag in $(EXTRA_TARGET_FLAGS); do \
38781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38782 done; \
38783 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38786 "RANLIB=$${RANLIB}" \
38787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38788 pdf) \
38789 || exit 1
38790
38791@endif target-liboffloadmic
38792
38793.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
38794maybe-html-target-liboffloadmic:
38795@if target-liboffloadmic
38796maybe-html-target-liboffloadmic: html-target-liboffloadmic
38797
38798html-target-liboffloadmic: \
38799 configure-target-liboffloadmic
38800 @: $(MAKE); $(unstage)
22121df0 38801 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38802 r=`${PWD_COMMAND}`; export r; \
38803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38804 $(NORMAL_TARGET_EXPORTS) \
22121df0 38805 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38806 for flag in $(EXTRA_TARGET_FLAGS); do \
38807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38808 done; \
38809 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38812 "RANLIB=$${RANLIB}" \
38813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38814 html) \
38815 || exit 1
38816
38817@endif target-liboffloadmic
38818
38819.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
38820maybe-TAGS-target-liboffloadmic:
38821@if target-liboffloadmic
38822maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
38823
38824TAGS-target-liboffloadmic: \
38825 configure-target-liboffloadmic
38826 @: $(MAKE); $(unstage)
22121df0 38827 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38828 r=`${PWD_COMMAND}`; export r; \
38829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38830 $(NORMAL_TARGET_EXPORTS) \
22121df0 38831 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38832 for flag in $(EXTRA_TARGET_FLAGS); do \
38833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38834 done; \
38835 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38838 "RANLIB=$${RANLIB}" \
38839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38840 TAGS) \
38841 || exit 1
38842
38843@endif target-liboffloadmic
38844
38845.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
38846maybe-install-info-target-liboffloadmic:
38847@if target-liboffloadmic
38848maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
38849
38850install-info-target-liboffloadmic: \
38851 configure-target-liboffloadmic \
38852 info-target-liboffloadmic
38853 @: $(MAKE); $(unstage)
22121df0 38854 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38855 r=`${PWD_COMMAND}`; export r; \
38856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38857 $(NORMAL_TARGET_EXPORTS) \
22121df0 38858 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38859 for flag in $(EXTRA_TARGET_FLAGS); do \
38860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38861 done; \
38862 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38865 "RANLIB=$${RANLIB}" \
38866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38867 install-info) \
38868 || exit 1
38869
38870@endif target-liboffloadmic
38871
38872.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
38873maybe-install-pdf-target-liboffloadmic:
38874@if target-liboffloadmic
38875maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
38876
38877install-pdf-target-liboffloadmic: \
38878 configure-target-liboffloadmic \
38879 pdf-target-liboffloadmic
38880 @: $(MAKE); $(unstage)
22121df0 38881 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38882 r=`${PWD_COMMAND}`; export r; \
38883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38884 $(NORMAL_TARGET_EXPORTS) \
22121df0 38885 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38886 for flag in $(EXTRA_TARGET_FLAGS); do \
38887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38888 done; \
38889 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38892 "RANLIB=$${RANLIB}" \
38893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38894 install-pdf) \
38895 || exit 1
38896
38897@endif target-liboffloadmic
38898
38899.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
38900maybe-install-html-target-liboffloadmic:
38901@if target-liboffloadmic
38902maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
38903
38904install-html-target-liboffloadmic: \
38905 configure-target-liboffloadmic \
38906 html-target-liboffloadmic
38907 @: $(MAKE); $(unstage)
22121df0 38908 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38909 r=`${PWD_COMMAND}`; export r; \
38910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38911 $(NORMAL_TARGET_EXPORTS) \
22121df0 38912 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38913 for flag in $(EXTRA_TARGET_FLAGS); do \
38914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38915 done; \
38916 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38919 "RANLIB=$${RANLIB}" \
38920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38921 install-html) \
38922 || exit 1
38923
38924@endif target-liboffloadmic
38925
38926.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
38927maybe-installcheck-target-liboffloadmic:
38928@if target-liboffloadmic
38929maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
38930
38931installcheck-target-liboffloadmic: \
38932 configure-target-liboffloadmic
38933 @: $(MAKE); $(unstage)
22121df0 38934 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38935 r=`${PWD_COMMAND}`; export r; \
38936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38937 $(NORMAL_TARGET_EXPORTS) \
22121df0 38938 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38939 for flag in $(EXTRA_TARGET_FLAGS); do \
38940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38941 done; \
38942 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38945 "RANLIB=$${RANLIB}" \
38946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38947 installcheck) \
38948 || exit 1
38949
38950@endif target-liboffloadmic
38951
38952.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
38953maybe-mostlyclean-target-liboffloadmic:
38954@if target-liboffloadmic
38955maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
38956
38957mostlyclean-target-liboffloadmic:
38958 @: $(MAKE); $(unstage)
22121df0 38959 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38960 r=`${PWD_COMMAND}`; export r; \
38961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38962 $(NORMAL_TARGET_EXPORTS) \
22121df0 38963 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38964 for flag in $(EXTRA_TARGET_FLAGS); do \
38965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38966 done; \
38967 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38970 "RANLIB=$${RANLIB}" \
38971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38972 mostlyclean) \
38973 || exit 1
38974
38975@endif target-liboffloadmic
38976
38977.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
38978maybe-clean-target-liboffloadmic:
38979@if target-liboffloadmic
38980maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
38981
38982clean-target-liboffloadmic:
38983 @: $(MAKE); $(unstage)
22121df0 38984 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38985 r=`${PWD_COMMAND}`; export r; \
38986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38987 $(NORMAL_TARGET_EXPORTS) \
22121df0 38988 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38989 for flag in $(EXTRA_TARGET_FLAGS); do \
38990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38991 done; \
38992 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38995 "RANLIB=$${RANLIB}" \
38996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38997 clean) \
38998 || exit 1
38999
39000@endif target-liboffloadmic
39001
39002.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
39003maybe-distclean-target-liboffloadmic:
39004@if target-liboffloadmic
39005maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
39006
39007distclean-target-liboffloadmic:
39008 @: $(MAKE); $(unstage)
22121df0 39009 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39010 r=`${PWD_COMMAND}`; export r; \
39011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39012 $(NORMAL_TARGET_EXPORTS) \
22121df0 39013 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39014 for flag in $(EXTRA_TARGET_FLAGS); do \
39015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39016 done; \
39017 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39020 "RANLIB=$${RANLIB}" \
39021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39022 distclean) \
39023 || exit 1
39024
39025@endif target-liboffloadmic
39026
39027.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
39028maybe-maintainer-clean-target-liboffloadmic:
39029@if target-liboffloadmic
39030maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
39031
39032maintainer-clean-target-liboffloadmic:
39033 @: $(MAKE); $(unstage)
22121df0 39034 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39035 r=`${PWD_COMMAND}`; export r; \
39036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39037 $(NORMAL_TARGET_EXPORTS) \
22121df0 39038 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39039 for flag in $(EXTRA_TARGET_FLAGS); do \
39040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39041 done; \
39042 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39045 "RANLIB=$${RANLIB}" \
39046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39047 maintainer-clean) \
39048 || exit 1
39049
39050@endif target-liboffloadmic
39051
39052
39053
39054
39055
a90ef4bf
JM
39056.PHONY: configure-target-libssp maybe-configure-target-libssp
39057maybe-configure-target-libssp:
4f0ef2d8 39058@if gcc-bootstrap
a90ef4bf 39059configure-target-libssp: stage_current
4f0ef2d8 39060@endif gcc-bootstrap
a90ef4bf
JM
39061@if target-libssp
39062maybe-configure-target-libssp: configure-target-libssp
39063configure-target-libssp:
0aed8855
PB
39064 @: $(MAKE); $(unstage)
39065 @r=`${PWD_COMMAND}`; export r; \
39066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39067 echo "Checking multilib configuration for libssp..."; \
22121df0
L
39068 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
39069 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39070 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
39071 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
39072 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 39073 else \
a90ef4bf
JM
39074 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
39075 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
39076 fi; \
39077 else \
a90ef4bf 39078 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 39079 fi; \
a90ef4bf 39080 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
22121df0 39081 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
1f53ca9a 39082 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39083 echo Configuring in $(TARGET_SUBDIR)/libssp; \
39084 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 39085 case $(srcdir) in \
b00612cc 39086 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39087 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 39088 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 39089 esac; \
1b6c0831 39090 module_srcdir=libssp; \
4b1cb4fe 39091 rm -f no-such-file || : ; \
1b6c0831
L
39092 CONFIG_SITE=no-such-file $(SHELL) \
39093 $$s/$$module_srcdir/configure \
39094 --srcdir=$${topdir}/$$module_srcdir \
4b900473 39095 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39096 --target=${target_alias} \
4b1cb4fe 39097 || exit 1
a90ef4bf 39098@endif target-libssp
4b1cb4fe 39099
a7254363
PB
39100
39101
d545f33b
PB
39102
39103
a90ef4bf
JM
39104.PHONY: all-target-libssp maybe-all-target-libssp
39105maybe-all-target-libssp:
4f0ef2d8 39106@if gcc-bootstrap
a90ef4bf 39107all-target-libssp: stage_current
4f0ef2d8 39108@endif gcc-bootstrap
a90ef4bf
JM
39109@if target-libssp
39110TARGET-target-libssp=all
39111maybe-all-target-libssp: all-target-libssp
39112all-target-libssp: configure-target-libssp
0aed8855 39113 @: $(MAKE); $(unstage)
4b1cb4fe
DD
39114 @r=`${PWD_COMMAND}`; export r; \
39115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 39116 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39117 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 39118 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39119 $(TARGET-target-libssp))
39120@endif target-libssp
4b1cb4fe 39121
a7254363
PB
39122
39123
d545f33b
PB
39124
39125
a90ef4bf
JM
39126.PHONY: check-target-libssp maybe-check-target-libssp
39127maybe-check-target-libssp:
39128@if target-libssp
39129maybe-check-target-libssp: check-target-libssp
4b1cb4fe 39130
a90ef4bf 39131check-target-libssp:
0aed8855 39132 @: $(MAKE); $(unstage)
b40e3958
L
39133 @r=`${PWD_COMMAND}`; export r; \
39134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39135 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39136 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 39137 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 39138
a90ef4bf 39139@endif target-libssp
3866be5d 39140
a90ef4bf
JM
39141.PHONY: install-target-libssp maybe-install-target-libssp
39142maybe-install-target-libssp:
39143@if target-libssp
39144maybe-install-target-libssp: install-target-libssp
e2b9e2dc 39145
a90ef4bf 39146install-target-libssp: installdirs
0aed8855 39147 @: $(MAKE); $(unstage)
b40e3958
L
39148 @r=`${PWD_COMMAND}`; export r; \
39149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39150 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39151 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 39152 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 39153
a90ef4bf 39154@endif target-libssp
3866be5d 39155
a90ef4bf
JM
39156.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
39157maybe-install-strip-target-libssp:
39158@if target-libssp
39159maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 39160
a90ef4bf 39161install-strip-target-libssp: installdirs
9b980aa1
RW
39162 @: $(MAKE); $(unstage)
39163 @r=`${PWD_COMMAND}`; export r; \
39164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39165 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39166 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
39167 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39168
a90ef4bf 39169@endif target-libssp
9b980aa1 39170
56a8fe78 39171# Other targets (info, dvi, pdf, etc.)
3866be5d 39172
a90ef4bf
JM
39173.PHONY: maybe-info-target-libssp info-target-libssp
39174maybe-info-target-libssp:
39175@if target-libssp
39176maybe-info-target-libssp: info-target-libssp
3866be5d 39177
a90ef4bf
JM
39178info-target-libssp: \
39179 configure-target-libssp
0aed8855 39180 @: $(MAKE); $(unstage)
22121df0 39181 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067
NN
39182 r=`${PWD_COMMAND}`; export r; \
39183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39184 $(NORMAL_TARGET_EXPORTS) \
22121df0 39185 echo "Doing info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39186 for flag in $(EXTRA_TARGET_FLAGS); do \
39187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39188 done; \
a90ef4bf 39189 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39192 "RANLIB=$${RANLIB}" \
0c24b341 39193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39194 info) \
4fa63067 39195 || exit 1
16ae0395 39196
a90ef4bf 39197@endif target-libssp
3866be5d 39198
a90ef4bf
JM
39199.PHONY: maybe-dvi-target-libssp dvi-target-libssp
39200maybe-dvi-target-libssp:
39201@if target-libssp
39202maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 39203
a90ef4bf
JM
39204dvi-target-libssp: \
39205 configure-target-libssp
0aed8855 39206 @: $(MAKE); $(unstage)
22121df0 39207 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
39208 r=`${PWD_COMMAND}`; export r; \
39209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39210 $(NORMAL_TARGET_EXPORTS) \
22121df0 39211 echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39212 for flag in $(EXTRA_TARGET_FLAGS); do \
39213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39214 done; \
a90ef4bf 39215 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39218 "RANLIB=$${RANLIB}" \
0c24b341 39219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39220 dvi) \
e2b9e2dc
NN
39221 || exit 1
39222
a90ef4bf 39223@endif target-libssp
3866be5d 39224
a90ef4bf
JM
39225.PHONY: maybe-pdf-target-libssp pdf-target-libssp
39226maybe-pdf-target-libssp:
39227@if target-libssp
39228maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 39229
a90ef4bf
JM
39230pdf-target-libssp: \
39231 configure-target-libssp
56a8fe78 39232 @: $(MAKE); $(unstage)
22121df0 39233 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
56a8fe78
DD
39234 r=`${PWD_COMMAND}`; export r; \
39235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39236 $(NORMAL_TARGET_EXPORTS) \
22121df0 39237 echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \
56a8fe78
DD
39238 for flag in $(EXTRA_TARGET_FLAGS); do \
39239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39240 done; \
a90ef4bf 39241 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
39242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39244 "RANLIB=$${RANLIB}" \
0c24b341 39245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
39246 pdf) \
39247 || exit 1
39248
a90ef4bf 39249@endif target-libssp
a3ca38d2 39250
a90ef4bf
JM
39251.PHONY: maybe-html-target-libssp html-target-libssp
39252maybe-html-target-libssp:
39253@if target-libssp
39254maybe-html-target-libssp: html-target-libssp
108a6f8e 39255
a90ef4bf
JM
39256html-target-libssp: \
39257 configure-target-libssp
108a6f8e 39258 @: $(MAKE); $(unstage)
22121df0 39259 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
108a6f8e
CD
39260 r=`${PWD_COMMAND}`; export r; \
39261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39262 $(NORMAL_TARGET_EXPORTS) \
22121df0 39263 echo "Doing html in $(TARGET_SUBDIR)/libssp"; \
108a6f8e
CD
39264 for flag in $(EXTRA_TARGET_FLAGS); do \
39265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39266 done; \
a90ef4bf 39267 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
39268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39270 "RANLIB=$${RANLIB}" \
0c24b341 39271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39272 html) \
108a6f8e
CD
39273 || exit 1
39274
a90ef4bf 39275@endif target-libssp
108a6f8e 39276
a90ef4bf
JM
39277.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
39278maybe-TAGS-target-libssp:
39279@if target-libssp
39280maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 39281
a90ef4bf
JM
39282TAGS-target-libssp: \
39283 configure-target-libssp
0aed8855 39284 @: $(MAKE); $(unstage)
22121df0 39285 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
39286 r=`${PWD_COMMAND}`; export r; \
39287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39288 $(NORMAL_TARGET_EXPORTS) \
22121df0 39289 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39290 for flag in $(EXTRA_TARGET_FLAGS); do \
39291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39292 done; \
a90ef4bf 39293 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39296 "RANLIB=$${RANLIB}" \
0c24b341 39297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39298 TAGS) \
e2b9e2dc
NN
39299 || exit 1
39300
a90ef4bf 39301@endif target-libssp
3866be5d 39302
a90ef4bf
JM
39303.PHONY: maybe-install-info-target-libssp install-info-target-libssp
39304maybe-install-info-target-libssp:
39305@if target-libssp
39306maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 39307
a90ef4bf
JM
39308install-info-target-libssp: \
39309 configure-target-libssp \
39310 info-target-libssp
0aed8855 39311 @: $(MAKE); $(unstage)
22121df0 39312 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 39313 r=`${PWD_COMMAND}`; export r; \
b40e3958 39314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39315 $(NORMAL_TARGET_EXPORTS) \
22121df0 39316 echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39317 for flag in $(EXTRA_TARGET_FLAGS); do \
39318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39319 done; \
a90ef4bf 39320 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39323 "RANLIB=$${RANLIB}" \
0c24b341 39324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39325 install-info) \
4fa63067 39326 || exit 1
3866be5d 39327
a90ef4bf 39328@endif target-libssp
3866be5d 39329
a90ef4bf
JM
39330.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
39331maybe-install-pdf-target-libssp:
39332@if target-libssp
39333maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 39334
a90ef4bf
JM
39335install-pdf-target-libssp: \
39336 configure-target-libssp \
39337 pdf-target-libssp
0aed8855 39338 @: $(MAKE); $(unstage)
22121df0 39339 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 39340 r=`${PWD_COMMAND}`; export r; \
b40e3958 39341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39342 $(NORMAL_TARGET_EXPORTS) \
22121df0 39343 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39344 for flag in $(EXTRA_TARGET_FLAGS); do \
39345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39346 done; \
a90ef4bf 39347 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39350 "RANLIB=$${RANLIB}" \
0c24b341 39351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39352 install-pdf) \
4fa63067 39353 || exit 1
3866be5d 39354
a90ef4bf 39355@endif target-libssp
3866be5d 39356
a90ef4bf
JM
39357.PHONY: maybe-install-html-target-libssp install-html-target-libssp
39358maybe-install-html-target-libssp:
39359@if target-libssp
39360maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 39361
a90ef4bf
JM
39362install-html-target-libssp: \
39363 configure-target-libssp \
39364 html-target-libssp
0aed8855 39365 @: $(MAKE); $(unstage)
22121df0 39366 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
39367 r=`${PWD_COMMAND}`; export r; \
39368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39369 $(NORMAL_TARGET_EXPORTS) \
22121df0 39370 echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39371 for flag in $(EXTRA_TARGET_FLAGS); do \
39372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39373 done; \
a90ef4bf 39374 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39377 "RANLIB=$${RANLIB}" \
0c24b341 39378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39379 install-html) \
e2b9e2dc
NN
39380 || exit 1
39381
a90ef4bf 39382@endif target-libssp
3866be5d 39383
a90ef4bf
JM
39384.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
39385maybe-installcheck-target-libssp:
39386@if target-libssp
39387maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 39388
a90ef4bf
JM
39389installcheck-target-libssp: \
39390 configure-target-libssp
0aed8855 39391 @: $(MAKE); $(unstage)
22121df0 39392 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 39393 r=`${PWD_COMMAND}`; export r; \
b40e3958 39394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39395 $(NORMAL_TARGET_EXPORTS) \
22121df0 39396 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39397 for flag in $(EXTRA_TARGET_FLAGS); do \
39398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39399 done; \
a90ef4bf 39400 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39403 "RANLIB=$${RANLIB}" \
0c24b341 39404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39405 installcheck) \
6aa8ef82 39406 || exit 1
6aa8ef82 39407
a90ef4bf 39408@endif target-libssp
6aa8ef82 39409
a90ef4bf
JM
39410.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
39411maybe-mostlyclean-target-libssp:
39412@if target-libssp
39413maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 39414
a90ef4bf
JM
39415mostlyclean-target-libssp:
39416 @: $(MAKE); $(unstage)
22121df0 39417 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39418 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39420 $(NORMAL_TARGET_EXPORTS) \
22121df0 39421 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39422 for flag in $(EXTRA_TARGET_FLAGS); do \
39423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39424 done; \
39425 (cd $(TARGET_SUBDIR)/libssp && \
39426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39428 "RANLIB=$${RANLIB}" \
39429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39430 mostlyclean) \
39431 || exit 1
6aa8ef82 39432
a90ef4bf 39433@endif target-libssp
6aa8ef82 39434
a90ef4bf
JM
39435.PHONY: maybe-clean-target-libssp clean-target-libssp
39436maybe-clean-target-libssp:
39437@if target-libssp
39438maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 39439
a90ef4bf
JM
39440clean-target-libssp:
39441 @: $(MAKE); $(unstage)
22121df0 39442 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39443 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39445 $(NORMAL_TARGET_EXPORTS) \
22121df0 39446 echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39447 for flag in $(EXTRA_TARGET_FLAGS); do \
39448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39449 done; \
39450 (cd $(TARGET_SUBDIR)/libssp && \
39451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39453 "RANLIB=$${RANLIB}" \
39454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39455 clean) \
39456 || exit 1
6aa8ef82 39457
a90ef4bf 39458@endif target-libssp
6aa8ef82 39459
a90ef4bf
JM
39460.PHONY: maybe-distclean-target-libssp distclean-target-libssp
39461maybe-distclean-target-libssp:
39462@if target-libssp
39463maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 39464
a90ef4bf
JM
39465distclean-target-libssp:
39466 @: $(MAKE); $(unstage)
22121df0 39467 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39468 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39470 $(NORMAL_TARGET_EXPORTS) \
22121df0 39471 echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39472 for flag in $(EXTRA_TARGET_FLAGS); do \
39473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39474 done; \
39475 (cd $(TARGET_SUBDIR)/libssp && \
39476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39478 "RANLIB=$${RANLIB}" \
39479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39480 distclean) \
39481 || exit 1
6aa8ef82 39482
a90ef4bf 39483@endif target-libssp
6aa8ef82 39484
a90ef4bf
JM
39485.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
39486maybe-maintainer-clean-target-libssp:
39487@if target-libssp
39488maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 39489
a90ef4bf
JM
39490maintainer-clean-target-libssp:
39491 @: $(MAKE); $(unstage)
22121df0 39492 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39493 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39495 $(NORMAL_TARGET_EXPORTS) \
22121df0 39496 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39497 for flag in $(EXTRA_TARGET_FLAGS); do \
39498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39499 done; \
39500 (cd $(TARGET_SUBDIR)/libssp && \
39501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39503 "RANLIB=$${RANLIB}" \
39504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39505 maintainer-clean) \
39506 || exit 1
6aa8ef82 39507
a90ef4bf 39508@endif target-libssp
6aa8ef82
DJ
39509
39510
a90ef4bf
JM
39511
39512
39513
39514.PHONY: configure-target-newlib maybe-configure-target-newlib
39515maybe-configure-target-newlib:
39516@if gcc-bootstrap
39517configure-target-newlib: stage_current
39518@endif gcc-bootstrap
39519@if target-newlib
39520maybe-configure-target-newlib: configure-target-newlib
39521configure-target-newlib:
39522 @: $(MAKE); $(unstage)
6aa8ef82
DJ
39523 @r=`${PWD_COMMAND}`; export r; \
39524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39525 echo "Checking multilib configuration for newlib..."; \
22121df0
L
39526 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
39527 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39528 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
39529 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
39530 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
39531 else \
39532 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
39533 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
39534 fi; \
6aa8ef82 39535 else \
a90ef4bf 39536 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 39537 fi; \
a90ef4bf 39538 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22121df0 39539 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
a90ef4bf
JM
39540 $(NORMAL_TARGET_EXPORTS) \
39541 echo Configuring in $(TARGET_SUBDIR)/newlib; \
39542 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
39543 case $(srcdir) in \
39544 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39545 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
39546 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39547 esac; \
1b6c0831 39548 module_srcdir=newlib; \
a90ef4bf 39549 rm -f no-such-file || : ; \
1b6c0831
L
39550 CONFIG_SITE=no-such-file $(SHELL) \
39551 $$s/$$module_srcdir/configure \
39552 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 39553 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39554 --target=${target_alias} \
a90ef4bf
JM
39555 || exit 1
39556@endif target-newlib
6aa8ef82
DJ
39557
39558
39559
39560
39561
a90ef4bf
JM
39562.PHONY: all-target-newlib maybe-all-target-newlib
39563maybe-all-target-newlib:
39564@if gcc-bootstrap
39565all-target-newlib: stage_current
39566@endif gcc-bootstrap
39567@if target-newlib
39568TARGET-target-newlib=all
39569maybe-all-target-newlib: all-target-newlib
39570all-target-newlib: configure-target-newlib
39571 @: $(MAKE); $(unstage)
39572 @r=`${PWD_COMMAND}`; export r; \
39573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39574 $(NORMAL_TARGET_EXPORTS) \
39575 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 39576 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39577 $(TARGET-target-newlib))
39578@endif target-newlib
6aa8ef82 39579
6aa8ef82 39580
6aa8ef82 39581
6aa8ef82 39582
6aa8ef82 39583
a90ef4bf
JM
39584.PHONY: check-target-newlib maybe-check-target-newlib
39585maybe-check-target-newlib:
39586@if target-newlib
39587maybe-check-target-newlib: check-target-newlib
39588
39589check-target-newlib:
6aa8ef82
DJ
39590 @: $(MAKE); $(unstage)
39591 @r=`${PWD_COMMAND}`; export r; \
39592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39593 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39594 (cd $(TARGET_SUBDIR)/newlib && \
39595 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39596
39597@endif target-newlib
39598
39599.PHONY: install-target-newlib maybe-install-target-newlib
39600maybe-install-target-newlib:
39601@if target-newlib
39602maybe-install-target-newlib: install-target-newlib
39603
39604install-target-newlib: installdirs
39605 @: $(MAKE); $(unstage)
39606 @r=`${PWD_COMMAND}`; export r; \
39607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39608 $(NORMAL_TARGET_EXPORTS) \
39609 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39610 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39611
a90ef4bf 39612@endif target-newlib
6aa8ef82 39613
a90ef4bf
JM
39614.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
39615maybe-install-strip-target-newlib:
39616@if target-newlib
39617maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 39618
a90ef4bf 39619install-strip-target-newlib: installdirs
9b980aa1
RW
39620 @: $(MAKE); $(unstage)
39621 @r=`${PWD_COMMAND}`; export r; \
39622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39623 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39624 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
39625 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39626
a90ef4bf 39627@endif target-newlib
9b980aa1 39628
6aa8ef82
DJ
39629# Other targets (info, dvi, pdf, etc.)
39630
a90ef4bf
JM
39631.PHONY: maybe-info-target-newlib info-target-newlib
39632maybe-info-target-newlib:
39633@if target-newlib
39634maybe-info-target-newlib: info-target-newlib
6aa8ef82 39635
a90ef4bf
JM
39636info-target-newlib: \
39637 configure-target-newlib
6aa8ef82 39638 @: $(MAKE); $(unstage)
22121df0 39639 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39640 r=`${PWD_COMMAND}`; export r; \
39641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39642 $(NORMAL_TARGET_EXPORTS) \
22121df0 39643 echo "Doing info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39644 for flag in $(EXTRA_TARGET_FLAGS); do \
39645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39646 done; \
a90ef4bf 39647 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39650 "RANLIB=$${RANLIB}" \
0c24b341 39651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39652 info) \
39653 || exit 1
39654
a90ef4bf 39655@endif target-newlib
6aa8ef82 39656
a90ef4bf
JM
39657.PHONY: maybe-dvi-target-newlib dvi-target-newlib
39658maybe-dvi-target-newlib:
39659@if target-newlib
39660maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 39661
a90ef4bf
JM
39662dvi-target-newlib: \
39663 configure-target-newlib
6aa8ef82 39664 @: $(MAKE); $(unstage)
22121df0 39665 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39666 r=`${PWD_COMMAND}`; export r; \
39667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39668 $(NORMAL_TARGET_EXPORTS) \
22121df0 39669 echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39670 for flag in $(EXTRA_TARGET_FLAGS); do \
39671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39672 done; \
a90ef4bf 39673 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39676 "RANLIB=$${RANLIB}" \
0c24b341 39677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39678 dvi) \
39679 || exit 1
39680
a90ef4bf 39681@endif target-newlib
6aa8ef82 39682
a90ef4bf
JM
39683.PHONY: maybe-pdf-target-newlib pdf-target-newlib
39684maybe-pdf-target-newlib:
39685@if target-newlib
39686maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 39687
a90ef4bf
JM
39688pdf-target-newlib: \
39689 configure-target-newlib
6aa8ef82 39690 @: $(MAKE); $(unstage)
22121df0 39691 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39692 r=`${PWD_COMMAND}`; export r; \
39693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39694 $(NORMAL_TARGET_EXPORTS) \
22121df0 39695 echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39696 for flag in $(EXTRA_TARGET_FLAGS); do \
39697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39698 done; \
a90ef4bf 39699 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39702 "RANLIB=$${RANLIB}" \
0c24b341 39703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39704 pdf) \
39705 || exit 1
39706
a90ef4bf 39707@endif target-newlib
6aa8ef82 39708
a90ef4bf
JM
39709.PHONY: maybe-html-target-newlib html-target-newlib
39710maybe-html-target-newlib:
39711@if target-newlib
39712maybe-html-target-newlib: html-target-newlib
6aa8ef82 39713
a90ef4bf
JM
39714html-target-newlib: \
39715 configure-target-newlib
6aa8ef82 39716 @: $(MAKE); $(unstage)
22121df0 39717 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39718 r=`${PWD_COMMAND}`; export r; \
39719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39720 $(NORMAL_TARGET_EXPORTS) \
22121df0 39721 echo "Doing html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39722 for flag in $(EXTRA_TARGET_FLAGS); do \
39723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39724 done; \
a90ef4bf 39725 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39728 "RANLIB=$${RANLIB}" \
0c24b341 39729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39730 html) \
39731 || exit 1
39732
a90ef4bf 39733@endif target-newlib
6aa8ef82 39734
a90ef4bf
JM
39735.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
39736maybe-TAGS-target-newlib:
39737@if target-newlib
39738maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 39739
a90ef4bf
JM
39740TAGS-target-newlib: \
39741 configure-target-newlib
6aa8ef82 39742 @: $(MAKE); $(unstage)
22121df0 39743 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39744 r=`${PWD_COMMAND}`; export r; \
39745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39746 $(NORMAL_TARGET_EXPORTS) \
22121df0 39747 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39748 for flag in $(EXTRA_TARGET_FLAGS); do \
39749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39750 done; \
a90ef4bf 39751 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39754 "RANLIB=$${RANLIB}" \
0c24b341 39755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39756 TAGS) \
39757 || exit 1
39758
a90ef4bf 39759@endif target-newlib
6aa8ef82 39760
a90ef4bf
JM
39761.PHONY: maybe-install-info-target-newlib install-info-target-newlib
39762maybe-install-info-target-newlib:
39763@if target-newlib
39764maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 39765
a90ef4bf
JM
39766install-info-target-newlib: \
39767 configure-target-newlib \
39768 info-target-newlib
6aa8ef82 39769 @: $(MAKE); $(unstage)
22121df0 39770 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39771 r=`${PWD_COMMAND}`; export r; \
39772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39773 $(NORMAL_TARGET_EXPORTS) \
22121df0 39774 echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39775 for flag in $(EXTRA_TARGET_FLAGS); do \
39776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39777 done; \
a90ef4bf 39778 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39781 "RANLIB=$${RANLIB}" \
0c24b341 39782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39783 install-info) \
39784 || exit 1
39785
a90ef4bf 39786@endif target-newlib
6aa8ef82 39787
a90ef4bf
JM
39788.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
39789maybe-install-pdf-target-newlib:
39790@if target-newlib
39791maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 39792
a90ef4bf
JM
39793install-pdf-target-newlib: \
39794 configure-target-newlib \
39795 pdf-target-newlib
a3ca38d2 39796 @: $(MAKE); $(unstage)
22121df0 39797 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
a3ca38d2
DD
39798 r=`${PWD_COMMAND}`; export r; \
39799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39800 $(NORMAL_TARGET_EXPORTS) \
22121df0 39801 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \
a3ca38d2
DD
39802 for flag in $(EXTRA_TARGET_FLAGS); do \
39803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39804 done; \
a90ef4bf 39805 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
39806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39808 "RANLIB=$${RANLIB}" \
0c24b341 39809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
39810 install-pdf) \
39811 || exit 1
39812
a90ef4bf 39813@endif target-newlib
a3ca38d2 39814
a90ef4bf
JM
39815.PHONY: maybe-install-html-target-newlib install-html-target-newlib
39816maybe-install-html-target-newlib:
39817@if target-newlib
39818maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 39819
a90ef4bf
JM
39820install-html-target-newlib: \
39821 configure-target-newlib \
39822 html-target-newlib
6aa8ef82 39823 @: $(MAKE); $(unstage)
22121df0 39824 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39825 r=`${PWD_COMMAND}`; export r; \
39826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39827 $(NORMAL_TARGET_EXPORTS) \
22121df0 39828 echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39829 for flag in $(EXTRA_TARGET_FLAGS); do \
39830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39831 done; \
a90ef4bf 39832 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39835 "RANLIB=$${RANLIB}" \
0c24b341 39836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39837 install-html) \
39838 || exit 1
39839
a90ef4bf 39840@endif target-newlib
6aa8ef82 39841
a90ef4bf
JM
39842.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
39843maybe-installcheck-target-newlib:
39844@if target-newlib
39845maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 39846
a90ef4bf
JM
39847installcheck-target-newlib: \
39848 configure-target-newlib
6aa8ef82 39849 @: $(MAKE); $(unstage)
22121df0 39850 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39851 r=`${PWD_COMMAND}`; export r; \
39852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39853 $(NORMAL_TARGET_EXPORTS) \
22121df0 39854 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39855 for flag in $(EXTRA_TARGET_FLAGS); do \
39856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39857 done; \
a90ef4bf 39858 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39861 "RANLIB=$${RANLIB}" \
0c24b341 39862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39863 installcheck) \
39864 || exit 1
39865
a90ef4bf 39866@endif target-newlib
6aa8ef82 39867
a90ef4bf
JM
39868.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
39869maybe-mostlyclean-target-newlib:
39870@if target-newlib
39871maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 39872
a90ef4bf 39873mostlyclean-target-newlib:
6aa8ef82 39874 @: $(MAKE); $(unstage)
22121df0 39875 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39876 r=`${PWD_COMMAND}`; export r; \
39877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39878 $(NORMAL_TARGET_EXPORTS) \
22121df0 39879 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39880 for flag in $(EXTRA_TARGET_FLAGS); do \
39881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39882 done; \
a90ef4bf 39883 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39886 "RANLIB=$${RANLIB}" \
0c24b341 39887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39888 mostlyclean) \
39889 || exit 1
39890
a90ef4bf 39891@endif target-newlib
6aa8ef82 39892
a90ef4bf
JM
39893.PHONY: maybe-clean-target-newlib clean-target-newlib
39894maybe-clean-target-newlib:
39895@if target-newlib
39896maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 39897
a90ef4bf 39898clean-target-newlib:
6aa8ef82 39899 @: $(MAKE); $(unstage)
22121df0 39900 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39901 r=`${PWD_COMMAND}`; export r; \
39902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39903 $(NORMAL_TARGET_EXPORTS) \
22121df0 39904 echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39905 for flag in $(EXTRA_TARGET_FLAGS); do \
39906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39907 done; \
a90ef4bf 39908 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39911 "RANLIB=$${RANLIB}" \
0c24b341 39912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39913 clean) \
39914 || exit 1
39915
a90ef4bf 39916@endif target-newlib
6aa8ef82 39917
a90ef4bf
JM
39918.PHONY: maybe-distclean-target-newlib distclean-target-newlib
39919maybe-distclean-target-newlib:
39920@if target-newlib
39921maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 39922
a90ef4bf 39923distclean-target-newlib:
6aa8ef82 39924 @: $(MAKE); $(unstage)
22121df0 39925 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39926 r=`${PWD_COMMAND}`; export r; \
39927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39928 $(NORMAL_TARGET_EXPORTS) \
22121df0 39929 echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39930 for flag in $(EXTRA_TARGET_FLAGS); do \
39931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39932 done; \
a90ef4bf 39933 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39936 "RANLIB=$${RANLIB}" \
0c24b341 39937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39938 distclean) \
39939 || exit 1
39940
a90ef4bf 39941@endif target-newlib
6aa8ef82 39942
a90ef4bf
JM
39943.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
39944maybe-maintainer-clean-target-newlib:
39945@if target-newlib
39946maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 39947
a90ef4bf 39948maintainer-clean-target-newlib:
6aa8ef82 39949 @: $(MAKE); $(unstage)
22121df0 39950 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39951 r=`${PWD_COMMAND}`; export r; \
39952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39953 $(NORMAL_TARGET_EXPORTS) \
22121df0 39954 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39955 for flag in $(EXTRA_TARGET_FLAGS); do \
39956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39957 done; \
a90ef4bf 39958 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39961 "RANLIB=$${RANLIB}" \
0c24b341 39962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39963 maintainer-clean) \
39964 || exit 1
39965
a90ef4bf 39966@endif target-newlib
6aa8ef82
DJ
39967
39968
39969
39970
39971
a90ef4bf
JM
39972.PHONY: configure-target-libgcc maybe-configure-target-libgcc
39973maybe-configure-target-libgcc:
e552509b 39974@if gcc-bootstrap
a90ef4bf 39975configure-target-libgcc: stage_current
e552509b 39976@endif gcc-bootstrap
a90ef4bf
JM
39977@if target-libgcc
39978maybe-configure-target-libgcc: configure-target-libgcc
39979configure-target-libgcc:
e552509b
ILT
39980 @r=`${PWD_COMMAND}`; export r; \
39981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39982 echo "Checking multilib configuration for libgcc..."; \
22121df0
L
39983 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
39984 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39985 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39986 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39987 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 39988 else \
a90ef4bf
JM
39989 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
39990 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
39991 fi; \
39992 else \
a90ef4bf 39993 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 39994 fi; \
a90ef4bf 39995 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
22121df0 39996 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
e552509b 39997 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39998 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
39999 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
40000 case $(srcdir) in \
40001 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40002 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
40003 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40004 esac; \
1b6c0831 40005 module_srcdir=libgcc; \
e552509b 40006 rm -f no-such-file || : ; \
1b6c0831
L
40007 CONFIG_SITE=no-such-file $(SHELL) \
40008 $$s/$$module_srcdir/configure \
40009 --srcdir=$${topdir}/$$module_srcdir \
e552509b 40010 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40011 --target=${target_alias} \
e552509b 40012 || exit 1
a90ef4bf 40013@endif target-libgcc
e552509b
ILT
40014
40015
e552509b 40016
a90ef4bf
JM
40017.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
40018maybe-configure-stage1-target-libgcc:
40019@if target-libgcc-bootstrap
40020maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
40021configure-stage1-target-libgcc:
40022 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
40023 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
40024 @r=`${PWD_COMMAND}`; export r; \
40025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40026 TFLAGS="$(STAGE1_TFLAGS)"; \
40027 echo "Checking multilib configuration for libgcc..."; \
22121df0 40028 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40029 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40030 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40031 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40032 else \
40033 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40034 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40035 fi; \
40036 else \
40037 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40038 fi; \
40039 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40040 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40041 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40042 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40043 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40044 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \
40045 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40046 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40047 case $(srcdir) in \
40048 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40049 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40050 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40051 esac; \
1b6c0831
L
40052 module_srcdir=libgcc; \
40053 $(SHELL) $$s/$$module_srcdir/configure \
40054 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40055 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
40056 --target=${target_alias} \
40057 \
a90ef4bf
JM
40058 $(STAGE1_CONFIGURE_FLAGS)
40059@endif target-libgcc-bootstrap
e552509b 40060
a90ef4bf
JM
40061.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
40062maybe-configure-stage2-target-libgcc:
40063@if target-libgcc-bootstrap
40064maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
40065configure-stage2-target-libgcc:
40066 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
40067 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
40068 @r=`${PWD_COMMAND}`; export r; \
40069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40070 TFLAGS="$(STAGE2_TFLAGS)"; \
40071 echo "Checking multilib configuration for libgcc..."; \
22121df0 40072 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40073 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40074 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40075 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40076 else \
40077 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40078 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40079 fi; \
40080 else \
40081 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40082 fi; \
40083 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40084 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40085 \
40086 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40087 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40088 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40089 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \
40090 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40091 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40092 case $(srcdir) in \
40093 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40094 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40095 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40096 esac; \
1b6c0831
L
40097 module_srcdir=libgcc; \
40098 $(SHELL) $$s/$$module_srcdir/configure \
40099 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40100 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40101 --target=${target_alias} \
22121df0 40102 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40103 $(STAGE2_CONFIGURE_FLAGS)
40104@endif target-libgcc-bootstrap
9b980aa1 40105
a90ef4bf
JM
40106.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
40107maybe-configure-stage3-target-libgcc:
40108@if target-libgcc-bootstrap
40109maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
40110configure-stage3-target-libgcc:
40111 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
40112 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
40113 @r=`${PWD_COMMAND}`; export r; \
40114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40115 TFLAGS="$(STAGE3_TFLAGS)"; \
40116 echo "Checking multilib configuration for libgcc..."; \
22121df0 40117 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40118 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40119 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40120 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40121 else \
40122 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40123 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40124 fi; \
40125 else \
40126 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40127 fi; \
40128 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 40129 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40130 \
40131 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40132 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40133 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40134 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \
40135 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40136 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40137 case $(srcdir) in \
40138 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40139 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40140 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40141 esac; \
1b6c0831
L
40142 module_srcdir=libgcc; \
40143 $(SHELL) $$s/$$module_srcdir/configure \
40144 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40145 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40146 --target=${target_alias} \
22121df0 40147 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40148 $(STAGE3_CONFIGURE_FLAGS)
40149@endif target-libgcc-bootstrap
e552509b 40150
a90ef4bf
JM
40151.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
40152maybe-configure-stage4-target-libgcc:
40153@if target-libgcc-bootstrap
40154maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
40155configure-stage4-target-libgcc:
40156 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
40157 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
40158 @r=`${PWD_COMMAND}`; export r; \
e552509b 40159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40160 TFLAGS="$(STAGE4_TFLAGS)"; \
40161 echo "Checking multilib configuration for libgcc..."; \
22121df0 40162 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40163 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40164 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40165 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40166 else \
40167 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40168 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40169 fi; \
40170 else \
40171 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40172 fi; \
40173 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40174 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40175 \
40176 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40177 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40178 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40179 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \
40180 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40181 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40182 case $(srcdir) in \
40183 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40184 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40185 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40186 esac; \
1b6c0831
L
40187 module_srcdir=libgcc; \
40188 $(SHELL) $$s/$$module_srcdir/configure \
40189 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40190 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40191 --target=${target_alias} \
22121df0 40192 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40193 $(STAGE4_CONFIGURE_FLAGS)
40194@endif target-libgcc-bootstrap
40195
40196.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
40197maybe-configure-stageprofile-target-libgcc:
40198@if target-libgcc-bootstrap
40199maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
40200configure-stageprofile-target-libgcc:
40201 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
40202 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
40203 @r=`${PWD_COMMAND}`; export r; \
e552509b 40204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40205 TFLAGS="$(STAGEprofile_TFLAGS)"; \
40206 echo "Checking multilib configuration for libgcc..."; \
22121df0 40207 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40208 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40209 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40210 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40211 else \
40212 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40213 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40214 fi; \
40215 else \
40216 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40217 fi; \
40218 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40219 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40220 \
40221 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40222 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40223 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40224 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \
40225 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40226 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40227 case $(srcdir) in \
40228 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40229 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40230 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40231 esac; \
1b6c0831
L
40232 module_srcdir=libgcc; \
40233 $(SHELL) $$s/$$module_srcdir/configure \
40234 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40235 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40236 --target=${target_alias} \
22121df0 40237 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40238 $(STAGEprofile_CONFIGURE_FLAGS)
40239@endif target-libgcc-bootstrap
e552509b 40240
a90ef4bf
JM
40241.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
40242maybe-configure-stagefeedback-target-libgcc:
40243@if target-libgcc-bootstrap
40244maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
40245configure-stagefeedback-target-libgcc:
40246 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
40247 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
40248 @r=`${PWD_COMMAND}`; export r; \
e552509b 40249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40250 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
40251 echo "Checking multilib configuration for libgcc..."; \
22121df0 40252 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40253 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40254 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40255 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40256 else \
40257 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40258 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40259 fi; \
40260 else \
40261 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40262 fi; \
40263 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40264 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40265 \
40266 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40267 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40268 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40269 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \
40270 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40271 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40272 case $(srcdir) in \
40273 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40274 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40275 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40276 esac; \
1b6c0831
L
40277 module_srcdir=libgcc; \
40278 $(SHELL) $$s/$$module_srcdir/configure \
40279 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40280 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40281 --target=${target_alias} \
22121df0 40282 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40283 $(STAGEfeedback_CONFIGURE_FLAGS)
40284@endif target-libgcc-bootstrap
e552509b 40285
e552509b 40286
e552509b 40287
e552509b 40288
e552509b 40289
a90ef4bf
JM
40290.PHONY: all-target-libgcc maybe-all-target-libgcc
40291maybe-all-target-libgcc:
40292@if gcc-bootstrap
40293all-target-libgcc: stage_current
40294@endif gcc-bootstrap
40295@if target-libgcc
40296TARGET-target-libgcc=all
40297maybe-all-target-libgcc: all-target-libgcc
40298all-target-libgcc: configure-target-libgcc
40299 @r=`${PWD_COMMAND}`; export r; \
e552509b 40300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40301 $(NORMAL_TARGET_EXPORTS) \
40302 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40303 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40304 $(TARGET-target-libgcc))
40305@endif target-libgcc
e552509b 40306
e552509b 40307
e552509b 40308
a90ef4bf
JM
40309.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
40310.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
40311maybe-all-stage1-target-libgcc:
40312maybe-clean-stage1-target-libgcc:
40313@if target-libgcc-bootstrap
40314maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
40315all-stage1: all-stage1-target-libgcc
40316TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
40317all-stage1-target-libgcc: configure-stage1-target-libgcc
40318 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
40319 @r=`${PWD_COMMAND}`; export r; \
e552509b 40320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40321 TFLAGS="$(STAGE1_TFLAGS)"; \
40322 $(NORMAL_TARGET_EXPORTS) \
40323 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40324 \
a90ef4bf
JM
40325 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40326 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40327 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40328 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40329 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40330 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40331 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
40332 $(EXTRA_TARGET_FLAGS) \
40333 \
05a13254 40334 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 40335 $(TARGET-stage1-target-libgcc)
e552509b 40336
a90ef4bf
JM
40337maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
40338clean-stage1: clean-stage1-target-libgcc
40339clean-stage1-target-libgcc:
40340 @if [ $(current_stage) = stage1 ]; then \
40341 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40342 else \
40343 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
40344 $(MAKE) stage1-start; \
40345 fi; \
40346 cd $(TARGET_SUBDIR)/libgcc && \
40347 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 40348 clean
a90ef4bf 40349@endif target-libgcc-bootstrap
e552509b 40350
e552509b 40351
a90ef4bf
JM
40352.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
40353.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
40354maybe-all-stage2-target-libgcc:
40355maybe-clean-stage2-target-libgcc:
40356@if target-libgcc-bootstrap
40357maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
40358all-stage2: all-stage2-target-libgcc
40359TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
40360all-stage2-target-libgcc: configure-stage2-target-libgcc
40361 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
40362 @r=`${PWD_COMMAND}`; export r; \
e552509b 40363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40364 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 40365 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40366 \
40367 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40368 \
a90ef4bf
JM
40369 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40370 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40371 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40372 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40373 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40374 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40375 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40376 $(EXTRA_TARGET_FLAGS) \
05a13254 40377 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 40378 $(TARGET-stage2-target-libgcc)
e552509b 40379
a90ef4bf
JM
40380maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
40381clean-stage2: clean-stage2-target-libgcc
40382clean-stage2-target-libgcc:
40383 @if [ $(current_stage) = stage2 ]; then \
40384 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40385 else \
40386 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
40387 $(MAKE) stage2-start; \
40388 fi; \
40389 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40390 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40391@endif target-libgcc-bootstrap
e552509b 40392
e552509b 40393
a90ef4bf
JM
40394.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
40395.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
40396maybe-all-stage3-target-libgcc:
40397maybe-clean-stage3-target-libgcc:
40398@if target-libgcc-bootstrap
40399maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
40400all-stage3: all-stage3-target-libgcc
40401TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
40402all-stage3-target-libgcc: configure-stage3-target-libgcc
40403 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
40404 @r=`${PWD_COMMAND}`; export r; \
e552509b 40405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40406 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 40407 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40408 \
40409 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40410 \
a90ef4bf
JM
40411 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40412 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40413 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40414 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40415 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40416 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40417 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40418 $(EXTRA_TARGET_FLAGS) \
05a13254 40419 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 40420 $(TARGET-stage3-target-libgcc)
e552509b 40421
a90ef4bf
JM
40422maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
40423clean-stage3: clean-stage3-target-libgcc
40424clean-stage3-target-libgcc:
40425 @if [ $(current_stage) = stage3 ]; then \
40426 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40427 else \
40428 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
40429 $(MAKE) stage3-start; \
40430 fi; \
40431 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40432 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40433@endif target-libgcc-bootstrap
e552509b 40434
e552509b 40435
a90ef4bf
JM
40436.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
40437.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
40438maybe-all-stage4-target-libgcc:
40439maybe-clean-stage4-target-libgcc:
40440@if target-libgcc-bootstrap
40441maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
40442all-stage4: all-stage4-target-libgcc
40443TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
40444all-stage4-target-libgcc: configure-stage4-target-libgcc
40445 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
40446 @r=`${PWD_COMMAND}`; export r; \
e552509b 40447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40448 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 40449 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40450 \
40451 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40452 \
a90ef4bf
JM
40453 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40454 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40455 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40456 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40457 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40458 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40459 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40460 $(EXTRA_TARGET_FLAGS) \
05a13254 40461 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 40462 $(TARGET-stage4-target-libgcc)
e552509b 40463
a90ef4bf
JM
40464maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
40465clean-stage4: clean-stage4-target-libgcc
40466clean-stage4-target-libgcc:
40467 @if [ $(current_stage) = stage4 ]; then \
40468 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40469 else \
40470 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
40471 $(MAKE) stage4-start; \
40472 fi; \
40473 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40474 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40475@endif target-libgcc-bootstrap
e552509b
ILT
40476
40477
a90ef4bf
JM
40478.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
40479.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
40480maybe-all-stageprofile-target-libgcc:
40481maybe-clean-stageprofile-target-libgcc:
40482@if target-libgcc-bootstrap
40483maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
40484all-stageprofile: all-stageprofile-target-libgcc
40485TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
40486all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
40487 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
40488 @r=`${PWD_COMMAND}`; export r; \
40489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40490 TFLAGS="$(STAGEprofile_TFLAGS)"; \
40491 $(NORMAL_TARGET_EXPORTS) \
40492 \
40493 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40494 \
a90ef4bf
JM
40495 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40496 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40497 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40498 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40499 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40500 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40501 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40502 $(EXTRA_TARGET_FLAGS) \
05a13254 40503 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
40504 $(TARGET-stageprofile-target-libgcc)
40505
40506maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
40507clean-stageprofile: clean-stageprofile-target-libgcc
40508clean-stageprofile-target-libgcc:
40509 @if [ $(current_stage) = stageprofile ]; then \
40510 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 40511 else \
a90ef4bf
JM
40512 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
40513 $(MAKE) stageprofile-start; \
c52c6897 40514 fi; \
a90ef4bf 40515 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40516 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40517@endif target-libgcc-bootstrap
d545f33b
PB
40518
40519
a90ef4bf
JM
40520.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
40521.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
40522maybe-all-stagefeedback-target-libgcc:
40523maybe-clean-stagefeedback-target-libgcc:
40524@if target-libgcc-bootstrap
40525maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
40526all-stagefeedback: all-stagefeedback-target-libgcc
40527TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
40528all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
40529 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
40530 @r=`${PWD_COMMAND}`; export r; \
40531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40532 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
40533 $(NORMAL_TARGET_EXPORTS) \
40534 \
40535 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40536 \
a90ef4bf
JM
40537 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40538 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40539 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40540 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40541 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40542 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40543 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40544 $(EXTRA_TARGET_FLAGS) \
05a13254 40545 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
40546 $(TARGET-stagefeedback-target-libgcc)
40547
40548maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
40549clean-stagefeedback: clean-stagefeedback-target-libgcc
40550clean-stagefeedback-target-libgcc:
40551 @if [ $(current_stage) = stagefeedback ]; then \
40552 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40553 else \
40554 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
40555 $(MAKE) stagefeedback-start; \
40556 fi; \
40557 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40558 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40559@endif target-libgcc-bootstrap
4b1cb4fe 40560
a7254363
PB
40561
40562
d545f33b
PB
40563
40564
4b1cb4fe 40565
a90ef4bf
JM
40566.PHONY: check-target-libgcc maybe-check-target-libgcc
40567maybe-check-target-libgcc:
40568@if target-libgcc
40569maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 40570
a90ef4bf
JM
40571# Dummy target for uncheckable module.
40572check-target-libgcc:
4b1cb4fe 40573
a90ef4bf 40574@endif target-libgcc
4b1cb4fe 40575
a90ef4bf
JM
40576.PHONY: install-target-libgcc maybe-install-target-libgcc
40577maybe-install-target-libgcc:
40578@if target-libgcc
40579maybe-install-target-libgcc: install-target-libgcc
40580
40581install-target-libgcc: installdirs
0aed8855 40582 @: $(MAKE); $(unstage)
4b1cb4fe
DD
40583 @r=`${PWD_COMMAND}`; export r; \
40584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40585 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40586 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 40587 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 40588
a90ef4bf 40589@endif target-libgcc
4b1cb4fe 40590
a90ef4bf
JM
40591.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
40592maybe-install-strip-target-libgcc:
40593@if target-libgcc
40594maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 40595
a90ef4bf 40596install-strip-target-libgcc: installdirs
9b980aa1
RW
40597 @: $(MAKE); $(unstage)
40598 @r=`${PWD_COMMAND}`; export r; \
40599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40600 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40601 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
40602 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40603
a90ef4bf 40604@endif target-libgcc
9b980aa1 40605
56a8fe78 40606# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 40607
a90ef4bf
JM
40608.PHONY: maybe-info-target-libgcc info-target-libgcc
40609maybe-info-target-libgcc:
40610@if target-libgcc
40611maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 40612
a90ef4bf
JM
40613info-target-libgcc: \
40614 configure-target-libgcc
0aed8855 40615 @: $(MAKE); $(unstage)
22121df0 40616 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40617 r=`${PWD_COMMAND}`; export r; \
40618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40619 $(NORMAL_TARGET_EXPORTS) \
22121df0 40620 echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40621 for flag in $(EXTRA_TARGET_FLAGS); do \
40622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40623 done; \
a90ef4bf 40624 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40627 "RANLIB=$${RANLIB}" \
0c24b341 40628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40629 info) \
4b1cb4fe
DD
40630 || exit 1
40631
a90ef4bf 40632@endif target-libgcc
4b1cb4fe 40633
a90ef4bf
JM
40634.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
40635maybe-dvi-target-libgcc:
40636@if target-libgcc
40637maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 40638
a90ef4bf
JM
40639dvi-target-libgcc: \
40640 configure-target-libgcc
0aed8855 40641 @: $(MAKE); $(unstage)
22121df0 40642 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40643 r=`${PWD_COMMAND}`; export r; \
40644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40645 $(NORMAL_TARGET_EXPORTS) \
22121df0 40646 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40647 for flag in $(EXTRA_TARGET_FLAGS); do \
40648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40649 done; \
a90ef4bf 40650 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40653 "RANLIB=$${RANLIB}" \
0c24b341 40654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40655 dvi) \
4b1cb4fe
DD
40656 || exit 1
40657
a90ef4bf 40658@endif target-libgcc
4b1cb4fe 40659
a90ef4bf
JM
40660.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
40661maybe-pdf-target-libgcc:
40662@if target-libgcc
40663maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 40664
a90ef4bf
JM
40665pdf-target-libgcc: \
40666 configure-target-libgcc
56a8fe78 40667 @: $(MAKE); $(unstage)
22121df0 40668 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
56a8fe78
DD
40669 r=`${PWD_COMMAND}`; export r; \
40670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40671 $(NORMAL_TARGET_EXPORTS) \
22121df0 40672 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \
56a8fe78
DD
40673 for flag in $(EXTRA_TARGET_FLAGS); do \
40674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40675 done; \
a90ef4bf 40676 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
40677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40679 "RANLIB=$${RANLIB}" \
0c24b341 40680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40681 pdf) \
40682 || exit 1
40683
a90ef4bf 40684@endif target-libgcc
56a8fe78 40685
a90ef4bf
JM
40686.PHONY: maybe-html-target-libgcc html-target-libgcc
40687maybe-html-target-libgcc:
40688@if target-libgcc
40689maybe-html-target-libgcc: html-target-libgcc
6d389afc 40690
a90ef4bf
JM
40691html-target-libgcc: \
40692 configure-target-libgcc
0aed8855 40693 @: $(MAKE); $(unstage)
22121df0 40694 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
6d389afc
MS
40695 r=`${PWD_COMMAND}`; export r; \
40696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40697 $(NORMAL_TARGET_EXPORTS) \
22121df0 40698 echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \
6d389afc
MS
40699 for flag in $(EXTRA_TARGET_FLAGS); do \
40700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40701 done; \
a90ef4bf 40702 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
40703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40705 "RANLIB=$${RANLIB}" \
0c24b341 40706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40707 html) \
40708 || exit 1
40709
a90ef4bf 40710@endif target-libgcc
6d389afc 40711
a90ef4bf
JM
40712.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
40713maybe-TAGS-target-libgcc:
40714@if target-libgcc
40715maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 40716
a90ef4bf
JM
40717TAGS-target-libgcc: \
40718 configure-target-libgcc
0aed8855 40719 @: $(MAKE); $(unstage)
22121df0 40720 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40721 r=`${PWD_COMMAND}`; export r; \
40722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40723 $(NORMAL_TARGET_EXPORTS) \
22121df0 40724 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40725 for flag in $(EXTRA_TARGET_FLAGS); do \
40726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40727 done; \
a90ef4bf 40728 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40731 "RANLIB=$${RANLIB}" \
0c24b341 40732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40733 TAGS) \
4b1cb4fe
DD
40734 || exit 1
40735
a90ef4bf 40736@endif target-libgcc
4b1cb4fe 40737
a90ef4bf
JM
40738.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
40739maybe-install-info-target-libgcc:
40740@if target-libgcc
40741maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 40742
a90ef4bf
JM
40743install-info-target-libgcc: \
40744 configure-target-libgcc \
40745 info-target-libgcc
0aed8855 40746 @: $(MAKE); $(unstage)
22121df0 40747 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40748 r=`${PWD_COMMAND}`; export r; \
40749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40750 $(NORMAL_TARGET_EXPORTS) \
22121df0 40751 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40752 for flag in $(EXTRA_TARGET_FLAGS); do \
40753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40754 done; \
a90ef4bf 40755 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40758 "RANLIB=$${RANLIB}" \
0c24b341 40759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40760 install-info) \
4b1cb4fe
DD
40761 || exit 1
40762
a90ef4bf 40763@endif target-libgcc
4b1cb4fe 40764
a90ef4bf
JM
40765.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
40766maybe-install-pdf-target-libgcc:
40767@if target-libgcc
40768maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 40769
a90ef4bf
JM
40770install-pdf-target-libgcc: \
40771 configure-target-libgcc \
40772 pdf-target-libgcc
a3ca38d2 40773 @: $(MAKE); $(unstage)
22121df0 40774 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
a3ca38d2
DD
40775 r=`${PWD_COMMAND}`; export r; \
40776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40777 $(NORMAL_TARGET_EXPORTS) \
22121df0 40778 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \
a3ca38d2
DD
40779 for flag in $(EXTRA_TARGET_FLAGS); do \
40780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40781 done; \
a90ef4bf 40782 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
40783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40785 "RANLIB=$${RANLIB}" \
0c24b341 40786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40787 install-pdf) \
40788 || exit 1
40789
a90ef4bf 40790@endif target-libgcc
a3ca38d2 40791
a90ef4bf
JM
40792.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
40793maybe-install-html-target-libgcc:
40794@if target-libgcc
40795maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 40796
a90ef4bf
JM
40797install-html-target-libgcc: \
40798 configure-target-libgcc \
40799 html-target-libgcc
108a6f8e 40800 @: $(MAKE); $(unstage)
22121df0 40801 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
108a6f8e
CD
40802 r=`${PWD_COMMAND}`; export r; \
40803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40804 $(NORMAL_TARGET_EXPORTS) \
22121df0 40805 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \
108a6f8e
CD
40806 for flag in $(EXTRA_TARGET_FLAGS); do \
40807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40808 done; \
a90ef4bf 40809 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
40810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40812 "RANLIB=$${RANLIB}" \
0c24b341 40813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
40814 install-html) \
40815 || exit 1
40816
a90ef4bf 40817@endif target-libgcc
108a6f8e 40818
a90ef4bf
JM
40819.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
40820maybe-installcheck-target-libgcc:
40821@if target-libgcc
40822maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 40823
a90ef4bf
JM
40824installcheck-target-libgcc: \
40825 configure-target-libgcc
0aed8855 40826 @: $(MAKE); $(unstage)
22121df0 40827 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40828 r=`${PWD_COMMAND}`; export r; \
40829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40830 $(NORMAL_TARGET_EXPORTS) \
22121df0 40831 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40832 for flag in $(EXTRA_TARGET_FLAGS); do \
40833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40834 done; \
a90ef4bf 40835 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40838 "RANLIB=$${RANLIB}" \
0c24b341 40839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40840 installcheck) \
4b1cb4fe
DD
40841 || exit 1
40842
a90ef4bf 40843@endif target-libgcc
4b1cb4fe 40844
a90ef4bf
JM
40845.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
40846maybe-mostlyclean-target-libgcc:
40847@if target-libgcc
40848maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 40849
a90ef4bf 40850mostlyclean-target-libgcc:
0aed8855 40851 @: $(MAKE); $(unstage)
22121df0 40852 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40853 r=`${PWD_COMMAND}`; export r; \
40854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40855 $(NORMAL_TARGET_EXPORTS) \
22121df0 40856 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40857 for flag in $(EXTRA_TARGET_FLAGS); do \
40858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40859 done; \
a90ef4bf 40860 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40863 "RANLIB=$${RANLIB}" \
0c24b341 40864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40865 mostlyclean) \
4b1cb4fe
DD
40866 || exit 1
40867
a90ef4bf 40868@endif target-libgcc
4b1cb4fe 40869
a90ef4bf
JM
40870.PHONY: maybe-clean-target-libgcc clean-target-libgcc
40871maybe-clean-target-libgcc:
40872@if target-libgcc
40873maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 40874
a90ef4bf 40875clean-target-libgcc:
0aed8855 40876 @: $(MAKE); $(unstage)
22121df0 40877 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40878 r=`${PWD_COMMAND}`; export r; \
40879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40880 $(NORMAL_TARGET_EXPORTS) \
22121df0 40881 echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40882 for flag in $(EXTRA_TARGET_FLAGS); do \
40883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40884 done; \
a90ef4bf 40885 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40888 "RANLIB=$${RANLIB}" \
0c24b341 40889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40890 clean) \
4b1cb4fe
DD
40891 || exit 1
40892
a90ef4bf 40893@endif target-libgcc
4b1cb4fe 40894
a90ef4bf
JM
40895.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
40896maybe-distclean-target-libgcc:
40897@if target-libgcc
40898maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 40899
a90ef4bf 40900distclean-target-libgcc:
0aed8855 40901 @: $(MAKE); $(unstage)
22121df0 40902 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40903 r=`${PWD_COMMAND}`; export r; \
40904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40905 $(NORMAL_TARGET_EXPORTS) \
22121df0 40906 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40907 for flag in $(EXTRA_TARGET_FLAGS); do \
40908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40909 done; \
a90ef4bf 40910 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40913 "RANLIB=$${RANLIB}" \
0c24b341 40914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40915 distclean) \
4b1cb4fe
DD
40916 || exit 1
40917
a90ef4bf 40918@endif target-libgcc
4b1cb4fe 40919
a90ef4bf
JM
40920.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
40921maybe-maintainer-clean-target-libgcc:
40922@if target-libgcc
40923maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 40924
a90ef4bf 40925maintainer-clean-target-libgcc:
0aed8855 40926 @: $(MAKE); $(unstage)
22121df0 40927 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40928 r=`${PWD_COMMAND}`; export r; \
40929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40930 $(NORMAL_TARGET_EXPORTS) \
22121df0 40931 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40932 for flag in $(EXTRA_TARGET_FLAGS); do \
40933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40934 done; \
a90ef4bf 40935 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40938 "RANLIB=$${RANLIB}" \
0c24b341 40939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40940 maintainer-clean) \
4b1cb4fe
DD
40941 || exit 1
40942
a90ef4bf 40943@endif target-libgcc
4b1cb4fe
DD
40944
40945
3866be5d 40946
a7254363 40947
e90269c8 40948
2bf680c4
ILT
40949.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
40950maybe-configure-target-libbacktrace:
40951@if gcc-bootstrap
40952configure-target-libbacktrace: stage_current
40953@endif gcc-bootstrap
40954@if target-libbacktrace
40955maybe-configure-target-libbacktrace: configure-target-libbacktrace
40956configure-target-libbacktrace:
40957 @: $(MAKE); $(unstage)
40958 @r=`${PWD_COMMAND}`; export r; \
40959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40960 echo "Checking multilib configuration for libbacktrace..."; \
22121df0
L
40961 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
40962 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \
2bf680c4
ILT
40963 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
40964 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
40965 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
40966 else \
40967 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
40968 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
40969 fi; \
40970 else \
40971 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
40972 fi; \
40973 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 40974 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
2bf680c4
ILT
40975 $(NORMAL_TARGET_EXPORTS) \
40976 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
40977 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
40978 case $(srcdir) in \
40979 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40980 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
40981 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40982 esac; \
1b6c0831 40983 module_srcdir=libbacktrace; \
2bf680c4 40984 rm -f no-such-file || : ; \
1b6c0831
L
40985 CONFIG_SITE=no-such-file $(SHELL) \
40986 $$s/$$module_srcdir/configure \
40987 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 40988 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40989 --target=${target_alias} \
2bf680c4
ILT
40990 || exit 1
40991@endif target-libbacktrace
40992
40993
40994
40995
40996
40997.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
40998maybe-all-target-libbacktrace:
40999@if gcc-bootstrap
41000all-target-libbacktrace: stage_current
41001@endif gcc-bootstrap
41002@if target-libbacktrace
41003TARGET-target-libbacktrace=all
41004maybe-all-target-libbacktrace: all-target-libbacktrace
41005all-target-libbacktrace: configure-target-libbacktrace
41006 @: $(MAKE); $(unstage)
41007 @r=`${PWD_COMMAND}`; export r; \
41008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41009 $(NORMAL_TARGET_EXPORTS) \
41010 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 41011 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
41012 $(TARGET-target-libbacktrace))
41013@endif target-libbacktrace
41014
41015
41016
41017
41018
41019.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
41020maybe-check-target-libbacktrace:
41021@if target-libbacktrace
41022maybe-check-target-libbacktrace: check-target-libbacktrace
41023
41024check-target-libbacktrace:
41025 @: $(MAKE); $(unstage)
41026 @r=`${PWD_COMMAND}`; export r; \
41027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41028 $(NORMAL_TARGET_EXPORTS) \
41029 (cd $(TARGET_SUBDIR)/libbacktrace && \
41030 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
41031
41032@endif target-libbacktrace
41033
41034.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
41035maybe-install-target-libbacktrace:
41036@if target-libbacktrace
41037maybe-install-target-libbacktrace: install-target-libbacktrace
41038
41039install-target-libbacktrace: installdirs
41040 @: $(MAKE); $(unstage)
41041 @r=`${PWD_COMMAND}`; export r; \
41042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41043 $(NORMAL_TARGET_EXPORTS) \
41044 (cd $(TARGET_SUBDIR)/libbacktrace && \
41045 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
41046
41047@endif target-libbacktrace
41048
41049.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
41050maybe-install-strip-target-libbacktrace:
41051@if target-libbacktrace
41052maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
41053
41054install-strip-target-libbacktrace: installdirs
41055 @: $(MAKE); $(unstage)
41056 @r=`${PWD_COMMAND}`; export r; \
41057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41058 $(NORMAL_TARGET_EXPORTS) \
41059 (cd $(TARGET_SUBDIR)/libbacktrace && \
41060 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41061
41062@endif target-libbacktrace
41063
41064# Other targets (info, dvi, pdf, etc.)
41065
41066.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
41067maybe-info-target-libbacktrace:
41068@if target-libbacktrace
41069maybe-info-target-libbacktrace: info-target-libbacktrace
41070
41071info-target-libbacktrace: \
41072 configure-target-libbacktrace
41073 @: $(MAKE); $(unstage)
22121df0 41074 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41075 r=`${PWD_COMMAND}`; export r; \
41076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41077 $(NORMAL_TARGET_EXPORTS) \
22121df0 41078 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41079 for flag in $(EXTRA_TARGET_FLAGS); do \
41080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41081 done; \
41082 (cd $(TARGET_SUBDIR)/libbacktrace && \
41083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41085 "RANLIB=$${RANLIB}" \
41086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41087 info) \
41088 || exit 1
41089
41090@endif target-libbacktrace
41091
41092.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
41093maybe-dvi-target-libbacktrace:
41094@if target-libbacktrace
41095maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
41096
41097dvi-target-libbacktrace: \
41098 configure-target-libbacktrace
41099 @: $(MAKE); $(unstage)
22121df0 41100 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41101 r=`${PWD_COMMAND}`; export r; \
41102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41103 $(NORMAL_TARGET_EXPORTS) \
22121df0 41104 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41105 for flag in $(EXTRA_TARGET_FLAGS); do \
41106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41107 done; \
41108 (cd $(TARGET_SUBDIR)/libbacktrace && \
41109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41111 "RANLIB=$${RANLIB}" \
41112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41113 dvi) \
41114 || exit 1
41115
41116@endif target-libbacktrace
41117
41118.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
41119maybe-pdf-target-libbacktrace:
41120@if target-libbacktrace
41121maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
41122
41123pdf-target-libbacktrace: \
41124 configure-target-libbacktrace
41125 @: $(MAKE); $(unstage)
22121df0 41126 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41127 r=`${PWD_COMMAND}`; export r; \
41128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41129 $(NORMAL_TARGET_EXPORTS) \
22121df0 41130 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41131 for flag in $(EXTRA_TARGET_FLAGS); do \
41132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41133 done; \
41134 (cd $(TARGET_SUBDIR)/libbacktrace && \
41135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41137 "RANLIB=$${RANLIB}" \
41138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41139 pdf) \
41140 || exit 1
41141
41142@endif target-libbacktrace
41143
41144.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
41145maybe-html-target-libbacktrace:
41146@if target-libbacktrace
41147maybe-html-target-libbacktrace: html-target-libbacktrace
41148
41149html-target-libbacktrace: \
41150 configure-target-libbacktrace
41151 @: $(MAKE); $(unstage)
22121df0 41152 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41153 r=`${PWD_COMMAND}`; export r; \
41154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41155 $(NORMAL_TARGET_EXPORTS) \
22121df0 41156 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41157 for flag in $(EXTRA_TARGET_FLAGS); do \
41158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41159 done; \
41160 (cd $(TARGET_SUBDIR)/libbacktrace && \
41161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41163 "RANLIB=$${RANLIB}" \
41164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41165 html) \
41166 || exit 1
41167
41168@endif target-libbacktrace
41169
41170.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
41171maybe-TAGS-target-libbacktrace:
41172@if target-libbacktrace
41173maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
41174
41175TAGS-target-libbacktrace: \
41176 configure-target-libbacktrace
41177 @: $(MAKE); $(unstage)
22121df0 41178 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41179 r=`${PWD_COMMAND}`; export r; \
41180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41181 $(NORMAL_TARGET_EXPORTS) \
22121df0 41182 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41183 for flag in $(EXTRA_TARGET_FLAGS); do \
41184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41185 done; \
41186 (cd $(TARGET_SUBDIR)/libbacktrace && \
41187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41189 "RANLIB=$${RANLIB}" \
41190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41191 TAGS) \
41192 || exit 1
41193
41194@endif target-libbacktrace
41195
41196.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
41197maybe-install-info-target-libbacktrace:
41198@if target-libbacktrace
41199maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
41200
41201install-info-target-libbacktrace: \
41202 configure-target-libbacktrace \
41203 info-target-libbacktrace
41204 @: $(MAKE); $(unstage)
22121df0 41205 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41206 r=`${PWD_COMMAND}`; export r; \
41207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41208 $(NORMAL_TARGET_EXPORTS) \
22121df0 41209 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41210 for flag in $(EXTRA_TARGET_FLAGS); do \
41211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41212 done; \
41213 (cd $(TARGET_SUBDIR)/libbacktrace && \
41214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41216 "RANLIB=$${RANLIB}" \
41217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41218 install-info) \
41219 || exit 1
41220
41221@endif target-libbacktrace
41222
41223.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
41224maybe-install-pdf-target-libbacktrace:
41225@if target-libbacktrace
41226maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
41227
41228install-pdf-target-libbacktrace: \
41229 configure-target-libbacktrace \
41230 pdf-target-libbacktrace
41231 @: $(MAKE); $(unstage)
22121df0 41232 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41233 r=`${PWD_COMMAND}`; export r; \
41234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41235 $(NORMAL_TARGET_EXPORTS) \
22121df0 41236 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41237 for flag in $(EXTRA_TARGET_FLAGS); do \
41238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41239 done; \
41240 (cd $(TARGET_SUBDIR)/libbacktrace && \
41241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41243 "RANLIB=$${RANLIB}" \
41244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41245 install-pdf) \
41246 || exit 1
41247
41248@endif target-libbacktrace
41249
41250.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
41251maybe-install-html-target-libbacktrace:
41252@if target-libbacktrace
41253maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
41254
41255install-html-target-libbacktrace: \
41256 configure-target-libbacktrace \
41257 html-target-libbacktrace
41258 @: $(MAKE); $(unstage)
22121df0 41259 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41260 r=`${PWD_COMMAND}`; export r; \
41261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41262 $(NORMAL_TARGET_EXPORTS) \
22121df0 41263 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41264 for flag in $(EXTRA_TARGET_FLAGS); do \
41265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41266 done; \
41267 (cd $(TARGET_SUBDIR)/libbacktrace && \
41268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41270 "RANLIB=$${RANLIB}" \
41271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41272 install-html) \
41273 || exit 1
41274
41275@endif target-libbacktrace
41276
41277.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
41278maybe-installcheck-target-libbacktrace:
41279@if target-libbacktrace
41280maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
41281
41282installcheck-target-libbacktrace: \
41283 configure-target-libbacktrace
41284 @: $(MAKE); $(unstage)
22121df0 41285 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41286 r=`${PWD_COMMAND}`; export r; \
41287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41288 $(NORMAL_TARGET_EXPORTS) \
22121df0 41289 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41290 for flag in $(EXTRA_TARGET_FLAGS); do \
41291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41292 done; \
41293 (cd $(TARGET_SUBDIR)/libbacktrace && \
41294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41296 "RANLIB=$${RANLIB}" \
41297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41298 installcheck) \
41299 || exit 1
41300
41301@endif target-libbacktrace
41302
41303.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
41304maybe-mostlyclean-target-libbacktrace:
41305@if target-libbacktrace
41306maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
41307
41308mostlyclean-target-libbacktrace:
41309 @: $(MAKE); $(unstage)
22121df0 41310 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41311 r=`${PWD_COMMAND}`; export r; \
41312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41313 $(NORMAL_TARGET_EXPORTS) \
22121df0 41314 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41315 for flag in $(EXTRA_TARGET_FLAGS); do \
41316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41317 done; \
41318 (cd $(TARGET_SUBDIR)/libbacktrace && \
41319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41321 "RANLIB=$${RANLIB}" \
41322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41323 mostlyclean) \
41324 || exit 1
41325
41326@endif target-libbacktrace
41327
41328.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
41329maybe-clean-target-libbacktrace:
41330@if target-libbacktrace
41331maybe-clean-target-libbacktrace: clean-target-libbacktrace
41332
41333clean-target-libbacktrace:
41334 @: $(MAKE); $(unstage)
22121df0 41335 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41336 r=`${PWD_COMMAND}`; export r; \
41337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41338 $(NORMAL_TARGET_EXPORTS) \
22121df0 41339 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41340 for flag in $(EXTRA_TARGET_FLAGS); do \
41341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41342 done; \
41343 (cd $(TARGET_SUBDIR)/libbacktrace && \
41344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41346 "RANLIB=$${RANLIB}" \
41347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41348 clean) \
41349 || exit 1
41350
41351@endif target-libbacktrace
41352
41353.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
41354maybe-distclean-target-libbacktrace:
41355@if target-libbacktrace
41356maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
41357
41358distclean-target-libbacktrace:
41359 @: $(MAKE); $(unstage)
22121df0 41360 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41361 r=`${PWD_COMMAND}`; export r; \
41362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41363 $(NORMAL_TARGET_EXPORTS) \
22121df0 41364 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41365 for flag in $(EXTRA_TARGET_FLAGS); do \
41366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41367 done; \
41368 (cd $(TARGET_SUBDIR)/libbacktrace && \
41369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41371 "RANLIB=$${RANLIB}" \
41372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41373 distclean) \
41374 || exit 1
41375
41376@endif target-libbacktrace
41377
41378.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
41379maybe-maintainer-clean-target-libbacktrace:
41380@if target-libbacktrace
41381maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
41382
41383maintainer-clean-target-libbacktrace:
41384 @: $(MAKE); $(unstage)
22121df0 41385 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41386 r=`${PWD_COMMAND}`; export r; \
41387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41388 $(NORMAL_TARGET_EXPORTS) \
22121df0 41389 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41390 for flag in $(EXTRA_TARGET_FLAGS); do \
41391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41392 done; \
41393 (cd $(TARGET_SUBDIR)/libbacktrace && \
41394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41396 "RANLIB=$${RANLIB}" \
41397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41398 maintainer-clean) \
41399 || exit 1
41400
41401@endif target-libbacktrace
41402
41403
41404
41405
41406
a90ef4bf
JM
41407.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
41408maybe-configure-target-libquadmath:
4f0ef2d8 41409@if gcc-bootstrap
a90ef4bf 41410configure-target-libquadmath: stage_current
4f0ef2d8 41411@endif gcc-bootstrap
a90ef4bf
JM
41412@if target-libquadmath
41413maybe-configure-target-libquadmath: configure-target-libquadmath
41414configure-target-libquadmath:
0aed8855
PB
41415 @: $(MAKE); $(unstage)
41416 @r=`${PWD_COMMAND}`; export r; \
41417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41418 echo "Checking multilib configuration for libquadmath..."; \
22121df0
L
41419 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
41420 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41421 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
41422 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
41423 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 41424 else \
a90ef4bf
JM
41425 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
41426 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
41427 fi; \
41428 else \
a90ef4bf 41429 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 41430 fi; \
a90ef4bf 41431 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
22121df0 41432 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
1f53ca9a 41433 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41434 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
41435 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 41436 case $(srcdir) in \
b00612cc 41437 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41438 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 41439 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 41440 esac; \
1b6c0831 41441 module_srcdir=libquadmath; \
4fa63067 41442 rm -f no-such-file || : ; \
1b6c0831
L
41443 CONFIG_SITE=no-such-file $(SHELL) \
41444 $$s/$$module_srcdir/configure \
41445 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41446 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41447 --target=${target_alias} \
e2b9e2dc 41448 || exit 1
a90ef4bf 41449@endif target-libquadmath
e2b9e2dc 41450
a7254363
PB
41451
41452
d545f33b
PB
41453
41454
a90ef4bf
JM
41455.PHONY: all-target-libquadmath maybe-all-target-libquadmath
41456maybe-all-target-libquadmath:
4f0ef2d8 41457@if gcc-bootstrap
a90ef4bf 41458all-target-libquadmath: stage_current
4f0ef2d8 41459@endif gcc-bootstrap
a90ef4bf
JM
41460@if target-libquadmath
41461TARGET-target-libquadmath=all
41462maybe-all-target-libquadmath: all-target-libquadmath
41463all-target-libquadmath: configure-target-libquadmath
0aed8855 41464 @: $(MAKE); $(unstage)
b40e3958
L
41465 @r=`${PWD_COMMAND}`; export r; \
41466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41467 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41468 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 41469 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41470 $(TARGET-target-libquadmath))
41471@endif target-libquadmath
3866be5d 41472
a7254363
PB
41473
41474
d545f33b
PB
41475
41476
a90ef4bf
JM
41477.PHONY: check-target-libquadmath maybe-check-target-libquadmath
41478maybe-check-target-libquadmath:
41479@if target-libquadmath
41480maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 41481
a90ef4bf 41482check-target-libquadmath:
0aed8855 41483 @: $(MAKE); $(unstage)
b40e3958
L
41484 @r=`${PWD_COMMAND}`; export r; \
41485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41486 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41487 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 41488 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 41489
a90ef4bf 41490@endif target-libquadmath
3866be5d 41491
a90ef4bf
JM
41492.PHONY: install-target-libquadmath maybe-install-target-libquadmath
41493maybe-install-target-libquadmath:
41494@if target-libquadmath
41495maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 41496
a90ef4bf 41497install-target-libquadmath: installdirs
0aed8855 41498 @: $(MAKE); $(unstage)
b40e3958
L
41499 @r=`${PWD_COMMAND}`; export r; \
41500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41501 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41502 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 41503 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 41504
a90ef4bf 41505@endif target-libquadmath
3866be5d 41506
a90ef4bf
JM
41507.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
41508maybe-install-strip-target-libquadmath:
41509@if target-libquadmath
41510maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 41511
a90ef4bf 41512install-strip-target-libquadmath: installdirs
9b980aa1
RW
41513 @: $(MAKE); $(unstage)
41514 @r=`${PWD_COMMAND}`; export r; \
41515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41516 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41517 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
41518 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41519
a90ef4bf 41520@endif target-libquadmath
9b980aa1 41521
56a8fe78 41522# Other targets (info, dvi, pdf, etc.)
4fa63067 41523
a90ef4bf
JM
41524.PHONY: maybe-info-target-libquadmath info-target-libquadmath
41525maybe-info-target-libquadmath:
41526@if target-libquadmath
41527maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 41528
a90ef4bf
JM
41529info-target-libquadmath: \
41530 configure-target-libquadmath
0aed8855 41531 @: $(MAKE); $(unstage)
22121df0 41532 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41533 r=`${PWD_COMMAND}`; export r; \
b40e3958 41534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41535 $(NORMAL_TARGET_EXPORTS) \
22121df0 41536 echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41537 for flag in $(EXTRA_TARGET_FLAGS); do \
41538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41539 done; \
a90ef4bf 41540 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41543 "RANLIB=$${RANLIB}" \
0c24b341 41544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41545 info) \
4fa63067 41546 || exit 1
3866be5d 41547
a90ef4bf 41548@endif target-libquadmath
3866be5d 41549
a90ef4bf
JM
41550.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
41551maybe-dvi-target-libquadmath:
41552@if target-libquadmath
41553maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 41554
a90ef4bf
JM
41555dvi-target-libquadmath: \
41556 configure-target-libquadmath
0aed8855 41557 @: $(MAKE); $(unstage)
22121df0 41558 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41559 r=`${PWD_COMMAND}`; export r; \
b40e3958 41560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41561 $(NORMAL_TARGET_EXPORTS) \
22121df0 41562 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41563 for flag in $(EXTRA_TARGET_FLAGS); do \
41564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41565 done; \
a90ef4bf 41566 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41569 "RANLIB=$${RANLIB}" \
0c24b341 41570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41571 dvi) \
4fa63067 41572 || exit 1
3866be5d 41573
a90ef4bf 41574@endif target-libquadmath
3866be5d 41575
a90ef4bf
JM
41576.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
41577maybe-pdf-target-libquadmath:
41578@if target-libquadmath
41579maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 41580
a90ef4bf
JM
41581pdf-target-libquadmath: \
41582 configure-target-libquadmath
56a8fe78 41583 @: $(MAKE); $(unstage)
22121df0 41584 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
56a8fe78
DD
41585 r=`${PWD_COMMAND}`; export r; \
41586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41587 $(NORMAL_TARGET_EXPORTS) \
22121df0 41588 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \
56a8fe78
DD
41589 for flag in $(EXTRA_TARGET_FLAGS); do \
41590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41591 done; \
a90ef4bf 41592 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
41593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41595 "RANLIB=$${RANLIB}" \
0c24b341 41596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41597 pdf) \
41598 || exit 1
41599
a90ef4bf 41600@endif target-libquadmath
56a8fe78 41601
a90ef4bf
JM
41602.PHONY: maybe-html-target-libquadmath html-target-libquadmath
41603maybe-html-target-libquadmath:
41604@if target-libquadmath
41605maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 41606
a90ef4bf
JM
41607html-target-libquadmath: \
41608 configure-target-libquadmath
0aed8855 41609 @: $(MAKE); $(unstage)
22121df0 41610 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
6d389afc
MS
41611 r=`${PWD_COMMAND}`; export r; \
41612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41613 $(NORMAL_TARGET_EXPORTS) \
22121df0 41614 echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \
6d389afc
MS
41615 for flag in $(EXTRA_TARGET_FLAGS); do \
41616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41617 done; \
a90ef4bf 41618 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
41619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41621 "RANLIB=$${RANLIB}" \
0c24b341 41622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41623 html) \
41624 || exit 1
41625
a90ef4bf 41626@endif target-libquadmath
6d389afc 41627
a90ef4bf
JM
41628.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
41629maybe-TAGS-target-libquadmath:
41630@if target-libquadmath
41631maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 41632
a90ef4bf
JM
41633TAGS-target-libquadmath: \
41634 configure-target-libquadmath
0aed8855 41635 @: $(MAKE); $(unstage)
22121df0 41636 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
41637 r=`${PWD_COMMAND}`; export r; \
41638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41639 $(NORMAL_TARGET_EXPORTS) \
22121df0 41640 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41641 for flag in $(EXTRA_TARGET_FLAGS); do \
41642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41643 done; \
a90ef4bf 41644 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41647 "RANLIB=$${RANLIB}" \
0c24b341 41648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41649 TAGS) \
e2b9e2dc
NN
41650 || exit 1
41651
a90ef4bf 41652@endif target-libquadmath
4fa63067 41653
a90ef4bf
JM
41654.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
41655maybe-install-info-target-libquadmath:
41656@if target-libquadmath
41657maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 41658
a90ef4bf
JM
41659install-info-target-libquadmath: \
41660 configure-target-libquadmath \
41661 info-target-libquadmath
0aed8855 41662 @: $(MAKE); $(unstage)
22121df0 41663 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41664 r=`${PWD_COMMAND}`; export r; \
b40e3958 41665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41666 $(NORMAL_TARGET_EXPORTS) \
22121df0 41667 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41668 for flag in $(EXTRA_TARGET_FLAGS); do \
41669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41670 done; \
a90ef4bf 41671 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41674 "RANLIB=$${RANLIB}" \
0c24b341 41675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41676 install-info) \
4fa63067 41677 || exit 1
3866be5d 41678
a90ef4bf 41679@endif target-libquadmath
3866be5d 41680
a90ef4bf
JM
41681.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
41682maybe-install-pdf-target-libquadmath:
41683@if target-libquadmath
41684maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 41685
a90ef4bf
JM
41686install-pdf-target-libquadmath: \
41687 configure-target-libquadmath \
41688 pdf-target-libquadmath
a3ca38d2 41689 @: $(MAKE); $(unstage)
22121df0 41690 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
a3ca38d2
DD
41691 r=`${PWD_COMMAND}`; export r; \
41692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41693 $(NORMAL_TARGET_EXPORTS) \
22121df0 41694 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \
a3ca38d2
DD
41695 for flag in $(EXTRA_TARGET_FLAGS); do \
41696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41697 done; \
a90ef4bf 41698 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
41699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41701 "RANLIB=$${RANLIB}" \
0c24b341 41702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41703 install-pdf) \
41704 || exit 1
41705
a90ef4bf 41706@endif target-libquadmath
a3ca38d2 41707
a90ef4bf
JM
41708.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
41709maybe-install-html-target-libquadmath:
41710@if target-libquadmath
41711maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 41712
a90ef4bf
JM
41713install-html-target-libquadmath: \
41714 configure-target-libquadmath \
41715 html-target-libquadmath
108a6f8e 41716 @: $(MAKE); $(unstage)
22121df0 41717 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
108a6f8e
CD
41718 r=`${PWD_COMMAND}`; export r; \
41719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41720 $(NORMAL_TARGET_EXPORTS) \
22121df0 41721 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \
108a6f8e
CD
41722 for flag in $(EXTRA_TARGET_FLAGS); do \
41723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41724 done; \
a90ef4bf 41725 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
41726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41728 "RANLIB=$${RANLIB}" \
0c24b341 41729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41730 install-html) \
41731 || exit 1
41732
a90ef4bf 41733@endif target-libquadmath
108a6f8e 41734
a90ef4bf
JM
41735.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
41736maybe-installcheck-target-libquadmath:
41737@if target-libquadmath
41738maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 41739
a90ef4bf
JM
41740installcheck-target-libquadmath: \
41741 configure-target-libquadmath
0aed8855 41742 @: $(MAKE); $(unstage)
22121df0 41743 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41744 r=`${PWD_COMMAND}`; export r; \
b40e3958 41745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41746 $(NORMAL_TARGET_EXPORTS) \
22121df0 41747 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41748 for flag in $(EXTRA_TARGET_FLAGS); do \
41749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41750 done; \
a90ef4bf 41751 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41754 "RANLIB=$${RANLIB}" \
0c24b341 41755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41756 installcheck) \
4fa63067 41757 || exit 1
3866be5d 41758
a90ef4bf 41759@endif target-libquadmath
3866be5d 41760
a90ef4bf
JM
41761.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
41762maybe-mostlyclean-target-libquadmath:
41763@if target-libquadmath
41764maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 41765
a90ef4bf 41766mostlyclean-target-libquadmath:
0aed8855 41767 @: $(MAKE); $(unstage)
22121df0 41768 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41769 r=`${PWD_COMMAND}`; export r; \
b40e3958 41770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41771 $(NORMAL_TARGET_EXPORTS) \
22121df0 41772 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41773 for flag in $(EXTRA_TARGET_FLAGS); do \
41774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41775 done; \
a90ef4bf 41776 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41779 "RANLIB=$${RANLIB}" \
0c24b341 41780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41781 mostlyclean) \
4fa63067 41782 || exit 1
3866be5d 41783
a90ef4bf 41784@endif target-libquadmath
3866be5d 41785
a90ef4bf
JM
41786.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
41787maybe-clean-target-libquadmath:
41788@if target-libquadmath
41789maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 41790
a90ef4bf 41791clean-target-libquadmath:
0aed8855 41792 @: $(MAKE); $(unstage)
22121df0 41793 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
41794 r=`${PWD_COMMAND}`; export r; \
41795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41796 $(NORMAL_TARGET_EXPORTS) \
22121df0 41797 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41798 for flag in $(EXTRA_TARGET_FLAGS); do \
41799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41800 done; \
a90ef4bf 41801 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41804 "RANLIB=$${RANLIB}" \
0c24b341 41805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41806 clean) \
e2b9e2dc
NN
41807 || exit 1
41808
a90ef4bf 41809@endif target-libquadmath
3866be5d 41810
a90ef4bf
JM
41811.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
41812maybe-distclean-target-libquadmath:
41813@if target-libquadmath
41814maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 41815
a90ef4bf 41816distclean-target-libquadmath:
0aed8855 41817 @: $(MAKE); $(unstage)
22121df0 41818 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41819 r=`${PWD_COMMAND}`; export r; \
b40e3958 41820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41821 $(NORMAL_TARGET_EXPORTS) \
22121df0 41822 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41823 for flag in $(EXTRA_TARGET_FLAGS); do \
41824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41825 done; \
a90ef4bf 41826 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41829 "RANLIB=$${RANLIB}" \
0c24b341 41830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41831 distclean) \
4fa63067 41832 || exit 1
3866be5d 41833
a90ef4bf 41834@endif target-libquadmath
3866be5d 41835
a90ef4bf
JM
41836.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
41837maybe-maintainer-clean-target-libquadmath:
41838@if target-libquadmath
41839maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 41840
a90ef4bf 41841maintainer-clean-target-libquadmath:
0aed8855 41842 @: $(MAKE); $(unstage)
22121df0 41843 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41844 r=`${PWD_COMMAND}`; export r; \
b40e3958 41845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41846 $(NORMAL_TARGET_EXPORTS) \
22121df0 41847 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41848 for flag in $(EXTRA_TARGET_FLAGS); do \
41849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41850 done; \
a90ef4bf 41851 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41854 "RANLIB=$${RANLIB}" \
0c24b341 41855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41856 maintainer-clean) \
4fa63067 41857 || exit 1
3866be5d 41858
a90ef4bf 41859@endif target-libquadmath
3866be5d 41860
4fa63067 41861
4fa63067 41862
a7254363 41863
e90269c8 41864
a90ef4bf
JM
41865.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
41866maybe-configure-target-libgfortran:
e552509b 41867@if gcc-bootstrap
a90ef4bf 41868configure-target-libgfortran: stage_current
e552509b 41869@endif gcc-bootstrap
a90ef4bf
JM
41870@if target-libgfortran
41871maybe-configure-target-libgfortran: configure-target-libgfortran
41872configure-target-libgfortran:
e552509b
ILT
41873 @: $(MAKE); $(unstage)
41874 @r=`${PWD_COMMAND}`; export r; \
41875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41876 echo "Checking multilib configuration for libgfortran..."; \
22121df0
L
41877 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
41878 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41879 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
41880 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
41881 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 41882 else \
a90ef4bf
JM
41883 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
41884 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
41885 fi; \
41886 else \
a90ef4bf 41887 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 41888 fi; \
a90ef4bf 41889 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
22121df0 41890 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
e552509b 41891 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41892 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
41893 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
41894 case $(srcdir) in \
41895 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41896 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
41897 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41898 esac; \
1b6c0831 41899 module_srcdir=libgfortran; \
e552509b 41900 rm -f no-such-file || : ; \
1b6c0831
L
41901 CONFIG_SITE=no-such-file $(SHELL) \
41902 $$s/$$module_srcdir/configure \
41903 --srcdir=$${topdir}/$$module_srcdir \
e552509b 41904 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41905 --target=${target_alias} \
e552509b 41906 || exit 1
a90ef4bf 41907@endif target-libgfortran
e552509b
ILT
41908
41909
41910
41911
41912
a90ef4bf
JM
41913.PHONY: all-target-libgfortran maybe-all-target-libgfortran
41914maybe-all-target-libgfortran:
e552509b 41915@if gcc-bootstrap
a90ef4bf 41916all-target-libgfortran: stage_current
e552509b 41917@endif gcc-bootstrap
a90ef4bf
JM
41918@if target-libgfortran
41919TARGET-target-libgfortran=all
41920maybe-all-target-libgfortran: all-target-libgfortran
41921all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
41922 @: $(MAKE); $(unstage)
41923 @r=`${PWD_COMMAND}`; export r; \
41924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41925 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41926 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 41927 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41928 $(TARGET-target-libgfortran))
41929@endif target-libgfortran
e552509b
ILT
41930
41931
41932
41933
41934
a90ef4bf
JM
41935.PHONY: check-target-libgfortran maybe-check-target-libgfortran
41936maybe-check-target-libgfortran:
41937@if target-libgfortran
41938maybe-check-target-libgfortran: check-target-libgfortran
e552509b 41939
a90ef4bf 41940check-target-libgfortran:
e552509b
ILT
41941 @: $(MAKE); $(unstage)
41942 @r=`${PWD_COMMAND}`; export r; \
41943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41944 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41945 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41946 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
41947
a90ef4bf 41948@endif target-libgfortran
e552509b 41949
a90ef4bf
JM
41950.PHONY: install-target-libgfortran maybe-install-target-libgfortran
41951maybe-install-target-libgfortran:
41952@if target-libgfortran
41953maybe-install-target-libgfortran: install-target-libgfortran
e552509b 41954
a90ef4bf 41955install-target-libgfortran: installdirs
e552509b
ILT
41956 @: $(MAKE); $(unstage)
41957 @r=`${PWD_COMMAND}`; export r; \
41958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41959 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41960 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41961 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
41962
a90ef4bf 41963@endif target-libgfortran
e552509b 41964
a90ef4bf
JM
41965.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
41966maybe-install-strip-target-libgfortran:
41967@if target-libgfortran
41968maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 41969
a90ef4bf 41970install-strip-target-libgfortran: installdirs
9b980aa1
RW
41971 @: $(MAKE); $(unstage)
41972 @r=`${PWD_COMMAND}`; export r; \
41973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41974 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41975 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
41976 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41977
a90ef4bf 41978@endif target-libgfortran
9b980aa1 41979
e552509b
ILT
41980# Other targets (info, dvi, pdf, etc.)
41981
a90ef4bf
JM
41982.PHONY: maybe-info-target-libgfortran info-target-libgfortran
41983maybe-info-target-libgfortran:
41984@if target-libgfortran
41985maybe-info-target-libgfortran: info-target-libgfortran
e552509b 41986
a90ef4bf
JM
41987info-target-libgfortran: \
41988 configure-target-libgfortran
e552509b 41989 @: $(MAKE); $(unstage)
22121df0 41990 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41991 r=`${PWD_COMMAND}`; export r; \
41992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41993 $(NORMAL_TARGET_EXPORTS) \
22121df0 41994 echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41995 for flag in $(EXTRA_TARGET_FLAGS); do \
41996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41997 done; \
a90ef4bf 41998 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42001 "RANLIB=$${RANLIB}" \
42002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42003 info) \
42004 || exit 1
42005
a90ef4bf 42006@endif target-libgfortran
e552509b 42007
a90ef4bf
JM
42008.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
42009maybe-dvi-target-libgfortran:
42010@if target-libgfortran
42011maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 42012
a90ef4bf
JM
42013dvi-target-libgfortran: \
42014 configure-target-libgfortran
e552509b 42015 @: $(MAKE); $(unstage)
22121df0 42016 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42017 r=`${PWD_COMMAND}`; export r; \
42018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42019 $(NORMAL_TARGET_EXPORTS) \
22121df0 42020 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42021 for flag in $(EXTRA_TARGET_FLAGS); do \
42022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42023 done; \
a90ef4bf 42024 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42027 "RANLIB=$${RANLIB}" \
42028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42029 dvi) \
42030 || exit 1
42031
a90ef4bf 42032@endif target-libgfortran
e552509b 42033
a90ef4bf
JM
42034.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
42035maybe-pdf-target-libgfortran:
42036@if target-libgfortran
42037maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 42038
a90ef4bf
JM
42039pdf-target-libgfortran: \
42040 configure-target-libgfortran
e552509b 42041 @: $(MAKE); $(unstage)
22121df0 42042 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42043 r=`${PWD_COMMAND}`; export r; \
42044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42045 $(NORMAL_TARGET_EXPORTS) \
22121df0 42046 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42047 for flag in $(EXTRA_TARGET_FLAGS); do \
42048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42049 done; \
a90ef4bf 42050 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42053 "RANLIB=$${RANLIB}" \
42054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42055 pdf) \
42056 || exit 1
42057
a90ef4bf 42058@endif target-libgfortran
e552509b 42059
a90ef4bf
JM
42060.PHONY: maybe-html-target-libgfortran html-target-libgfortran
42061maybe-html-target-libgfortran:
42062@if target-libgfortran
42063maybe-html-target-libgfortran: html-target-libgfortran
e552509b 42064
a90ef4bf
JM
42065html-target-libgfortran: \
42066 configure-target-libgfortran
e552509b 42067 @: $(MAKE); $(unstage)
22121df0 42068 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42069 r=`${PWD_COMMAND}`; export r; \
42070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42071 $(NORMAL_TARGET_EXPORTS) \
22121df0 42072 echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42073 for flag in $(EXTRA_TARGET_FLAGS); do \
42074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42075 done; \
a90ef4bf 42076 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42079 "RANLIB=$${RANLIB}" \
42080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42081 html) \
42082 || exit 1
42083
a90ef4bf 42084@endif target-libgfortran
e552509b 42085
a90ef4bf
JM
42086.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
42087maybe-TAGS-target-libgfortran:
42088@if target-libgfortran
42089maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 42090
a90ef4bf
JM
42091TAGS-target-libgfortran: \
42092 configure-target-libgfortran
e552509b 42093 @: $(MAKE); $(unstage)
22121df0 42094 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42095 r=`${PWD_COMMAND}`; export r; \
42096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42097 $(NORMAL_TARGET_EXPORTS) \
22121df0 42098 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42099 for flag in $(EXTRA_TARGET_FLAGS); do \
42100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42101 done; \
a90ef4bf 42102 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42105 "RANLIB=$${RANLIB}" \
42106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42107 TAGS) \
42108 || exit 1
42109
a90ef4bf 42110@endif target-libgfortran
e552509b 42111
a90ef4bf
JM
42112.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
42113maybe-install-info-target-libgfortran:
42114@if target-libgfortran
42115maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 42116
a90ef4bf
JM
42117install-info-target-libgfortran: \
42118 configure-target-libgfortran \
42119 info-target-libgfortran
e552509b 42120 @: $(MAKE); $(unstage)
22121df0 42121 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42122 r=`${PWD_COMMAND}`; export r; \
42123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42124 $(NORMAL_TARGET_EXPORTS) \
22121df0 42125 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42126 for flag in $(EXTRA_TARGET_FLAGS); do \
42127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42128 done; \
a90ef4bf 42129 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42132 "RANLIB=$${RANLIB}" \
42133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42134 install-info) \
42135 || exit 1
42136
a90ef4bf 42137@endif target-libgfortran
e552509b 42138
a90ef4bf
JM
42139.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
42140maybe-install-pdf-target-libgfortran:
42141@if target-libgfortran
42142maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 42143
a90ef4bf
JM
42144install-pdf-target-libgfortran: \
42145 configure-target-libgfortran \
42146 pdf-target-libgfortran
e552509b 42147 @: $(MAKE); $(unstage)
22121df0 42148 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42149 r=`${PWD_COMMAND}`; export r; \
42150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42151 $(NORMAL_TARGET_EXPORTS) \
22121df0 42152 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42153 for flag in $(EXTRA_TARGET_FLAGS); do \
42154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42155 done; \
a90ef4bf 42156 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42159 "RANLIB=$${RANLIB}" \
42160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42161 install-pdf) \
42162 || exit 1
42163
a90ef4bf 42164@endif target-libgfortran
e552509b 42165
a90ef4bf
JM
42166.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
42167maybe-install-html-target-libgfortran:
42168@if target-libgfortran
42169maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 42170
a90ef4bf
JM
42171install-html-target-libgfortran: \
42172 configure-target-libgfortran \
42173 html-target-libgfortran
e552509b 42174 @: $(MAKE); $(unstage)
22121df0 42175 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42176 r=`${PWD_COMMAND}`; export r; \
42177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42178 $(NORMAL_TARGET_EXPORTS) \
22121df0 42179 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42180 for flag in $(EXTRA_TARGET_FLAGS); do \
42181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42182 done; \
a90ef4bf 42183 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42186 "RANLIB=$${RANLIB}" \
42187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42188 install-html) \
42189 || exit 1
42190
a90ef4bf 42191@endif target-libgfortran
e552509b 42192
a90ef4bf
JM
42193.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
42194maybe-installcheck-target-libgfortran:
42195@if target-libgfortran
42196maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 42197
a90ef4bf
JM
42198installcheck-target-libgfortran: \
42199 configure-target-libgfortran
e552509b 42200 @: $(MAKE); $(unstage)
22121df0 42201 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42202 r=`${PWD_COMMAND}`; export r; \
42203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42204 $(NORMAL_TARGET_EXPORTS) \
22121df0 42205 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42206 for flag in $(EXTRA_TARGET_FLAGS); do \
42207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42208 done; \
a90ef4bf 42209 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42212 "RANLIB=$${RANLIB}" \
42213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42214 installcheck) \
42215 || exit 1
42216
a90ef4bf 42217@endif target-libgfortran
e552509b 42218
a90ef4bf
JM
42219.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
42220maybe-mostlyclean-target-libgfortran:
42221@if target-libgfortran
42222maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 42223
a90ef4bf 42224mostlyclean-target-libgfortran:
e552509b 42225 @: $(MAKE); $(unstage)
22121df0 42226 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42227 r=`${PWD_COMMAND}`; export r; \
42228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42229 $(NORMAL_TARGET_EXPORTS) \
22121df0 42230 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42231 for flag in $(EXTRA_TARGET_FLAGS); do \
42232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42233 done; \
a90ef4bf 42234 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42237 "RANLIB=$${RANLIB}" \
42238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42239 mostlyclean) \
42240 || exit 1
42241
a90ef4bf 42242@endif target-libgfortran
e552509b 42243
a90ef4bf
JM
42244.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
42245maybe-clean-target-libgfortran:
42246@if target-libgfortran
42247maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 42248
a90ef4bf 42249clean-target-libgfortran:
e552509b 42250 @: $(MAKE); $(unstage)
22121df0 42251 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42252 r=`${PWD_COMMAND}`; export r; \
42253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42254 $(NORMAL_TARGET_EXPORTS) \
22121df0 42255 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42256 for flag in $(EXTRA_TARGET_FLAGS); do \
42257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42258 done; \
a90ef4bf 42259 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42262 "RANLIB=$${RANLIB}" \
42263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42264 clean) \
42265 || exit 1
42266
a90ef4bf 42267@endif target-libgfortran
e552509b 42268
a90ef4bf
JM
42269.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
42270maybe-distclean-target-libgfortran:
42271@if target-libgfortran
42272maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 42273
a90ef4bf 42274distclean-target-libgfortran:
e552509b 42275 @: $(MAKE); $(unstage)
22121df0 42276 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42277 r=`${PWD_COMMAND}`; export r; \
42278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42279 $(NORMAL_TARGET_EXPORTS) \
22121df0 42280 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42281 for flag in $(EXTRA_TARGET_FLAGS); do \
42282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42283 done; \
a90ef4bf 42284 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42287 "RANLIB=$${RANLIB}" \
42288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42289 distclean) \
42290 || exit 1
42291
a90ef4bf 42292@endif target-libgfortran
e552509b 42293
a90ef4bf
JM
42294.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
42295maybe-maintainer-clean-target-libgfortran:
42296@if target-libgfortran
42297maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 42298
a90ef4bf 42299maintainer-clean-target-libgfortran:
e552509b 42300 @: $(MAKE); $(unstage)
22121df0 42301 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42302 r=`${PWD_COMMAND}`; export r; \
42303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42304 $(NORMAL_TARGET_EXPORTS) \
22121df0 42305 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42306 for flag in $(EXTRA_TARGET_FLAGS); do \
42307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42308 done; \
a90ef4bf 42309 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42312 "RANLIB=$${RANLIB}" \
42313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42314 maintainer-clean) \
42315 || exit 1
42316
a90ef4bf 42317@endif target-libgfortran
e552509b
ILT
42318
42319
42320
42321
42322
a90ef4bf
JM
42323.PHONY: configure-target-libobjc maybe-configure-target-libobjc
42324maybe-configure-target-libobjc:
4f0ef2d8 42325@if gcc-bootstrap
a90ef4bf 42326configure-target-libobjc: stage_current
4f0ef2d8 42327@endif gcc-bootstrap
a90ef4bf
JM
42328@if target-libobjc
42329maybe-configure-target-libobjc: configure-target-libobjc
42330configure-target-libobjc:
0aed8855
PB
42331 @: $(MAKE); $(unstage)
42332 @r=`${PWD_COMMAND}`; export r; \
42333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42334 echo "Checking multilib configuration for libobjc..."; \
22121df0
L
42335 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
42336 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42337 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
42338 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
42339 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 42340 else \
a90ef4bf
JM
42341 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
42342 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
42343 fi; \
42344 else \
a90ef4bf 42345 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 42346 fi; \
a90ef4bf 42347 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
22121df0 42348 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
1f53ca9a 42349 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42350 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
42351 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 42352 case $(srcdir) in \
b00612cc 42353 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42354 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 42355 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 42356 esac; \
1b6c0831 42357 module_srcdir=libobjc; \
4fa63067 42358 rm -f no-such-file || : ; \
1b6c0831
L
42359 CONFIG_SITE=no-such-file $(SHELL) \
42360 $$s/$$module_srcdir/configure \
42361 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42362 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42363 --target=${target_alias} \
e2b9e2dc 42364 || exit 1
a90ef4bf 42365@endif target-libobjc
e2b9e2dc 42366
a7254363
PB
42367
42368
d545f33b
PB
42369
42370
a90ef4bf
JM
42371.PHONY: all-target-libobjc maybe-all-target-libobjc
42372maybe-all-target-libobjc:
4f0ef2d8 42373@if gcc-bootstrap
a90ef4bf 42374all-target-libobjc: stage_current
4f0ef2d8 42375@endif gcc-bootstrap
a90ef4bf
JM
42376@if target-libobjc
42377TARGET-target-libobjc=all
42378maybe-all-target-libobjc: all-target-libobjc
42379all-target-libobjc: configure-target-libobjc
0aed8855 42380 @: $(MAKE); $(unstage)
b40e3958
L
42381 @r=`${PWD_COMMAND}`; export r; \
42382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42383 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42384 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 42385 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42386 $(TARGET-target-libobjc))
42387@endif target-libobjc
3866be5d 42388
a7254363
PB
42389
42390
d545f33b
PB
42391
42392
a90ef4bf
JM
42393.PHONY: check-target-libobjc maybe-check-target-libobjc
42394maybe-check-target-libobjc:
42395@if target-libobjc
42396maybe-check-target-libobjc: check-target-libobjc
3866be5d 42397
a90ef4bf
JM
42398check-target-libobjc:
42399 @: $(MAKE); $(unstage)
42400 @r=`${PWD_COMMAND}`; export r; \
42401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42402 $(NORMAL_TARGET_EXPORTS) \
42403 (cd $(TARGET_SUBDIR)/libobjc && \
42404 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 42405
a90ef4bf 42406@endif target-libobjc
4fa63067 42407
a90ef4bf
JM
42408.PHONY: install-target-libobjc maybe-install-target-libobjc
42409maybe-install-target-libobjc:
42410@if target-libobjc
42411maybe-install-target-libobjc: install-target-libobjc
4fa63067 42412
a90ef4bf 42413install-target-libobjc: installdirs
0aed8855 42414 @: $(MAKE); $(unstage)
b40e3958
L
42415 @r=`${PWD_COMMAND}`; export r; \
42416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42417 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42418 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 42419 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 42420
a90ef4bf 42421@endif target-libobjc
3866be5d 42422
a90ef4bf
JM
42423.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
42424maybe-install-strip-target-libobjc:
42425@if target-libobjc
42426maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 42427
a90ef4bf 42428install-strip-target-libobjc: installdirs
9b980aa1
RW
42429 @: $(MAKE); $(unstage)
42430 @r=`${PWD_COMMAND}`; export r; \
42431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42432 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42433 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
42434 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42435
a90ef4bf 42436@endif target-libobjc
9b980aa1 42437
56a8fe78 42438# Other targets (info, dvi, pdf, etc.)
16ae0395 42439
a90ef4bf
JM
42440.PHONY: maybe-info-target-libobjc info-target-libobjc
42441maybe-info-target-libobjc:
42442@if target-libobjc
42443maybe-info-target-libobjc: info-target-libobjc
6d389afc 42444
a90ef4bf
JM
42445info-target-libobjc: \
42446 configure-target-libobjc
0aed8855 42447 @: $(MAKE); $(unstage)
22121df0 42448 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
6d389afc
MS
42449 r=`${PWD_COMMAND}`; export r; \
42450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42451 $(NORMAL_TARGET_EXPORTS) \
22121df0 42452 echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \
6d389afc
MS
42453 for flag in $(EXTRA_TARGET_FLAGS); do \
42454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42455 done; \
a90ef4bf 42456 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
42457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42459 "RANLIB=$${RANLIB}" \
0c24b341 42460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42461 info) \
42462 || exit 1
42463
a90ef4bf 42464@endif target-libobjc
6d389afc 42465
a90ef4bf
JM
42466.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
42467maybe-dvi-target-libobjc:
42468@if target-libobjc
42469maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 42470
a90ef4bf
JM
42471dvi-target-libobjc: \
42472 configure-target-libobjc
0aed8855 42473 @: $(MAKE); $(unstage)
22121df0 42474 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 42475 r=`${PWD_COMMAND}`; export r; \
b40e3958 42476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42477 $(NORMAL_TARGET_EXPORTS) \
22121df0 42478 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42479 for flag in $(EXTRA_TARGET_FLAGS); do \
42480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42481 done; \
a90ef4bf 42482 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42485 "RANLIB=$${RANLIB}" \
0c24b341 42486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 42487 dvi) \
4fa63067 42488 || exit 1
3866be5d 42489
a90ef4bf 42490@endif target-libobjc
3866be5d 42491
a90ef4bf
JM
42492.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
42493maybe-pdf-target-libobjc:
42494@if target-libobjc
42495maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 42496
a90ef4bf
JM
42497pdf-target-libobjc: \
42498 configure-target-libobjc
56a8fe78 42499 @: $(MAKE); $(unstage)
22121df0 42500 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
56a8fe78
DD
42501 r=`${PWD_COMMAND}`; export r; \
42502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42503 $(NORMAL_TARGET_EXPORTS) \
22121df0 42504 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \
56a8fe78
DD
42505 for flag in $(EXTRA_TARGET_FLAGS); do \
42506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42507 done; \
a90ef4bf 42508 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
42509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42511 "RANLIB=$${RANLIB}" \
0c24b341 42512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42513 pdf) \
42514 || exit 1
42515
a90ef4bf 42516@endif target-libobjc
56a8fe78 42517
a90ef4bf
JM
42518.PHONY: maybe-html-target-libobjc html-target-libobjc
42519maybe-html-target-libobjc:
42520@if target-libobjc
42521maybe-html-target-libobjc: html-target-libobjc
4fa63067 42522
a90ef4bf
JM
42523html-target-libobjc: \
42524 configure-target-libobjc
0aed8855 42525 @: $(MAKE); $(unstage)
22121df0 42526 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
b40e3958
L
42527 r=`${PWD_COMMAND}`; export r; \
42528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42529 $(NORMAL_TARGET_EXPORTS) \
22121df0 42530 echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42531 for flag in $(EXTRA_TARGET_FLAGS); do \
42532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42533 done; \
a90ef4bf 42534 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42537 "RANLIB=$${RANLIB}" \
0c24b341 42538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 42539 html) \
e2b9e2dc
NN
42540 || exit 1
42541
a90ef4bf 42542@endif target-libobjc
4fa63067 42543
a90ef4bf
JM
42544.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
42545maybe-TAGS-target-libobjc:
42546@if target-libobjc
42547maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 42548
a90ef4bf
JM
42549TAGS-target-libobjc: \
42550 configure-target-libobjc
0aed8855 42551 @: $(MAKE); $(unstage)
22121df0 42552 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 42553 r=`${PWD_COMMAND}`; export r; \
b40e3958 42554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42555 $(NORMAL_TARGET_EXPORTS) \
22121df0 42556 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42557 for flag in $(EXTRA_TARGET_FLAGS); do \
42558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42559 done; \
a90ef4bf 42560 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42563 "RANLIB=$${RANLIB}" \
0c24b341 42564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42565 TAGS) \
4fa63067 42566 || exit 1
3866be5d 42567
a90ef4bf 42568@endif target-libobjc
3866be5d 42569
a90ef4bf
JM
42570.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
42571maybe-install-info-target-libobjc:
42572@if target-libobjc
42573maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 42574
a90ef4bf
JM
42575install-info-target-libobjc: \
42576 configure-target-libobjc \
42577 info-target-libobjc
0aed8855 42578 @: $(MAKE); $(unstage)
22121df0 42579 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067
NN
42580 r=`${PWD_COMMAND}`; export r; \
42581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42582 $(NORMAL_TARGET_EXPORTS) \
22121df0 42583 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42584 for flag in $(EXTRA_TARGET_FLAGS); do \
42585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42586 done; \
a90ef4bf 42587 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42590 "RANLIB=$${RANLIB}" \
0c24b341 42591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42592 install-info) \
4fa63067 42593 || exit 1
3866be5d 42594
a90ef4bf 42595@endif target-libobjc
16ae0395 42596
a90ef4bf
JM
42597.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
42598maybe-install-pdf-target-libobjc:
42599@if target-libobjc
42600maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 42601
a90ef4bf
JM
42602install-pdf-target-libobjc: \
42603 configure-target-libobjc \
42604 pdf-target-libobjc
a3ca38d2 42605 @: $(MAKE); $(unstage)
22121df0 42606 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a3ca38d2
DD
42607 r=`${PWD_COMMAND}`; export r; \
42608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42609 $(NORMAL_TARGET_EXPORTS) \
22121df0 42610 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \
a3ca38d2
DD
42611 for flag in $(EXTRA_TARGET_FLAGS); do \
42612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42613 done; \
a90ef4bf 42614 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
42615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42617 "RANLIB=$${RANLIB}" \
0c24b341 42618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42619 install-pdf) \
42620 || exit 1
42621
a90ef4bf 42622@endif target-libobjc
a3ca38d2 42623
a90ef4bf
JM
42624.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
42625maybe-install-html-target-libobjc:
42626@if target-libobjc
42627maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 42628
a90ef4bf
JM
42629install-html-target-libobjc: \
42630 configure-target-libobjc \
42631 html-target-libobjc
108a6f8e 42632 @: $(MAKE); $(unstage)
22121df0 42633 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
108a6f8e
CD
42634 r=`${PWD_COMMAND}`; export r; \
42635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42636 $(NORMAL_TARGET_EXPORTS) \
22121df0 42637 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \
108a6f8e
CD
42638 for flag in $(EXTRA_TARGET_FLAGS); do \
42639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42640 done; \
a90ef4bf 42641 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
42642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42644 "RANLIB=$${RANLIB}" \
0c24b341 42645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42646 install-html) \
42647 || exit 1
42648
a90ef4bf 42649@endif target-libobjc
108a6f8e 42650
a90ef4bf
JM
42651.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
42652maybe-installcheck-target-libobjc:
42653@if target-libobjc
42654maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 42655
a90ef4bf
JM
42656installcheck-target-libobjc: \
42657 configure-target-libobjc
0aed8855 42658 @: $(MAKE); $(unstage)
22121df0 42659 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 42660 r=`${PWD_COMMAND}`; export r; \
b40e3958 42661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42662 $(NORMAL_TARGET_EXPORTS) \
22121df0 42663 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42664 for flag in $(EXTRA_TARGET_FLAGS); do \
42665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42666 done; \
a90ef4bf 42667 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42670 "RANLIB=$${RANLIB}" \
0c24b341 42671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42672 installcheck) \
4fa63067 42673 || exit 1
3866be5d 42674
a90ef4bf 42675@endif target-libobjc
3866be5d 42676
a90ef4bf
JM
42677.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
42678maybe-mostlyclean-target-libobjc:
42679@if target-libobjc
42680maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 42681
a90ef4bf
JM
42682mostlyclean-target-libobjc:
42683 @: $(MAKE); $(unstage)
22121df0 42684 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
42685 r=`${PWD_COMMAND}`; export r; \
42686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42687 $(NORMAL_TARGET_EXPORTS) \
22121df0 42688 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
42689 for flag in $(EXTRA_TARGET_FLAGS); do \
42690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42691 done; \
42692 (cd $(TARGET_SUBDIR)/libobjc && \
42693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42695 "RANLIB=$${RANLIB}" \
42696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42697 mostlyclean) \
42698 || exit 1
4fa63067 42699
a90ef4bf 42700@endif target-libobjc
4fa63067 42701
a90ef4bf
JM
42702.PHONY: maybe-clean-target-libobjc clean-target-libobjc
42703maybe-clean-target-libobjc:
42704@if target-libobjc
42705maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 42706
a90ef4bf
JM
42707clean-target-libobjc:
42708 @: $(MAKE); $(unstage)
22121df0 42709 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
42710 r=`${PWD_COMMAND}`; export r; \
42711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42712 $(NORMAL_TARGET_EXPORTS) \
22121df0 42713 echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
42714 for flag in $(EXTRA_TARGET_FLAGS); do \
42715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42716 done; \
42717 (cd $(TARGET_SUBDIR)/libobjc && \
42718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42720 "RANLIB=$${RANLIB}" \
42721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42722 clean) \
42723 || exit 1
4fa63067 42724
a90ef4bf 42725@endif target-libobjc
4fa63067 42726
a90ef4bf
JM
42727.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
42728maybe-distclean-target-libobjc:
42729@if target-libobjc
42730maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 42731
a90ef4bf
JM
42732distclean-target-libobjc:
42733 @: $(MAKE); $(unstage)
22121df0 42734 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
42735 r=`${PWD_COMMAND}`; export r; \
42736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42737 $(NORMAL_TARGET_EXPORTS) \
22121df0 42738 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
42739 for flag in $(EXTRA_TARGET_FLAGS); do \
42740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42741 done; \
42742 (cd $(TARGET_SUBDIR)/libobjc && \
42743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42745 "RANLIB=$${RANLIB}" \
42746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42747 distclean) \
42748 || exit 1
4fa63067 42749
a90ef4bf 42750@endif target-libobjc
4fa63067 42751
a90ef4bf
JM
42752.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
42753maybe-maintainer-clean-target-libobjc:
42754@if target-libobjc
42755maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 42756
a90ef4bf
JM
42757maintainer-clean-target-libobjc:
42758 @: $(MAKE); $(unstage)
22121df0 42759 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
42760 r=`${PWD_COMMAND}`; export r; \
42761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42762 $(NORMAL_TARGET_EXPORTS) \
22121df0 42763 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
42764 for flag in $(EXTRA_TARGET_FLAGS); do \
42765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42766 done; \
42767 (cd $(TARGET_SUBDIR)/libobjc && \
42768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42770 "RANLIB=$${RANLIB}" \
42771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42772 maintainer-clean) \
42773 || exit 1
4fa63067 42774
a90ef4bf 42775@endif target-libobjc
4fa63067
NN
42776
42777
4fa63067 42778
4fa63067 42779
a7254363 42780
a90ef4bf
JM
42781.PHONY: configure-target-libgo maybe-configure-target-libgo
42782maybe-configure-target-libgo:
4f0ef2d8 42783@if gcc-bootstrap
a90ef4bf 42784configure-target-libgo: stage_current
4f0ef2d8 42785@endif gcc-bootstrap
a90ef4bf
JM
42786@if target-libgo
42787maybe-configure-target-libgo: configure-target-libgo
42788configure-target-libgo:
0aed8855
PB
42789 @: $(MAKE); $(unstage)
42790 @r=`${PWD_COMMAND}`; export r; \
42791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42792 echo "Checking multilib configuration for libgo..."; \
22121df0
L
42793 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
42794 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42795 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
42796 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
42797 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 42798 else \
a90ef4bf
JM
42799 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
42800 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
42801 fi; \
42802 else \
a90ef4bf 42803 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 42804 fi; \
a90ef4bf 42805 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
22121df0 42806 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
1f53ca9a 42807 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42808 echo Configuring in $(TARGET_SUBDIR)/libgo; \
42809 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 42810 case $(srcdir) in \
b00612cc 42811 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42812 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 42813 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 42814 esac; \
1b6c0831 42815 module_srcdir=libgo; \
4fa63067 42816 rm -f no-such-file || : ; \
1b6c0831
L
42817 CONFIG_SITE=no-such-file $(SHELL) \
42818 $$s/$$module_srcdir/configure \
42819 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42820 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42821 --target=${target_alias} \
e2b9e2dc 42822 || exit 1
a90ef4bf 42823@endif target-libgo
e2b9e2dc 42824
a7254363
PB
42825
42826
d545f33b
PB
42827
42828
a90ef4bf
JM
42829.PHONY: all-target-libgo maybe-all-target-libgo
42830maybe-all-target-libgo:
4f0ef2d8 42831@if gcc-bootstrap
a90ef4bf 42832all-target-libgo: stage_current
4f0ef2d8 42833@endif gcc-bootstrap
a90ef4bf
JM
42834@if target-libgo
42835TARGET-target-libgo=all
42836maybe-all-target-libgo: all-target-libgo
42837all-target-libgo: configure-target-libgo
0aed8855 42838 @: $(MAKE); $(unstage)
b40e3958
L
42839 @r=`${PWD_COMMAND}`; export r; \
42840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42841 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42842 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 42843 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42844 $(TARGET-target-libgo))
42845@endif target-libgo
3866be5d 42846
a7254363
PB
42847
42848
d545f33b
PB
42849
42850
a90ef4bf
JM
42851.PHONY: check-target-libgo maybe-check-target-libgo
42852maybe-check-target-libgo:
42853@if target-libgo
42854maybe-check-target-libgo: check-target-libgo
3866be5d 42855
a90ef4bf 42856check-target-libgo:
0aed8855 42857 @: $(MAKE); $(unstage)
4fa63067
NN
42858 @r=`${PWD_COMMAND}`; export r; \
42859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42860 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42861 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 42862 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 42863
a90ef4bf 42864@endif target-libgo
3866be5d 42865
a90ef4bf
JM
42866.PHONY: install-target-libgo maybe-install-target-libgo
42867maybe-install-target-libgo:
42868@if target-libgo
42869maybe-install-target-libgo: install-target-libgo
16ae0395 42870
a90ef4bf 42871install-target-libgo: installdirs
0aed8855 42872 @: $(MAKE); $(unstage)
4fa63067
NN
42873 @r=`${PWD_COMMAND}`; export r; \
42874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42875 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42876 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 42877 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 42878
a90ef4bf 42879@endif target-libgo
3866be5d 42880
a90ef4bf
JM
42881.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
42882maybe-install-strip-target-libgo:
42883@if target-libgo
42884maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 42885
a90ef4bf 42886install-strip-target-libgo: installdirs
9b980aa1
RW
42887 @: $(MAKE); $(unstage)
42888 @r=`${PWD_COMMAND}`; export r; \
42889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42890 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42891 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
42892 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42893
a90ef4bf 42894@endif target-libgo
9b980aa1 42895
56a8fe78 42896# Other targets (info, dvi, pdf, etc.)
4fa63067 42897
a90ef4bf
JM
42898.PHONY: maybe-info-target-libgo info-target-libgo
42899maybe-info-target-libgo:
42900@if target-libgo
42901maybe-info-target-libgo: info-target-libgo
4fa63067 42902
a90ef4bf
JM
42903info-target-libgo: \
42904 configure-target-libgo
0aed8855 42905 @: $(MAKE); $(unstage)
22121df0 42906 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
42907 r=`${PWD_COMMAND}`; export r; \
42908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42909 $(NORMAL_TARGET_EXPORTS) \
22121df0 42910 echo "Doing info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42911 for flag in $(EXTRA_TARGET_FLAGS); do \
42912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42913 done; \
a90ef4bf 42914 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42917 "RANLIB=$${RANLIB}" \
0c24b341 42918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42919 info) \
e2b9e2dc
NN
42920 || exit 1
42921
a90ef4bf 42922@endif target-libgo
3866be5d 42923
a90ef4bf
JM
42924.PHONY: maybe-dvi-target-libgo dvi-target-libgo
42925maybe-dvi-target-libgo:
42926@if target-libgo
42927maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 42928
a90ef4bf
JM
42929dvi-target-libgo: \
42930 configure-target-libgo
0aed8855 42931 @: $(MAKE); $(unstage)
22121df0 42932 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 42933 r=`${PWD_COMMAND}`; export r; \
b40e3958 42934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42935 $(NORMAL_TARGET_EXPORTS) \
22121df0 42936 echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42937 for flag in $(EXTRA_TARGET_FLAGS); do \
42938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42939 done; \
a90ef4bf 42940 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42943 "RANLIB=$${RANLIB}" \
0c24b341 42944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42945 dvi) \
4fa63067 42946 || exit 1
3866be5d 42947
a90ef4bf 42948@endif target-libgo
3866be5d 42949
a90ef4bf
JM
42950.PHONY: maybe-pdf-target-libgo pdf-target-libgo
42951maybe-pdf-target-libgo:
42952@if target-libgo
42953maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 42954
a90ef4bf
JM
42955pdf-target-libgo: \
42956 configure-target-libgo
56a8fe78 42957 @: $(MAKE); $(unstage)
22121df0 42958 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
56a8fe78
DD
42959 r=`${PWD_COMMAND}`; export r; \
42960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42961 $(NORMAL_TARGET_EXPORTS) \
22121df0 42962 echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \
56a8fe78
DD
42963 for flag in $(EXTRA_TARGET_FLAGS); do \
42964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42965 done; \
a90ef4bf 42966 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
42967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42969 "RANLIB=$${RANLIB}" \
0c24b341 42970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42971 pdf) \
42972 || exit 1
42973
a90ef4bf 42974@endif target-libgo
56a8fe78 42975
a90ef4bf
JM
42976.PHONY: maybe-html-target-libgo html-target-libgo
42977maybe-html-target-libgo:
42978@if target-libgo
42979maybe-html-target-libgo: html-target-libgo
6d389afc 42980
a90ef4bf
JM
42981html-target-libgo: \
42982 configure-target-libgo
0aed8855 42983 @: $(MAKE); $(unstage)
22121df0 42984 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
6d389afc
MS
42985 r=`${PWD_COMMAND}`; export r; \
42986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42987 $(NORMAL_TARGET_EXPORTS) \
22121df0 42988 echo "Doing html in $(TARGET_SUBDIR)/libgo"; \
6d389afc
MS
42989 for flag in $(EXTRA_TARGET_FLAGS); do \
42990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42991 done; \
a90ef4bf 42992 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
42993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42995 "RANLIB=$${RANLIB}" \
0c24b341 42996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42997 html) \
42998 || exit 1
42999
a90ef4bf 43000@endif target-libgo
6d389afc 43001
a90ef4bf
JM
43002.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
43003maybe-TAGS-target-libgo:
43004@if target-libgo
43005maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 43006
a90ef4bf
JM
43007TAGS-target-libgo: \
43008 configure-target-libgo
0aed8855 43009 @: $(MAKE); $(unstage)
22121df0 43010 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43011 r=`${PWD_COMMAND}`; export r; \
b40e3958 43012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43013 $(NORMAL_TARGET_EXPORTS) \
22121df0 43014 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43015 for flag in $(EXTRA_TARGET_FLAGS); do \
43016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43017 done; \
a90ef4bf 43018 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43021 "RANLIB=$${RANLIB}" \
0c24b341 43022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43023 TAGS) \
4fa63067 43024 || exit 1
3866be5d 43025
a90ef4bf 43026@endif target-libgo
3866be5d 43027
a90ef4bf
JM
43028.PHONY: maybe-install-info-target-libgo install-info-target-libgo
43029maybe-install-info-target-libgo:
43030@if target-libgo
43031maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 43032
a90ef4bf
JM
43033install-info-target-libgo: \
43034 configure-target-libgo \
43035 info-target-libgo
0aed8855 43036 @: $(MAKE); $(unstage)
22121df0 43037 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
43038 r=`${PWD_COMMAND}`; export r; \
43039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43040 $(NORMAL_TARGET_EXPORTS) \
22121df0 43041 echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43042 for flag in $(EXTRA_TARGET_FLAGS); do \
43043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43044 done; \
a90ef4bf 43045 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43048 "RANLIB=$${RANLIB}" \
0c24b341 43049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43050 install-info) \
e2b9e2dc
NN
43051 || exit 1
43052
a90ef4bf 43053@endif target-libgo
4fa63067 43054
a90ef4bf
JM
43055.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
43056maybe-install-pdf-target-libgo:
43057@if target-libgo
43058maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 43059
a90ef4bf
JM
43060install-pdf-target-libgo: \
43061 configure-target-libgo \
43062 pdf-target-libgo
a3ca38d2 43063 @: $(MAKE); $(unstage)
22121df0 43064 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
a3ca38d2
DD
43065 r=`${PWD_COMMAND}`; export r; \
43066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43067 $(NORMAL_TARGET_EXPORTS) \
22121df0 43068 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \
a3ca38d2
DD
43069 for flag in $(EXTRA_TARGET_FLAGS); do \
43070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43071 done; \
a90ef4bf 43072 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
43073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43075 "RANLIB=$${RANLIB}" \
0c24b341 43076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43077 install-pdf) \
43078 || exit 1
43079
a90ef4bf 43080@endif target-libgo
a3ca38d2 43081
a90ef4bf
JM
43082.PHONY: maybe-install-html-target-libgo install-html-target-libgo
43083maybe-install-html-target-libgo:
43084@if target-libgo
43085maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 43086
a90ef4bf
JM
43087install-html-target-libgo: \
43088 configure-target-libgo \
43089 html-target-libgo
108a6f8e 43090 @: $(MAKE); $(unstage)
22121df0 43091 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
108a6f8e
CD
43092 r=`${PWD_COMMAND}`; export r; \
43093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43094 $(NORMAL_TARGET_EXPORTS) \
22121df0 43095 echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \
108a6f8e
CD
43096 for flag in $(EXTRA_TARGET_FLAGS); do \
43097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43098 done; \
a90ef4bf 43099 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
43100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43102 "RANLIB=$${RANLIB}" \
0c24b341 43103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43104 install-html) \
43105 || exit 1
43106
a90ef4bf 43107@endif target-libgo
108a6f8e 43108
a90ef4bf
JM
43109.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
43110maybe-installcheck-target-libgo:
43111@if target-libgo
43112maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 43113
a90ef4bf
JM
43114installcheck-target-libgo: \
43115 configure-target-libgo
0aed8855 43116 @: $(MAKE); $(unstage)
22121df0 43117 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43118 r=`${PWD_COMMAND}`; export r; \
b40e3958 43119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43120 $(NORMAL_TARGET_EXPORTS) \
22121df0 43121 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43122 for flag in $(EXTRA_TARGET_FLAGS); do \
43123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43124 done; \
a90ef4bf 43125 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43128 "RANLIB=$${RANLIB}" \
0c24b341 43129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43130 installcheck) \
4fa63067 43131 || exit 1
3866be5d 43132
a90ef4bf 43133@endif target-libgo
3866be5d 43134
a90ef4bf
JM
43135.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
43136maybe-mostlyclean-target-libgo:
43137@if target-libgo
43138maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 43139
a90ef4bf 43140mostlyclean-target-libgo:
0aed8855 43141 @: $(MAKE); $(unstage)
22121df0 43142 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43143 r=`${PWD_COMMAND}`; export r; \
b40e3958 43144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43145 $(NORMAL_TARGET_EXPORTS) \
22121df0 43146 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43147 for flag in $(EXTRA_TARGET_FLAGS); do \
43148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43149 done; \
a90ef4bf 43150 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43153 "RANLIB=$${RANLIB}" \
0c24b341 43154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43155 mostlyclean) \
4fa63067 43156 || exit 1
3866be5d 43157
a90ef4bf 43158@endif target-libgo
3866be5d 43159
a90ef4bf
JM
43160.PHONY: maybe-clean-target-libgo clean-target-libgo
43161maybe-clean-target-libgo:
43162@if target-libgo
43163maybe-clean-target-libgo: clean-target-libgo
16ae0395 43164
a90ef4bf 43165clean-target-libgo:
0aed8855 43166 @: $(MAKE); $(unstage)
22121df0 43167 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43168 r=`${PWD_COMMAND}`; export r; \
b40e3958 43169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43170 $(NORMAL_TARGET_EXPORTS) \
22121df0 43171 echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43172 for flag in $(EXTRA_TARGET_FLAGS); do \
43173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43174 done; \
a90ef4bf 43175 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43178 "RANLIB=$${RANLIB}" \
0c24b341 43179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43180 clean) \
4fa63067 43181 || exit 1
3866be5d 43182
a90ef4bf 43183@endif target-libgo
3866be5d 43184
a90ef4bf
JM
43185.PHONY: maybe-distclean-target-libgo distclean-target-libgo
43186maybe-distclean-target-libgo:
43187@if target-libgo
43188maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 43189
a90ef4bf 43190distclean-target-libgo:
0aed8855 43191 @: $(MAKE); $(unstage)
22121df0 43192 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
43193 r=`${PWD_COMMAND}`; export r; \
43194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43195 $(NORMAL_TARGET_EXPORTS) \
22121df0 43196 echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43197 for flag in $(EXTRA_TARGET_FLAGS); do \
43198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43199 done; \
a90ef4bf 43200 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43203 "RANLIB=$${RANLIB}" \
0c24b341 43204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43205 distclean) \
e2b9e2dc
NN
43206 || exit 1
43207
a90ef4bf 43208@endif target-libgo
3866be5d 43209
a90ef4bf
JM
43210.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
43211maybe-maintainer-clean-target-libgo:
43212@if target-libgo
43213maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 43214
a90ef4bf 43215maintainer-clean-target-libgo:
0aed8855 43216 @: $(MAKE); $(unstage)
22121df0 43217 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43218 r=`${PWD_COMMAND}`; export r; \
b40e3958 43219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43220 $(NORMAL_TARGET_EXPORTS) \
22121df0 43221 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43222 for flag in $(EXTRA_TARGET_FLAGS); do \
43223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43224 done; \
a90ef4bf 43225 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43228 "RANLIB=$${RANLIB}" \
0c24b341 43229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43230 maintainer-clean) \
4fa63067 43231 || exit 1
3866be5d 43232
a90ef4bf 43233@endif target-libgo
3866be5d 43234
16ae0395 43235
3866be5d 43236
e90269c8 43237
a7254363 43238
a90ef4bf
JM
43239.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
43240maybe-configure-target-libtermcap:
4f0ef2d8 43241@if gcc-bootstrap
a90ef4bf 43242configure-target-libtermcap: stage_current
4f0ef2d8 43243@endif gcc-bootstrap
a90ef4bf
JM
43244@if target-libtermcap
43245maybe-configure-target-libtermcap: configure-target-libtermcap
43246configure-target-libtermcap:
0aed8855
PB
43247 @: $(MAKE); $(unstage)
43248 @r=`${PWD_COMMAND}`; export r; \
43249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43250 echo "Checking multilib configuration for libtermcap..."; \
22121df0
L
43251 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
43252 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43253 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
43254 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
43255 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 43256 else \
a90ef4bf
JM
43257 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
43258 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
43259 fi; \
43260 else \
a90ef4bf 43261 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 43262 fi; \
a90ef4bf 43263 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 43264 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
1f53ca9a 43265 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43266 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
43267 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 43268 case $(srcdir) in \
b00612cc 43269 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43270 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 43271 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 43272 esac; \
1b6c0831 43273 module_srcdir=libtermcap; \
4fa63067 43274 rm -f no-such-file || : ; \
1b6c0831
L
43275 CONFIG_SITE=no-such-file $(SHELL) \
43276 $$s/$$module_srcdir/configure \
43277 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43278 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43279 --target=${target_alias} \
e2b9e2dc 43280 || exit 1
a90ef4bf 43281@endif target-libtermcap
e2b9e2dc 43282
a7254363
PB
43283
43284
d545f33b
PB
43285
43286
a90ef4bf
JM
43287.PHONY: all-target-libtermcap maybe-all-target-libtermcap
43288maybe-all-target-libtermcap:
4f0ef2d8 43289@if gcc-bootstrap
a90ef4bf 43290all-target-libtermcap: stage_current
4f0ef2d8 43291@endif gcc-bootstrap
a90ef4bf
JM
43292@if target-libtermcap
43293TARGET-target-libtermcap=all
43294maybe-all-target-libtermcap: all-target-libtermcap
43295all-target-libtermcap: configure-target-libtermcap
0aed8855 43296 @: $(MAKE); $(unstage)
b40e3958
L
43297 @r=`${PWD_COMMAND}`; export r; \
43298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43299 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43300 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 43301 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43302 $(TARGET-target-libtermcap))
43303@endif target-libtermcap
e393202e 43304
a7254363
PB
43305
43306
d545f33b
PB
43307
43308
a90ef4bf
JM
43309.PHONY: check-target-libtermcap maybe-check-target-libtermcap
43310maybe-check-target-libtermcap:
43311@if target-libtermcap
43312maybe-check-target-libtermcap: check-target-libtermcap
e393202e 43313
4fa63067 43314# Dummy target for uncheckable module.
a90ef4bf 43315check-target-libtermcap:
e393202e 43316
a90ef4bf 43317@endif target-libtermcap
e393202e 43318
a90ef4bf
JM
43319.PHONY: install-target-libtermcap maybe-install-target-libtermcap
43320maybe-install-target-libtermcap:
43321@if target-libtermcap
43322maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 43323
a90ef4bf 43324install-target-libtermcap: installdirs
0aed8855 43325 @: $(MAKE); $(unstage)
b40e3958
L
43326 @r=`${PWD_COMMAND}`; export r; \
43327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43328 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43329 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 43330 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43331
a90ef4bf 43332@endif target-libtermcap
56a8fe78 43333
a90ef4bf
JM
43334.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
43335maybe-install-strip-target-libtermcap:
43336@if target-libtermcap
43337maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 43338
a90ef4bf 43339install-strip-target-libtermcap: installdirs
0aed8855 43340 @: $(MAKE); $(unstage)
a90ef4bf 43341 @r=`${PWD_COMMAND}`; export r; \
6d389afc 43342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43343 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43344 (cd $(TARGET_SUBDIR)/libtermcap && \
43345 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 43346
a90ef4bf 43347@endif target-libtermcap
6d389afc 43348
a90ef4bf 43349# Other targets (info, dvi, pdf, etc.)
16ae0395 43350
a90ef4bf
JM
43351.PHONY: maybe-info-target-libtermcap info-target-libtermcap
43352maybe-info-target-libtermcap:
43353@if target-libtermcap
43354maybe-info-target-libtermcap: info-target-libtermcap
43355
43356info-target-libtermcap: \
43357 configure-target-libtermcap
0aed8855 43358 @: $(MAKE); $(unstage)
22121df0 43359 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 43360 r=`${PWD_COMMAND}`; export r; \
b40e3958 43361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43362 $(NORMAL_TARGET_EXPORTS) \
22121df0 43363 echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43364 for flag in $(EXTRA_TARGET_FLAGS); do \
43365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43366 done; \
a90ef4bf 43367 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43370 "RANLIB=$${RANLIB}" \
0c24b341 43371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43372 info) \
4fa63067 43373 || exit 1
ce5b542e 43374
a90ef4bf 43375@endif target-libtermcap
ce5b542e 43376
a90ef4bf
JM
43377.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
43378maybe-dvi-target-libtermcap:
43379@if target-libtermcap
43380maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 43381
a90ef4bf
JM
43382dvi-target-libtermcap: \
43383 configure-target-libtermcap
0aed8855 43384 @: $(MAKE); $(unstage)
22121df0 43385 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
43386 r=`${PWD_COMMAND}`; export r; \
43387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43388 $(NORMAL_TARGET_EXPORTS) \
22121df0 43389 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43390 for flag in $(EXTRA_TARGET_FLAGS); do \
43391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43392 done; \
a90ef4bf 43393 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43396 "RANLIB=$${RANLIB}" \
0c24b341 43397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43398 dvi) \
e2b9e2dc
NN
43399 || exit 1
43400
a90ef4bf 43401@endif target-libtermcap
e393202e 43402
a90ef4bf
JM
43403.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
43404maybe-pdf-target-libtermcap:
43405@if target-libtermcap
43406maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 43407
a90ef4bf
JM
43408pdf-target-libtermcap: \
43409 configure-target-libtermcap
a3ca38d2 43410 @: $(MAKE); $(unstage)
22121df0 43411 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
a3ca38d2
DD
43412 r=`${PWD_COMMAND}`; export r; \
43413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43414 $(NORMAL_TARGET_EXPORTS) \
22121df0 43415 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \
a3ca38d2
DD
43416 for flag in $(EXTRA_TARGET_FLAGS); do \
43417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43418 done; \
a90ef4bf 43419 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
43420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43422 "RANLIB=$${RANLIB}" \
0c24b341 43423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43424 pdf) \
a3ca38d2
DD
43425 || exit 1
43426
a90ef4bf 43427@endif target-libtermcap
a3ca38d2 43428
a90ef4bf
JM
43429.PHONY: maybe-html-target-libtermcap html-target-libtermcap
43430maybe-html-target-libtermcap:
43431@if target-libtermcap
43432maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 43433
a90ef4bf
JM
43434html-target-libtermcap: \
43435 configure-target-libtermcap
108a6f8e 43436 @: $(MAKE); $(unstage)
22121df0 43437 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
108a6f8e
CD
43438 r=`${PWD_COMMAND}`; export r; \
43439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43440 $(NORMAL_TARGET_EXPORTS) \
22121df0 43441 echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \
108a6f8e
CD
43442 for flag in $(EXTRA_TARGET_FLAGS); do \
43443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43444 done; \
a90ef4bf 43445 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
43446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43448 "RANLIB=$${RANLIB}" \
0c24b341 43449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43450 html) \
108a6f8e
CD
43451 || exit 1
43452
a90ef4bf 43453@endif target-libtermcap
108a6f8e 43454
a90ef4bf
JM
43455.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
43456maybe-TAGS-target-libtermcap:
43457@if target-libtermcap
43458maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 43459
a90ef4bf
JM
43460TAGS-target-libtermcap: \
43461 configure-target-libtermcap
0aed8855 43462 @: $(MAKE); $(unstage)
22121df0 43463 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
43464 r=`${PWD_COMMAND}`; export r; \
43465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43466 $(NORMAL_TARGET_EXPORTS) \
22121df0 43467 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43468 for flag in $(EXTRA_TARGET_FLAGS); do \
43469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43470 done; \
a90ef4bf 43471 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43474 "RANLIB=$${RANLIB}" \
0c24b341 43475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43476 TAGS) \
4fa63067 43477 || exit 1
3866be5d 43478
a90ef4bf 43479@endif target-libtermcap
3866be5d 43480
a90ef4bf
JM
43481.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
43482maybe-install-info-target-libtermcap:
43483@if target-libtermcap
43484maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 43485
a90ef4bf
JM
43486install-info-target-libtermcap: \
43487 configure-target-libtermcap \
43488 info-target-libtermcap
0aed8855 43489 @: $(MAKE); $(unstage)
22121df0 43490 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 43491 r=`${PWD_COMMAND}`; export r; \
b40e3958 43492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43493 $(NORMAL_TARGET_EXPORTS) \
22121df0 43494 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43495 for flag in $(EXTRA_TARGET_FLAGS); do \
43496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43497 done; \
a90ef4bf 43498 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43501 "RANLIB=$${RANLIB}" \
0c24b341 43502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43503 install-info) \
4fa63067 43504 || exit 1
e393202e 43505
a90ef4bf 43506@endif target-libtermcap
3866be5d 43507
a90ef4bf
JM
43508.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
43509maybe-install-pdf-target-libtermcap:
43510@if target-libtermcap
43511maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 43512
a90ef4bf
JM
43513install-pdf-target-libtermcap: \
43514 configure-target-libtermcap \
43515 pdf-target-libtermcap
0aed8855 43516 @: $(MAKE); $(unstage)
22121df0 43517 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
43518 r=`${PWD_COMMAND}`; export r; \
43519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43520 $(NORMAL_TARGET_EXPORTS) \
22121df0 43521 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43522 for flag in $(EXTRA_TARGET_FLAGS); do \
43523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43524 done; \
a90ef4bf 43525 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43528 "RANLIB=$${RANLIB}" \
0c24b341 43529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43530 install-pdf) \
e2b9e2dc
NN
43531 || exit 1
43532
a90ef4bf 43533@endif target-libtermcap
e393202e 43534
a90ef4bf
JM
43535.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
43536maybe-install-html-target-libtermcap:
43537@if target-libtermcap
43538maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 43539
a90ef4bf
JM
43540install-html-target-libtermcap: \
43541 configure-target-libtermcap \
43542 html-target-libtermcap
0aed8855 43543 @: $(MAKE); $(unstage)
22121df0 43544 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
43545 r=`${PWD_COMMAND}`; export r; \
43546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43547 $(NORMAL_TARGET_EXPORTS) \
22121df0 43548 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43549 for flag in $(EXTRA_TARGET_FLAGS); do \
43550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43551 done; \
a90ef4bf 43552 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43555 "RANLIB=$${RANLIB}" \
0c24b341 43556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43557 install-html) \
4fa63067 43558 || exit 1
3866be5d 43559
a90ef4bf 43560@endif target-libtermcap
3866be5d 43561
a90ef4bf
JM
43562.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
43563maybe-installcheck-target-libtermcap:
43564@if target-libtermcap
43565maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 43566
a90ef4bf
JM
43567installcheck-target-libtermcap: \
43568 configure-target-libtermcap
0aed8855 43569 @: $(MAKE); $(unstage)
22121df0 43570 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 43571 r=`${PWD_COMMAND}`; export r; \
b40e3958 43572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43573 $(NORMAL_TARGET_EXPORTS) \
22121df0 43574 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43575 for flag in $(EXTRA_TARGET_FLAGS); do \
43576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43577 done; \
a90ef4bf 43578 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43581 "RANLIB=$${RANLIB}" \
0c24b341 43582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43583 installcheck) \
4fa63067 43584 || exit 1
3866be5d 43585
a90ef4bf
JM
43586@endif target-libtermcap
43587
43588.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
43589maybe-mostlyclean-target-libtermcap:
43590@if target-libtermcap
43591maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
43592
43593# libtermcap doesn't support mostlyclean.
43594mostlyclean-target-libtermcap:
43595
43596@endif target-libtermcap
3866be5d 43597
a90ef4bf
JM
43598.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
43599maybe-clean-target-libtermcap:
43600@if target-libtermcap
43601maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 43602
a90ef4bf
JM
43603# libtermcap doesn't support clean.
43604clean-target-libtermcap:
15723a45 43605
a90ef4bf 43606@endif target-libtermcap
e90269c8 43607
a90ef4bf
JM
43608.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
43609maybe-distclean-target-libtermcap:
43610@if target-libtermcap
43611maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 43612
a90ef4bf
JM
43613# libtermcap doesn't support distclean.
43614distclean-target-libtermcap:
43615
43616@endif target-libtermcap
43617
43618.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
43619maybe-maintainer-clean-target-libtermcap:
43620@if target-libtermcap
43621maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
43622
43623# libtermcap doesn't support maintainer-clean.
43624maintainer-clean-target-libtermcap:
43625
43626@endif target-libtermcap
43627
43628
43629
43630
43631
43632.PHONY: configure-target-winsup maybe-configure-target-winsup
43633maybe-configure-target-winsup:
4f0ef2d8 43634@if gcc-bootstrap
a90ef4bf 43635configure-target-winsup: stage_current
4f0ef2d8 43636@endif gcc-bootstrap
a90ef4bf
JM
43637@if target-winsup
43638maybe-configure-target-winsup: configure-target-winsup
43639configure-target-winsup:
0aed8855
PB
43640 @: $(MAKE); $(unstage)
43641 @r=`${PWD_COMMAND}`; export r; \
43642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43643 echo "Checking multilib configuration for winsup..."; \
22121df0
L
43644 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
43645 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43646 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
43647 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
43648 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 43649 else \
a90ef4bf
JM
43650 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
43651 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
43652 fi; \
43653 else \
a90ef4bf 43654 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 43655 fi; \
a90ef4bf 43656 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
22121df0 43657 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
1f53ca9a 43658 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43659 echo Configuring in $(TARGET_SUBDIR)/winsup; \
43660 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 43661 case $(srcdir) in \
b00612cc 43662 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43663 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 43664 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43665 esac; \
1b6c0831 43666 module_srcdir=winsup; \
bba45b8b 43667 rm -f no-such-file || : ; \
1b6c0831
L
43668 CONFIG_SITE=no-such-file $(SHELL) \
43669 $$s/$$module_srcdir/configure \
43670 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43671 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43672 --target=${target_alias} \
bba45b8b 43673 || exit 1
a90ef4bf 43674@endif target-winsup
e393202e 43675
a7254363
PB
43676
43677
d545f33b
PB
43678
43679
a90ef4bf
JM
43680.PHONY: all-target-winsup maybe-all-target-winsup
43681maybe-all-target-winsup:
4f0ef2d8 43682@if gcc-bootstrap
a90ef4bf 43683all-target-winsup: stage_current
4f0ef2d8 43684@endif gcc-bootstrap
a90ef4bf
JM
43685@if target-winsup
43686TARGET-target-winsup=all
43687maybe-all-target-winsup: all-target-winsup
43688all-target-winsup: configure-target-winsup
0aed8855 43689 @: $(MAKE); $(unstage)
b40e3958
L
43690 @r=`${PWD_COMMAND}`; export r; \
43691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43692 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43693 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 43694 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43695 $(TARGET-target-winsup))
43696@endif target-winsup
e393202e 43697
a7254363
PB
43698
43699
d545f33b
PB
43700
43701
a90ef4bf
JM
43702.PHONY: check-target-winsup maybe-check-target-winsup
43703maybe-check-target-winsup:
43704@if target-winsup
43705maybe-check-target-winsup: check-target-winsup
16ae0395 43706
a90ef4bf 43707check-target-winsup:
0aed8855 43708 @: $(MAKE); $(unstage)
b40e3958
L
43709 @r=`${PWD_COMMAND}`; export r; \
43710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43711 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43712 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 43713 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 43714
a90ef4bf 43715@endif target-winsup
e393202e 43716
a90ef4bf
JM
43717.PHONY: install-target-winsup maybe-install-target-winsup
43718maybe-install-target-winsup:
43719@if target-winsup
43720maybe-install-target-winsup: install-target-winsup
4fa63067 43721
a90ef4bf 43722install-target-winsup: installdirs
0aed8855 43723 @: $(MAKE); $(unstage)
4fa63067
NN
43724 @r=`${PWD_COMMAND}`; export r; \
43725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43726 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43727 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 43728 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 43729
a90ef4bf 43730@endif target-winsup
4fa63067 43731
a90ef4bf
JM
43732.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
43733maybe-install-strip-target-winsup:
43734@if target-winsup
43735maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 43736
a90ef4bf 43737install-strip-target-winsup: installdirs
9b980aa1
RW
43738 @: $(MAKE); $(unstage)
43739 @r=`${PWD_COMMAND}`; export r; \
43740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43741 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43742 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
43743 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43744
a90ef4bf 43745@endif target-winsup
9b980aa1 43746
56a8fe78 43747# Other targets (info, dvi, pdf, etc.)
4fa63067 43748
a90ef4bf
JM
43749.PHONY: maybe-info-target-winsup info-target-winsup
43750maybe-info-target-winsup:
43751@if target-winsup
43752maybe-info-target-winsup: info-target-winsup
4fa63067 43753
a90ef4bf
JM
43754info-target-winsup: \
43755 configure-target-winsup
0aed8855 43756 @: $(MAKE); $(unstage)
22121df0 43757 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43758 r=`${PWD_COMMAND}`; export r; \
43759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43760 $(NORMAL_TARGET_EXPORTS) \
22121df0 43761 echo "Doing info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43762 for flag in $(EXTRA_TARGET_FLAGS); do \
43763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43764 done; \
a90ef4bf 43765 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43768 "RANLIB=$${RANLIB}" \
0c24b341 43769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43770 info) \
4fa63067
NN
43771 || exit 1
43772
a90ef4bf 43773@endif target-winsup
4fa63067 43774
a90ef4bf
JM
43775.PHONY: maybe-dvi-target-winsup dvi-target-winsup
43776maybe-dvi-target-winsup:
43777@if target-winsup
43778maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 43779
a90ef4bf
JM
43780dvi-target-winsup: \
43781 configure-target-winsup
0aed8855 43782 @: $(MAKE); $(unstage)
22121df0 43783 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43784 r=`${PWD_COMMAND}`; export r; \
43785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43786 $(NORMAL_TARGET_EXPORTS) \
22121df0 43787 echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43788 for flag in $(EXTRA_TARGET_FLAGS); do \
43789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43790 done; \
a90ef4bf 43791 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43794 "RANLIB=$${RANLIB}" \
0c24b341 43795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43796 dvi) \
4fa63067
NN
43797 || exit 1
43798
a90ef4bf 43799@endif target-winsup
4fa63067 43800
a90ef4bf
JM
43801.PHONY: maybe-pdf-target-winsup pdf-target-winsup
43802maybe-pdf-target-winsup:
43803@if target-winsup
43804maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 43805
a90ef4bf
JM
43806pdf-target-winsup: \
43807 configure-target-winsup
56a8fe78 43808 @: $(MAKE); $(unstage)
22121df0 43809 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
56a8fe78
DD
43810 r=`${PWD_COMMAND}`; export r; \
43811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43812 $(NORMAL_TARGET_EXPORTS) \
22121df0 43813 echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \
56a8fe78
DD
43814 for flag in $(EXTRA_TARGET_FLAGS); do \
43815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43816 done; \
a90ef4bf 43817 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
43818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43820 "RANLIB=$${RANLIB}" \
0c24b341 43821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43822 pdf) \
43823 || exit 1
43824
a90ef4bf 43825@endif target-winsup
56a8fe78 43826
a90ef4bf
JM
43827.PHONY: maybe-html-target-winsup html-target-winsup
43828maybe-html-target-winsup:
43829@if target-winsup
43830maybe-html-target-winsup: html-target-winsup
6d389afc 43831
a90ef4bf
JM
43832html-target-winsup: \
43833 configure-target-winsup
0aed8855 43834 @: $(MAKE); $(unstage)
22121df0 43835 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
6d389afc
MS
43836 r=`${PWD_COMMAND}`; export r; \
43837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43838 $(NORMAL_TARGET_EXPORTS) \
22121df0 43839 echo "Doing html in $(TARGET_SUBDIR)/winsup"; \
6d389afc
MS
43840 for flag in $(EXTRA_TARGET_FLAGS); do \
43841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43842 done; \
a90ef4bf 43843 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
43844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43846 "RANLIB=$${RANLIB}" \
0c24b341 43847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43848 html) \
43849 || exit 1
43850
a90ef4bf 43851@endif target-winsup
6d389afc 43852
a90ef4bf
JM
43853.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
43854maybe-TAGS-target-winsup:
43855@if target-winsup
43856maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 43857
a90ef4bf
JM
43858TAGS-target-winsup: \
43859 configure-target-winsup
0aed8855 43860 @: $(MAKE); $(unstage)
22121df0 43861 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43862 r=`${PWD_COMMAND}`; export r; \
43863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43864 $(NORMAL_TARGET_EXPORTS) \
22121df0 43865 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43866 for flag in $(EXTRA_TARGET_FLAGS); do \
43867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43868 done; \
a90ef4bf 43869 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43872 "RANLIB=$${RANLIB}" \
0c24b341 43873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43874 TAGS) \
4fa63067
NN
43875 || exit 1
43876
a90ef4bf 43877@endif target-winsup
4fa63067 43878
a90ef4bf
JM
43879.PHONY: maybe-install-info-target-winsup install-info-target-winsup
43880maybe-install-info-target-winsup:
43881@if target-winsup
43882maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 43883
a90ef4bf
JM
43884install-info-target-winsup: \
43885 configure-target-winsup \
43886 info-target-winsup
0aed8855 43887 @: $(MAKE); $(unstage)
22121df0 43888 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43889 r=`${PWD_COMMAND}`; export r; \
43890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43891 $(NORMAL_TARGET_EXPORTS) \
22121df0 43892 echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43893 for flag in $(EXTRA_TARGET_FLAGS); do \
43894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43895 done; \
a90ef4bf 43896 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43899 "RANLIB=$${RANLIB}" \
0c24b341 43900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43901 install-info) \
4fa63067
NN
43902 || exit 1
43903
a90ef4bf 43904@endif target-winsup
4fa63067 43905
a90ef4bf
JM
43906.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
43907maybe-install-pdf-target-winsup:
43908@if target-winsup
43909maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 43910
a90ef4bf
JM
43911install-pdf-target-winsup: \
43912 configure-target-winsup \
43913 pdf-target-winsup
a3ca38d2 43914 @: $(MAKE); $(unstage)
22121df0 43915 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
a3ca38d2
DD
43916 r=`${PWD_COMMAND}`; export r; \
43917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43918 $(NORMAL_TARGET_EXPORTS) \
22121df0 43919 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \
a3ca38d2
DD
43920 for flag in $(EXTRA_TARGET_FLAGS); do \
43921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43922 done; \
a90ef4bf 43923 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
43924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43926 "RANLIB=$${RANLIB}" \
0c24b341 43927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43928 install-pdf) \
43929 || exit 1
43930
a90ef4bf 43931@endif target-winsup
a3ca38d2 43932
a90ef4bf
JM
43933.PHONY: maybe-install-html-target-winsup install-html-target-winsup
43934maybe-install-html-target-winsup:
43935@if target-winsup
43936maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 43937
a90ef4bf
JM
43938install-html-target-winsup: \
43939 configure-target-winsup \
43940 html-target-winsup
108a6f8e 43941 @: $(MAKE); $(unstage)
22121df0 43942 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
108a6f8e
CD
43943 r=`${PWD_COMMAND}`; export r; \
43944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43945 $(NORMAL_TARGET_EXPORTS) \
22121df0 43946 echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \
108a6f8e
CD
43947 for flag in $(EXTRA_TARGET_FLAGS); do \
43948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43949 done; \
a90ef4bf 43950 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
43951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43953 "RANLIB=$${RANLIB}" \
0c24b341 43954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43955 install-html) \
43956 || exit 1
43957
a90ef4bf 43958@endif target-winsup
108a6f8e 43959
a90ef4bf
JM
43960.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
43961maybe-installcheck-target-winsup:
43962@if target-winsup
43963maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 43964
a90ef4bf
JM
43965installcheck-target-winsup: \
43966 configure-target-winsup
0aed8855 43967 @: $(MAKE); $(unstage)
22121df0 43968 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43969 r=`${PWD_COMMAND}`; export r; \
43970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43971 $(NORMAL_TARGET_EXPORTS) \
22121df0 43972 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43973 for flag in $(EXTRA_TARGET_FLAGS); do \
43974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43975 done; \
a90ef4bf 43976 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43979 "RANLIB=$${RANLIB}" \
0c24b341 43980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43981 installcheck) \
4fa63067
NN
43982 || exit 1
43983
a90ef4bf 43984@endif target-winsup
4fa63067 43985
a90ef4bf
JM
43986.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
43987maybe-mostlyclean-target-winsup:
43988@if target-winsup
43989maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 43990
a90ef4bf 43991mostlyclean-target-winsup:
0aed8855 43992 @: $(MAKE); $(unstage)
22121df0 43993 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43994 r=`${PWD_COMMAND}`; export r; \
43995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43996 $(NORMAL_TARGET_EXPORTS) \
22121df0 43997 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43998 for flag in $(EXTRA_TARGET_FLAGS); do \
43999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44000 done; \
a90ef4bf 44001 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44004 "RANLIB=$${RANLIB}" \
0c24b341 44005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44006 mostlyclean) \
4fa63067
NN
44007 || exit 1
44008
a90ef4bf 44009@endif target-winsup
4fa63067 44010
a90ef4bf
JM
44011.PHONY: maybe-clean-target-winsup clean-target-winsup
44012maybe-clean-target-winsup:
44013@if target-winsup
44014maybe-clean-target-winsup: clean-target-winsup
4fa63067 44015
a90ef4bf 44016clean-target-winsup:
0aed8855 44017 @: $(MAKE); $(unstage)
22121df0 44018 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44019 r=`${PWD_COMMAND}`; export r; \
44020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44021 $(NORMAL_TARGET_EXPORTS) \
22121df0 44022 echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44023 for flag in $(EXTRA_TARGET_FLAGS); do \
44024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44025 done; \
a90ef4bf 44026 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44029 "RANLIB=$${RANLIB}" \
0c24b341 44030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44031 clean) \
4fa63067
NN
44032 || exit 1
44033
a90ef4bf 44034@endif target-winsup
4fa63067 44035
a90ef4bf
JM
44036.PHONY: maybe-distclean-target-winsup distclean-target-winsup
44037maybe-distclean-target-winsup:
44038@if target-winsup
44039maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 44040
a90ef4bf 44041distclean-target-winsup:
0aed8855 44042 @: $(MAKE); $(unstage)
22121df0 44043 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44044 r=`${PWD_COMMAND}`; export r; \
44045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44046 $(NORMAL_TARGET_EXPORTS) \
22121df0 44047 echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44048 for flag in $(EXTRA_TARGET_FLAGS); do \
44049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44050 done; \
a90ef4bf 44051 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44054 "RANLIB=$${RANLIB}" \
0c24b341 44055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44056 distclean) \
4fa63067
NN
44057 || exit 1
44058
a90ef4bf 44059@endif target-winsup
4fa63067 44060
a90ef4bf
JM
44061.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
44062maybe-maintainer-clean-target-winsup:
44063@if target-winsup
44064maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 44065
a90ef4bf 44066maintainer-clean-target-winsup:
0aed8855 44067 @: $(MAKE); $(unstage)
22121df0 44068 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44069 r=`${PWD_COMMAND}`; export r; \
44070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44071 $(NORMAL_TARGET_EXPORTS) \
22121df0 44072 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44073 for flag in $(EXTRA_TARGET_FLAGS); do \
44074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44075 done; \
a90ef4bf 44076 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44079 "RANLIB=$${RANLIB}" \
0c24b341 44080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44081 maintainer-clean) \
4fa63067 44082 || exit 1
16ae0395 44083
a90ef4bf 44084@endif target-winsup
e393202e
NN
44085
44086
15723a45 44087
e90269c8 44088
a7254363 44089
a90ef4bf
JM
44090.PHONY: configure-target-libgloss maybe-configure-target-libgloss
44091maybe-configure-target-libgloss:
4f0ef2d8 44092@if gcc-bootstrap
a90ef4bf 44093configure-target-libgloss: stage_current
4f0ef2d8 44094@endif gcc-bootstrap
a90ef4bf
JM
44095@if target-libgloss
44096maybe-configure-target-libgloss: configure-target-libgloss
44097configure-target-libgloss:
0aed8855
PB
44098 @: $(MAKE); $(unstage)
44099 @r=`${PWD_COMMAND}`; export r; \
44100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 44101 echo "Checking multilib configuration for libgloss..."; \
22121df0
L
44102 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
44103 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
44104 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
44105 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
44106 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 44107 else \
a90ef4bf
JM
44108 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
44109 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
44110 fi; \
44111 else \
a90ef4bf 44112 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 44113 fi; \
a90ef4bf 44114 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
22121df0 44115 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
1f53ca9a 44116 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44117 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
44118 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 44119 case $(srcdir) in \
b00612cc 44120 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 44121 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 44122 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44123 esac; \
1b6c0831 44124 module_srcdir=libgloss; \
bba45b8b 44125 rm -f no-such-file || : ; \
1b6c0831
L
44126 CONFIG_SITE=no-such-file $(SHELL) \
44127 $$s/$$module_srcdir/configure \
44128 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44129 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44130 --target=${target_alias} \
bba45b8b 44131 || exit 1
a90ef4bf 44132@endif target-libgloss
e393202e 44133
a7254363
PB
44134
44135
d545f33b
PB
44136
44137
a90ef4bf
JM
44138.PHONY: all-target-libgloss maybe-all-target-libgloss
44139maybe-all-target-libgloss:
4f0ef2d8 44140@if gcc-bootstrap
a90ef4bf 44141all-target-libgloss: stage_current
4f0ef2d8 44142@endif gcc-bootstrap
a90ef4bf
JM
44143@if target-libgloss
44144TARGET-target-libgloss=all
44145maybe-all-target-libgloss: all-target-libgloss
44146all-target-libgloss: configure-target-libgloss
0aed8855 44147 @: $(MAKE); $(unstage)
b40e3958
L
44148 @r=`${PWD_COMMAND}`; export r; \
44149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44150 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44151 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 44152 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
44153 $(TARGET-target-libgloss))
44154@endif target-libgloss
e393202e 44155
a7254363
PB
44156
44157
d545f33b
PB
44158
44159
a90ef4bf
JM
44160.PHONY: check-target-libgloss maybe-check-target-libgloss
44161maybe-check-target-libgloss:
44162@if target-libgloss
44163maybe-check-target-libgloss: check-target-libgloss
16ae0395 44164
a90ef4bf
JM
44165# Dummy target for uncheckable module.
44166check-target-libgloss:
930314a4 44167
a90ef4bf 44168@endif target-libgloss
e393202e 44169
a90ef4bf
JM
44170.PHONY: install-target-libgloss maybe-install-target-libgloss
44171maybe-install-target-libgloss:
44172@if target-libgloss
44173maybe-install-target-libgloss: install-target-libgloss
4fa63067 44174
a90ef4bf 44175install-target-libgloss: installdirs
0aed8855 44176 @: $(MAKE); $(unstage)
4fa63067
NN
44177 @r=`${PWD_COMMAND}`; export r; \
44178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44179 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44180 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 44181 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 44182
a90ef4bf 44183@endif target-libgloss
4fa63067 44184
a90ef4bf
JM
44185.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
44186maybe-install-strip-target-libgloss:
44187@if target-libgloss
44188maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 44189
a90ef4bf 44190install-strip-target-libgloss: installdirs
9b980aa1
RW
44191 @: $(MAKE); $(unstage)
44192 @r=`${PWD_COMMAND}`; export r; \
44193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44194 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44195 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
44196 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44197
a90ef4bf 44198@endif target-libgloss
9b980aa1 44199
56a8fe78 44200# Other targets (info, dvi, pdf, etc.)
4fa63067 44201
a90ef4bf
JM
44202.PHONY: maybe-info-target-libgloss info-target-libgloss
44203maybe-info-target-libgloss:
44204@if target-libgloss
44205maybe-info-target-libgloss: info-target-libgloss
4fa63067 44206
a90ef4bf
JM
44207info-target-libgloss: \
44208 configure-target-libgloss
0aed8855 44209 @: $(MAKE); $(unstage)
22121df0 44210 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44211 r=`${PWD_COMMAND}`; export r; \
44212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44213 $(NORMAL_TARGET_EXPORTS) \
22121df0 44214 echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44215 for flag in $(EXTRA_TARGET_FLAGS); do \
44216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44217 done; \
a90ef4bf 44218 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44221 "RANLIB=$${RANLIB}" \
0c24b341 44222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44223 info) \
4fa63067
NN
44224 || exit 1
44225
a90ef4bf 44226@endif target-libgloss
4fa63067 44227
a90ef4bf
JM
44228.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
44229maybe-dvi-target-libgloss:
44230@if target-libgloss
44231maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 44232
a90ef4bf
JM
44233dvi-target-libgloss: \
44234 configure-target-libgloss
0aed8855 44235 @: $(MAKE); $(unstage)
22121df0 44236 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44237 r=`${PWD_COMMAND}`; export r; \
44238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44239 $(NORMAL_TARGET_EXPORTS) \
22121df0 44240 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44241 for flag in $(EXTRA_TARGET_FLAGS); do \
44242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44243 done; \
a90ef4bf 44244 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44247 "RANLIB=$${RANLIB}" \
0c24b341 44248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44249 dvi) \
4fa63067
NN
44250 || exit 1
44251
a90ef4bf 44252@endif target-libgloss
4fa63067 44253
a90ef4bf
JM
44254.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
44255maybe-pdf-target-libgloss:
44256@if target-libgloss
44257maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 44258
a90ef4bf
JM
44259pdf-target-libgloss: \
44260 configure-target-libgloss
56a8fe78 44261 @: $(MAKE); $(unstage)
22121df0 44262 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
56a8fe78
DD
44263 r=`${PWD_COMMAND}`; export r; \
44264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44265 $(NORMAL_TARGET_EXPORTS) \
22121df0 44266 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \
56a8fe78
DD
44267 for flag in $(EXTRA_TARGET_FLAGS); do \
44268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44269 done; \
a90ef4bf 44270 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
44271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44273 "RANLIB=$${RANLIB}" \
0c24b341 44274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44275 pdf) \
44276 || exit 1
44277
a90ef4bf 44278@endif target-libgloss
56a8fe78 44279
a90ef4bf
JM
44280.PHONY: maybe-html-target-libgloss html-target-libgloss
44281maybe-html-target-libgloss:
44282@if target-libgloss
44283maybe-html-target-libgloss: html-target-libgloss
6d389afc 44284
a90ef4bf
JM
44285html-target-libgloss: \
44286 configure-target-libgloss
0aed8855 44287 @: $(MAKE); $(unstage)
22121df0 44288 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
6d389afc
MS
44289 r=`${PWD_COMMAND}`; export r; \
44290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44291 $(NORMAL_TARGET_EXPORTS) \
22121df0 44292 echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \
6d389afc
MS
44293 for flag in $(EXTRA_TARGET_FLAGS); do \
44294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44295 done; \
a90ef4bf 44296 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
44297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44299 "RANLIB=$${RANLIB}" \
0c24b341 44300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44301 html) \
44302 || exit 1
44303
a90ef4bf 44304@endif target-libgloss
6d389afc 44305
a90ef4bf
JM
44306.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
44307maybe-TAGS-target-libgloss:
44308@if target-libgloss
44309maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 44310
a90ef4bf
JM
44311TAGS-target-libgloss: \
44312 configure-target-libgloss
0aed8855 44313 @: $(MAKE); $(unstage)
22121df0 44314 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44315 r=`${PWD_COMMAND}`; export r; \
44316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44317 $(NORMAL_TARGET_EXPORTS) \
22121df0 44318 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44319 for flag in $(EXTRA_TARGET_FLAGS); do \
44320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44321 done; \
a90ef4bf 44322 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44325 "RANLIB=$${RANLIB}" \
0c24b341 44326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44327 TAGS) \
4fa63067
NN
44328 || exit 1
44329
a90ef4bf 44330@endif target-libgloss
4fa63067 44331
a90ef4bf
JM
44332.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
44333maybe-install-info-target-libgloss:
44334@if target-libgloss
44335maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 44336
a90ef4bf
JM
44337install-info-target-libgloss: \
44338 configure-target-libgloss \
44339 info-target-libgloss
0aed8855 44340 @: $(MAKE); $(unstage)
22121df0 44341 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44342 r=`${PWD_COMMAND}`; export r; \
44343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44344 $(NORMAL_TARGET_EXPORTS) \
22121df0 44345 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44346 for flag in $(EXTRA_TARGET_FLAGS); do \
44347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44348 done; \
a90ef4bf 44349 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44352 "RANLIB=$${RANLIB}" \
0c24b341 44353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44354 install-info) \
4fa63067
NN
44355 || exit 1
44356
a90ef4bf 44357@endif target-libgloss
4fa63067 44358
a90ef4bf
JM
44359.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
44360maybe-install-pdf-target-libgloss:
44361@if target-libgloss
44362maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 44363
a90ef4bf
JM
44364install-pdf-target-libgloss: \
44365 configure-target-libgloss \
44366 pdf-target-libgloss
a3ca38d2 44367 @: $(MAKE); $(unstage)
22121df0 44368 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
a3ca38d2
DD
44369 r=`${PWD_COMMAND}`; export r; \
44370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44371 $(NORMAL_TARGET_EXPORTS) \
22121df0 44372 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \
a3ca38d2
DD
44373 for flag in $(EXTRA_TARGET_FLAGS); do \
44374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44375 done; \
a90ef4bf 44376 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
44377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44379 "RANLIB=$${RANLIB}" \
0c24b341 44380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44381 install-pdf) \
44382 || exit 1
44383
a90ef4bf 44384@endif target-libgloss
a3ca38d2 44385
a90ef4bf
JM
44386.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
44387maybe-install-html-target-libgloss:
44388@if target-libgloss
44389maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 44390
a90ef4bf
JM
44391install-html-target-libgloss: \
44392 configure-target-libgloss \
44393 html-target-libgloss
108a6f8e 44394 @: $(MAKE); $(unstage)
22121df0 44395 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
108a6f8e
CD
44396 r=`${PWD_COMMAND}`; export r; \
44397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44398 $(NORMAL_TARGET_EXPORTS) \
22121df0 44399 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \
108a6f8e
CD
44400 for flag in $(EXTRA_TARGET_FLAGS); do \
44401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44402 done; \
a90ef4bf 44403 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
44404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44406 "RANLIB=$${RANLIB}" \
0c24b341 44407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44408 install-html) \
44409 || exit 1
44410
a90ef4bf 44411@endif target-libgloss
108a6f8e 44412
a90ef4bf
JM
44413.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
44414maybe-installcheck-target-libgloss:
44415@if target-libgloss
44416maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 44417
a90ef4bf
JM
44418installcheck-target-libgloss: \
44419 configure-target-libgloss
0aed8855 44420 @: $(MAKE); $(unstage)
22121df0 44421 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44422 r=`${PWD_COMMAND}`; export r; \
44423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44424 $(NORMAL_TARGET_EXPORTS) \
22121df0 44425 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44426 for flag in $(EXTRA_TARGET_FLAGS); do \
44427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44428 done; \
a90ef4bf 44429 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44432 "RANLIB=$${RANLIB}" \
0c24b341 44433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44434 installcheck) \
4fa63067
NN
44435 || exit 1
44436
a90ef4bf 44437@endif target-libgloss
4fa63067 44438
a90ef4bf
JM
44439.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
44440maybe-mostlyclean-target-libgloss:
44441@if target-libgloss
44442maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 44443
a90ef4bf 44444mostlyclean-target-libgloss:
0aed8855 44445 @: $(MAKE); $(unstage)
22121df0 44446 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44447 r=`${PWD_COMMAND}`; export r; \
44448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44449 $(NORMAL_TARGET_EXPORTS) \
22121df0 44450 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44451 for flag in $(EXTRA_TARGET_FLAGS); do \
44452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44453 done; \
a90ef4bf 44454 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44457 "RANLIB=$${RANLIB}" \
0c24b341 44458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44459 mostlyclean) \
4fa63067
NN
44460 || exit 1
44461
a90ef4bf 44462@endif target-libgloss
4fa63067 44463
a90ef4bf
JM
44464.PHONY: maybe-clean-target-libgloss clean-target-libgloss
44465maybe-clean-target-libgloss:
44466@if target-libgloss
44467maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 44468
a90ef4bf 44469clean-target-libgloss:
0aed8855 44470 @: $(MAKE); $(unstage)
22121df0 44471 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44472 r=`${PWD_COMMAND}`; export r; \
44473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44474 $(NORMAL_TARGET_EXPORTS) \
22121df0 44475 echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44476 for flag in $(EXTRA_TARGET_FLAGS); do \
44477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44478 done; \
a90ef4bf 44479 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44482 "RANLIB=$${RANLIB}" \
0c24b341 44483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44484 clean) \
4fa63067
NN
44485 || exit 1
44486
a90ef4bf 44487@endif target-libgloss
4fa63067 44488
a90ef4bf
JM
44489.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
44490maybe-distclean-target-libgloss:
44491@if target-libgloss
44492maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 44493
a90ef4bf 44494distclean-target-libgloss:
0aed8855 44495 @: $(MAKE); $(unstage)
22121df0 44496 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44497 r=`${PWD_COMMAND}`; export r; \
44498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44499 $(NORMAL_TARGET_EXPORTS) \
22121df0 44500 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44501 for flag in $(EXTRA_TARGET_FLAGS); do \
44502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44503 done; \
a90ef4bf 44504 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44507 "RANLIB=$${RANLIB}" \
0c24b341 44508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44509 distclean) \
4fa63067
NN
44510 || exit 1
44511
a90ef4bf 44512@endif target-libgloss
4fa63067 44513
a90ef4bf
JM
44514.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
44515maybe-maintainer-clean-target-libgloss:
44516@if target-libgloss
44517maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 44518
a90ef4bf 44519maintainer-clean-target-libgloss:
0aed8855 44520 @: $(MAKE); $(unstage)
22121df0 44521 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44522 r=`${PWD_COMMAND}`; export r; \
44523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44524 $(NORMAL_TARGET_EXPORTS) \
22121df0 44525 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44526 for flag in $(EXTRA_TARGET_FLAGS); do \
44527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44528 done; \
a90ef4bf 44529 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44532 "RANLIB=$${RANLIB}" \
0c24b341 44533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44534 maintainer-clean) \
4fa63067 44535 || exit 1
16ae0395 44536
a90ef4bf 44537@endif target-libgloss
e393202e
NN
44538
44539
15723a45 44540
a7254363
PB
44541
44542
a7254363
PB
44543.PHONY: configure-target-libffi maybe-configure-target-libffi
44544maybe-configure-target-libffi:
4f0ef2d8
CD
44545@if gcc-bootstrap
44546configure-target-libffi: stage_current
44547@endif gcc-bootstrap
a7254363
PB
44548@if target-libffi
44549maybe-configure-target-libffi: configure-target-libffi
c52c6897 44550configure-target-libffi:
0aed8855
PB
44551 @: $(MAKE); $(unstage)
44552 @r=`${PWD_COMMAND}`; export r; \
44553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44554 echo "Checking multilib configuration for libffi..."; \
22121df0
L
44555 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
44556 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \
0aed8855
PB
44557 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
44558 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
44559 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
44560 else \
44561 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
44562 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
44563 fi; \
44564 else \
44565 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
44566 fi; \
44567 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22121df0 44568 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
1f53ca9a 44569 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44570 echo Configuring in $(TARGET_SUBDIR)/libffi; \
44571 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 44572 case $(srcdir) in \
b00612cc
PB
44573 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44574 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
44575 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44576 esac; \
1b6c0831 44577 module_srcdir=libffi; \
bba45b8b 44578 rm -f no-such-file || : ; \
1b6c0831
L
44579 CONFIG_SITE=no-such-file $(SHELL) \
44580 $$s/$$module_srcdir/configure \
44581 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44582 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44583 --target=${target_alias} \
bba45b8b 44584 || exit 1
6bd3dfaa 44585@endif target-libffi
e393202e 44586
a7254363
PB
44587
44588
d545f33b
PB
44589
44590
4fa63067
NN
44591.PHONY: all-target-libffi maybe-all-target-libffi
44592maybe-all-target-libffi:
4f0ef2d8
CD
44593@if gcc-bootstrap
44594all-target-libffi: stage_current
44595@endif gcc-bootstrap
6bd3dfaa 44596@if target-libffi
72b2455a 44597TARGET-target-libffi=all
6bd3dfaa 44598maybe-all-target-libffi: all-target-libffi
4fa63067 44599all-target-libffi: configure-target-libffi
0aed8855 44600 @: $(MAKE); $(unstage)
b40e3958
L
44601 @r=`${PWD_COMMAND}`; export r; \
44602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44603 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44604 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 44605 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44606 $(TARGET-target-libffi))
6bd3dfaa 44607@endif target-libffi
e393202e 44608
a7254363
PB
44609
44610
d545f33b
PB
44611
44612
4fa63067
NN
44613.PHONY: check-target-libffi maybe-check-target-libffi
44614maybe-check-target-libffi:
6bd3dfaa
PB
44615@if target-libffi
44616maybe-check-target-libffi: check-target-libffi
16ae0395 44617
4fa63067 44618check-target-libffi:
0aed8855 44619 @: $(MAKE); $(unstage)
b40e3958
L
44620 @r=`${PWD_COMMAND}`; export r; \
44621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44622 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44623 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 44624 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 44625
6bd3dfaa 44626@endif target-libffi
e393202e 44627
4fa63067
NN
44628.PHONY: install-target-libffi maybe-install-target-libffi
44629maybe-install-target-libffi:
6bd3dfaa
PB
44630@if target-libffi
44631maybe-install-target-libffi: install-target-libffi
16ae0395 44632
b836cb18
JBG
44633# Dummy target for uninstallable.
44634install-target-libffi:
e393202e 44635
6bd3dfaa 44636@endif target-libffi
e393202e 44637
9b980aa1
RW
44638.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
44639maybe-install-strip-target-libffi:
44640@if target-libffi
44641maybe-install-strip-target-libffi: install-strip-target-libffi
44642
b836cb18
JBG
44643# Dummy target for uninstallable.
44644install-strip-target-libffi:
9b980aa1
RW
44645
44646@endif target-libffi
44647
56a8fe78 44648# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
44649
44650.PHONY: maybe-info-target-libffi info-target-libffi
44651maybe-info-target-libffi:
6bd3dfaa
PB
44652@if target-libffi
44653maybe-info-target-libffi: info-target-libffi
4fa63067
NN
44654
44655info-target-libffi: \
44656 configure-target-libffi
0aed8855 44657 @: $(MAKE); $(unstage)
22121df0 44658 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44659 r=`${PWD_COMMAND}`; export r; \
44660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44661 $(NORMAL_TARGET_EXPORTS) \
22121df0 44662 echo "Doing info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44663 for flag in $(EXTRA_TARGET_FLAGS); do \
44664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44665 done; \
44666 (cd $(TARGET_SUBDIR)/libffi && \
44667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44669 "RANLIB=$${RANLIB}" \
0c24b341 44670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44671 info) \
4fa63067
NN
44672 || exit 1
44673
6bd3dfaa 44674@endif target-libffi
4fa63067
NN
44675
44676.PHONY: maybe-dvi-target-libffi dvi-target-libffi
44677maybe-dvi-target-libffi:
6bd3dfaa
PB
44678@if target-libffi
44679maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
44680
44681dvi-target-libffi: \
44682 configure-target-libffi
0aed8855 44683 @: $(MAKE); $(unstage)
22121df0 44684 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44685 r=`${PWD_COMMAND}`; export r; \
44686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44687 $(NORMAL_TARGET_EXPORTS) \
22121df0 44688 echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44689 for flag in $(EXTRA_TARGET_FLAGS); do \
44690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44691 done; \
44692 (cd $(TARGET_SUBDIR)/libffi && \
44693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44695 "RANLIB=$${RANLIB}" \
0c24b341 44696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44697 dvi) \
4fa63067
NN
44698 || exit 1
44699
6bd3dfaa 44700@endif target-libffi
4fa63067 44701
56a8fe78
DD
44702.PHONY: maybe-pdf-target-libffi pdf-target-libffi
44703maybe-pdf-target-libffi:
44704@if target-libffi
44705maybe-pdf-target-libffi: pdf-target-libffi
44706
44707pdf-target-libffi: \
44708 configure-target-libffi
44709 @: $(MAKE); $(unstage)
22121df0 44710 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
56a8fe78
DD
44711 r=`${PWD_COMMAND}`; export r; \
44712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44713 $(NORMAL_TARGET_EXPORTS) \
22121df0 44714 echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \
56a8fe78
DD
44715 for flag in $(EXTRA_TARGET_FLAGS); do \
44716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44717 done; \
44718 (cd $(TARGET_SUBDIR)/libffi && \
44719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44721 "RANLIB=$${RANLIB}" \
0c24b341 44722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44723 pdf) \
44724 || exit 1
44725
44726@endif target-libffi
44727
6d389afc
MS
44728.PHONY: maybe-html-target-libffi html-target-libffi
44729maybe-html-target-libffi:
44730@if target-libffi
44731maybe-html-target-libffi: html-target-libffi
44732
44733html-target-libffi: \
44734 configure-target-libffi
0aed8855 44735 @: $(MAKE); $(unstage)
22121df0 44736 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
6d389afc
MS
44737 r=`${PWD_COMMAND}`; export r; \
44738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44739 $(NORMAL_TARGET_EXPORTS) \
22121df0 44740 echo "Doing html in $(TARGET_SUBDIR)/libffi"; \
6d389afc
MS
44741 for flag in $(EXTRA_TARGET_FLAGS); do \
44742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44743 done; \
44744 (cd $(TARGET_SUBDIR)/libffi && \
44745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44747 "RANLIB=$${RANLIB}" \
0c24b341 44748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44749 html) \
44750 || exit 1
44751
44752@endif target-libffi
44753
4fa63067
NN
44754.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
44755maybe-TAGS-target-libffi:
6bd3dfaa
PB
44756@if target-libffi
44757maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
44758
44759TAGS-target-libffi: \
44760 configure-target-libffi
0aed8855 44761 @: $(MAKE); $(unstage)
22121df0 44762 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44763 r=`${PWD_COMMAND}`; export r; \
44764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44765 $(NORMAL_TARGET_EXPORTS) \
22121df0 44766 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44767 for flag in $(EXTRA_TARGET_FLAGS); do \
44768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44769 done; \
44770 (cd $(TARGET_SUBDIR)/libffi && \
44771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44773 "RANLIB=$${RANLIB}" \
0c24b341 44774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44775 TAGS) \
4fa63067
NN
44776 || exit 1
44777
6bd3dfaa 44778@endif target-libffi
4fa63067
NN
44779
44780.PHONY: maybe-install-info-target-libffi install-info-target-libffi
44781maybe-install-info-target-libffi:
6bd3dfaa
PB
44782@if target-libffi
44783maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
44784
44785install-info-target-libffi: \
44786 configure-target-libffi \
44787 info-target-libffi
0aed8855 44788 @: $(MAKE); $(unstage)
22121df0 44789 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44790 r=`${PWD_COMMAND}`; export r; \
44791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44792 $(NORMAL_TARGET_EXPORTS) \
22121df0 44793 echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44794 for flag in $(EXTRA_TARGET_FLAGS); do \
44795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44796 done; \
44797 (cd $(TARGET_SUBDIR)/libffi && \
44798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44800 "RANLIB=$${RANLIB}" \
0c24b341 44801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44802 install-info) \
4fa63067
NN
44803 || exit 1
44804
6bd3dfaa 44805@endif target-libffi
4fa63067 44806
a3ca38d2
DD
44807.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
44808maybe-install-pdf-target-libffi:
44809@if target-libffi
44810maybe-install-pdf-target-libffi: install-pdf-target-libffi
44811
44812install-pdf-target-libffi: \
44813 configure-target-libffi \
44814 pdf-target-libffi
44815 @: $(MAKE); $(unstage)
22121df0 44816 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
a3ca38d2
DD
44817 r=`${PWD_COMMAND}`; export r; \
44818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44819 $(NORMAL_TARGET_EXPORTS) \
22121df0 44820 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \
a3ca38d2
DD
44821 for flag in $(EXTRA_TARGET_FLAGS); do \
44822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44823 done; \
44824 (cd $(TARGET_SUBDIR)/libffi && \
44825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44827 "RANLIB=$${RANLIB}" \
0c24b341 44828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44829 install-pdf) \
44830 || exit 1
44831
44832@endif target-libffi
44833
108a6f8e
CD
44834.PHONY: maybe-install-html-target-libffi install-html-target-libffi
44835maybe-install-html-target-libffi:
44836@if target-libffi
44837maybe-install-html-target-libffi: install-html-target-libffi
44838
44839install-html-target-libffi: \
44840 configure-target-libffi \
44841 html-target-libffi
44842 @: $(MAKE); $(unstage)
22121df0 44843 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
108a6f8e
CD
44844 r=`${PWD_COMMAND}`; export r; \
44845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44846 $(NORMAL_TARGET_EXPORTS) \
22121df0 44847 echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \
108a6f8e
CD
44848 for flag in $(EXTRA_TARGET_FLAGS); do \
44849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44850 done; \
44851 (cd $(TARGET_SUBDIR)/libffi && \
44852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44854 "RANLIB=$${RANLIB}" \
0c24b341 44855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44856 install-html) \
44857 || exit 1
44858
44859@endif target-libffi
44860
4fa63067
NN
44861.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
44862maybe-installcheck-target-libffi:
6bd3dfaa
PB
44863@if target-libffi
44864maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
44865
44866installcheck-target-libffi: \
44867 configure-target-libffi
0aed8855 44868 @: $(MAKE); $(unstage)
22121df0 44869 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44870 r=`${PWD_COMMAND}`; export r; \
44871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44872 $(NORMAL_TARGET_EXPORTS) \
22121df0 44873 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44874 for flag in $(EXTRA_TARGET_FLAGS); do \
44875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44876 done; \
44877 (cd $(TARGET_SUBDIR)/libffi && \
44878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44880 "RANLIB=$${RANLIB}" \
0c24b341 44881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44882 installcheck) \
4fa63067
NN
44883 || exit 1
44884
6bd3dfaa 44885@endif target-libffi
4fa63067
NN
44886
44887.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
44888maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
44889@if target-libffi
44890maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
44891
44892mostlyclean-target-libffi:
0aed8855 44893 @: $(MAKE); $(unstage)
22121df0 44894 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44895 r=`${PWD_COMMAND}`; export r; \
44896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44897 $(NORMAL_TARGET_EXPORTS) \
22121df0 44898 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44899 for flag in $(EXTRA_TARGET_FLAGS); do \
44900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44901 done; \
44902 (cd $(TARGET_SUBDIR)/libffi && \
44903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44905 "RANLIB=$${RANLIB}" \
0c24b341 44906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44907 mostlyclean) \
4fa63067
NN
44908 || exit 1
44909
6bd3dfaa 44910@endif target-libffi
4fa63067
NN
44911
44912.PHONY: maybe-clean-target-libffi clean-target-libffi
44913maybe-clean-target-libffi:
6bd3dfaa
PB
44914@if target-libffi
44915maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
44916
44917clean-target-libffi:
0aed8855 44918 @: $(MAKE); $(unstage)
22121df0 44919 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44920 r=`${PWD_COMMAND}`; export r; \
44921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44922 $(NORMAL_TARGET_EXPORTS) \
22121df0 44923 echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44924 for flag in $(EXTRA_TARGET_FLAGS); do \
44925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44926 done; \
44927 (cd $(TARGET_SUBDIR)/libffi && \
44928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44930 "RANLIB=$${RANLIB}" \
0c24b341 44931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44932 clean) \
4fa63067
NN
44933 || exit 1
44934
6bd3dfaa 44935@endif target-libffi
4fa63067
NN
44936
44937.PHONY: maybe-distclean-target-libffi distclean-target-libffi
44938maybe-distclean-target-libffi:
6bd3dfaa
PB
44939@if target-libffi
44940maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
44941
44942distclean-target-libffi:
0aed8855 44943 @: $(MAKE); $(unstage)
22121df0 44944 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44945 r=`${PWD_COMMAND}`; export r; \
44946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44947 $(NORMAL_TARGET_EXPORTS) \
22121df0 44948 echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44949 for flag in $(EXTRA_TARGET_FLAGS); do \
44950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44951 done; \
44952 (cd $(TARGET_SUBDIR)/libffi && \
44953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44955 "RANLIB=$${RANLIB}" \
0c24b341 44956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44957 distclean) \
4fa63067
NN
44958 || exit 1
44959
6bd3dfaa 44960@endif target-libffi
4fa63067
NN
44961
44962.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
44963maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
44964@if target-libffi
44965maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
44966
44967maintainer-clean-target-libffi:
0aed8855 44968 @: $(MAKE); $(unstage)
22121df0 44969 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44970 r=`${PWD_COMMAND}`; export r; \
44971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44972 $(NORMAL_TARGET_EXPORTS) \
22121df0 44973 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44974 for flag in $(EXTRA_TARGET_FLAGS); do \
44975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44976 done; \
44977 (cd $(TARGET_SUBDIR)/libffi && \
44978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44980 "RANLIB=$${RANLIB}" \
0c24b341 44981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44982 maintainer-clean) \
4fa63067
NN
44983 || exit 1
44984
6bd3dfaa 44985@endif target-libffi
4fa63067
NN
44986
44987
15723a45 44988
a7254363 44989
15723a45 44990
a7254363
PB
44991.PHONY: configure-target-zlib maybe-configure-target-zlib
44992maybe-configure-target-zlib:
4f0ef2d8
CD
44993@if gcc-bootstrap
44994configure-target-zlib: stage_current
44995@endif gcc-bootstrap
a7254363
PB
44996@if target-zlib
44997maybe-configure-target-zlib: configure-target-zlib
c52c6897 44998configure-target-zlib:
0aed8855
PB
44999 @: $(MAKE); $(unstage)
45000 @r=`${PWD_COMMAND}`; export r; \
45001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45002 echo "Checking multilib configuration for zlib..."; \
22121df0
L
45003 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
45004 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \
0aed8855
PB
45005 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
45006 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
45007 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
45008 else \
45009 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
45010 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
45011 fi; \
45012 else \
45013 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
45014 fi; \
45015 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 45016 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
1f53ca9a 45017 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45018 echo Configuring in $(TARGET_SUBDIR)/zlib; \
45019 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 45020 case $(srcdir) in \
b00612cc
PB
45021 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45022 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
45023 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45024 esac; \
1b6c0831 45025 module_srcdir=zlib; \
bba45b8b 45026 rm -f no-such-file || : ; \
1b6c0831
L
45027 CONFIG_SITE=no-such-file $(SHELL) \
45028 $$s/$$module_srcdir/configure \
45029 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45030 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45031 --target=${target_alias} \
bba45b8b 45032 || exit 1
6bd3dfaa 45033@endif target-zlib
e393202e 45034
a7254363
PB
45035
45036
d545f33b
PB
45037
45038
4fa63067
NN
45039.PHONY: all-target-zlib maybe-all-target-zlib
45040maybe-all-target-zlib:
4f0ef2d8
CD
45041@if gcc-bootstrap
45042all-target-zlib: stage_current
45043@endif gcc-bootstrap
6bd3dfaa 45044@if target-zlib
72b2455a 45045TARGET-target-zlib=all
6bd3dfaa 45046maybe-all-target-zlib: all-target-zlib
4fa63067 45047all-target-zlib: configure-target-zlib
0aed8855 45048 @: $(MAKE); $(unstage)
b40e3958
L
45049 @r=`${PWD_COMMAND}`; export r; \
45050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45051 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45052 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 45053 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45054 $(TARGET-target-zlib))
6bd3dfaa 45055@endif target-zlib
e393202e 45056
a7254363
PB
45057
45058
d545f33b
PB
45059
45060
4fa63067
NN
45061.PHONY: check-target-zlib maybe-check-target-zlib
45062maybe-check-target-zlib:
6bd3dfaa
PB
45063@if target-zlib
45064maybe-check-target-zlib: check-target-zlib
16ae0395 45065
4fa63067 45066check-target-zlib:
0aed8855 45067 @: $(MAKE); $(unstage)
b40e3958
L
45068 @r=`${PWD_COMMAND}`; export r; \
45069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45070 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45071 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 45072 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 45073
6bd3dfaa 45074@endif target-zlib
930314a4 45075
4fa63067
NN
45076.PHONY: install-target-zlib maybe-install-target-zlib
45077maybe-install-target-zlib:
6bd3dfaa
PB
45078@if target-zlib
45079maybe-install-target-zlib: install-target-zlib
16ae0395 45080
4fa63067 45081install-target-zlib: installdirs
0aed8855 45082 @: $(MAKE); $(unstage)
b40e3958
L
45083 @r=`${PWD_COMMAND}`; export r; \
45084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45085 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45086 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 45087 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 45088
6bd3dfaa 45089@endif target-zlib
e393202e 45090
9b980aa1
RW
45091.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
45092maybe-install-strip-target-zlib:
45093@if target-zlib
45094maybe-install-strip-target-zlib: install-strip-target-zlib
45095
45096install-strip-target-zlib: installdirs
45097 @: $(MAKE); $(unstage)
45098 @r=`${PWD_COMMAND}`; export r; \
45099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45100 $(NORMAL_TARGET_EXPORTS) \
45101 (cd $(TARGET_SUBDIR)/zlib && \
45102 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45103
45104@endif target-zlib
45105
56a8fe78 45106# Other targets (info, dvi, pdf, etc.)
15723a45 45107
4fa63067
NN
45108.PHONY: maybe-info-target-zlib info-target-zlib
45109maybe-info-target-zlib:
6bd3dfaa
PB
45110@if target-zlib
45111maybe-info-target-zlib: info-target-zlib
15723a45 45112
4fa63067
NN
45113info-target-zlib: \
45114 configure-target-zlib
0aed8855 45115 @: $(MAKE); $(unstage)
22121df0 45116 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
45117 r=`${PWD_COMMAND}`; export r; \
45118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45119 $(NORMAL_TARGET_EXPORTS) \
22121df0 45120 echo "Doing info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45121 for flag in $(EXTRA_TARGET_FLAGS); do \
45122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45123 done; \
45124 (cd $(TARGET_SUBDIR)/zlib && \
45125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45127 "RANLIB=$${RANLIB}" \
0c24b341 45128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45129 info) \
bba45b8b 45130 || exit 1
e393202e 45131
6bd3dfaa 45132@endif target-zlib
e393202e 45133
4fa63067
NN
45134.PHONY: maybe-dvi-target-zlib dvi-target-zlib
45135maybe-dvi-target-zlib:
6bd3dfaa
PB
45136@if target-zlib
45137maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 45138
4fa63067
NN
45139dvi-target-zlib: \
45140 configure-target-zlib
0aed8855 45141 @: $(MAKE); $(unstage)
22121df0 45142 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 45143 r=`${PWD_COMMAND}`; export r; \
b40e3958 45144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45145 $(NORMAL_TARGET_EXPORTS) \
22121df0 45146 echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45147 for flag in $(EXTRA_TARGET_FLAGS); do \
45148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45149 done; \
45150 (cd $(TARGET_SUBDIR)/zlib && \
45151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45153 "RANLIB=$${RANLIB}" \
0c24b341 45154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45155 dvi) \
4fa63067 45156 || exit 1
e393202e 45157
6bd3dfaa 45158@endif target-zlib
930314a4 45159
56a8fe78
DD
45160.PHONY: maybe-pdf-target-zlib pdf-target-zlib
45161maybe-pdf-target-zlib:
45162@if target-zlib
45163maybe-pdf-target-zlib: pdf-target-zlib
45164
45165pdf-target-zlib: \
45166 configure-target-zlib
45167 @: $(MAKE); $(unstage)
22121df0 45168 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
56a8fe78
DD
45169 r=`${PWD_COMMAND}`; export r; \
45170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45171 $(NORMAL_TARGET_EXPORTS) \
22121df0 45172 echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \
56a8fe78
DD
45173 for flag in $(EXTRA_TARGET_FLAGS); do \
45174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45175 done; \
45176 (cd $(TARGET_SUBDIR)/zlib && \
45177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45179 "RANLIB=$${RANLIB}" \
0c24b341 45180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45181 pdf) \
45182 || exit 1
45183
45184@endif target-zlib
45185
6d389afc
MS
45186.PHONY: maybe-html-target-zlib html-target-zlib
45187maybe-html-target-zlib:
45188@if target-zlib
45189maybe-html-target-zlib: html-target-zlib
45190
45191html-target-zlib: \
45192 configure-target-zlib
0aed8855 45193 @: $(MAKE); $(unstage)
22121df0 45194 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
6d389afc
MS
45195 r=`${PWD_COMMAND}`; export r; \
45196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45197 $(NORMAL_TARGET_EXPORTS) \
22121df0 45198 echo "Doing html in $(TARGET_SUBDIR)/zlib"; \
6d389afc
MS
45199 for flag in $(EXTRA_TARGET_FLAGS); do \
45200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45201 done; \
45202 (cd $(TARGET_SUBDIR)/zlib && \
45203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45205 "RANLIB=$${RANLIB}" \
0c24b341 45206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45207 html) \
45208 || exit 1
45209
45210@endif target-zlib
45211
4fa63067
NN
45212.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
45213maybe-TAGS-target-zlib:
6bd3dfaa
PB
45214@if target-zlib
45215maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 45216
4fa63067
NN
45217TAGS-target-zlib: \
45218 configure-target-zlib
0aed8855 45219 @: $(MAKE); $(unstage)
22121df0 45220 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 45221 r=`${PWD_COMMAND}`; export r; \
b40e3958 45222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45223 $(NORMAL_TARGET_EXPORTS) \
22121df0 45224 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45225 for flag in $(EXTRA_TARGET_FLAGS); do \
45226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45227 done; \
45228 (cd $(TARGET_SUBDIR)/zlib && \
45229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45231 "RANLIB=$${RANLIB}" \
0c24b341 45232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45233 TAGS) \
4fa63067 45234 || exit 1
e393202e 45235
6bd3dfaa 45236@endif target-zlib
15723a45 45237
4fa63067
NN
45238.PHONY: maybe-install-info-target-zlib install-info-target-zlib
45239maybe-install-info-target-zlib:
6bd3dfaa
PB
45240@if target-zlib
45241maybe-install-info-target-zlib: install-info-target-zlib
15723a45 45242
4fa63067
NN
45243install-info-target-zlib: \
45244 configure-target-zlib \
45245 info-target-zlib
0aed8855 45246 @: $(MAKE); $(unstage)
22121df0 45247 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
45248 r=`${PWD_COMMAND}`; export r; \
45249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45250 $(NORMAL_TARGET_EXPORTS) \
22121df0 45251 echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45252 for flag in $(EXTRA_TARGET_FLAGS); do \
45253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45254 done; \
45255 (cd $(TARGET_SUBDIR)/zlib && \
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}" \
7ffa0b57 45260 install-info) \
bba45b8b 45261 || exit 1
e393202e 45262
6bd3dfaa 45263@endif target-zlib
16ae0395 45264
a3ca38d2
DD
45265.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
45266maybe-install-pdf-target-zlib:
45267@if target-zlib
45268maybe-install-pdf-target-zlib: install-pdf-target-zlib
45269
45270install-pdf-target-zlib: \
45271 configure-target-zlib \
45272 pdf-target-zlib
45273 @: $(MAKE); $(unstage)
22121df0 45274 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
a3ca38d2
DD
45275 r=`${PWD_COMMAND}`; export r; \
45276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45277 $(NORMAL_TARGET_EXPORTS) \
22121df0 45278 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \
a3ca38d2
DD
45279 for flag in $(EXTRA_TARGET_FLAGS); do \
45280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45281 done; \
45282 (cd $(TARGET_SUBDIR)/zlib && \
45283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45285 "RANLIB=$${RANLIB}" \
0c24b341 45286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45287 install-pdf) \
45288 || exit 1
45289
45290@endif target-zlib
45291
108a6f8e
CD
45292.PHONY: maybe-install-html-target-zlib install-html-target-zlib
45293maybe-install-html-target-zlib:
45294@if target-zlib
45295maybe-install-html-target-zlib: install-html-target-zlib
45296
45297install-html-target-zlib: \
45298 configure-target-zlib \
45299 html-target-zlib
45300 @: $(MAKE); $(unstage)
22121df0 45301 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
108a6f8e
CD
45302 r=`${PWD_COMMAND}`; export r; \
45303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45304 $(NORMAL_TARGET_EXPORTS) \
22121df0 45305 echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \
108a6f8e
CD
45306 for flag in $(EXTRA_TARGET_FLAGS); do \
45307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45308 done; \
45309 (cd $(TARGET_SUBDIR)/zlib && \
45310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45312 "RANLIB=$${RANLIB}" \
0c24b341 45313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45314 install-html) \
45315 || exit 1
45316
45317@endif target-zlib
45318
4fa63067
NN
45319.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
45320maybe-installcheck-target-zlib:
6bd3dfaa
PB
45321@if target-zlib
45322maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 45323
4fa63067
NN
45324installcheck-target-zlib: \
45325 configure-target-zlib
0aed8855 45326 @: $(MAKE); $(unstage)
22121df0 45327 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
45328 r=`${PWD_COMMAND}`; export r; \
45329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45330 $(NORMAL_TARGET_EXPORTS) \
22121df0 45331 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45332 for flag in $(EXTRA_TARGET_FLAGS); do \
45333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45334 done; \
45335 (cd $(TARGET_SUBDIR)/zlib && \
45336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45338 "RANLIB=$${RANLIB}" \
0c24b341 45339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45340 installcheck) \
4fa63067 45341 || exit 1
e393202e 45342
6bd3dfaa 45343@endif target-zlib
16ae0395 45344
4fa63067
NN
45345.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
45346maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
45347@if target-zlib
45348maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 45349
4fa63067 45350mostlyclean-target-zlib:
0aed8855 45351 @: $(MAKE); $(unstage)
22121df0 45352 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
45353 r=`${PWD_COMMAND}`; export r; \
45354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45355 $(NORMAL_TARGET_EXPORTS) \
22121df0 45356 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45357 for flag in $(EXTRA_TARGET_FLAGS); do \
45358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45359 done; \
45360 (cd $(TARGET_SUBDIR)/zlib && \
45361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45363 "RANLIB=$${RANLIB}" \
0c24b341 45364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45365 mostlyclean) \
4fa63067 45366 || exit 1
e393202e 45367
6bd3dfaa 45368@endif target-zlib
15723a45 45369
4fa63067
NN
45370.PHONY: maybe-clean-target-zlib clean-target-zlib
45371maybe-clean-target-zlib:
6bd3dfaa
PB
45372@if target-zlib
45373maybe-clean-target-zlib: clean-target-zlib
15723a45 45374
4fa63067 45375clean-target-zlib:
0aed8855 45376 @: $(MAKE); $(unstage)
22121df0 45377 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
45378 r=`${PWD_COMMAND}`; export r; \
45379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45380 $(NORMAL_TARGET_EXPORTS) \
22121df0 45381 echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45382 for flag in $(EXTRA_TARGET_FLAGS); do \
45383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45384 done; \
45385 (cd $(TARGET_SUBDIR)/zlib && \
45386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45388 "RANLIB=$${RANLIB}" \
0c24b341 45389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45390 clean) \
bba45b8b 45391 || exit 1
e393202e 45392
6bd3dfaa 45393@endif target-zlib
e393202e 45394
4fa63067
NN
45395.PHONY: maybe-distclean-target-zlib distclean-target-zlib
45396maybe-distclean-target-zlib:
6bd3dfaa
PB
45397@if target-zlib
45398maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 45399
4fa63067 45400distclean-target-zlib:
0aed8855 45401 @: $(MAKE); $(unstage)
22121df0 45402 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 45403 r=`${PWD_COMMAND}`; export r; \
b40e3958 45404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45405 $(NORMAL_TARGET_EXPORTS) \
22121df0 45406 echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45407 for flag in $(EXTRA_TARGET_FLAGS); do \
45408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45409 done; \
45410 (cd $(TARGET_SUBDIR)/zlib && \
45411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45413 "RANLIB=$${RANLIB}" \
0c24b341 45414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45415 distclean) \
4fa63067 45416 || exit 1
e393202e 45417
6bd3dfaa 45418@endif target-zlib
e393202e 45419
4fa63067
NN
45420.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
45421maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
45422@if target-zlib
45423maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 45424
4fa63067 45425maintainer-clean-target-zlib:
0aed8855 45426 @: $(MAKE); $(unstage)
22121df0 45427 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 45428 r=`${PWD_COMMAND}`; export r; \
b40e3958 45429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45430 $(NORMAL_TARGET_EXPORTS) \
22121df0 45431 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45432 for flag in $(EXTRA_TARGET_FLAGS); do \
45433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45434 done; \
45435 (cd $(TARGET_SUBDIR)/zlib && \
45436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45438 "RANLIB=$${RANLIB}" \
0c24b341 45439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45440 maintainer-clean) \
4fa63067 45441 || exit 1
e393202e 45442
6bd3dfaa 45443@endif target-zlib
930314a4 45444
4fa63067 45445
15723a45 45446
a7254363 45447
e90269c8 45448
a7254363
PB
45449.PHONY: configure-target-rda maybe-configure-target-rda
45450maybe-configure-target-rda:
4f0ef2d8
CD
45451@if gcc-bootstrap
45452configure-target-rda: stage_current
45453@endif gcc-bootstrap
a7254363
PB
45454@if target-rda
45455maybe-configure-target-rda: configure-target-rda
c52c6897 45456configure-target-rda:
0aed8855
PB
45457 @: $(MAKE); $(unstage)
45458 @r=`${PWD_COMMAND}`; export r; \
45459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45460 echo "Checking multilib configuration for rda..."; \
22121df0
L
45461 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
45462 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \
0aed8855
PB
45463 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
45464 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
45465 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
45466 else \
45467 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
45468 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
45469 fi; \
45470 else \
45471 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
45472 fi; \
45473 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
22121df0 45474 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
1f53ca9a 45475 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45476 echo Configuring in $(TARGET_SUBDIR)/rda; \
45477 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 45478 case $(srcdir) in \
b00612cc
PB
45479 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45480 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
45481 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45482 esac; \
1b6c0831 45483 module_srcdir=rda; \
bba45b8b 45484 rm -f no-such-file || : ; \
1b6c0831
L
45485 CONFIG_SITE=no-such-file $(SHELL) \
45486 $$s/$$module_srcdir/configure \
45487 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45488 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45489 --target=${target_alias} \
bba45b8b 45490 || exit 1
6bd3dfaa 45491@endif target-rda
49b7683b 45492
a7254363
PB
45493
45494
d545f33b
PB
45495
45496
4fa63067
NN
45497.PHONY: all-target-rda maybe-all-target-rda
45498maybe-all-target-rda:
4f0ef2d8
CD
45499@if gcc-bootstrap
45500all-target-rda: stage_current
45501@endif gcc-bootstrap
6bd3dfaa 45502@if target-rda
72b2455a 45503TARGET-target-rda=all
6bd3dfaa 45504maybe-all-target-rda: all-target-rda
4fa63067 45505all-target-rda: configure-target-rda
0aed8855 45506 @: $(MAKE); $(unstage)
b40e3958
L
45507 @r=`${PWD_COMMAND}`; export r; \
45508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45509 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45510 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 45511 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45512 $(TARGET-target-rda))
6bd3dfaa 45513@endif target-rda
252b5132 45514
a7254363
PB
45515
45516
d545f33b
PB
45517
45518
4fa63067
NN
45519.PHONY: check-target-rda maybe-check-target-rda
45520maybe-check-target-rda:
6bd3dfaa
PB
45521@if target-rda
45522maybe-check-target-rda: check-target-rda
16ae0395 45523
4fa63067 45524check-target-rda:
0aed8855 45525 @: $(MAKE); $(unstage)
b40e3958
L
45526 @r=`${PWD_COMMAND}`; export r; \
45527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45528 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45529 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 45530 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 45531
6bd3dfaa 45532@endif target-rda
930314a4 45533
4fa63067
NN
45534.PHONY: install-target-rda maybe-install-target-rda
45535maybe-install-target-rda:
6bd3dfaa
PB
45536@if target-rda
45537maybe-install-target-rda: install-target-rda
16ae0395 45538
4fa63067 45539install-target-rda: installdirs
0aed8855 45540 @: $(MAKE); $(unstage)
b40e3958
L
45541 @r=`${PWD_COMMAND}`; export r; \
45542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45543 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45544 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 45545 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 45546
6bd3dfaa 45547@endif target-rda
e393202e 45548
9b980aa1
RW
45549.PHONY: install-strip-target-rda maybe-install-strip-target-rda
45550maybe-install-strip-target-rda:
45551@if target-rda
45552maybe-install-strip-target-rda: install-strip-target-rda
45553
45554install-strip-target-rda: installdirs
45555 @: $(MAKE); $(unstage)
45556 @r=`${PWD_COMMAND}`; export r; \
45557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45558 $(NORMAL_TARGET_EXPORTS) \
45559 (cd $(TARGET_SUBDIR)/rda && \
45560 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45561
45562@endif target-rda
45563
56a8fe78 45564# Other targets (info, dvi, pdf, etc.)
15723a45 45565
4fa63067
NN
45566.PHONY: maybe-info-target-rda info-target-rda
45567maybe-info-target-rda:
6bd3dfaa
PB
45568@if target-rda
45569maybe-info-target-rda: info-target-rda
15723a45 45570
4fa63067
NN
45571info-target-rda: \
45572 configure-target-rda
0aed8855 45573 @: $(MAKE); $(unstage)
22121df0 45574 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45575 r=`${PWD_COMMAND}`; export r; \
45576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45577 $(NORMAL_TARGET_EXPORTS) \
22121df0 45578 echo "Doing info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45579 for flag in $(EXTRA_TARGET_FLAGS); do \
45580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45581 done; \
45582 (cd $(TARGET_SUBDIR)/rda && \
45583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45585 "RANLIB=$${RANLIB}" \
0c24b341 45586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45587 info) \
bba45b8b 45588 || exit 1
252b5132 45589
6bd3dfaa 45590@endif target-rda
4fa63067
NN
45591
45592.PHONY: maybe-dvi-target-rda dvi-target-rda
45593maybe-dvi-target-rda:
6bd3dfaa
PB
45594@if target-rda
45595maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
45596
45597dvi-target-rda: \
45598 configure-target-rda
0aed8855 45599 @: $(MAKE); $(unstage)
22121df0 45600 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45601 r=`${PWD_COMMAND}`; export r; \
b40e3958 45602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45603 $(NORMAL_TARGET_EXPORTS) \
22121df0 45604 echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45605 for flag in $(EXTRA_TARGET_FLAGS); do \
45606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45607 done; \
45608 (cd $(TARGET_SUBDIR)/rda && \
45609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45611 "RANLIB=$${RANLIB}" \
0c24b341 45612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45613 dvi) \
4fa63067 45614 || exit 1
252b5132 45615
6bd3dfaa 45616@endif target-rda
16ae0395 45617
56a8fe78
DD
45618.PHONY: maybe-pdf-target-rda pdf-target-rda
45619maybe-pdf-target-rda:
45620@if target-rda
45621maybe-pdf-target-rda: pdf-target-rda
45622
45623pdf-target-rda: \
45624 configure-target-rda
45625 @: $(MAKE); $(unstage)
22121df0 45626 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
56a8fe78
DD
45627 r=`${PWD_COMMAND}`; export r; \
45628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45629 $(NORMAL_TARGET_EXPORTS) \
22121df0 45630 echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \
56a8fe78
DD
45631 for flag in $(EXTRA_TARGET_FLAGS); do \
45632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45633 done; \
45634 (cd $(TARGET_SUBDIR)/rda && \
45635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45637 "RANLIB=$${RANLIB}" \
0c24b341 45638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45639 pdf) \
45640 || exit 1
45641
45642@endif target-rda
45643
6d389afc
MS
45644.PHONY: maybe-html-target-rda html-target-rda
45645maybe-html-target-rda:
45646@if target-rda
45647maybe-html-target-rda: html-target-rda
45648
45649html-target-rda: \
45650 configure-target-rda
0aed8855 45651 @: $(MAKE); $(unstage)
22121df0 45652 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
6d389afc
MS
45653 r=`${PWD_COMMAND}`; export r; \
45654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45655 $(NORMAL_TARGET_EXPORTS) \
22121df0 45656 echo "Doing html in $(TARGET_SUBDIR)/rda"; \
6d389afc
MS
45657 for flag in $(EXTRA_TARGET_FLAGS); do \
45658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45659 done; \
45660 (cd $(TARGET_SUBDIR)/rda && \
45661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45663 "RANLIB=$${RANLIB}" \
0c24b341 45664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45665 html) \
45666 || exit 1
45667
45668@endif target-rda
45669
4fa63067
NN
45670.PHONY: maybe-TAGS-target-rda TAGS-target-rda
45671maybe-TAGS-target-rda:
6bd3dfaa
PB
45672@if target-rda
45673maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
45674
45675TAGS-target-rda: \
45676 configure-target-rda
0aed8855 45677 @: $(MAKE); $(unstage)
22121df0 45678 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45679 r=`${PWD_COMMAND}`; export r; \
b40e3958 45680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45681 $(NORMAL_TARGET_EXPORTS) \
22121df0 45682 echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45683 for flag in $(EXTRA_TARGET_FLAGS); do \
45684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45685 done; \
45686 (cd $(TARGET_SUBDIR)/rda && \
45687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45689 "RANLIB=$${RANLIB}" \
0c24b341 45690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45691 TAGS) \
4fa63067 45692 || exit 1
e393202e 45693
6bd3dfaa 45694@endif target-rda
930314a4 45695
4fa63067
NN
45696.PHONY: maybe-install-info-target-rda install-info-target-rda
45697maybe-install-info-target-rda:
6bd3dfaa
PB
45698@if target-rda
45699maybe-install-info-target-rda: install-info-target-rda
16ae0395 45700
4fa63067
NN
45701install-info-target-rda: \
45702 configure-target-rda \
45703 info-target-rda
0aed8855 45704 @: $(MAKE); $(unstage)
22121df0 45705 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45706 r=`${PWD_COMMAND}`; export r; \
b40e3958 45707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45708 $(NORMAL_TARGET_EXPORTS) \
22121df0 45709 echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45710 for flag in $(EXTRA_TARGET_FLAGS); do \
45711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45712 done; \
45713 (cd $(TARGET_SUBDIR)/rda && \
45714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45716 "RANLIB=$${RANLIB}" \
0c24b341 45717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45718 install-info) \
4fa63067 45719 || exit 1
252b5132 45720
6bd3dfaa 45721@endif target-rda
e393202e 45722
a3ca38d2
DD
45723.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
45724maybe-install-pdf-target-rda:
45725@if target-rda
45726maybe-install-pdf-target-rda: install-pdf-target-rda
45727
45728install-pdf-target-rda: \
45729 configure-target-rda \
45730 pdf-target-rda
45731 @: $(MAKE); $(unstage)
22121df0 45732 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
a3ca38d2
DD
45733 r=`${PWD_COMMAND}`; export r; \
45734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45735 $(NORMAL_TARGET_EXPORTS) \
22121df0 45736 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \
a3ca38d2
DD
45737 for flag in $(EXTRA_TARGET_FLAGS); do \
45738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45739 done; \
45740 (cd $(TARGET_SUBDIR)/rda && \
45741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45743 "RANLIB=$${RANLIB}" \
0c24b341 45744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45745 install-pdf) \
45746 || exit 1
45747
45748@endif target-rda
45749
108a6f8e
CD
45750.PHONY: maybe-install-html-target-rda install-html-target-rda
45751maybe-install-html-target-rda:
45752@if target-rda
45753maybe-install-html-target-rda: install-html-target-rda
45754
45755install-html-target-rda: \
45756 configure-target-rda \
45757 html-target-rda
45758 @: $(MAKE); $(unstage)
22121df0 45759 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
108a6f8e
CD
45760 r=`${PWD_COMMAND}`; export r; \
45761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45762 $(NORMAL_TARGET_EXPORTS) \
22121df0 45763 echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \
108a6f8e
CD
45764 for flag in $(EXTRA_TARGET_FLAGS); do \
45765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45766 done; \
45767 (cd $(TARGET_SUBDIR)/rda && \
45768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45770 "RANLIB=$${RANLIB}" \
0c24b341 45771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45772 install-html) \
45773 || exit 1
45774
45775@endif target-rda
45776
4fa63067
NN
45777.PHONY: maybe-installcheck-target-rda installcheck-target-rda
45778maybe-installcheck-target-rda:
6bd3dfaa
PB
45779@if target-rda
45780maybe-installcheck-target-rda: installcheck-target-rda
15723a45 45781
4fa63067
NN
45782installcheck-target-rda: \
45783 configure-target-rda
0aed8855 45784 @: $(MAKE); $(unstage)
22121df0 45785 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067
NN
45786 r=`${PWD_COMMAND}`; export r; \
45787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45788 $(NORMAL_TARGET_EXPORTS) \
22121df0 45789 echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45790 for flag in $(EXTRA_TARGET_FLAGS); do \
45791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45792 done; \
45793 (cd $(TARGET_SUBDIR)/rda && \
45794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45796 "RANLIB=$${RANLIB}" \
0c24b341 45797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45798 installcheck) \
4fa63067 45799 || exit 1
15723a45 45800
6bd3dfaa 45801@endif target-rda
4fa63067
NN
45802
45803.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
45804maybe-mostlyclean-target-rda:
6bd3dfaa
PB
45805@if target-rda
45806maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
45807
45808mostlyclean-target-rda:
0aed8855 45809 @: $(MAKE); $(unstage)
22121df0 45810 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45811 r=`${PWD_COMMAND}`; export r; \
45812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45813 $(NORMAL_TARGET_EXPORTS) \
22121df0 45814 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45815 for flag in $(EXTRA_TARGET_FLAGS); do \
45816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45817 done; \
45818 (cd $(TARGET_SUBDIR)/rda && \
45819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45821 "RANLIB=$${RANLIB}" \
0c24b341 45822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45823 mostlyclean) \
bba45b8b 45824 || exit 1
252b5132 45825
6bd3dfaa 45826@endif target-rda
4fa63067
NN
45827
45828.PHONY: maybe-clean-target-rda clean-target-rda
45829maybe-clean-target-rda:
6bd3dfaa
PB
45830@if target-rda
45831maybe-clean-target-rda: clean-target-rda
4fa63067
NN
45832
45833clean-target-rda:
0aed8855 45834 @: $(MAKE); $(unstage)
22121df0 45835 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45836 r=`${PWD_COMMAND}`; export r; \
b40e3958 45837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45838 $(NORMAL_TARGET_EXPORTS) \
22121df0 45839 echo "Doing clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45840 for flag in $(EXTRA_TARGET_FLAGS); do \
45841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45842 done; \
bba45b8b 45843 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45846 "RANLIB=$${RANLIB}" \
0c24b341 45847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45848 clean) \
4fa63067 45849 || exit 1
252b5132 45850
6bd3dfaa 45851@endif target-rda
16ae0395 45852
4fa63067
NN
45853.PHONY: maybe-distclean-target-rda distclean-target-rda
45854maybe-distclean-target-rda:
6bd3dfaa
PB
45855@if target-rda
45856maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
45857
45858distclean-target-rda:
0aed8855 45859 @: $(MAKE); $(unstage)
22121df0 45860 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45861 r=`${PWD_COMMAND}`; export r; \
b40e3958 45862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45863 $(NORMAL_TARGET_EXPORTS) \
22121df0 45864 echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45865 for flag in $(EXTRA_TARGET_FLAGS); do \
45866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45867 done; \
bba45b8b 45868 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45871 "RANLIB=$${RANLIB}" \
0c24b341 45872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45873 distclean) \
4fa63067 45874 || exit 1
252b5132 45875
6bd3dfaa 45876@endif target-rda
930314a4 45877
4fa63067
NN
45878.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
45879maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
45880@if target-rda
45881maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 45882
4fa63067 45883maintainer-clean-target-rda:
0aed8855 45884 @: $(MAKE); $(unstage)
22121df0 45885 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45886 r=`${PWD_COMMAND}`; export r; \
b40e3958 45887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45888 $(NORMAL_TARGET_EXPORTS) \
22121df0 45889 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45890 for flag in $(EXTRA_TARGET_FLAGS); do \
45891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45892 done; \
bba45b8b 45893 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45896 "RANLIB=$${RANLIB}" \
0c24b341 45897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45898 maintainer-clean) \
4fa63067
NN
45899 || exit 1
45900
6bd3dfaa 45901@endif target-rda
252b5132 45902
e393202e 45903
a2592b1b 45904
a7254363
PB
45905
45906
45907.PHONY: configure-target-libada maybe-configure-target-libada
45908maybe-configure-target-libada:
4f0ef2d8
CD
45909@if gcc-bootstrap
45910configure-target-libada: stage_current
45911@endif gcc-bootstrap
a7254363
PB
45912@if target-libada
45913maybe-configure-target-libada: configure-target-libada
c52c6897 45914configure-target-libada:
0aed8855
PB
45915 @: $(MAKE); $(unstage)
45916 @r=`${PWD_COMMAND}`; export r; \
45917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45918 echo "Checking multilib configuration for libada..."; \
22121df0
L
45919 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
45920 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \
0aed8855
PB
45921 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
45922 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
45923 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
45924 else \
45925 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
45926 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
45927 fi; \
45928 else \
45929 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
45930 fi; \
45931 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
22121df0 45932 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
1f53ca9a 45933 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
45934 echo Configuring in $(TARGET_SUBDIR)/libada; \
45935 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
45936 case $(srcdir) in \
b00612cc
PB
45937 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45938 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
45939 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 45940 esac; \
1b6c0831 45941 module_srcdir=libada; \
a2592b1b 45942 rm -f no-such-file || : ; \
1b6c0831
L
45943 CONFIG_SITE=no-such-file $(SHELL) \
45944 $$s/$$module_srcdir/configure \
45945 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45946 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45947 --target=${target_alias} \
a2592b1b 45948 || exit 1
6bd3dfaa 45949@endif target-libada
a2592b1b 45950
a7254363
PB
45951
45952
d545f33b
PB
45953
45954
4fa63067
NN
45955.PHONY: all-target-libada maybe-all-target-libada
45956maybe-all-target-libada:
4f0ef2d8
CD
45957@if gcc-bootstrap
45958all-target-libada: stage_current
45959@endif gcc-bootstrap
6bd3dfaa 45960@if target-libada
72b2455a 45961TARGET-target-libada=all
6bd3dfaa 45962maybe-all-target-libada: all-target-libada
4fa63067 45963all-target-libada: configure-target-libada
0aed8855 45964 @: $(MAKE); $(unstage)
4fa63067
NN
45965 @r=`${PWD_COMMAND}`; export r; \
45966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45967 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45968 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 45969 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45970 $(TARGET-target-libada))
6bd3dfaa 45971@endif target-libada
4fa63067 45972
a7254363
PB
45973
45974
d545f33b
PB
45975
45976
4fa63067
NN
45977.PHONY: check-target-libada maybe-check-target-libada
45978maybe-check-target-libada:
6bd3dfaa
PB
45979@if target-libada
45980maybe-check-target-libada: check-target-libada
4fa63067
NN
45981
45982check-target-libada:
0aed8855 45983 @: $(MAKE); $(unstage)
4fa63067
NN
45984 @r=`${PWD_COMMAND}`; export r; \
45985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45986 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45987 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45988 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 45989
6bd3dfaa 45990@endif target-libada
4fa63067
NN
45991
45992.PHONY: install-target-libada maybe-install-target-libada
45993maybe-install-target-libada:
6bd3dfaa
PB
45994@if target-libada
45995maybe-install-target-libada: install-target-libada
4fa63067
NN
45996
45997install-target-libada: installdirs
0aed8855 45998 @: $(MAKE); $(unstage)
4fa63067
NN
45999 @r=`${PWD_COMMAND}`; export r; \
46000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46001 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46002 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 46003 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 46004
6bd3dfaa 46005@endif target-libada
4fa63067 46006
9b980aa1
RW
46007.PHONY: install-strip-target-libada maybe-install-strip-target-libada
46008maybe-install-strip-target-libada:
46009@if target-libada
46010maybe-install-strip-target-libada: install-strip-target-libada
46011
46012install-strip-target-libada: installdirs
46013 @: $(MAKE); $(unstage)
46014 @r=`${PWD_COMMAND}`; export r; \
46015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46016 $(NORMAL_TARGET_EXPORTS) \
46017 (cd $(TARGET_SUBDIR)/libada && \
46018 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46019
46020@endif target-libada
46021
56a8fe78 46022# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
46023
46024.PHONY: maybe-info-target-libada info-target-libada
46025maybe-info-target-libada:
6bd3dfaa
PB
46026@if target-libada
46027maybe-info-target-libada: info-target-libada
4fa63067
NN
46028
46029info-target-libada: \
46030 configure-target-libada
0aed8855 46031 @: $(MAKE); $(unstage)
22121df0 46032 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46033 r=`${PWD_COMMAND}`; export r; \
46034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46035 $(NORMAL_TARGET_EXPORTS) \
22121df0 46036 echo "Doing info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46037 for flag in $(EXTRA_TARGET_FLAGS); do \
46038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46039 done; \
46040 (cd $(TARGET_SUBDIR)/libada && \
46041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46043 "RANLIB=$${RANLIB}" \
0c24b341 46044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46045 info) \
4fa63067
NN
46046 || exit 1
46047
6bd3dfaa 46048@endif target-libada
4fa63067
NN
46049
46050.PHONY: maybe-dvi-target-libada dvi-target-libada
46051maybe-dvi-target-libada:
6bd3dfaa
PB
46052@if target-libada
46053maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
46054
46055dvi-target-libada: \
46056 configure-target-libada
0aed8855 46057 @: $(MAKE); $(unstage)
22121df0 46058 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46059 r=`${PWD_COMMAND}`; export r; \
46060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46061 $(NORMAL_TARGET_EXPORTS) \
22121df0 46062 echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46063 for flag in $(EXTRA_TARGET_FLAGS); do \
46064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46065 done; \
46066 (cd $(TARGET_SUBDIR)/libada && \
46067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46069 "RANLIB=$${RANLIB}" \
0c24b341 46070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46071 dvi) \
4fa63067
NN
46072 || exit 1
46073
6bd3dfaa 46074@endif target-libada
4fa63067 46075
56a8fe78
DD
46076.PHONY: maybe-pdf-target-libada pdf-target-libada
46077maybe-pdf-target-libada:
46078@if target-libada
46079maybe-pdf-target-libada: pdf-target-libada
46080
46081pdf-target-libada: \
46082 configure-target-libada
46083 @: $(MAKE); $(unstage)
22121df0 46084 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
56a8fe78
DD
46085 r=`${PWD_COMMAND}`; export r; \
46086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46087 $(NORMAL_TARGET_EXPORTS) \
22121df0 46088 echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \
56a8fe78
DD
46089 for flag in $(EXTRA_TARGET_FLAGS); do \
46090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46091 done; \
46092 (cd $(TARGET_SUBDIR)/libada && \
46093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46095 "RANLIB=$${RANLIB}" \
0c24b341 46096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46097 pdf) \
46098 || exit 1
46099
46100@endif target-libada
46101
6d389afc
MS
46102.PHONY: maybe-html-target-libada html-target-libada
46103maybe-html-target-libada:
46104@if target-libada
46105maybe-html-target-libada: html-target-libada
46106
46107html-target-libada: \
46108 configure-target-libada
0aed8855 46109 @: $(MAKE); $(unstage)
22121df0 46110 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
6d389afc
MS
46111 r=`${PWD_COMMAND}`; export r; \
46112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 46113 $(NORMAL_TARGET_EXPORTS) \
22121df0 46114 echo "Doing html in $(TARGET_SUBDIR)/libada"; \
6d389afc
MS
46115 for flag in $(EXTRA_TARGET_FLAGS); do \
46116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46117 done; \
46118 (cd $(TARGET_SUBDIR)/libada && \
46119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46121 "RANLIB=$${RANLIB}" \
0c24b341 46122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
46123 html) \
46124 || exit 1
46125
46126@endif target-libada
46127
4fa63067
NN
46128.PHONY: maybe-TAGS-target-libada TAGS-target-libada
46129maybe-TAGS-target-libada:
6bd3dfaa
PB
46130@if target-libada
46131maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
46132
46133TAGS-target-libada: \
46134 configure-target-libada
0aed8855 46135 @: $(MAKE); $(unstage)
22121df0 46136 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46137 r=`${PWD_COMMAND}`; export r; \
46138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46139 $(NORMAL_TARGET_EXPORTS) \
22121df0 46140 echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46141 for flag in $(EXTRA_TARGET_FLAGS); do \
46142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46143 done; \
46144 (cd $(TARGET_SUBDIR)/libada && \
46145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46147 "RANLIB=$${RANLIB}" \
0c24b341 46148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46149 TAGS) \
4fa63067
NN
46150 || exit 1
46151
6bd3dfaa 46152@endif target-libada
4fa63067
NN
46153
46154.PHONY: maybe-install-info-target-libada install-info-target-libada
46155maybe-install-info-target-libada:
6bd3dfaa
PB
46156@if target-libada
46157maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
46158
46159install-info-target-libada: \
46160 configure-target-libada \
46161 info-target-libada
0aed8855 46162 @: $(MAKE); $(unstage)
22121df0 46163 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46164 r=`${PWD_COMMAND}`; export r; \
46165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46166 $(NORMAL_TARGET_EXPORTS) \
22121df0 46167 echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46168 for flag in $(EXTRA_TARGET_FLAGS); do \
46169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46170 done; \
46171 (cd $(TARGET_SUBDIR)/libada && \
46172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46174 "RANLIB=$${RANLIB}" \
0c24b341 46175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46176 install-info) \
4fa63067
NN
46177 || exit 1
46178
6bd3dfaa 46179@endif target-libada
4fa63067 46180
a3ca38d2
DD
46181.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
46182maybe-install-pdf-target-libada:
46183@if target-libada
46184maybe-install-pdf-target-libada: install-pdf-target-libada
46185
46186install-pdf-target-libada: \
46187 configure-target-libada \
46188 pdf-target-libada
46189 @: $(MAKE); $(unstage)
22121df0 46190 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
a3ca38d2
DD
46191 r=`${PWD_COMMAND}`; export r; \
46192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46193 $(NORMAL_TARGET_EXPORTS) \
22121df0 46194 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \
a3ca38d2
DD
46195 for flag in $(EXTRA_TARGET_FLAGS); do \
46196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46197 done; \
46198 (cd $(TARGET_SUBDIR)/libada && \
46199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46201 "RANLIB=$${RANLIB}" \
0c24b341 46202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46203 install-pdf) \
46204 || exit 1
46205
46206@endif target-libada
46207
108a6f8e
CD
46208.PHONY: maybe-install-html-target-libada install-html-target-libada
46209maybe-install-html-target-libada:
46210@if target-libada
46211maybe-install-html-target-libada: install-html-target-libada
46212
46213install-html-target-libada: \
46214 configure-target-libada \
46215 html-target-libada
46216 @: $(MAKE); $(unstage)
22121df0 46217 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
108a6f8e
CD
46218 r=`${PWD_COMMAND}`; export r; \
46219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46220 $(NORMAL_TARGET_EXPORTS) \
22121df0 46221 echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \
108a6f8e
CD
46222 for flag in $(EXTRA_TARGET_FLAGS); do \
46223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46224 done; \
46225 (cd $(TARGET_SUBDIR)/libada && \
46226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46228 "RANLIB=$${RANLIB}" \
0c24b341 46229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46230 install-html) \
46231 || exit 1
46232
46233@endif target-libada
46234
4fa63067
NN
46235.PHONY: maybe-installcheck-target-libada installcheck-target-libada
46236maybe-installcheck-target-libada:
6bd3dfaa
PB
46237@if target-libada
46238maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
46239
46240installcheck-target-libada: \
46241 configure-target-libada
0aed8855 46242 @: $(MAKE); $(unstage)
22121df0 46243 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46244 r=`${PWD_COMMAND}`; export r; \
46245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46246 $(NORMAL_TARGET_EXPORTS) \
22121df0 46247 echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46248 for flag in $(EXTRA_TARGET_FLAGS); do \
46249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46250 done; \
46251 (cd $(TARGET_SUBDIR)/libada && \
46252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46254 "RANLIB=$${RANLIB}" \
0c24b341 46255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46256 installcheck) \
4fa63067
NN
46257 || exit 1
46258
6bd3dfaa 46259@endif target-libada
4fa63067
NN
46260
46261.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
46262maybe-mostlyclean-target-libada:
6bd3dfaa
PB
46263@if target-libada
46264maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
46265
46266mostlyclean-target-libada:
0aed8855 46267 @: $(MAKE); $(unstage)
22121df0 46268 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46269 r=`${PWD_COMMAND}`; export r; \
46270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46271 $(NORMAL_TARGET_EXPORTS) \
22121df0 46272 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46273 for flag in $(EXTRA_TARGET_FLAGS); do \
46274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46275 done; \
46276 (cd $(TARGET_SUBDIR)/libada && \
46277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46279 "RANLIB=$${RANLIB}" \
0c24b341 46280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46281 mostlyclean) \
4fa63067
NN
46282 || exit 1
46283
6bd3dfaa 46284@endif target-libada
4fa63067
NN
46285
46286.PHONY: maybe-clean-target-libada clean-target-libada
46287maybe-clean-target-libada:
6bd3dfaa
PB
46288@if target-libada
46289maybe-clean-target-libada: clean-target-libada
4fa63067
NN
46290
46291clean-target-libada:
0aed8855 46292 @: $(MAKE); $(unstage)
22121df0 46293 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46294 r=`${PWD_COMMAND}`; export r; \
46295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46296 $(NORMAL_TARGET_EXPORTS) \
22121df0 46297 echo "Doing clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46298 for flag in $(EXTRA_TARGET_FLAGS); do \
46299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46300 done; \
46301 (cd $(TARGET_SUBDIR)/libada && \
46302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46304 "RANLIB=$${RANLIB}" \
0c24b341 46305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46306 clean) \
4fa63067
NN
46307 || exit 1
46308
6bd3dfaa 46309@endif target-libada
a2592b1b 46310
4fa63067
NN
46311.PHONY: maybe-distclean-target-libada distclean-target-libada
46312maybe-distclean-target-libada:
6bd3dfaa
PB
46313@if target-libada
46314maybe-distclean-target-libada: distclean-target-libada
a2592b1b 46315
4fa63067 46316distclean-target-libada:
0aed8855 46317 @: $(MAKE); $(unstage)
22121df0 46318 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 46319 r=`${PWD_COMMAND}`; export r; \
a2592b1b 46320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46321 $(NORMAL_TARGET_EXPORTS) \
22121df0 46322 echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46323 for flag in $(EXTRA_TARGET_FLAGS); do \
46324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46325 done; \
a2592b1b 46326 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
46327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46329 "RANLIB=$${RANLIB}" \
0c24b341 46330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46331 distclean) \
4fa63067 46332 || exit 1
a2592b1b 46333
6bd3dfaa 46334@endif target-libada
a2592b1b 46335
4fa63067
NN
46336.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
46337maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
46338@if target-libada
46339maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 46340
4fa63067 46341maintainer-clean-target-libada:
0aed8855 46342 @: $(MAKE); $(unstage)
22121df0 46343 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 46344 r=`${PWD_COMMAND}`; export r; \
a2592b1b 46345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46346 $(NORMAL_TARGET_EXPORTS) \
22121df0 46347 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46348 for flag in $(EXTRA_TARGET_FLAGS); do \
46349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46350 done; \
a2592b1b 46351 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
46352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46354 "RANLIB=$${RANLIB}" \
0c24b341 46355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46356 maintainer-clean) \
4fa63067
NN
46357 || exit 1
46358
6bd3dfaa 46359@endif target-libada
a2592b1b
DD
46360
46361
e393202e 46362
b3ded179
PB
46363
46364
46365.PHONY: configure-target-libgomp maybe-configure-target-libgomp
46366maybe-configure-target-libgomp:
4f0ef2d8
CD
46367@if gcc-bootstrap
46368configure-target-libgomp: stage_current
46369@endif gcc-bootstrap
b3ded179
PB
46370@if target-libgomp
46371maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 46372configure-target-libgomp:
b3ded179
PB
46373 @r=`${PWD_COMMAND}`; export r; \
46374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46375 echo "Checking multilib configuration for libgomp..."; \
22121df0
L
46376 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
46377 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
b3ded179
PB
46378 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46379 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46380 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46381 else \
46382 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46383 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46384 fi; \
46385 else \
46386 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
46387 fi; \
46388 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
22121df0 46389 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
1f53ca9a 46390 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
46391 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
46392 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
46393 case $(srcdir) in \
46394 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46395 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46396 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46397 esac; \
1b6c0831 46398 module_srcdir=libgomp; \
b3ded179 46399 rm -f no-such-file || : ; \
1b6c0831
L
46400 CONFIG_SITE=no-such-file $(SHELL) \
46401 $$s/$$module_srcdir/configure \
46402 --srcdir=$${topdir}/$$module_srcdir \
4b900473 46403 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46404 --target=${target_alias} \
b3ded179
PB
46405 || exit 1
46406@endif target-libgomp
46407
46408
46409
911e63d0
JR
46410.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
46411maybe-configure-stage1-target-libgomp:
46412@if target-libgomp-bootstrap
46413maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
46414configure-stage1-target-libgomp:
46415 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
46416 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46417 @r=`${PWD_COMMAND}`; export r; \
46418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46419 TFLAGS="$(STAGE1_TFLAGS)"; \
46420 echo "Checking multilib configuration for libgomp..."; \
22121df0 46421 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46422 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46423 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46424 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46425 else \
46426 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46427 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46428 fi; \
46429 else \
46430 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46431 fi; \
46432 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46433 $(NORMAL_TARGET_EXPORTS) \
46434 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46435 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46436 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46437 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \
46438 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46439 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46440 case $(srcdir) in \
46441 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46442 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46443 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46444 esac; \
1b6c0831
L
46445 module_srcdir=libgomp; \
46446 $(SHELL) $$s/$$module_srcdir/configure \
46447 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46448 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
46449 --target=${target_alias} \
46450 \
911e63d0
JR
46451 $(STAGE1_CONFIGURE_FLAGS)
46452@endif target-libgomp-bootstrap
46453
46454.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
46455maybe-configure-stage2-target-libgomp:
46456@if target-libgomp-bootstrap
46457maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
46458configure-stage2-target-libgomp:
46459 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
46460 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46461 @r=`${PWD_COMMAND}`; export r; \
46462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46463 TFLAGS="$(STAGE2_TFLAGS)"; \
46464 echo "Checking multilib configuration for libgomp..."; \
22121df0 46465 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46466 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46467 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46468 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46469 else \
46470 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46471 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46472 fi; \
46473 else \
46474 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46475 fi; \
46476 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46477 $(NORMAL_TARGET_EXPORTS) \
46478 \
46479 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46480 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46481 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46482 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \
46483 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46484 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46485 case $(srcdir) in \
46486 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46487 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46488 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46489 esac; \
1b6c0831
L
46490 module_srcdir=libgomp; \
46491 $(SHELL) $$s/$$module_srcdir/configure \
46492 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46493 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46494 --target=${target_alias} \
22121df0 46495 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46496 $(STAGE2_CONFIGURE_FLAGS)
46497@endif target-libgomp-bootstrap
46498
46499.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
46500maybe-configure-stage3-target-libgomp:
46501@if target-libgomp-bootstrap
46502maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
46503configure-stage3-target-libgomp:
46504 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
46505 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46506 @r=`${PWD_COMMAND}`; export r; \
46507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46508 TFLAGS="$(STAGE3_TFLAGS)"; \
46509 echo "Checking multilib configuration for libgomp..."; \
22121df0 46510 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46511 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46512 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46513 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46514 else \
46515 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46516 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46517 fi; \
46518 else \
46519 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46520 fi; \
46521 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46522 $(NORMAL_TARGET_EXPORTS) \
46523 \
46524 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46525 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46526 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46527 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \
46528 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46529 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46530 case $(srcdir) in \
46531 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46532 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46533 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46534 esac; \
1b6c0831
L
46535 module_srcdir=libgomp; \
46536 $(SHELL) $$s/$$module_srcdir/configure \
46537 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46538 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46539 --target=${target_alias} \
22121df0 46540 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46541 $(STAGE3_CONFIGURE_FLAGS)
46542@endif target-libgomp-bootstrap
46543
46544.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
46545maybe-configure-stage4-target-libgomp:
46546@if target-libgomp-bootstrap
46547maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
46548configure-stage4-target-libgomp:
46549 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
46550 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46551 @r=`${PWD_COMMAND}`; export r; \
46552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46553 TFLAGS="$(STAGE4_TFLAGS)"; \
46554 echo "Checking multilib configuration for libgomp..."; \
22121df0 46555 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46556 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46557 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46558 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46559 else \
46560 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46561 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46562 fi; \
46563 else \
46564 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46565 fi; \
46566 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46567 $(NORMAL_TARGET_EXPORTS) \
46568 \
46569 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46570 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46571 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46572 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \
46573 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46574 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46575 case $(srcdir) in \
46576 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46577 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46578 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46579 esac; \
1b6c0831
L
46580 module_srcdir=libgomp; \
46581 $(SHELL) $$s/$$module_srcdir/configure \
46582 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46583 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46584 --target=${target_alias} \
22121df0 46585 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46586 $(STAGE4_CONFIGURE_FLAGS)
46587@endif target-libgomp-bootstrap
46588
46589.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
46590maybe-configure-stageprofile-target-libgomp:
46591@if target-libgomp-bootstrap
46592maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46593configure-stageprofile-target-libgomp:
46594 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46595 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46596 @r=`${PWD_COMMAND}`; export r; \
46597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46598 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46599 echo "Checking multilib configuration for libgomp..."; \
22121df0 46600 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46601 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46602 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46603 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46604 else \
46605 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46606 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46607 fi; \
46608 else \
46609 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46610 fi; \
46611 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46612 $(NORMAL_TARGET_EXPORTS) \
46613 \
46614 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46615 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46616 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46617 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \
46618 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46619 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46620 case $(srcdir) in \
46621 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46622 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46623 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46624 esac; \
1b6c0831
L
46625 module_srcdir=libgomp; \
46626 $(SHELL) $$s/$$module_srcdir/configure \
46627 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46628 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46629 --target=${target_alias} \
22121df0 46630 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46631 $(STAGEprofile_CONFIGURE_FLAGS)
46632@endif target-libgomp-bootstrap
46633
46634.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
46635maybe-configure-stagefeedback-target-libgomp:
46636@if target-libgomp-bootstrap
46637maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46638configure-stagefeedback-target-libgomp:
46639 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46640 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46641 @r=`${PWD_COMMAND}`; export r; \
46642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46643 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46644 echo "Checking multilib configuration for libgomp..."; \
22121df0 46645 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46646 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46647 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46648 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46649 else \
46650 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46651 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46652 fi; \
46653 else \
46654 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46655 fi; \
46656 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46657 $(NORMAL_TARGET_EXPORTS) \
46658 \
46659 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46660 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46661 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46662 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \
46663 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46664 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46665 case $(srcdir) in \
46666 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46667 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46668 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46669 esac; \
1b6c0831
L
46670 module_srcdir=libgomp; \
46671 $(SHELL) $$s/$$module_srcdir/configure \
46672 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46673 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46674 --target=${target_alias} \
22121df0 46675 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46676 $(STAGEfeedback_CONFIGURE_FLAGS)
46677@endif target-libgomp-bootstrap
46678
46679
46680
b3ded179
PB
46681
46682
46683.PHONY: all-target-libgomp maybe-all-target-libgomp
46684maybe-all-target-libgomp:
4f0ef2d8
CD
46685@if gcc-bootstrap
46686all-target-libgomp: stage_current
46687@endif gcc-bootstrap
b3ded179
PB
46688@if target-libgomp
46689TARGET-target-libgomp=all
46690maybe-all-target-libgomp: all-target-libgomp
46691all-target-libgomp: configure-target-libgomp
b3ded179
PB
46692 @r=`${PWD_COMMAND}`; export r; \
46693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46694 $(NORMAL_TARGET_EXPORTS) \
b3ded179 46695 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46696 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46697 $(TARGET-target-libgomp))
b3ded179
PB
46698@endif target-libgomp
46699
46700
46701
911e63d0
JR
46702.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
46703.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
46704maybe-all-stage1-target-libgomp:
46705maybe-clean-stage1-target-libgomp:
46706@if target-libgomp-bootstrap
46707maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
46708all-stage1: all-stage1-target-libgomp
46709TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
46710all-stage1-target-libgomp: configure-stage1-target-libgomp
46711 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
46712 @r=`${PWD_COMMAND}`; export r; \
46713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46714 TFLAGS="$(STAGE1_TFLAGS)"; \
46715 $(NORMAL_TARGET_EXPORTS) \
46716 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46717 \
911e63d0
JR
46718 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46719 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46720 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46721 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46722 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46723 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46724 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
46725 $(EXTRA_TARGET_FLAGS) \
46726 \
05a13254 46727 TFLAGS="$(STAGE1_TFLAGS)" \
911e63d0
JR
46728 $(TARGET-stage1-target-libgomp)
46729
46730maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
46731clean-stage1: clean-stage1-target-libgomp
46732clean-stage1-target-libgomp:
46733 @if [ $(current_stage) = stage1 ]; then \
46734 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46735 else \
46736 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
46737 $(MAKE) stage1-start; \
46738 fi; \
46739 cd $(TARGET_SUBDIR)/libgomp && \
46740 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 46741 clean
911e63d0
JR
46742@endif target-libgomp-bootstrap
46743
46744
46745.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
46746.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
46747maybe-all-stage2-target-libgomp:
46748maybe-clean-stage2-target-libgomp:
46749@if target-libgomp-bootstrap
46750maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
46751all-stage2: all-stage2-target-libgomp
46752TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
46753all-stage2-target-libgomp: configure-stage2-target-libgomp
46754 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
46755 @r=`${PWD_COMMAND}`; export r; \
46756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46757 TFLAGS="$(STAGE2_TFLAGS)"; \
46758 $(NORMAL_TARGET_EXPORTS) \
46759 \
46760 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46761 \
911e63d0
JR
46762 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46763 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46764 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46765 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46766 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46767 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46768 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46769 $(EXTRA_TARGET_FLAGS) \
05a13254 46770 TFLAGS="$(STAGE2_TFLAGS)" \
911e63d0
JR
46771 $(TARGET-stage2-target-libgomp)
46772
46773maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
46774clean-stage2: clean-stage2-target-libgomp
46775clean-stage2-target-libgomp:
46776 @if [ $(current_stage) = stage2 ]; then \
46777 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46778 else \
46779 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
46780 $(MAKE) stage2-start; \
46781 fi; \
46782 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46783 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46784@endif target-libgomp-bootstrap
46785
46786
46787.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
46788.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
46789maybe-all-stage3-target-libgomp:
46790maybe-clean-stage3-target-libgomp:
46791@if target-libgomp-bootstrap
46792maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
46793all-stage3: all-stage3-target-libgomp
46794TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
46795all-stage3-target-libgomp: configure-stage3-target-libgomp
46796 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
46797 @r=`${PWD_COMMAND}`; export r; \
46798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46799 TFLAGS="$(STAGE3_TFLAGS)"; \
46800 $(NORMAL_TARGET_EXPORTS) \
46801 \
46802 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46803 \
911e63d0
JR
46804 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46805 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46806 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46807 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46808 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46809 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46810 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46811 $(EXTRA_TARGET_FLAGS) \
05a13254 46812 TFLAGS="$(STAGE3_TFLAGS)" \
911e63d0
JR
46813 $(TARGET-stage3-target-libgomp)
46814
46815maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
46816clean-stage3: clean-stage3-target-libgomp
46817clean-stage3-target-libgomp:
46818 @if [ $(current_stage) = stage3 ]; then \
46819 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46820 else \
46821 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
46822 $(MAKE) stage3-start; \
46823 fi; \
46824 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46825 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46826@endif target-libgomp-bootstrap
46827
46828
46829.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
46830.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
46831maybe-all-stage4-target-libgomp:
46832maybe-clean-stage4-target-libgomp:
46833@if target-libgomp-bootstrap
46834maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
46835all-stage4: all-stage4-target-libgomp
46836TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
46837all-stage4-target-libgomp: configure-stage4-target-libgomp
46838 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
46839 @r=`${PWD_COMMAND}`; export r; \
46840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46841 TFLAGS="$(STAGE4_TFLAGS)"; \
46842 $(NORMAL_TARGET_EXPORTS) \
46843 \
46844 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46845 \
911e63d0
JR
46846 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46847 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46848 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46849 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46850 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46851 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46852 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46853 $(EXTRA_TARGET_FLAGS) \
05a13254 46854 TFLAGS="$(STAGE4_TFLAGS)" \
911e63d0
JR
46855 $(TARGET-stage4-target-libgomp)
46856
46857maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
46858clean-stage4: clean-stage4-target-libgomp
46859clean-stage4-target-libgomp:
46860 @if [ $(current_stage) = stage4 ]; then \
46861 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46862 else \
46863 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
46864 $(MAKE) stage4-start; \
46865 fi; \
46866 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46867 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46868@endif target-libgomp-bootstrap
46869
46870
46871.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
46872.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
46873maybe-all-stageprofile-target-libgomp:
46874maybe-clean-stageprofile-target-libgomp:
46875@if target-libgomp-bootstrap
46876maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
46877all-stageprofile: all-stageprofile-target-libgomp
46878TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
46879all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46880 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46881 @r=`${PWD_COMMAND}`; export r; \
46882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46883 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46884 $(NORMAL_TARGET_EXPORTS) \
46885 \
46886 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46887 \
911e63d0
JR
46888 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46889 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46890 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46891 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46892 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46893 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46894 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46895 $(EXTRA_TARGET_FLAGS) \
05a13254 46896 TFLAGS="$(STAGEprofile_TFLAGS)" \
911e63d0
JR
46897 $(TARGET-stageprofile-target-libgomp)
46898
46899maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
46900clean-stageprofile: clean-stageprofile-target-libgomp
46901clean-stageprofile-target-libgomp:
46902 @if [ $(current_stage) = stageprofile ]; then \
46903 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46904 else \
46905 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
46906 $(MAKE) stageprofile-start; \
46907 fi; \
46908 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46909 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46910@endif target-libgomp-bootstrap
46911
46912
46913.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
46914.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
46915maybe-all-stagefeedback-target-libgomp:
46916maybe-clean-stagefeedback-target-libgomp:
46917@if target-libgomp-bootstrap
46918maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
46919all-stagefeedback: all-stagefeedback-target-libgomp
46920TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
46921all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46922 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46923 @r=`${PWD_COMMAND}`; export r; \
46924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46925 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46926 $(NORMAL_TARGET_EXPORTS) \
46927 \
46928 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46929 \
911e63d0
JR
46930 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46931 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46932 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46933 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46934 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46935 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46936 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46937 $(EXTRA_TARGET_FLAGS) \
05a13254 46938 TFLAGS="$(STAGEfeedback_TFLAGS)" \
911e63d0
JR
46939 $(TARGET-stagefeedback-target-libgomp)
46940
46941maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
46942clean-stagefeedback: clean-stagefeedback-target-libgomp
46943clean-stagefeedback-target-libgomp:
46944 @if [ $(current_stage) = stagefeedback ]; then \
46945 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46946 else \
46947 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
46948 $(MAKE) stagefeedback-start; \
46949 fi; \
46950 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46951 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46952@endif target-libgomp-bootstrap
46953
46954
46955
46956
b3ded179
PB
46957
46958
46959.PHONY: check-target-libgomp maybe-check-target-libgomp
46960maybe-check-target-libgomp:
46961@if target-libgomp
46962maybe-check-target-libgomp: check-target-libgomp
46963
46964check-target-libgomp:
46965 @: $(MAKE); $(unstage)
46966 @r=`${PWD_COMMAND}`; export r; \
46967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46968 $(NORMAL_TARGET_EXPORTS) \
46969 (cd $(TARGET_SUBDIR)/libgomp && \
46970 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46971
46972@endif target-libgomp
46973
46974.PHONY: install-target-libgomp maybe-install-target-libgomp
46975maybe-install-target-libgomp:
46976@if target-libgomp
46977maybe-install-target-libgomp: install-target-libgomp
46978
46979install-target-libgomp: installdirs
46980 @: $(MAKE); $(unstage)
46981 @r=`${PWD_COMMAND}`; export r; \
46982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46983 $(NORMAL_TARGET_EXPORTS) \
46984 (cd $(TARGET_SUBDIR)/libgomp && \
46985 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46986
46987@endif target-libgomp
46988
9b980aa1
RW
46989.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
46990maybe-install-strip-target-libgomp:
46991@if target-libgomp
46992maybe-install-strip-target-libgomp: install-strip-target-libgomp
46993
46994install-strip-target-libgomp: installdirs
46995 @: $(MAKE); $(unstage)
46996 @r=`${PWD_COMMAND}`; export r; \
46997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46998 $(NORMAL_TARGET_EXPORTS) \
46999 (cd $(TARGET_SUBDIR)/libgomp && \
47000 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47001
47002@endif target-libgomp
47003
56a8fe78 47004# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
47005
47006.PHONY: maybe-info-target-libgomp info-target-libgomp
47007maybe-info-target-libgomp:
47008@if target-libgomp
47009maybe-info-target-libgomp: info-target-libgomp
47010
47011info-target-libgomp: \
47012 configure-target-libgomp
47013 @: $(MAKE); $(unstage)
22121df0 47014 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47015 r=`${PWD_COMMAND}`; export r; \
47016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47017 $(NORMAL_TARGET_EXPORTS) \
22121df0 47018 echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47019 for flag in $(EXTRA_TARGET_FLAGS); do \
47020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47021 done; \
47022 (cd $(TARGET_SUBDIR)/libgomp && \
47023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47025 "RANLIB=$${RANLIB}" \
0c24b341 47026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47027 info) \
47028 || exit 1
47029
47030@endif target-libgomp
47031
47032.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
47033maybe-dvi-target-libgomp:
47034@if target-libgomp
47035maybe-dvi-target-libgomp: dvi-target-libgomp
47036
47037dvi-target-libgomp: \
47038 configure-target-libgomp
47039 @: $(MAKE); $(unstage)
22121df0 47040 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47041 r=`${PWD_COMMAND}`; export r; \
47042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47043 $(NORMAL_TARGET_EXPORTS) \
22121df0 47044 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47045 for flag in $(EXTRA_TARGET_FLAGS); do \
47046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47047 done; \
47048 (cd $(TARGET_SUBDIR)/libgomp && \
47049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47051 "RANLIB=$${RANLIB}" \
0c24b341 47052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47053 dvi) \
47054 || exit 1
47055
47056@endif target-libgomp
47057
56a8fe78
DD
47058.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
47059maybe-pdf-target-libgomp:
47060@if target-libgomp
47061maybe-pdf-target-libgomp: pdf-target-libgomp
47062
47063pdf-target-libgomp: \
47064 configure-target-libgomp
47065 @: $(MAKE); $(unstage)
22121df0 47066 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
56a8fe78
DD
47067 r=`${PWD_COMMAND}`; export r; \
47068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47069 $(NORMAL_TARGET_EXPORTS) \
22121df0 47070 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \
56a8fe78
DD
47071 for flag in $(EXTRA_TARGET_FLAGS); do \
47072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47073 done; \
47074 (cd $(TARGET_SUBDIR)/libgomp && \
47075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47077 "RANLIB=$${RANLIB}" \
0c24b341 47078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
47079 pdf) \
47080 || exit 1
47081
47082@endif target-libgomp
47083
b3ded179
PB
47084.PHONY: maybe-html-target-libgomp html-target-libgomp
47085maybe-html-target-libgomp:
47086@if target-libgomp
47087maybe-html-target-libgomp: html-target-libgomp
47088
47089html-target-libgomp: \
47090 configure-target-libgomp
47091 @: $(MAKE); $(unstage)
22121df0 47092 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47093 r=`${PWD_COMMAND}`; export r; \
47094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47095 $(NORMAL_TARGET_EXPORTS) \
22121df0 47096 echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47097 for flag in $(EXTRA_TARGET_FLAGS); do \
47098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47099 done; \
47100 (cd $(TARGET_SUBDIR)/libgomp && \
47101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47103 "RANLIB=$${RANLIB}" \
0c24b341 47104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47105 html) \
47106 || exit 1
47107
47108@endif target-libgomp
47109
47110.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
47111maybe-TAGS-target-libgomp:
47112@if target-libgomp
47113maybe-TAGS-target-libgomp: TAGS-target-libgomp
47114
47115TAGS-target-libgomp: \
47116 configure-target-libgomp
47117 @: $(MAKE); $(unstage)
22121df0 47118 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47119 r=`${PWD_COMMAND}`; export r; \
47120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47121 $(NORMAL_TARGET_EXPORTS) \
22121df0 47122 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47123 for flag in $(EXTRA_TARGET_FLAGS); do \
47124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47125 done; \
47126 (cd $(TARGET_SUBDIR)/libgomp && \
47127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47129 "RANLIB=$${RANLIB}" \
0c24b341 47130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47131 TAGS) \
47132 || exit 1
47133
47134@endif target-libgomp
47135
47136.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
47137maybe-install-info-target-libgomp:
47138@if target-libgomp
47139maybe-install-info-target-libgomp: install-info-target-libgomp
47140
47141install-info-target-libgomp: \
47142 configure-target-libgomp \
47143 info-target-libgomp
47144 @: $(MAKE); $(unstage)
22121df0 47145 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47146 r=`${PWD_COMMAND}`; export r; \
47147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47148 $(NORMAL_TARGET_EXPORTS) \
22121df0 47149 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47150 for flag in $(EXTRA_TARGET_FLAGS); do \
47151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47152 done; \
47153 (cd $(TARGET_SUBDIR)/libgomp && \
47154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47156 "RANLIB=$${RANLIB}" \
0c24b341 47157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47158 install-info) \
47159 || exit 1
47160
47161@endif target-libgomp
47162
a3ca38d2
DD
47163.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
47164maybe-install-pdf-target-libgomp:
47165@if target-libgomp
47166maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
47167
47168install-pdf-target-libgomp: \
47169 configure-target-libgomp \
47170 pdf-target-libgomp
47171 @: $(MAKE); $(unstage)
22121df0 47172 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
a3ca38d2
DD
47173 r=`${PWD_COMMAND}`; export r; \
47174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47175 $(NORMAL_TARGET_EXPORTS) \
22121df0 47176 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \
a3ca38d2
DD
47177 for flag in $(EXTRA_TARGET_FLAGS); do \
47178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47179 done; \
47180 (cd $(TARGET_SUBDIR)/libgomp && \
47181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47183 "RANLIB=$${RANLIB}" \
0c24b341 47184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
47185 install-pdf) \
47186 || exit 1
47187
47188@endif target-libgomp
47189
108a6f8e
CD
47190.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
47191maybe-install-html-target-libgomp:
47192@if target-libgomp
47193maybe-install-html-target-libgomp: install-html-target-libgomp
47194
47195install-html-target-libgomp: \
47196 configure-target-libgomp \
47197 html-target-libgomp
47198 @: $(MAKE); $(unstage)
22121df0 47199 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
108a6f8e
CD
47200 r=`${PWD_COMMAND}`; export r; \
47201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47202 $(NORMAL_TARGET_EXPORTS) \
22121df0 47203 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \
108a6f8e
CD
47204 for flag in $(EXTRA_TARGET_FLAGS); do \
47205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47206 done; \
47207 (cd $(TARGET_SUBDIR)/libgomp && \
47208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47210 "RANLIB=$${RANLIB}" \
0c24b341 47211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
47212 install-html) \
47213 || exit 1
47214
47215@endif target-libgomp
47216
b3ded179
PB
47217.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
47218maybe-installcheck-target-libgomp:
47219@if target-libgomp
47220maybe-installcheck-target-libgomp: installcheck-target-libgomp
47221
47222installcheck-target-libgomp: \
47223 configure-target-libgomp
47224 @: $(MAKE); $(unstage)
22121df0 47225 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47226 r=`${PWD_COMMAND}`; export r; \
47227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47228 $(NORMAL_TARGET_EXPORTS) \
22121df0 47229 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47230 for flag in $(EXTRA_TARGET_FLAGS); do \
47231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47232 done; \
47233 (cd $(TARGET_SUBDIR)/libgomp && \
47234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47236 "RANLIB=$${RANLIB}" \
0c24b341 47237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47238 installcheck) \
47239 || exit 1
47240
47241@endif target-libgomp
47242
47243.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
47244maybe-mostlyclean-target-libgomp:
47245@if target-libgomp
47246maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
47247
47248mostlyclean-target-libgomp:
47249 @: $(MAKE); $(unstage)
22121df0 47250 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47251 r=`${PWD_COMMAND}`; export r; \
47252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47253 $(NORMAL_TARGET_EXPORTS) \
22121df0 47254 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47255 for flag in $(EXTRA_TARGET_FLAGS); do \
47256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47257 done; \
47258 (cd $(TARGET_SUBDIR)/libgomp && \
47259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47261 "RANLIB=$${RANLIB}" \
0c24b341 47262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47263 mostlyclean) \
47264 || exit 1
47265
47266@endif target-libgomp
47267
47268.PHONY: maybe-clean-target-libgomp clean-target-libgomp
47269maybe-clean-target-libgomp:
47270@if target-libgomp
47271maybe-clean-target-libgomp: clean-target-libgomp
47272
47273clean-target-libgomp:
47274 @: $(MAKE); $(unstage)
22121df0 47275 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47276 r=`${PWD_COMMAND}`; export r; \
47277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47278 $(NORMAL_TARGET_EXPORTS) \
22121df0 47279 echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47280 for flag in $(EXTRA_TARGET_FLAGS); do \
47281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47282 done; \
47283 (cd $(TARGET_SUBDIR)/libgomp && \
47284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47286 "RANLIB=$${RANLIB}" \
0c24b341 47287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47288 clean) \
47289 || exit 1
47290
47291@endif target-libgomp
47292
47293.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
47294maybe-distclean-target-libgomp:
47295@if target-libgomp
47296maybe-distclean-target-libgomp: distclean-target-libgomp
47297
47298distclean-target-libgomp:
47299 @: $(MAKE); $(unstage)
22121df0 47300 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47301 r=`${PWD_COMMAND}`; export r; \
47302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47303 $(NORMAL_TARGET_EXPORTS) \
22121df0 47304 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47305 for flag in $(EXTRA_TARGET_FLAGS); do \
47306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47307 done; \
47308 (cd $(TARGET_SUBDIR)/libgomp && \
47309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47311 "RANLIB=$${RANLIB}" \
0c24b341 47312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47313 distclean) \
47314 || exit 1
47315
47316@endif target-libgomp
47317
47318.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
47319maybe-maintainer-clean-target-libgomp:
47320@if target-libgomp
47321maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
47322
47323maintainer-clean-target-libgomp:
47324 @: $(MAKE); $(unstage)
22121df0 47325 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47326 r=`${PWD_COMMAND}`; export r; \
47327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47328 $(NORMAL_TARGET_EXPORTS) \
22121df0 47329 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47330 for flag in $(EXTRA_TARGET_FLAGS); do \
47331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47332 done; \
47333 (cd $(TARGET_SUBDIR)/libgomp && \
47334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47336 "RANLIB=$${RANLIB}" \
0c24b341 47337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47338 maintainer-clean) \
47339 || exit 1
47340
47341@endif target-libgomp
47342
47343
47344
7ec59b9e
L
47345
47346
47347.PHONY: configure-target-libitm maybe-configure-target-libitm
47348maybe-configure-target-libitm:
47349@if gcc-bootstrap
47350configure-target-libitm: stage_current
47351@endif gcc-bootstrap
47352@if target-libitm
47353maybe-configure-target-libitm: configure-target-libitm
47354configure-target-libitm:
47355 @: $(MAKE); $(unstage)
47356 @r=`${PWD_COMMAND}`; export r; \
47357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47358 echo "Checking multilib configuration for libitm..."; \
22121df0
L
47359 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
47360 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \
7ec59b9e
L
47361 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
47362 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
47363 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
47364 else \
47365 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
47366 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
47367 fi; \
47368 else \
47369 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
47370 fi; \
47371 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
22121df0 47372 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
7ec59b9e
L
47373 $(NORMAL_TARGET_EXPORTS) \
47374 echo Configuring in $(TARGET_SUBDIR)/libitm; \
47375 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
47376 case $(srcdir) in \
47377 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47378 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
47379 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47380 esac; \
1b6c0831 47381 module_srcdir=libitm; \
7ec59b9e 47382 rm -f no-such-file || : ; \
1b6c0831
L
47383 CONFIG_SITE=no-such-file $(SHELL) \
47384 $$s/$$module_srcdir/configure \
47385 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 47386 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47387 --target=${target_alias} \
7ec59b9e
L
47388 || exit 1
47389@endif target-libitm
47390
47391
47392
47393
47394
47395.PHONY: all-target-libitm maybe-all-target-libitm
47396maybe-all-target-libitm:
47397@if gcc-bootstrap
47398all-target-libitm: stage_current
47399@endif gcc-bootstrap
47400@if target-libitm
47401TARGET-target-libitm=all
47402maybe-all-target-libitm: all-target-libitm
47403all-target-libitm: configure-target-libitm
47404 @: $(MAKE); $(unstage)
47405 @r=`${PWD_COMMAND}`; export r; \
47406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47407 $(NORMAL_TARGET_EXPORTS) \
47408 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 47409 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
47410 $(TARGET-target-libitm))
47411@endif target-libitm
47412
47413
47414
47415
47416
47417.PHONY: check-target-libitm maybe-check-target-libitm
47418maybe-check-target-libitm:
47419@if target-libitm
47420maybe-check-target-libitm: check-target-libitm
47421
47422check-target-libitm:
47423 @: $(MAKE); $(unstage)
47424 @r=`${PWD_COMMAND}`; export r; \
47425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47426 $(NORMAL_TARGET_EXPORTS) \
47427 (cd $(TARGET_SUBDIR)/libitm && \
47428 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47429
47430@endif target-libitm
47431
47432.PHONY: install-target-libitm maybe-install-target-libitm
47433maybe-install-target-libitm:
47434@if target-libitm
47435maybe-install-target-libitm: install-target-libitm
47436
47437install-target-libitm: installdirs
47438 @: $(MAKE); $(unstage)
47439 @r=`${PWD_COMMAND}`; export r; \
47440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47441 $(NORMAL_TARGET_EXPORTS) \
47442 (cd $(TARGET_SUBDIR)/libitm && \
47443 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47444
47445@endif target-libitm
47446
47447.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
47448maybe-install-strip-target-libitm:
47449@if target-libitm
47450maybe-install-strip-target-libitm: install-strip-target-libitm
47451
47452install-strip-target-libitm: installdirs
47453 @: $(MAKE); $(unstage)
47454 @r=`${PWD_COMMAND}`; export r; \
47455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47456 $(NORMAL_TARGET_EXPORTS) \
47457 (cd $(TARGET_SUBDIR)/libitm && \
47458 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47459
47460@endif target-libitm
47461
47462# Other targets (info, dvi, pdf, etc.)
47463
47464.PHONY: maybe-info-target-libitm info-target-libitm
47465maybe-info-target-libitm:
47466@if target-libitm
47467maybe-info-target-libitm: info-target-libitm
47468
47469info-target-libitm: \
47470 configure-target-libitm
47471 @: $(MAKE); $(unstage)
22121df0 47472 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47473 r=`${PWD_COMMAND}`; export r; \
47474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47475 $(NORMAL_TARGET_EXPORTS) \
22121df0 47476 echo "Doing info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47477 for flag in $(EXTRA_TARGET_FLAGS); do \
47478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47479 done; \
47480 (cd $(TARGET_SUBDIR)/libitm && \
47481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47483 "RANLIB=$${RANLIB}" \
47484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47485 info) \
47486 || exit 1
47487
47488@endif target-libitm
47489
47490.PHONY: maybe-dvi-target-libitm dvi-target-libitm
47491maybe-dvi-target-libitm:
47492@if target-libitm
47493maybe-dvi-target-libitm: dvi-target-libitm
47494
47495dvi-target-libitm: \
47496 configure-target-libitm
47497 @: $(MAKE); $(unstage)
22121df0 47498 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47499 r=`${PWD_COMMAND}`; export r; \
47500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47501 $(NORMAL_TARGET_EXPORTS) \
22121df0 47502 echo "Doing dvi in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47503 for flag in $(EXTRA_TARGET_FLAGS); do \
47504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47505 done; \
47506 (cd $(TARGET_SUBDIR)/libitm && \
47507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47509 "RANLIB=$${RANLIB}" \
47510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47511 dvi) \
47512 || exit 1
47513
47514@endif target-libitm
47515
47516.PHONY: maybe-pdf-target-libitm pdf-target-libitm
47517maybe-pdf-target-libitm:
47518@if target-libitm
47519maybe-pdf-target-libitm: pdf-target-libitm
47520
47521pdf-target-libitm: \
47522 configure-target-libitm
47523 @: $(MAKE); $(unstage)
22121df0 47524 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47525 r=`${PWD_COMMAND}`; export r; \
47526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47527 $(NORMAL_TARGET_EXPORTS) \
22121df0 47528 echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47529 for flag in $(EXTRA_TARGET_FLAGS); do \
47530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47531 done; \
47532 (cd $(TARGET_SUBDIR)/libitm && \
47533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47535 "RANLIB=$${RANLIB}" \
47536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47537 pdf) \
47538 || exit 1
47539
47540@endif target-libitm
47541
47542.PHONY: maybe-html-target-libitm html-target-libitm
47543maybe-html-target-libitm:
47544@if target-libitm
47545maybe-html-target-libitm: html-target-libitm
47546
47547html-target-libitm: \
47548 configure-target-libitm
47549 @: $(MAKE); $(unstage)
22121df0 47550 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47551 r=`${PWD_COMMAND}`; export r; \
47552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47553 $(NORMAL_TARGET_EXPORTS) \
22121df0 47554 echo "Doing html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47555 for flag in $(EXTRA_TARGET_FLAGS); do \
47556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47557 done; \
47558 (cd $(TARGET_SUBDIR)/libitm && \
47559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47561 "RANLIB=$${RANLIB}" \
47562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47563 html) \
47564 || exit 1
47565
47566@endif target-libitm
47567
47568.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
47569maybe-TAGS-target-libitm:
47570@if target-libitm
47571maybe-TAGS-target-libitm: TAGS-target-libitm
47572
47573TAGS-target-libitm: \
47574 configure-target-libitm
47575 @: $(MAKE); $(unstage)
22121df0 47576 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47577 r=`${PWD_COMMAND}`; export r; \
47578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47579 $(NORMAL_TARGET_EXPORTS) \
22121df0 47580 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47581 for flag in $(EXTRA_TARGET_FLAGS); do \
47582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47583 done; \
47584 (cd $(TARGET_SUBDIR)/libitm && \
47585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47587 "RANLIB=$${RANLIB}" \
47588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47589 TAGS) \
47590 || exit 1
47591
47592@endif target-libitm
47593
47594.PHONY: maybe-install-info-target-libitm install-info-target-libitm
47595maybe-install-info-target-libitm:
47596@if target-libitm
47597maybe-install-info-target-libitm: install-info-target-libitm
47598
47599install-info-target-libitm: \
47600 configure-target-libitm \
47601 info-target-libitm
47602 @: $(MAKE); $(unstage)
22121df0 47603 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47604 r=`${PWD_COMMAND}`; export r; \
47605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47606 $(NORMAL_TARGET_EXPORTS) \
22121df0 47607 echo "Doing install-info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47608 for flag in $(EXTRA_TARGET_FLAGS); do \
47609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47610 done; \
47611 (cd $(TARGET_SUBDIR)/libitm && \
47612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47614 "RANLIB=$${RANLIB}" \
47615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47616 install-info) \
47617 || exit 1
47618
47619@endif target-libitm
47620
47621.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
47622maybe-install-pdf-target-libitm:
47623@if target-libitm
47624maybe-install-pdf-target-libitm: install-pdf-target-libitm
47625
47626install-pdf-target-libitm: \
47627 configure-target-libitm \
47628 pdf-target-libitm
47629 @: $(MAKE); $(unstage)
22121df0 47630 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47631 r=`${PWD_COMMAND}`; export r; \
47632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47633 $(NORMAL_TARGET_EXPORTS) \
22121df0 47634 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47635 for flag in $(EXTRA_TARGET_FLAGS); do \
47636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47637 done; \
47638 (cd $(TARGET_SUBDIR)/libitm && \
47639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47641 "RANLIB=$${RANLIB}" \
47642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47643 install-pdf) \
47644 || exit 1
47645
47646@endif target-libitm
47647
47648.PHONY: maybe-install-html-target-libitm install-html-target-libitm
47649maybe-install-html-target-libitm:
47650@if target-libitm
47651maybe-install-html-target-libitm: install-html-target-libitm
47652
47653install-html-target-libitm: \
47654 configure-target-libitm \
47655 html-target-libitm
47656 @: $(MAKE); $(unstage)
22121df0 47657 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47658 r=`${PWD_COMMAND}`; export r; \
47659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47660 $(NORMAL_TARGET_EXPORTS) \
22121df0 47661 echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47662 for flag in $(EXTRA_TARGET_FLAGS); do \
47663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47664 done; \
47665 (cd $(TARGET_SUBDIR)/libitm && \
47666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47668 "RANLIB=$${RANLIB}" \
47669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47670 install-html) \
47671 || exit 1
47672
47673@endif target-libitm
47674
47675.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
47676maybe-installcheck-target-libitm:
47677@if target-libitm
47678maybe-installcheck-target-libitm: installcheck-target-libitm
47679
47680installcheck-target-libitm: \
47681 configure-target-libitm
47682 @: $(MAKE); $(unstage)
22121df0 47683 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47684 r=`${PWD_COMMAND}`; export r; \
47685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47686 $(NORMAL_TARGET_EXPORTS) \
22121df0 47687 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47688 for flag in $(EXTRA_TARGET_FLAGS); do \
47689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47690 done; \
47691 (cd $(TARGET_SUBDIR)/libitm && \
47692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47694 "RANLIB=$${RANLIB}" \
47695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47696 installcheck) \
47697 || exit 1
47698
47699@endif target-libitm
47700
47701.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
47702maybe-mostlyclean-target-libitm:
47703@if target-libitm
47704maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
47705
47706mostlyclean-target-libitm:
47707 @: $(MAKE); $(unstage)
22121df0 47708 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47709 r=`${PWD_COMMAND}`; export r; \
47710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47711 $(NORMAL_TARGET_EXPORTS) \
22121df0 47712 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47713 for flag in $(EXTRA_TARGET_FLAGS); do \
47714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47715 done; \
47716 (cd $(TARGET_SUBDIR)/libitm && \
47717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47719 "RANLIB=$${RANLIB}" \
47720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47721 mostlyclean) \
47722 || exit 1
47723
47724@endif target-libitm
47725
47726.PHONY: maybe-clean-target-libitm clean-target-libitm
47727maybe-clean-target-libitm:
47728@if target-libitm
47729maybe-clean-target-libitm: clean-target-libitm
47730
47731clean-target-libitm:
47732 @: $(MAKE); $(unstage)
22121df0 47733 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47734 r=`${PWD_COMMAND}`; export r; \
47735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47736 $(NORMAL_TARGET_EXPORTS) \
22121df0 47737 echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47738 for flag in $(EXTRA_TARGET_FLAGS); do \
47739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47740 done; \
47741 (cd $(TARGET_SUBDIR)/libitm && \
47742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47744 "RANLIB=$${RANLIB}" \
47745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47746 clean) \
47747 || exit 1
47748
47749@endif target-libitm
47750
47751.PHONY: maybe-distclean-target-libitm distclean-target-libitm
47752maybe-distclean-target-libitm:
47753@if target-libitm
47754maybe-distclean-target-libitm: distclean-target-libitm
47755
47756distclean-target-libitm:
47757 @: $(MAKE); $(unstage)
22121df0 47758 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47759 r=`${PWD_COMMAND}`; export r; \
47760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47761 $(NORMAL_TARGET_EXPORTS) \
22121df0 47762 echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47763 for flag in $(EXTRA_TARGET_FLAGS); do \
47764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47765 done; \
47766 (cd $(TARGET_SUBDIR)/libitm && \
47767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47769 "RANLIB=$${RANLIB}" \
47770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47771 distclean) \
47772 || exit 1
47773
47774@endif target-libitm
47775
47776.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
47777maybe-maintainer-clean-target-libitm:
47778@if target-libitm
47779maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
47780
47781maintainer-clean-target-libitm:
47782 @: $(MAKE); $(unstage)
22121df0 47783 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47784 r=`${PWD_COMMAND}`; export r; \
47785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47786 $(NORMAL_TARGET_EXPORTS) \
22121df0 47787 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47788 for flag in $(EXTRA_TARGET_FLAGS); do \
47789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47790 done; \
47791 (cd $(TARGET_SUBDIR)/libitm && \
47792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47794 "RANLIB=$${RANLIB}" \
47795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47796 maintainer-clean) \
47797 || exit 1
47798
47799@endif target-libitm
47800
47801
47802
47803
47804
47805.PHONY: configure-target-libatomic maybe-configure-target-libatomic
47806maybe-configure-target-libatomic:
47807@if gcc-bootstrap
47808configure-target-libatomic: stage_current
47809@endif gcc-bootstrap
47810@if target-libatomic
47811maybe-configure-target-libatomic: configure-target-libatomic
47812configure-target-libatomic:
47813 @: $(MAKE); $(unstage)
47814 @r=`${PWD_COMMAND}`; export r; \
47815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47816 echo "Checking multilib configuration for libatomic..."; \
22121df0
L
47817 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
47818 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \
7ec59b9e
L
47819 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47820 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47821 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
47822 else \
47823 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
47824 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47825 fi; \
47826 else \
47827 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47828 fi; \
47829 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
22121df0 47830 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
7ec59b9e
L
47831 $(NORMAL_TARGET_EXPORTS) \
47832 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
47833 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
47834 case $(srcdir) in \
47835 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47836 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
47837 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47838 esac; \
1b6c0831 47839 module_srcdir=libatomic; \
7ec59b9e 47840 rm -f no-such-file || : ; \
1b6c0831
L
47841 CONFIG_SITE=no-such-file $(SHELL) \
47842 $$s/$$module_srcdir/configure \
47843 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 47844 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47845 --target=${target_alias} \
7ec59b9e
L
47846 || exit 1
47847@endif target-libatomic
47848
47849
47850
47851
47852
47853.PHONY: all-target-libatomic maybe-all-target-libatomic
47854maybe-all-target-libatomic:
47855@if gcc-bootstrap
47856all-target-libatomic: stage_current
47857@endif gcc-bootstrap
47858@if target-libatomic
47859TARGET-target-libatomic=all
47860maybe-all-target-libatomic: all-target-libatomic
47861all-target-libatomic: configure-target-libatomic
47862 @: $(MAKE); $(unstage)
47863 @r=`${PWD_COMMAND}`; export r; \
47864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47865 $(NORMAL_TARGET_EXPORTS) \
47866 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 47867 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
47868 $(TARGET-target-libatomic))
47869@endif target-libatomic
47870
47871
47872
47873
47874
47875.PHONY: check-target-libatomic maybe-check-target-libatomic
47876maybe-check-target-libatomic:
47877@if target-libatomic
47878maybe-check-target-libatomic: check-target-libatomic
47879
47880check-target-libatomic:
47881 @: $(MAKE); $(unstage)
47882 @r=`${PWD_COMMAND}`; export r; \
47883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47884 $(NORMAL_TARGET_EXPORTS) \
47885 (cd $(TARGET_SUBDIR)/libatomic && \
47886 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47887
47888@endif target-libatomic
47889
47890.PHONY: install-target-libatomic maybe-install-target-libatomic
47891maybe-install-target-libatomic:
47892@if target-libatomic
47893maybe-install-target-libatomic: install-target-libatomic
47894
47895install-target-libatomic: installdirs
47896 @: $(MAKE); $(unstage)
47897 @r=`${PWD_COMMAND}`; export r; \
47898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47899 $(NORMAL_TARGET_EXPORTS) \
47900 (cd $(TARGET_SUBDIR)/libatomic && \
47901 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47902
47903@endif target-libatomic
47904
47905.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
47906maybe-install-strip-target-libatomic:
47907@if target-libatomic
47908maybe-install-strip-target-libatomic: install-strip-target-libatomic
47909
47910install-strip-target-libatomic: installdirs
47911 @: $(MAKE); $(unstage)
47912 @r=`${PWD_COMMAND}`; export r; \
47913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47914 $(NORMAL_TARGET_EXPORTS) \
47915 (cd $(TARGET_SUBDIR)/libatomic && \
47916 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47917
47918@endif target-libatomic
47919
47920# Other targets (info, dvi, pdf, etc.)
47921
47922.PHONY: maybe-info-target-libatomic info-target-libatomic
47923maybe-info-target-libatomic:
47924@if target-libatomic
47925maybe-info-target-libatomic: info-target-libatomic
47926
47927info-target-libatomic: \
47928 configure-target-libatomic
47929 @: $(MAKE); $(unstage)
22121df0 47930 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47931 r=`${PWD_COMMAND}`; export r; \
47932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47933 $(NORMAL_TARGET_EXPORTS) \
22121df0 47934 echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47935 for flag in $(EXTRA_TARGET_FLAGS); do \
47936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47937 done; \
47938 (cd $(TARGET_SUBDIR)/libatomic && \
47939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47941 "RANLIB=$${RANLIB}" \
47942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47943 info) \
47944 || exit 1
47945
47946@endif target-libatomic
47947
47948.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
47949maybe-dvi-target-libatomic:
47950@if target-libatomic
47951maybe-dvi-target-libatomic: dvi-target-libatomic
47952
47953dvi-target-libatomic: \
47954 configure-target-libatomic
47955 @: $(MAKE); $(unstage)
22121df0 47956 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47957 r=`${PWD_COMMAND}`; export r; \
47958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47959 $(NORMAL_TARGET_EXPORTS) \
22121df0 47960 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47961 for flag in $(EXTRA_TARGET_FLAGS); do \
47962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47963 done; \
47964 (cd $(TARGET_SUBDIR)/libatomic && \
47965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47967 "RANLIB=$${RANLIB}" \
47968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47969 dvi) \
47970 || exit 1
47971
47972@endif target-libatomic
47973
47974.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
47975maybe-pdf-target-libatomic:
47976@if target-libatomic
47977maybe-pdf-target-libatomic: pdf-target-libatomic
47978
47979pdf-target-libatomic: \
47980 configure-target-libatomic
47981 @: $(MAKE); $(unstage)
22121df0 47982 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47983 r=`${PWD_COMMAND}`; export r; \
47984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47985 $(NORMAL_TARGET_EXPORTS) \
22121df0 47986 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47987 for flag in $(EXTRA_TARGET_FLAGS); do \
47988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47989 done; \
47990 (cd $(TARGET_SUBDIR)/libatomic && \
47991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47993 "RANLIB=$${RANLIB}" \
47994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47995 pdf) \
47996 || exit 1
47997
47998@endif target-libatomic
47999
48000.PHONY: maybe-html-target-libatomic html-target-libatomic
48001maybe-html-target-libatomic:
48002@if target-libatomic
48003maybe-html-target-libatomic: html-target-libatomic
48004
48005html-target-libatomic: \
48006 configure-target-libatomic
48007 @: $(MAKE); $(unstage)
22121df0 48008 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48009 r=`${PWD_COMMAND}`; export r; \
48010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48011 $(NORMAL_TARGET_EXPORTS) \
22121df0 48012 echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48013 for flag in $(EXTRA_TARGET_FLAGS); do \
48014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48015 done; \
48016 (cd $(TARGET_SUBDIR)/libatomic && \
48017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48019 "RANLIB=$${RANLIB}" \
48020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48021 html) \
48022 || exit 1
48023
48024@endif target-libatomic
48025
48026.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
48027maybe-TAGS-target-libatomic:
48028@if target-libatomic
48029maybe-TAGS-target-libatomic: TAGS-target-libatomic
48030
48031TAGS-target-libatomic: \
48032 configure-target-libatomic
48033 @: $(MAKE); $(unstage)
22121df0 48034 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48035 r=`${PWD_COMMAND}`; export r; \
48036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48037 $(NORMAL_TARGET_EXPORTS) \
22121df0 48038 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48039 for flag in $(EXTRA_TARGET_FLAGS); do \
48040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48041 done; \
48042 (cd $(TARGET_SUBDIR)/libatomic && \
48043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48045 "RANLIB=$${RANLIB}" \
48046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48047 TAGS) \
48048 || exit 1
48049
48050@endif target-libatomic
48051
48052.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
48053maybe-install-info-target-libatomic:
48054@if target-libatomic
48055maybe-install-info-target-libatomic: install-info-target-libatomic
48056
48057install-info-target-libatomic: \
48058 configure-target-libatomic \
48059 info-target-libatomic
48060 @: $(MAKE); $(unstage)
22121df0 48061 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48062 r=`${PWD_COMMAND}`; export r; \
48063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48064 $(NORMAL_TARGET_EXPORTS) \
22121df0 48065 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48066 for flag in $(EXTRA_TARGET_FLAGS); do \
48067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48068 done; \
48069 (cd $(TARGET_SUBDIR)/libatomic && \
48070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48072 "RANLIB=$${RANLIB}" \
48073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48074 install-info) \
48075 || exit 1
48076
48077@endif target-libatomic
48078
48079.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
48080maybe-install-pdf-target-libatomic:
48081@if target-libatomic
48082maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
48083
48084install-pdf-target-libatomic: \
48085 configure-target-libatomic \
48086 pdf-target-libatomic
48087 @: $(MAKE); $(unstage)
22121df0 48088 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48089 r=`${PWD_COMMAND}`; export r; \
48090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48091 $(NORMAL_TARGET_EXPORTS) \
22121df0 48092 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48093 for flag in $(EXTRA_TARGET_FLAGS); do \
48094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48095 done; \
48096 (cd $(TARGET_SUBDIR)/libatomic && \
48097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48099 "RANLIB=$${RANLIB}" \
48100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48101 install-pdf) \
48102 || exit 1
48103
48104@endif target-libatomic
48105
48106.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
48107maybe-install-html-target-libatomic:
48108@if target-libatomic
48109maybe-install-html-target-libatomic: install-html-target-libatomic
48110
48111install-html-target-libatomic: \
48112 configure-target-libatomic \
48113 html-target-libatomic
48114 @: $(MAKE); $(unstage)
22121df0 48115 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48116 r=`${PWD_COMMAND}`; export r; \
48117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48118 $(NORMAL_TARGET_EXPORTS) \
22121df0 48119 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48120 for flag in $(EXTRA_TARGET_FLAGS); do \
48121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48122 done; \
48123 (cd $(TARGET_SUBDIR)/libatomic && \
48124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48126 "RANLIB=$${RANLIB}" \
48127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48128 install-html) \
48129 || exit 1
48130
48131@endif target-libatomic
48132
48133.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
48134maybe-installcheck-target-libatomic:
48135@if target-libatomic
48136maybe-installcheck-target-libatomic: installcheck-target-libatomic
48137
48138installcheck-target-libatomic: \
48139 configure-target-libatomic
48140 @: $(MAKE); $(unstage)
22121df0 48141 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48142 r=`${PWD_COMMAND}`; export r; \
48143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48144 $(NORMAL_TARGET_EXPORTS) \
22121df0 48145 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48146 for flag in $(EXTRA_TARGET_FLAGS); do \
48147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48148 done; \
48149 (cd $(TARGET_SUBDIR)/libatomic && \
48150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48152 "RANLIB=$${RANLIB}" \
48153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48154 installcheck) \
48155 || exit 1
48156
48157@endif target-libatomic
48158
48159.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
48160maybe-mostlyclean-target-libatomic:
48161@if target-libatomic
48162maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
48163
48164mostlyclean-target-libatomic:
48165 @: $(MAKE); $(unstage)
22121df0 48166 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48167 r=`${PWD_COMMAND}`; export r; \
48168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48169 $(NORMAL_TARGET_EXPORTS) \
22121df0 48170 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48171 for flag in $(EXTRA_TARGET_FLAGS); do \
48172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48173 done; \
48174 (cd $(TARGET_SUBDIR)/libatomic && \
48175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48177 "RANLIB=$${RANLIB}" \
48178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48179 mostlyclean) \
48180 || exit 1
48181
48182@endif target-libatomic
48183
48184.PHONY: maybe-clean-target-libatomic clean-target-libatomic
48185maybe-clean-target-libatomic:
48186@if target-libatomic
48187maybe-clean-target-libatomic: clean-target-libatomic
48188
48189clean-target-libatomic:
48190 @: $(MAKE); $(unstage)
22121df0 48191 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48192 r=`${PWD_COMMAND}`; export r; \
48193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48194 $(NORMAL_TARGET_EXPORTS) \
22121df0 48195 echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48196 for flag in $(EXTRA_TARGET_FLAGS); do \
48197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48198 done; \
48199 (cd $(TARGET_SUBDIR)/libatomic && \
48200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48202 "RANLIB=$${RANLIB}" \
48203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48204 clean) \
48205 || exit 1
48206
48207@endif target-libatomic
48208
48209.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
48210maybe-distclean-target-libatomic:
48211@if target-libatomic
48212maybe-distclean-target-libatomic: distclean-target-libatomic
48213
48214distclean-target-libatomic:
48215 @: $(MAKE); $(unstage)
22121df0 48216 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48217 r=`${PWD_COMMAND}`; export r; \
48218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48219 $(NORMAL_TARGET_EXPORTS) \
22121df0 48220 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48221 for flag in $(EXTRA_TARGET_FLAGS); do \
48222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48223 done; \
48224 (cd $(TARGET_SUBDIR)/libatomic && \
48225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48227 "RANLIB=$${RANLIB}" \
48228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48229 distclean) \
48230 || exit 1
48231
48232@endif target-libatomic
48233
48234.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
48235maybe-maintainer-clean-target-libatomic:
48236@if target-libatomic
48237maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
48238
48239maintainer-clean-target-libatomic:
48240 @: $(MAKE); $(unstage)
22121df0 48241 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48242 r=`${PWD_COMMAND}`; export r; \
48243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48244 $(NORMAL_TARGET_EXPORTS) \
22121df0 48245 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48246 for flag in $(EXTRA_TARGET_FLAGS); do \
48247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48248 done; \
48249 (cd $(TARGET_SUBDIR)/libatomic && \
48250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48252 "RANLIB=$${RANLIB}" \
48253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48254 maintainer-clean) \
48255 || exit 1
48256
48257@endif target-libatomic
48258
48259
48260
7ec59b9e
L
48261@if target-libgomp
48262.PHONY: check-target-libgomp-c++
48263check-target-libgomp-c++:
48264 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
48265
e0541124
EB
48266.PHONY: check-target-libgomp-fortran
48267check-target-libgomp-fortran:
48268 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) fortran.exp" check-target-libgomp
48269
7ec59b9e
L
48270@endif target-libgomp
48271
48272@if target-libitm
48273.PHONY: check-target-libitm-c++
48274check-target-libitm-c++:
48275 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
48276
48277@endif target-libitm
48278
15723a45
NN
48279# ----------
48280# GCC module
48281# ----------
48282
319cab08 48283@if gcc-no-bootstrap
252b5132 48284.PHONY: cross
72b2455a 48285cross: all-build all-gas all-ld
b40e3958
L
48286 @r=`${PWD_COMMAND}`; export r; \
48287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 48288 $(HOST_EXPORTS) \
252b5132 48289 echo "Building the C and C++ compiler"; \
5cec67bf 48290 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958 48291 @r=`${PWD_COMMAND}`; export r; \
22121df0 48292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 48293 echo "Building runtime libraries"; \
656fdd47 48294 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 48295@endif gcc-no-bootstrap
252b5132 48296
6bd3dfaa 48297@if gcc
c50523ce
L
48298
48299.PHONY: check-gcc-c check-c
48300check-gcc-c:
48301 r=`${PWD_COMMAND}`; export r; \
48302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48303 $(HOST_EXPORTS) \
48304 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
48305check-c: check-gcc-c
48306
48307.PHONY: check-gcc-c++ check-c++
7d695d07 48308check-gcc-c++:
c50523ce
L
48309 r=`${PWD_COMMAND}`; export r; \
48310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48311 $(HOST_EXPORTS) \
7ec59b9e 48312 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 48313check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
48314
48315.PHONY: check-gcc-fortran check-fortran
48316check-gcc-fortran:
48317 r=`${PWD_COMMAND}`; export r; \
48318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48319 $(HOST_EXPORTS) \
48320 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e0541124 48321check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran check-target-libgomp-fortran
c50523ce 48322
c50523ce
L
48323.PHONY: check-gcc-ada check-ada
48324check-gcc-ada:
48325 r=`${PWD_COMMAND}`; export r; \
48326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48327 $(HOST_EXPORTS) \
48328 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
48329check-ada: check-gcc-ada check-target-libada
48330
48331.PHONY: check-gcc-objc check-objc
48332check-gcc-objc:
48333 r=`${PWD_COMMAND}`; export r; \
48334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48335 $(HOST_EXPORTS) \
48336 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
48337check-objc: check-gcc-objc check-target-libobjc
48338
48339.PHONY: check-gcc-obj-c++ check-obj-c++
48340check-gcc-obj-c++:
48341 r=`${PWD_COMMAND}`; export r; \
48342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48343 $(HOST_EXPORTS) \
48344 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
48345check-obj-c++: check-gcc-obj-c++
7d695d07 48346
e552509b
ILT
48347.PHONY: check-gcc-go check-go
48348check-gcc-go:
48349 r=`${PWD_COMMAND}`; export r; \
48350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48351 $(HOST_EXPORTS) \
48352 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
e3f56a99 48353check-go: check-gcc-go check-target-libgo
e552509b 48354
252b5132 48355
7ec59b9e
L
48356# The gcc part of install-no-fixedincludes, which relies on an intimate
48357# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
48358.PHONY: gcc-install-no-fixedincludes
48359gcc-install-no-fixedincludes:
15723a45 48360 @if [ -f ./gcc/Makefile ]; then \
b40e3958 48361 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 48362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 48363 $(HOST_EXPORTS) \
7ec59b9e
L
48364 (cd ./gcc \
48365 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 48366 else true; fi
6bd3dfaa 48367@endif gcc
4fa63067 48368
b813574b
PB
48369# ---------------------
48370# GCC bootstrap support
48371# ---------------------
4fa63067 48372
b813574b
PB
48373# We track the current stage (the one in 'gcc') in the stage_current file.
48374# stage_last instead tracks the stage that was built last. These targets
48375# are dummy when toplevel bootstrap is not active.
4fa63067 48376
f70224b5 48377# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
48378# there, so $(unstage) should be run at various points. To avoid excessive
48379# recursive invocations of make, we "inline" them using a variable. These
48380# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
48381# to avoid warnings from the GNU Make job server.
f70224b5
PB
48382
48383unstage = :
48384stage = :
c52c6897 48385current_stage = ""
f70224b5 48386
b813574b 48387@if gcc-bootstrap
9daf3993 48388unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 48389stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 48390current_stage = "`cat stage_current 2> /dev/null`"
b813574b 48391@endif gcc-bootstrap
4fa63067 48392
f70224b5
PB
48393.PHONY: unstage stage
48394unstage:
0aed8855 48395 @: $(MAKE); $(unstage)
b813574b 48396stage:
0aed8855 48397 @: $(MAKE); $(stage)
1d39f329 48398
80911fe1
PB
48399# Disable commands for lean bootstrap.
48400LEAN = false
48401
dfdffa2c
PB
48402# We name the build directories for the various stages "stage1-gcc",
48403# "stage2-gcc","stage3-gcc", etc.
48404
48405# Since the 'compare' process will fail (on debugging information) if any
48406# directory names are different, we need to link the gcc directory for
0aed8855 48407# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
48408# the build directories constant as well. For the latter, we use naked names
48409# like 'gcc', because the scripts in that directory assume it. We use
48410# mv on platforms where symlinks to directories do not work or are not
48411# reliable.
48412
1d39f329
NN
48413# 'touch' doesn't work right on some platforms.
48414STAMP = echo timestamp >
48415
dfdffa2c
PB
48416# We only want to compare .o files, so set this!
48417objext = .o
48418
dfdffa2c 48419
319cab08 48420.PHONY: stage1-start stage1-end
dfdffa2c 48421
656fdd47 48422stage1-start::
0aed8855 48423 @: $(MAKE); $(stage); \
22121df0 48424 echo stage1 > stage_current; \
b00612cc 48425 echo stage1 > stage_last; \
0aed8855 48426 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48427@if bfd
b00612cc
PB
48428 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
48429 mkdir stage1-bfd; \
22121df0 48430 mv stage1-bfd bfd
72b2455a
PB
48431@endif bfd
48432@if opcodes
b00612cc
PB
48433 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
48434 mkdir stage1-opcodes; \
22121df0 48435 mv stage1-opcodes opcodes
72b2455a
PB
48436@endif opcodes
48437@if binutils
b00612cc
PB
48438 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
48439 mkdir stage1-binutils; \
22121df0 48440 mv stage1-binutils binutils
72b2455a 48441@endif binutils
201f096f 48442@if fixincludes
48443 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
48444 mkdir stage1-fixincludes; \
22121df0 48445 mv stage1-fixincludes fixincludes
201f096f 48446@endif fixincludes
72b2455a 48447@if gas
b00612cc
PB
48448 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
48449 mkdir stage1-gas; \
22121df0 48450 mv stage1-gas gas
72b2455a
PB
48451@endif gas
48452@if gcc
b00612cc
PB
48453 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
48454 mkdir stage1-gcc; \
22121df0 48455 mv stage1-gcc gcc
72b2455a 48456@endif gcc
4b900473
PB
48457@if gmp
48458 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
48459 mkdir stage1-gmp; \
22121df0 48460 mv stage1-gmp gmp
4b900473
PB
48461@endif gmp
48462@if mpfr
48463 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
48464 mkdir stage1-mpfr; \
22121df0 48465 mv stage1-mpfr mpfr
4b900473 48466@endif mpfr
e8a5fa9c
RW
48467@if mpc
48468 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
48469 mkdir stage1-mpc; \
22121df0 48470 mv stage1-mpc mpc
e8a5fa9c 48471@endif mpc
7ec59b9e
L
48472@if isl
48473 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
48474 mkdir stage1-isl; \
22121df0 48475 mv stage1-isl isl
7ec59b9e 48476@endif isl
1f53ca9a
AO
48477@if libelf
48478 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
48479 mkdir stage1-libelf; \
22121df0 48480 mv stage1-libelf libelf
1f53ca9a 48481@endif libelf
93f9b408
ILT
48482@if gold
48483 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
48484 mkdir stage1-gold; \
22121df0 48485 mv stage1-gold gold
93f9b408 48486@endif gold
72b2455a 48487@if intl
b00612cc
PB
48488 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
48489 mkdir stage1-intl; \
22121df0 48490 mv stage1-intl intl
72b2455a
PB
48491@endif intl
48492@if ld
b00612cc
PB
48493 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
48494 mkdir stage1-ld; \
22121df0 48495 mv stage1-ld ld
72b2455a 48496@endif ld
2bf680c4
ILT
48497@if libbacktrace
48498 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
48499 mkdir stage1-libbacktrace; \
22121df0 48500 mv stage1-libbacktrace libbacktrace
2bf680c4 48501@endif libbacktrace
72b2455a 48502@if libcpp
b00612cc
PB
48503 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
48504 mkdir stage1-libcpp; \
22121df0 48505 mv stage1-libcpp libcpp
72b2455a 48506@endif libcpp
be01d343
PB
48507@if libdecnumber
48508 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
48509 mkdir stage1-libdecnumber; \
22121df0 48510 mv stage1-libdecnumber libdecnumber
be01d343 48511@endif libdecnumber
72b2455a 48512@if libiberty
b00612cc
PB
48513 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
48514 mkdir stage1-libiberty; \
22121df0 48515 mv stage1-libiberty libiberty
72b2455a 48516@endif libiberty
1b6c0831
L
48517@if libiberty-linker-plugin
48518 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
48519 mkdir stage1-libiberty-linker-plugin; \
22121df0 48520 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
1b6c0831 48521@endif libiberty-linker-plugin
016a3251
DD
48522@if libiconv
48523 @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \
48524 mkdir stage1-libiconv; \
48525 mv stage1-libiconv libiconv
48526@endif libiconv
72b2455a 48527@if zlib
b00612cc
PB
48528 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
48529 mkdir stage1-zlib; \
22121df0 48530 mv stage1-zlib zlib
72b2455a 48531@endif zlib
700d40ca
ILT
48532@if lto-plugin
48533 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
48534 mkdir stage1-lto-plugin; \
22121df0 48535 mv stage1-lto-plugin lto-plugin
700d40ca 48536@endif lto-plugin
0e65dfba
NA
48537@if libctf
48538 @cd $(HOST_SUBDIR); [ -d stage1-libctf ] || \
48539 mkdir stage1-libctf; \
48540 mv stage1-libctf libctf
48541@endif libctf
0aed8855
PB
48542 @[ -d stage1-$(TARGET_SUBDIR) ] || \
48543 mkdir stage1-$(TARGET_SUBDIR); \
22121df0 48544 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 48545
80911fe1 48546stage1-end::
72b2455a 48547@if bfd
22121df0
L
48548 @if test -d $(HOST_SUBDIR)/bfd; then \
48549 cd $(HOST_SUBDIR); mv bfd stage1-bfd; \
0aed8855 48550 fi
72b2455a
PB
48551@endif bfd
48552@if opcodes
22121df0
L
48553 @if test -d $(HOST_SUBDIR)/opcodes; then \
48554 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \
0aed8855 48555 fi
72b2455a
PB
48556@endif opcodes
48557@if binutils
22121df0
L
48558 @if test -d $(HOST_SUBDIR)/binutils; then \
48559 cd $(HOST_SUBDIR); mv binutils stage1-binutils; \
0aed8855 48560 fi
72b2455a 48561@endif binutils
201f096f 48562@if fixincludes
22121df0
L
48563 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48564 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \
201f096f 48565 fi
48566@endif fixincludes
72b2455a 48567@if gas
22121df0
L
48568 @if test -d $(HOST_SUBDIR)/gas; then \
48569 cd $(HOST_SUBDIR); mv gas stage1-gas; \
0aed8855 48570 fi
72b2455a
PB
48571@endif gas
48572@if gcc
22121df0
L
48573 @if test -d $(HOST_SUBDIR)/gcc; then \
48574 cd $(HOST_SUBDIR); mv gcc stage1-gcc; \
0aed8855 48575 fi
72b2455a 48576@endif gcc
4b900473 48577@if gmp
22121df0
L
48578 @if test -d $(HOST_SUBDIR)/gmp; then \
48579 cd $(HOST_SUBDIR); mv gmp stage1-gmp; \
4b900473
PB
48580 fi
48581@endif gmp
48582@if mpfr
22121df0
L
48583 @if test -d $(HOST_SUBDIR)/mpfr; then \
48584 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \
4b900473
PB
48585 fi
48586@endif mpfr
e8a5fa9c 48587@if mpc
22121df0
L
48588 @if test -d $(HOST_SUBDIR)/mpc; then \
48589 cd $(HOST_SUBDIR); mv mpc stage1-mpc; \
e8a5fa9c
RW
48590 fi
48591@endif mpc
7ec59b9e 48592@if isl
22121df0
L
48593 @if test -d $(HOST_SUBDIR)/isl; then \
48594 cd $(HOST_SUBDIR); mv isl stage1-isl; \
e28c595f 48595 fi
7ec59b9e 48596@endif isl
1f53ca9a 48597@if libelf
22121df0
L
48598 @if test -d $(HOST_SUBDIR)/libelf; then \
48599 cd $(HOST_SUBDIR); mv libelf stage1-libelf; \
1f53ca9a
AO
48600 fi
48601@endif libelf
93f9b408 48602@if gold
22121df0
L
48603 @if test -d $(HOST_SUBDIR)/gold; then \
48604 cd $(HOST_SUBDIR); mv gold stage1-gold; \
93f9b408
ILT
48605 fi
48606@endif gold
72b2455a 48607@if intl
22121df0
L
48608 @if test -d $(HOST_SUBDIR)/intl; then \
48609 cd $(HOST_SUBDIR); mv intl stage1-intl; \
0aed8855 48610 fi
72b2455a
PB
48611@endif intl
48612@if ld
22121df0
L
48613 @if test -d $(HOST_SUBDIR)/ld; then \
48614 cd $(HOST_SUBDIR); mv ld stage1-ld; \
0aed8855 48615 fi
72b2455a 48616@endif ld
2bf680c4 48617@if libbacktrace
22121df0
L
48618 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48619 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \
2bf680c4
ILT
48620 fi
48621@endif libbacktrace
72b2455a 48622@if libcpp
22121df0
L
48623 @if test -d $(HOST_SUBDIR)/libcpp; then \
48624 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \
0aed8855 48625 fi
72b2455a 48626@endif libcpp
be01d343 48627@if libdecnumber
22121df0
L
48628 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48629 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \
0aed8855 48630 fi
be01d343 48631@endif libdecnumber
72b2455a 48632@if libiberty
22121df0
L
48633 @if test -d $(HOST_SUBDIR)/libiberty; then \
48634 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \
0aed8855 48635 fi
72b2455a 48636@endif libiberty
1b6c0831 48637@if libiberty-linker-plugin
22121df0
L
48638 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48639 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \
1b6c0831
L
48640 fi
48641@endif libiberty-linker-plugin
016a3251
DD
48642@if libiconv
48643 @if test -d $(HOST_SUBDIR)/libiconv; then \
48644 cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \
48645 fi
48646@endif libiconv
72b2455a 48647@if zlib
22121df0
L
48648 @if test -d $(HOST_SUBDIR)/zlib; then \
48649 cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
0aed8855 48650 fi
72b2455a 48651@endif zlib
700d40ca 48652@if lto-plugin
22121df0
L
48653 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48654 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
700d40ca
ILT
48655 fi
48656@endif lto-plugin
0e65dfba
NA
48657@if libctf
48658 @if test -d $(HOST_SUBDIR)/libctf; then \
48659 cd $(HOST_SUBDIR); mv libctf stage1-libctf; \
48660 fi
48661@endif libctf
22121df0
L
48662 @if test -d $(TARGET_SUBDIR); then \
48663 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \
0aed8855 48664 fi
80911fe1 48665 rm -f stage_current
dfdffa2c 48666
973601e1 48667# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 48668# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48669# reconfigured either.
319cab08 48670.PHONY: stage1-bubble
656fdd47 48671stage1-bubble::
e360f423
PB
48672 @r=`${PWD_COMMAND}`; export r; \
48673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48674 if test -f stage1-lean ; then \
48675 echo Skipping rebuild of stage1; \
9cb3fa6f 48676 else \
f70224b5
PB
48677 $(MAKE) stage1-start; \
48678 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 48679 fi
72b2455a 48680
0df3d27f 48681.PHONY: all-stage1 clean-stage1
0df3d27f 48682do-clean: clean-stage1
0df3d27f 48683
72b2455a
PB
48684# FIXME: Will not need to be conditional when toplevel bootstrap is the
48685# only possibility, but now it conflicts with no-bootstrap rules
48686@if gcc-bootstrap
48687
48688
48689
48690
0df3d27f 48691# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48692
0df3d27f 48693.PHONY: distclean-stage1
72b2455a 48694distclean-stage1::
0aed8855 48695 @: $(MAKE); $(stage)
e00a73e3 48696 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 48697 rm -rf stage1-*
72b2455a
PB
48698
48699
48700@endif gcc-bootstrap
48701
48702
48703.PHONY: stage2-start stage2-end
48704
48705stage2-start::
0aed8855 48706 @: $(MAKE); $(stage); \
22121df0 48707 echo stage2 > stage_current; \
b00612cc 48708 echo stage2 > stage_last; \
0aed8855 48709 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48710@if bfd
b00612cc
PB
48711 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
48712 mkdir stage2-bfd; \
22121df0 48713 mv stage2-bfd bfd; \
80911fe1 48714 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
48715@endif bfd
48716@if opcodes
b00612cc
PB
48717 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
48718 mkdir stage2-opcodes; \
22121df0 48719 mv stage2-opcodes opcodes; \
80911fe1 48720 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
48721@endif opcodes
48722@if binutils
b00612cc
PB
48723 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
48724 mkdir stage2-binutils; \
22121df0 48725 mv stage2-binutils binutils; \
80911fe1 48726 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 48727@endif binutils
201f096f 48728@if fixincludes
48729 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
48730 mkdir stage2-fixincludes; \
22121df0 48731 mv stage2-fixincludes fixincludes; \
201f096f 48732 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
48733@endif fixincludes
72b2455a 48734@if gas
b00612cc
PB
48735 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
48736 mkdir stage2-gas; \
22121df0 48737 mv stage2-gas gas; \
80911fe1 48738 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
48739@endif gas
48740@if gcc
b00612cc
PB
48741 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
48742 mkdir stage2-gcc; \
22121df0 48743 mv stage2-gcc gcc; \
80911fe1 48744 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 48745@endif gcc
4b900473
PB
48746@if gmp
48747 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
48748 mkdir stage2-gmp; \
22121df0 48749 mv stage2-gmp gmp; \
4b900473
PB
48750 mv stage1-gmp prev-gmp || test -f stage1-lean
48751@endif gmp
48752@if mpfr
48753 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
48754 mkdir stage2-mpfr; \
22121df0 48755 mv stage2-mpfr mpfr; \
4b900473
PB
48756 mv stage1-mpfr prev-mpfr || test -f stage1-lean
48757@endif mpfr
e8a5fa9c
RW
48758@if mpc
48759 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
48760 mkdir stage2-mpc; \
22121df0 48761 mv stage2-mpc mpc; \
e8a5fa9c
RW
48762 mv stage1-mpc prev-mpc || test -f stage1-lean
48763@endif mpc
7ec59b9e
L
48764@if isl
48765 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
48766 mkdir stage2-isl; \
22121df0 48767 mv stage2-isl isl; \
7ec59b9e
L
48768 mv stage1-isl prev-isl || test -f stage1-lean
48769@endif isl
1f53ca9a
AO
48770@if libelf
48771 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
48772 mkdir stage2-libelf; \
22121df0 48773 mv stage2-libelf libelf; \
1f53ca9a
AO
48774 mv stage1-libelf prev-libelf || test -f stage1-lean
48775@endif libelf
93f9b408
ILT
48776@if gold
48777 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
48778 mkdir stage2-gold; \
22121df0 48779 mv stage2-gold gold; \
93f9b408
ILT
48780 mv stage1-gold prev-gold || test -f stage1-lean
48781@endif gold
72b2455a 48782@if intl
b00612cc
PB
48783 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
48784 mkdir stage2-intl; \
22121df0 48785 mv stage2-intl intl; \
80911fe1 48786 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
48787@endif intl
48788@if ld
b00612cc
PB
48789 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
48790 mkdir stage2-ld; \
22121df0 48791 mv stage2-ld ld; \
80911fe1 48792 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 48793@endif ld
2bf680c4
ILT
48794@if libbacktrace
48795 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
48796 mkdir stage2-libbacktrace; \
22121df0 48797 mv stage2-libbacktrace libbacktrace; \
2bf680c4
ILT
48798 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
48799@endif libbacktrace
72b2455a 48800@if libcpp
b00612cc
PB
48801 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
48802 mkdir stage2-libcpp; \
22121df0 48803 mv stage2-libcpp libcpp; \
80911fe1 48804 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 48805@endif libcpp
be01d343
PB
48806@if libdecnumber
48807 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
48808 mkdir stage2-libdecnumber; \
22121df0 48809 mv stage2-libdecnumber libdecnumber; \
80911fe1 48810 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 48811@endif libdecnumber
72b2455a 48812@if libiberty
b00612cc
PB
48813 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
48814 mkdir stage2-libiberty; \
22121df0 48815 mv stage2-libiberty libiberty; \
80911fe1 48816 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 48817@endif libiberty
1b6c0831
L
48818@if libiberty-linker-plugin
48819 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
48820 mkdir stage2-libiberty-linker-plugin; \
22121df0 48821 mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48822 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
48823@endif libiberty-linker-plugin
016a3251
DD
48824@if libiconv
48825 @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \
48826 mkdir stage2-libiconv; \
48827 mv stage2-libiconv libiconv; \
48828 mv stage1-libiconv prev-libiconv || test -f stage1-lean
48829@endif libiconv
72b2455a 48830@if zlib
b00612cc
PB
48831 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
48832 mkdir stage2-zlib; \
22121df0 48833 mv stage2-zlib zlib; \
80911fe1 48834 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 48835@endif zlib
700d40ca
ILT
48836@if lto-plugin
48837 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
48838 mkdir stage2-lto-plugin; \
22121df0 48839 mv stage2-lto-plugin lto-plugin; \
700d40ca
ILT
48840 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
48841@endif lto-plugin
0e65dfba
NA
48842@if libctf
48843 @cd $(HOST_SUBDIR); [ -d stage2-libctf ] || \
48844 mkdir stage2-libctf; \
48845 mv stage2-libctf libctf; \
48846 mv stage1-libctf prev-libctf || test -f stage1-lean
48847@endif libctf
0aed8855
PB
48848 @[ -d stage2-$(TARGET_SUBDIR) ] || \
48849 mkdir stage2-$(TARGET_SUBDIR); \
22121df0 48850 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48851 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 48852
80911fe1 48853stage2-end::
72b2455a 48854@if bfd
22121df0
L
48855 @if test -d $(HOST_SUBDIR)/bfd; then \
48856 cd $(HOST_SUBDIR); mv bfd stage2-bfd; \
48857 mv prev-bfd stage1-bfd; : ; \
0aed8855 48858 fi
72b2455a
PB
48859@endif bfd
48860@if opcodes
22121df0
L
48861 @if test -d $(HOST_SUBDIR)/opcodes; then \
48862 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \
48863 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 48864 fi
72b2455a
PB
48865@endif opcodes
48866@if binutils
22121df0
L
48867 @if test -d $(HOST_SUBDIR)/binutils; then \
48868 cd $(HOST_SUBDIR); mv binutils stage2-binutils; \
48869 mv prev-binutils stage1-binutils; : ; \
0aed8855 48870 fi
72b2455a 48871@endif binutils
201f096f 48872@if fixincludes
22121df0
L
48873 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48874 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \
48875 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 48876 fi
48877@endif fixincludes
72b2455a 48878@if gas
22121df0
L
48879 @if test -d $(HOST_SUBDIR)/gas; then \
48880 cd $(HOST_SUBDIR); mv gas stage2-gas; \
48881 mv prev-gas stage1-gas; : ; \
0aed8855 48882 fi
72b2455a
PB
48883@endif gas
48884@if gcc
22121df0
L
48885 @if test -d $(HOST_SUBDIR)/gcc; then \
48886 cd $(HOST_SUBDIR); mv gcc stage2-gcc; \
48887 mv prev-gcc stage1-gcc; : ; \
0aed8855 48888 fi
72b2455a 48889@endif gcc
4b900473 48890@if gmp
22121df0
L
48891 @if test -d $(HOST_SUBDIR)/gmp; then \
48892 cd $(HOST_SUBDIR); mv gmp stage2-gmp; \
48893 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
48894 fi
48895@endif gmp
48896@if mpfr
22121df0
L
48897 @if test -d $(HOST_SUBDIR)/mpfr; then \
48898 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \
48899 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
48900 fi
48901@endif mpfr
e8a5fa9c 48902@if mpc
22121df0
L
48903 @if test -d $(HOST_SUBDIR)/mpc; then \
48904 cd $(HOST_SUBDIR); mv mpc stage2-mpc; \
48905 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
48906 fi
48907@endif mpc
7ec59b9e 48908@if isl
22121df0
L
48909 @if test -d $(HOST_SUBDIR)/isl; then \
48910 cd $(HOST_SUBDIR); mv isl stage2-isl; \
48911 mv prev-isl stage1-isl; : ; \
e28c595f 48912 fi
7ec59b9e 48913@endif isl
1f53ca9a 48914@if libelf
22121df0
L
48915 @if test -d $(HOST_SUBDIR)/libelf; then \
48916 cd $(HOST_SUBDIR); mv libelf stage2-libelf; \
48917 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
48918 fi
48919@endif libelf
93f9b408 48920@if gold
22121df0
L
48921 @if test -d $(HOST_SUBDIR)/gold; then \
48922 cd $(HOST_SUBDIR); mv gold stage2-gold; \
48923 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
48924 fi
48925@endif gold
72b2455a 48926@if intl
22121df0
L
48927 @if test -d $(HOST_SUBDIR)/intl; then \
48928 cd $(HOST_SUBDIR); mv intl stage2-intl; \
48929 mv prev-intl stage1-intl; : ; \
0aed8855 48930 fi
72b2455a
PB
48931@endif intl
48932@if ld
22121df0
L
48933 @if test -d $(HOST_SUBDIR)/ld; then \
48934 cd $(HOST_SUBDIR); mv ld stage2-ld; \
48935 mv prev-ld stage1-ld; : ; \
0aed8855 48936 fi
72b2455a 48937@endif ld
2bf680c4 48938@if libbacktrace
22121df0
L
48939 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48940 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \
48941 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
48942 fi
48943@endif libbacktrace
72b2455a 48944@if libcpp
22121df0
L
48945 @if test -d $(HOST_SUBDIR)/libcpp; then \
48946 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \
48947 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 48948 fi
72b2455a 48949@endif libcpp
be01d343 48950@if libdecnumber
22121df0
L
48951 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48952 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \
48953 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 48954 fi
be01d343 48955@endif libdecnumber
72b2455a 48956@if libiberty
22121df0
L
48957 @if test -d $(HOST_SUBDIR)/libiberty; then \
48958 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \
48959 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 48960 fi
72b2455a 48961@endif libiberty
1b6c0831 48962@if libiberty-linker-plugin
22121df0
L
48963 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48964 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \
48965 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
48966 fi
48967@endif libiberty-linker-plugin
016a3251
DD
48968@if libiconv
48969 @if test -d $(HOST_SUBDIR)/libiconv; then \
48970 cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \
48971 mv prev-libiconv stage1-libiconv; : ; \
48972 fi
48973@endif libiconv
72b2455a 48974@if zlib
22121df0
L
48975 @if test -d $(HOST_SUBDIR)/zlib; then \
48976 cd $(HOST_SUBDIR); mv zlib stage2-zlib; \
48977 mv prev-zlib stage1-zlib; : ; \
0aed8855 48978 fi
72b2455a 48979@endif zlib
700d40ca 48980@if lto-plugin
22121df0
L
48981 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48982 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
48983 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
48984 fi
48985@endif lto-plugin
0e65dfba
NA
48986@if libctf
48987 @if test -d $(HOST_SUBDIR)/libctf; then \
48988 cd $(HOST_SUBDIR); mv libctf stage2-libctf; \
48989 mv prev-libctf stage1-libctf; : ; \
48990 fi
48991@endif libctf
22121df0
L
48992 @if test -d $(TARGET_SUBDIR); then \
48993 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \
48994 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 48995 fi
80911fe1 48996 rm -f stage_current
72b2455a 48997
973601e1 48998# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 48999# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49000# reconfigured either.
72b2455a
PB
49001.PHONY: stage2-bubble
49002stage2-bubble:: stage1-bubble
e360f423
PB
49003 @r=`${PWD_COMMAND}`; export r; \
49004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49005 if test -f stage2-lean || test -f stage1-lean ; then \
49006 echo Skipping rebuild of stage2; \
9cb3fa6f 49007 else \
f70224b5
PB
49008 $(MAKE) stage2-start; \
49009 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 49010 fi
72b2455a 49011
0df3d27f 49012.PHONY: all-stage2 clean-stage2
0df3d27f 49013do-clean: clean-stage2
0df3d27f 49014
72b2455a
PB
49015# FIXME: Will not need to be conditional when toplevel bootstrap is the
49016# only possibility, but now it conflicts with no-bootstrap rules
49017@if gcc-bootstrap
49018
49019
49020
80911fe1 49021.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
49022bootstrap2:
49023 echo stage2 > stage_final
49024 @r=`${PWD_COMMAND}`; export r; \
49025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49026 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 49027 @: $(MAKE); $(unstage)
be01d343
PB
49028 @r=`${PWD_COMMAND}`; export r; \
49029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49030 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 49031 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 49032
80911fe1
PB
49033bootstrap2-lean:
49034 echo stage2 > stage_final
49035 @r=`${PWD_COMMAND}`; export r; \
49036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49037 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
49038 @: $(MAKE); $(unstage)
49039 @r=`${PWD_COMMAND}`; export r; \
49040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49041 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
49042 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49043
72b2455a 49044
0df3d27f 49045# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49046distclean-stage1:: distclean-stage2
0df3d27f 49047.PHONY: distclean-stage2
72b2455a 49048distclean-stage2::
0aed8855 49049 @: $(MAKE); $(stage)
e00a73e3 49050 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 49051 rm -rf stage2-*
72b2455a
PB
49052
49053
49054@endif gcc-bootstrap
49055
49056
49057.PHONY: stage3-start stage3-end
49058
49059stage3-start::
0aed8855 49060 @: $(MAKE); $(stage); \
22121df0 49061 echo stage3 > stage_current; \
b00612cc 49062 echo stage3 > stage_last; \
0aed8855 49063 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49064@if bfd
b00612cc
PB
49065 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
49066 mkdir stage3-bfd; \
22121df0 49067 mv stage3-bfd bfd; \
80911fe1 49068 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
49069@endif bfd
49070@if opcodes
b00612cc
PB
49071 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
49072 mkdir stage3-opcodes; \
22121df0 49073 mv stage3-opcodes opcodes; \
80911fe1 49074 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
49075@endif opcodes
49076@if binutils
b00612cc
PB
49077 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
49078 mkdir stage3-binutils; \
22121df0 49079 mv stage3-binutils binutils; \
80911fe1 49080 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 49081@endif binutils
201f096f 49082@if fixincludes
49083 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
49084 mkdir stage3-fixincludes; \
22121df0 49085 mv stage3-fixincludes fixincludes; \
201f096f 49086 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
49087@endif fixincludes
72b2455a 49088@if gas
b00612cc
PB
49089 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
49090 mkdir stage3-gas; \
22121df0 49091 mv stage3-gas gas; \
80911fe1 49092 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
49093@endif gas
49094@if gcc
b00612cc
PB
49095 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
49096 mkdir stage3-gcc; \
22121df0 49097 mv stage3-gcc gcc; \
80911fe1 49098 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 49099@endif gcc
4b900473
PB
49100@if gmp
49101 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
49102 mkdir stage3-gmp; \
22121df0 49103 mv stage3-gmp gmp; \
4b900473
PB
49104 mv stage2-gmp prev-gmp || test -f stage2-lean
49105@endif gmp
49106@if mpfr
49107 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
49108 mkdir stage3-mpfr; \
22121df0 49109 mv stage3-mpfr mpfr; \
4b900473
PB
49110 mv stage2-mpfr prev-mpfr || test -f stage2-lean
49111@endif mpfr
e8a5fa9c
RW
49112@if mpc
49113 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
49114 mkdir stage3-mpc; \
22121df0 49115 mv stage3-mpc mpc; \
e8a5fa9c
RW
49116 mv stage2-mpc prev-mpc || test -f stage2-lean
49117@endif mpc
7ec59b9e
L
49118@if isl
49119 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
49120 mkdir stage3-isl; \
22121df0 49121 mv stage3-isl isl; \
7ec59b9e
L
49122 mv stage2-isl prev-isl || test -f stage2-lean
49123@endif isl
1f53ca9a
AO
49124@if libelf
49125 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
49126 mkdir stage3-libelf; \
22121df0 49127 mv stage3-libelf libelf; \
1f53ca9a
AO
49128 mv stage2-libelf prev-libelf || test -f stage2-lean
49129@endif libelf
93f9b408
ILT
49130@if gold
49131 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
49132 mkdir stage3-gold; \
22121df0 49133 mv stage3-gold gold; \
93f9b408
ILT
49134 mv stage2-gold prev-gold || test -f stage2-lean
49135@endif gold
72b2455a 49136@if intl
b00612cc
PB
49137 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
49138 mkdir stage3-intl; \
22121df0 49139 mv stage3-intl intl; \
80911fe1 49140 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
49141@endif intl
49142@if ld
b00612cc
PB
49143 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
49144 mkdir stage3-ld; \
22121df0 49145 mv stage3-ld ld; \
80911fe1 49146 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 49147@endif ld
2bf680c4
ILT
49148@if libbacktrace
49149 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
49150 mkdir stage3-libbacktrace; \
22121df0 49151 mv stage3-libbacktrace libbacktrace; \
2bf680c4
ILT
49152 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
49153@endif libbacktrace
72b2455a 49154@if libcpp
b00612cc
PB
49155 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
49156 mkdir stage3-libcpp; \
22121df0 49157 mv stage3-libcpp libcpp; \
80911fe1 49158 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 49159@endif libcpp
be01d343
PB
49160@if libdecnumber
49161 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
49162 mkdir stage3-libdecnumber; \
22121df0 49163 mv stage3-libdecnumber libdecnumber; \
80911fe1 49164 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 49165@endif libdecnumber
72b2455a 49166@if libiberty
b00612cc
PB
49167 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
49168 mkdir stage3-libiberty; \
22121df0 49169 mv stage3-libiberty libiberty; \
80911fe1 49170 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 49171@endif libiberty
1b6c0831
L
49172@if libiberty-linker-plugin
49173 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
49174 mkdir stage3-libiberty-linker-plugin; \
22121df0 49175 mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49176 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
49177@endif libiberty-linker-plugin
016a3251
DD
49178@if libiconv
49179 @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \
49180 mkdir stage3-libiconv; \
49181 mv stage3-libiconv libiconv; \
49182 mv stage2-libiconv prev-libiconv || test -f stage2-lean
49183@endif libiconv
72b2455a 49184@if zlib
b00612cc
PB
49185 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
49186 mkdir stage3-zlib; \
22121df0 49187 mv stage3-zlib zlib; \
80911fe1 49188 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 49189@endif zlib
700d40ca
ILT
49190@if lto-plugin
49191 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
49192 mkdir stage3-lto-plugin; \
22121df0 49193 mv stage3-lto-plugin lto-plugin; \
700d40ca
ILT
49194 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
49195@endif lto-plugin
0e65dfba
NA
49196@if libctf
49197 @cd $(HOST_SUBDIR); [ -d stage3-libctf ] || \
49198 mkdir stage3-libctf; \
49199 mv stage3-libctf libctf; \
49200 mv stage2-libctf prev-libctf || test -f stage2-lean
49201@endif libctf
0aed8855
PB
49202 @[ -d stage3-$(TARGET_SUBDIR) ] || \
49203 mkdir stage3-$(TARGET_SUBDIR); \
22121df0 49204 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49205 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 49206
80911fe1 49207stage3-end::
72b2455a 49208@if bfd
22121df0
L
49209 @if test -d $(HOST_SUBDIR)/bfd; then \
49210 cd $(HOST_SUBDIR); mv bfd stage3-bfd; \
49211 mv prev-bfd stage2-bfd; : ; \
0aed8855 49212 fi
72b2455a
PB
49213@endif bfd
49214@if opcodes
22121df0
L
49215 @if test -d $(HOST_SUBDIR)/opcodes; then \
49216 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \
49217 mv prev-opcodes stage2-opcodes; : ; \
0aed8855 49218 fi
72b2455a
PB
49219@endif opcodes
49220@if binutils
22121df0
L
49221 @if test -d $(HOST_SUBDIR)/binutils; then \
49222 cd $(HOST_SUBDIR); mv binutils stage3-binutils; \
49223 mv prev-binutils stage2-binutils; : ; \
0aed8855 49224 fi
72b2455a 49225@endif binutils
201f096f 49226@if fixincludes
22121df0
L
49227 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49228 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \
49229 mv prev-fixincludes stage2-fixincludes; : ; \
201f096f 49230 fi
49231@endif fixincludes
72b2455a 49232@if gas
22121df0
L
49233 @if test -d $(HOST_SUBDIR)/gas; then \
49234 cd $(HOST_SUBDIR); mv gas stage3-gas; \
49235 mv prev-gas stage2-gas; : ; \
0aed8855 49236 fi
72b2455a
PB
49237@endif gas
49238@if gcc
22121df0
L
49239 @if test -d $(HOST_SUBDIR)/gcc; then \
49240 cd $(HOST_SUBDIR); mv gcc stage3-gcc; \
49241 mv prev-gcc stage2-gcc; : ; \
0aed8855 49242 fi
72b2455a 49243@endif gcc
4b900473 49244@if gmp
22121df0
L
49245 @if test -d $(HOST_SUBDIR)/gmp; then \
49246 cd $(HOST_SUBDIR); mv gmp stage3-gmp; \
49247 mv prev-gmp stage2-gmp; : ; \
4b900473
PB
49248 fi
49249@endif gmp
49250@if mpfr
22121df0
L
49251 @if test -d $(HOST_SUBDIR)/mpfr; then \
49252 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \
49253 mv prev-mpfr stage2-mpfr; : ; \
4b900473
PB
49254 fi
49255@endif mpfr
e8a5fa9c 49256@if mpc
22121df0
L
49257 @if test -d $(HOST_SUBDIR)/mpc; then \
49258 cd $(HOST_SUBDIR); mv mpc stage3-mpc; \
49259 mv prev-mpc stage2-mpc; : ; \
e8a5fa9c
RW
49260 fi
49261@endif mpc
7ec59b9e 49262@if isl
22121df0
L
49263 @if test -d $(HOST_SUBDIR)/isl; then \
49264 cd $(HOST_SUBDIR); mv isl stage3-isl; \
49265 mv prev-isl stage2-isl; : ; \
e28c595f 49266 fi
7ec59b9e 49267@endif isl
1f53ca9a 49268@if libelf
22121df0
L
49269 @if test -d $(HOST_SUBDIR)/libelf; then \
49270 cd $(HOST_SUBDIR); mv libelf stage3-libelf; \
49271 mv prev-libelf stage2-libelf; : ; \
1f53ca9a
AO
49272 fi
49273@endif libelf
93f9b408 49274@if gold
22121df0
L
49275 @if test -d $(HOST_SUBDIR)/gold; then \
49276 cd $(HOST_SUBDIR); mv gold stage3-gold; \
49277 mv prev-gold stage2-gold; : ; \
93f9b408
ILT
49278 fi
49279@endif gold
72b2455a 49280@if intl
22121df0
L
49281 @if test -d $(HOST_SUBDIR)/intl; then \
49282 cd $(HOST_SUBDIR); mv intl stage3-intl; \
49283 mv prev-intl stage2-intl; : ; \
0aed8855 49284 fi
72b2455a
PB
49285@endif intl
49286@if ld
22121df0
L
49287 @if test -d $(HOST_SUBDIR)/ld; then \
49288 cd $(HOST_SUBDIR); mv ld stage3-ld; \
49289 mv prev-ld stage2-ld; : ; \
0aed8855 49290 fi
72b2455a 49291@endif ld
2bf680c4 49292@if libbacktrace
22121df0
L
49293 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49294 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \
49295 mv prev-libbacktrace stage2-libbacktrace; : ; \
2bf680c4
ILT
49296 fi
49297@endif libbacktrace
72b2455a 49298@if libcpp
22121df0
L
49299 @if test -d $(HOST_SUBDIR)/libcpp; then \
49300 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \
49301 mv prev-libcpp stage2-libcpp; : ; \
0aed8855 49302 fi
72b2455a 49303@endif libcpp
be01d343 49304@if libdecnumber
22121df0
L
49305 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49306 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \
49307 mv prev-libdecnumber stage2-libdecnumber; : ; \
0aed8855 49308 fi
be01d343 49309@endif libdecnumber
72b2455a 49310@if libiberty
22121df0
L
49311 @if test -d $(HOST_SUBDIR)/libiberty; then \
49312 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \
49313 mv prev-libiberty stage2-libiberty; : ; \
0aed8855 49314 fi
72b2455a 49315@endif libiberty
1b6c0831 49316@if libiberty-linker-plugin
22121df0
L
49317 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49318 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \
49319 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \
1b6c0831
L
49320 fi
49321@endif libiberty-linker-plugin
016a3251
DD
49322@if libiconv
49323 @if test -d $(HOST_SUBDIR)/libiconv; then \
49324 cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \
49325 mv prev-libiconv stage2-libiconv; : ; \
49326 fi
49327@endif libiconv
72b2455a 49328@if zlib
22121df0
L
49329 @if test -d $(HOST_SUBDIR)/zlib; then \
49330 cd $(HOST_SUBDIR); mv zlib stage3-zlib; \
49331 mv prev-zlib stage2-zlib; : ; \
0aed8855 49332 fi
72b2455a 49333@endif zlib
700d40ca 49334@if lto-plugin
22121df0
L
49335 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49336 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
49337 mv prev-lto-plugin stage2-lto-plugin; : ; \
700d40ca
ILT
49338 fi
49339@endif lto-plugin
0e65dfba
NA
49340@if libctf
49341 @if test -d $(HOST_SUBDIR)/libctf; then \
49342 cd $(HOST_SUBDIR); mv libctf stage3-libctf; \
49343 mv prev-libctf stage2-libctf; : ; \
49344 fi
49345@endif libctf
22121df0
L
49346 @if test -d $(TARGET_SUBDIR); then \
49347 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \
49348 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \
0aed8855 49349 fi
80911fe1 49350 rm -f stage_current
72b2455a 49351
973601e1 49352# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 49353# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49354# reconfigured either.
72b2455a
PB
49355.PHONY: stage3-bubble
49356stage3-bubble:: stage2-bubble
e360f423
PB
49357 @r=`${PWD_COMMAND}`; export r; \
49358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49359 if test -f stage3-lean || test -f stage2-lean ; then \
49360 echo Skipping rebuild of stage3; \
9cb3fa6f 49361 else \
f70224b5 49362 $(MAKE) stage3-start; \
80911fe1 49363 if $(LEAN); then \
22121df0
L
49364 rm -rf stage1-*; \
49365 $(STAMP) stage1-lean; \
80911fe1 49366 fi; \
f70224b5 49367 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 49368 fi
f6d183c0 49369 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 49370
0df3d27f 49371.PHONY: all-stage3 clean-stage3
0df3d27f 49372do-clean: clean-stage3
0df3d27f 49373
d545f33b
PB
49374# FIXME: Will not need to be conditional when toplevel bootstrap is the
49375# only possibility, but now it conflicts with no-bootstrap rules
49376@if gcc-bootstrap
72b2455a 49377
d545f33b 49378compare:
e360f423
PB
49379 @r=`${PWD_COMMAND}`; export r; \
49380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49381 if test -f stage2-lean; then \
22121df0
L
49382 echo Cannot compare object files as stage 2 was deleted.; \
49383 exit 0; \
d545f33b 49384 fi; \
0aed8855 49385 : $(MAKE); $(stage); \
22121df0
L
49386 rm -f .bad_compare; \
49387 echo Comparing stages 2 and 3; \
fda13ee8
AO
49388 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
49389 files=`find stage3-* -name "*$(objext)" -print | \
22121df0 49390 sed -n s,^stage$$sed-,,p`; \
e3f56a99 49391 for file in $${files}; do \
fda13ee8
AO
49392 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
49393 if test ! -f $$f1; then continue; fi; \
8520c408 49394 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
49395 if test $$? -eq 1; then \
49396 case $$file in \
e8a5fa9c 49397 @compare_exclusions@) \
f70224b5
PB
49398 echo warning: $$file differs ;; \
49399 *) \
49400 echo $$file differs >> .bad_compare ;; \
22121df0
L
49401 esac; \
49402 fi; \
49403 done; \
d545f33b
PB
49404 if [ -f .bad_compare ]; then \
49405 echo "Bootstrap comparison failure!"; \
49406 cat .bad_compare; \
49407 exit 1; \
49408 else \
c52c6897 49409 echo Comparison successful.; \
22121df0 49410 fi; \
d545f33b 49411 $(STAMP) compare
80911fe1
PB
49412 if $(LEAN); then \
49413 rm -rf stage2-*; \
49414 $(STAMP) stage2-lean; \
49415 fi
9cb3fa6f 49416
72b2455a 49417
72b2455a 49418
80911fe1 49419.PHONY: bootstrap bootstrap-lean
be01d343
PB
49420bootstrap:
49421 echo stage3 > stage_final
49422 @r=`${PWD_COMMAND}`; export r; \
49423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49424 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 49425 @: $(MAKE); $(unstage)
be01d343
PB
49426 @r=`${PWD_COMMAND}`; export r; \
49427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49428 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 49429 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 49430
80911fe1
PB
49431bootstrap-lean:
49432 echo stage3 > stage_final
49433 @r=`${PWD_COMMAND}`; export r; \
49434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49435 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
49436 @: $(MAKE); $(unstage)
49437 @r=`${PWD_COMMAND}`; export r; \
49438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49439 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
49440 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49441
72b2455a 49442
d545f33b
PB
49443# Rules to wipe a stage and all the following ones, also used for cleanstrap
49444distclean-stage2:: distclean-stage3
49445.PHONY: distclean-stage3
49446distclean-stage3::
0aed8855 49447 @: $(MAKE); $(stage)
e00a73e3 49448 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 49449 rm -rf stage3-* compare
0df3d27f 49450
9cb3fa6f 49451
d545f33b 49452.PHONY: cleanstrap
e00a73e3
PB
49453cleanstrap: do-distclean local-clean
49454 echo stage3 > stage_final
49455 @r=`${PWD_COMMAND}`; export r; \
49456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49457 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
49458 @: $(MAKE); $(unstage)
49459 @r=`${PWD_COMMAND}`; export r; \
49460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49461 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
49462 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49463
49464@endif gcc-bootstrap
49465
49466
72b2455a
PB
49467.PHONY: stage4-start stage4-end
49468
49469stage4-start::
0aed8855 49470 @: $(MAKE); $(stage); \
22121df0 49471 echo stage4 > stage_current; \
b00612cc 49472 echo stage4 > stage_last; \
0aed8855 49473 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49474@if bfd
b00612cc
PB
49475 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
49476 mkdir stage4-bfd; \
22121df0 49477 mv stage4-bfd bfd; \
80911fe1 49478 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
49479@endif bfd
49480@if opcodes
b00612cc
PB
49481 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
49482 mkdir stage4-opcodes; \
22121df0 49483 mv stage4-opcodes opcodes; \
80911fe1 49484 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
49485@endif opcodes
49486@if binutils
b00612cc
PB
49487 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
49488 mkdir stage4-binutils; \
22121df0 49489 mv stage4-binutils binutils; \
80911fe1 49490 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 49491@endif binutils
201f096f 49492@if fixincludes
49493 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
49494 mkdir stage4-fixincludes; \
22121df0 49495 mv stage4-fixincludes fixincludes; \
201f096f 49496 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
49497@endif fixincludes
72b2455a 49498@if gas
b00612cc
PB
49499 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
49500 mkdir stage4-gas; \
22121df0 49501 mv stage4-gas gas; \
80911fe1 49502 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
49503@endif gas
49504@if gcc
b00612cc
PB
49505 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
49506 mkdir stage4-gcc; \
22121df0 49507 mv stage4-gcc gcc; \
80911fe1 49508 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 49509@endif gcc
4b900473
PB
49510@if gmp
49511 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
49512 mkdir stage4-gmp; \
22121df0 49513 mv stage4-gmp gmp; \
4b900473
PB
49514 mv stage3-gmp prev-gmp || test -f stage3-lean
49515@endif gmp
49516@if mpfr
49517 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
49518 mkdir stage4-mpfr; \
22121df0 49519 mv stage4-mpfr mpfr; \
4b900473
PB
49520 mv stage3-mpfr prev-mpfr || test -f stage3-lean
49521@endif mpfr
e8a5fa9c
RW
49522@if mpc
49523 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
49524 mkdir stage4-mpc; \
22121df0 49525 mv stage4-mpc mpc; \
e8a5fa9c
RW
49526 mv stage3-mpc prev-mpc || test -f stage3-lean
49527@endif mpc
7ec59b9e
L
49528@if isl
49529 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
49530 mkdir stage4-isl; \
22121df0 49531 mv stage4-isl isl; \
7ec59b9e
L
49532 mv stage3-isl prev-isl || test -f stage3-lean
49533@endif isl
1f53ca9a
AO
49534@if libelf
49535 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
49536 mkdir stage4-libelf; \
22121df0 49537 mv stage4-libelf libelf; \
1f53ca9a
AO
49538 mv stage3-libelf prev-libelf || test -f stage3-lean
49539@endif libelf
93f9b408
ILT
49540@if gold
49541 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
49542 mkdir stage4-gold; \
22121df0 49543 mv stage4-gold gold; \
93f9b408
ILT
49544 mv stage3-gold prev-gold || test -f stage3-lean
49545@endif gold
72b2455a 49546@if intl
b00612cc
PB
49547 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
49548 mkdir stage4-intl; \
22121df0 49549 mv stage4-intl intl; \
80911fe1 49550 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
49551@endif intl
49552@if ld
b00612cc
PB
49553 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
49554 mkdir stage4-ld; \
22121df0 49555 mv stage4-ld ld; \
80911fe1 49556 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 49557@endif ld
2bf680c4
ILT
49558@if libbacktrace
49559 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
49560 mkdir stage4-libbacktrace; \
22121df0 49561 mv stage4-libbacktrace libbacktrace; \
2bf680c4
ILT
49562 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
49563@endif libbacktrace
72b2455a 49564@if libcpp
b00612cc
PB
49565 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
49566 mkdir stage4-libcpp; \
22121df0 49567 mv stage4-libcpp libcpp; \
80911fe1 49568 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 49569@endif libcpp
be01d343
PB
49570@if libdecnumber
49571 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
49572 mkdir stage4-libdecnumber; \
22121df0 49573 mv stage4-libdecnumber libdecnumber; \
80911fe1 49574 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 49575@endif libdecnumber
72b2455a 49576@if libiberty
b00612cc
PB
49577 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
49578 mkdir stage4-libiberty; \
22121df0 49579 mv stage4-libiberty libiberty; \
80911fe1 49580 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 49581@endif libiberty
1b6c0831
L
49582@if libiberty-linker-plugin
49583 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
49584 mkdir stage4-libiberty-linker-plugin; \
22121df0 49585 mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49586 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
49587@endif libiberty-linker-plugin
016a3251
DD
49588@if libiconv
49589 @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \
49590 mkdir stage4-libiconv; \
49591 mv stage4-libiconv libiconv; \
49592 mv stage3-libiconv prev-libiconv || test -f stage3-lean
49593@endif libiconv
72b2455a 49594@if zlib
b00612cc
PB
49595 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
49596 mkdir stage4-zlib; \
22121df0 49597 mv stage4-zlib zlib; \
80911fe1 49598 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 49599@endif zlib
700d40ca
ILT
49600@if lto-plugin
49601 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
49602 mkdir stage4-lto-plugin; \
22121df0 49603 mv stage4-lto-plugin lto-plugin; \
700d40ca
ILT
49604 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
49605@endif lto-plugin
0e65dfba
NA
49606@if libctf
49607 @cd $(HOST_SUBDIR); [ -d stage4-libctf ] || \
49608 mkdir stage4-libctf; \
49609 mv stage4-libctf libctf; \
49610 mv stage3-libctf prev-libctf || test -f stage3-lean
49611@endif libctf
0aed8855
PB
49612 @[ -d stage4-$(TARGET_SUBDIR) ] || \
49613 mkdir stage4-$(TARGET_SUBDIR); \
22121df0 49614 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49615 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 49616
80911fe1 49617stage4-end::
72b2455a 49618@if bfd
22121df0
L
49619 @if test -d $(HOST_SUBDIR)/bfd; then \
49620 cd $(HOST_SUBDIR); mv bfd stage4-bfd; \
49621 mv prev-bfd stage3-bfd; : ; \
0aed8855 49622 fi
72b2455a
PB
49623@endif bfd
49624@if opcodes
22121df0
L
49625 @if test -d $(HOST_SUBDIR)/opcodes; then \
49626 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \
49627 mv prev-opcodes stage3-opcodes; : ; \
0aed8855 49628 fi
72b2455a
PB
49629@endif opcodes
49630@if binutils
22121df0
L
49631 @if test -d $(HOST_SUBDIR)/binutils; then \
49632 cd $(HOST_SUBDIR); mv binutils stage4-binutils; \
49633 mv prev-binutils stage3-binutils; : ; \
0aed8855 49634 fi
72b2455a 49635@endif binutils
201f096f 49636@if fixincludes
22121df0
L
49637 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49638 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \
49639 mv prev-fixincludes stage3-fixincludes; : ; \
201f096f 49640 fi
49641@endif fixincludes
72b2455a 49642@if gas
22121df0
L
49643 @if test -d $(HOST_SUBDIR)/gas; then \
49644 cd $(HOST_SUBDIR); mv gas stage4-gas; \
49645 mv prev-gas stage3-gas; : ; \
0aed8855 49646 fi
72b2455a
PB
49647@endif gas
49648@if gcc
22121df0
L
49649 @if test -d $(HOST_SUBDIR)/gcc; then \
49650 cd $(HOST_SUBDIR); mv gcc stage4-gcc; \
49651 mv prev-gcc stage3-gcc; : ; \
0aed8855 49652 fi
72b2455a 49653@endif gcc
4b900473 49654@if gmp
22121df0
L
49655 @if test -d $(HOST_SUBDIR)/gmp; then \
49656 cd $(HOST_SUBDIR); mv gmp stage4-gmp; \
49657 mv prev-gmp stage3-gmp; : ; \
4b900473
PB
49658 fi
49659@endif gmp
49660@if mpfr
22121df0
L
49661 @if test -d $(HOST_SUBDIR)/mpfr; then \
49662 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \
49663 mv prev-mpfr stage3-mpfr; : ; \
4b900473
PB
49664 fi
49665@endif mpfr
e8a5fa9c 49666@if mpc
22121df0
L
49667 @if test -d $(HOST_SUBDIR)/mpc; then \
49668 cd $(HOST_SUBDIR); mv mpc stage4-mpc; \
49669 mv prev-mpc stage3-mpc; : ; \
e8a5fa9c
RW
49670 fi
49671@endif mpc
7ec59b9e 49672@if isl
22121df0
L
49673 @if test -d $(HOST_SUBDIR)/isl; then \
49674 cd $(HOST_SUBDIR); mv isl stage4-isl; \
49675 mv prev-isl stage3-isl; : ; \
e28c595f 49676 fi
7ec59b9e 49677@endif isl
1f53ca9a 49678@if libelf
22121df0
L
49679 @if test -d $(HOST_SUBDIR)/libelf; then \
49680 cd $(HOST_SUBDIR); mv libelf stage4-libelf; \
49681 mv prev-libelf stage3-libelf; : ; \
1f53ca9a
AO
49682 fi
49683@endif libelf
93f9b408 49684@if gold
22121df0
L
49685 @if test -d $(HOST_SUBDIR)/gold; then \
49686 cd $(HOST_SUBDIR); mv gold stage4-gold; \
49687 mv prev-gold stage3-gold; : ; \
93f9b408
ILT
49688 fi
49689@endif gold
72b2455a 49690@if intl
22121df0
L
49691 @if test -d $(HOST_SUBDIR)/intl; then \
49692 cd $(HOST_SUBDIR); mv intl stage4-intl; \
49693 mv prev-intl stage3-intl; : ; \
0aed8855 49694 fi
72b2455a
PB
49695@endif intl
49696@if ld
22121df0
L
49697 @if test -d $(HOST_SUBDIR)/ld; then \
49698 cd $(HOST_SUBDIR); mv ld stage4-ld; \
49699 mv prev-ld stage3-ld; : ; \
0aed8855 49700 fi
72b2455a 49701@endif ld
2bf680c4 49702@if libbacktrace
22121df0
L
49703 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49704 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \
49705 mv prev-libbacktrace stage3-libbacktrace; : ; \
2bf680c4
ILT
49706 fi
49707@endif libbacktrace
72b2455a 49708@if libcpp
22121df0
L
49709 @if test -d $(HOST_SUBDIR)/libcpp; then \
49710 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \
49711 mv prev-libcpp stage3-libcpp; : ; \
0aed8855 49712 fi
72b2455a 49713@endif libcpp
be01d343 49714@if libdecnumber
22121df0
L
49715 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49716 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \
49717 mv prev-libdecnumber stage3-libdecnumber; : ; \
0aed8855 49718 fi
be01d343 49719@endif libdecnumber
72b2455a 49720@if libiberty
22121df0
L
49721 @if test -d $(HOST_SUBDIR)/libiberty; then \
49722 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \
49723 mv prev-libiberty stage3-libiberty; : ; \
0aed8855 49724 fi
72b2455a 49725@endif libiberty
1b6c0831 49726@if libiberty-linker-plugin
22121df0
L
49727 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49728 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \
49729 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \
1b6c0831
L
49730 fi
49731@endif libiberty-linker-plugin
016a3251
DD
49732@if libiconv
49733 @if test -d $(HOST_SUBDIR)/libiconv; then \
49734 cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \
49735 mv prev-libiconv stage3-libiconv; : ; \
49736 fi
49737@endif libiconv
72b2455a 49738@if zlib
22121df0
L
49739 @if test -d $(HOST_SUBDIR)/zlib; then \
49740 cd $(HOST_SUBDIR); mv zlib stage4-zlib; \
49741 mv prev-zlib stage3-zlib; : ; \
0aed8855 49742 fi
72b2455a 49743@endif zlib
700d40ca 49744@if lto-plugin
22121df0
L
49745 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49746 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
49747 mv prev-lto-plugin stage3-lto-plugin; : ; \
700d40ca
ILT
49748 fi
49749@endif lto-plugin
0e65dfba
NA
49750@if libctf
49751 @if test -d $(HOST_SUBDIR)/libctf; then \
49752 cd $(HOST_SUBDIR); mv libctf stage4-libctf; \
49753 mv prev-libctf stage3-libctf; : ; \
49754 fi
49755@endif libctf
22121df0
L
49756 @if test -d $(TARGET_SUBDIR); then \
49757 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \
49758 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \
0aed8855 49759 fi
80911fe1 49760 rm -f stage_current
72b2455a 49761
973601e1 49762# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 49763# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49764# reconfigured either.
72b2455a
PB
49765.PHONY: stage4-bubble
49766stage4-bubble:: stage3-bubble
e360f423
PB
49767 @r=`${PWD_COMMAND}`; export r; \
49768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49769 if test -f stage4-lean || test -f stage3-lean ; then \
49770 echo Skipping rebuild of stage4; \
9cb3fa6f 49771 else \
f70224b5 49772 $(MAKE) stage4-start; \
80911fe1 49773 if $(LEAN); then \
22121df0
L
49774 rm -rf stage2-*; \
49775 $(STAMP) stage2-lean; \
80911fe1 49776 fi; \
f70224b5 49777 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 49778 fi
f6d183c0 49779 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 49780
0df3d27f 49781.PHONY: all-stage4 clean-stage4
0df3d27f 49782do-clean: clean-stage4
0df3d27f 49783
d545f33b
PB
49784# FIXME: Will not need to be conditional when toplevel bootstrap is the
49785# only possibility, but now it conflicts with no-bootstrap rules
49786@if gcc-bootstrap
72b2455a 49787
d545f33b 49788compare3:
e360f423
PB
49789 @r=`${PWD_COMMAND}`; export r; \
49790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49791 if test -f stage3-lean; then \
22121df0
L
49792 echo Cannot compare object files as stage 3 was deleted.; \
49793 exit 0; \
d545f33b 49794 fi; \
0aed8855 49795 : $(MAKE); $(stage); \
22121df0
L
49796 rm -f .bad_compare; \
49797 echo Comparing stages 3 and 4; \
fda13ee8
AO
49798 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
49799 files=`find stage4-* -name "*$(objext)" -print | \
22121df0 49800 sed -n s,^stage$$sed-,,p`; \
e3f56a99 49801 for file in $${files}; do \
fda13ee8
AO
49802 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
49803 if test ! -f $$f1; then continue; fi; \
8520c408 49804 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
49805 if test $$? -eq 1; then \
49806 case $$file in \
e8a5fa9c 49807 @compare_exclusions@) \
f70224b5
PB
49808 echo warning: $$file differs ;; \
49809 *) \
49810 echo $$file differs >> .bad_compare ;; \
22121df0
L
49811 esac; \
49812 fi; \
49813 done; \
d545f33b
PB
49814 if [ -f .bad_compare ]; then \
49815 echo "Bootstrap comparison failure!"; \
49816 cat .bad_compare; \
49817 exit 1; \
49818 else \
c52c6897 49819 echo Comparison successful.; \
22121df0 49820 fi; \
d545f33b 49821 $(STAMP) compare3
80911fe1
PB
49822 if $(LEAN); then \
49823 rm -rf stage3-*; \
49824 $(STAMP) stage3-lean; \
49825 fi
9cb3fa6f 49826
72b2455a 49827
72b2455a 49828
80911fe1 49829.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
49830bootstrap4:
49831 echo stage4 > stage_final
49832 @r=`${PWD_COMMAND}`; export r; \
49833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49834 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 49835 @: $(MAKE); $(unstage)
be01d343
PB
49836 @r=`${PWD_COMMAND}`; export r; \
49837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49838 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 49839 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 49840
80911fe1
PB
49841bootstrap4-lean:
49842 echo stage4 > stage_final
49843 @r=`${PWD_COMMAND}`; export r; \
49844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49845 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
49846 @: $(MAKE); $(unstage)
49847 @r=`${PWD_COMMAND}`; export r; \
49848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49849 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
49850 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49851
72b2455a 49852
d545f33b
PB
49853# Rules to wipe a stage and all the following ones, also used for cleanstrap
49854distclean-stage3:: distclean-stage4
49855.PHONY: distclean-stage4
49856distclean-stage4::
0aed8855 49857 @: $(MAKE); $(stage)
e00a73e3 49858 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 49859 rm -rf stage4-* compare3
0df3d27f 49860
9cb3fa6f 49861
d545f33b 49862@endif gcc-bootstrap
72b2455a
PB
49863
49864
49865.PHONY: stageprofile-start stageprofile-end
49866
49867stageprofile-start::
0aed8855 49868 @: $(MAKE); $(stage); \
22121df0 49869 echo stageprofile > stage_current; \
b00612cc 49870 echo stageprofile > stage_last; \
0aed8855 49871 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49872@if bfd
b00612cc
PB
49873 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
49874 mkdir stageprofile-bfd; \
22121df0 49875 mv stageprofile-bfd bfd; \
80911fe1 49876 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
49877@endif bfd
49878@if opcodes
b00612cc
PB
49879 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
49880 mkdir stageprofile-opcodes; \
22121df0 49881 mv stageprofile-opcodes opcodes; \
80911fe1 49882 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
49883@endif opcodes
49884@if binutils
b00612cc
PB
49885 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
49886 mkdir stageprofile-binutils; \
22121df0 49887 mv stageprofile-binutils binutils; \
80911fe1 49888 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 49889@endif binutils
201f096f 49890@if fixincludes
49891 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
49892 mkdir stageprofile-fixincludes; \
22121df0 49893 mv stageprofile-fixincludes fixincludes; \
201f096f 49894 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
49895@endif fixincludes
72b2455a 49896@if gas
b00612cc
PB
49897 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
49898 mkdir stageprofile-gas; \
22121df0 49899 mv stageprofile-gas gas; \
80911fe1 49900 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
49901@endif gas
49902@if gcc
b00612cc
PB
49903 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
49904 mkdir stageprofile-gcc; \
22121df0 49905 mv stageprofile-gcc gcc; \
80911fe1 49906 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 49907@endif gcc
4b900473
PB
49908@if gmp
49909 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
49910 mkdir stageprofile-gmp; \
22121df0 49911 mv stageprofile-gmp gmp; \
4b900473
PB
49912 mv stage1-gmp prev-gmp || test -f stage1-lean
49913@endif gmp
49914@if mpfr
49915 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
49916 mkdir stageprofile-mpfr; \
22121df0 49917 mv stageprofile-mpfr mpfr; \
4b900473
PB
49918 mv stage1-mpfr prev-mpfr || test -f stage1-lean
49919@endif mpfr
e8a5fa9c
RW
49920@if mpc
49921 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
49922 mkdir stageprofile-mpc; \
22121df0 49923 mv stageprofile-mpc mpc; \
e8a5fa9c
RW
49924 mv stage1-mpc prev-mpc || test -f stage1-lean
49925@endif mpc
7ec59b9e
L
49926@if isl
49927 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
49928 mkdir stageprofile-isl; \
22121df0 49929 mv stageprofile-isl isl; \
7ec59b9e
L
49930 mv stage1-isl prev-isl || test -f stage1-lean
49931@endif isl
1f53ca9a
AO
49932@if libelf
49933 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
49934 mkdir stageprofile-libelf; \
22121df0 49935 mv stageprofile-libelf libelf; \
1f53ca9a
AO
49936 mv stage1-libelf prev-libelf || test -f stage1-lean
49937@endif libelf
93f9b408
ILT
49938@if gold
49939 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
49940 mkdir stageprofile-gold; \
22121df0 49941 mv stageprofile-gold gold; \
93f9b408
ILT
49942 mv stage1-gold prev-gold || test -f stage1-lean
49943@endif gold
72b2455a 49944@if intl
b00612cc
PB
49945 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
49946 mkdir stageprofile-intl; \
22121df0 49947 mv stageprofile-intl intl; \
80911fe1 49948 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
49949@endif intl
49950@if ld
b00612cc
PB
49951 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
49952 mkdir stageprofile-ld; \
22121df0 49953 mv stageprofile-ld ld; \
80911fe1 49954 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 49955@endif ld
2bf680c4
ILT
49956@if libbacktrace
49957 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
49958 mkdir stageprofile-libbacktrace; \
22121df0 49959 mv stageprofile-libbacktrace libbacktrace; \
2bf680c4
ILT
49960 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
49961@endif libbacktrace
72b2455a 49962@if libcpp
b00612cc
PB
49963 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
49964 mkdir stageprofile-libcpp; \
22121df0 49965 mv stageprofile-libcpp libcpp; \
80911fe1 49966 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 49967@endif libcpp
be01d343
PB
49968@if libdecnumber
49969 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
49970 mkdir stageprofile-libdecnumber; \
22121df0 49971 mv stageprofile-libdecnumber libdecnumber; \
80911fe1 49972 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 49973@endif libdecnumber
72b2455a 49974@if libiberty
b00612cc
PB
49975 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
49976 mkdir stageprofile-libiberty; \
22121df0 49977 mv stageprofile-libiberty libiberty; \
80911fe1 49978 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 49979@endif libiberty
1b6c0831
L
49980@if libiberty-linker-plugin
49981 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
49982 mkdir stageprofile-libiberty-linker-plugin; \
22121df0 49983 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49984 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
49985@endif libiberty-linker-plugin
016a3251
DD
49986@if libiconv
49987 @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \
49988 mkdir stageprofile-libiconv; \
49989 mv stageprofile-libiconv libiconv; \
49990 mv stage1-libiconv prev-libiconv || test -f stage1-lean
49991@endif libiconv
72b2455a 49992@if zlib
d545f33b
PB
49993 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
49994 mkdir stageprofile-zlib; \
22121df0 49995 mv stageprofile-zlib zlib; \
80911fe1 49996 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 49997@endif zlib
700d40ca
ILT
49998@if lto-plugin
49999 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
50000 mkdir stageprofile-lto-plugin; \
22121df0 50001 mv stageprofile-lto-plugin lto-plugin; \
700d40ca
ILT
50002 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
50003@endif lto-plugin
0e65dfba
NA
50004@if libctf
50005 @cd $(HOST_SUBDIR); [ -d stageprofile-libctf ] || \
50006 mkdir stageprofile-libctf; \
50007 mv stageprofile-libctf libctf; \
50008 mv stage1-libctf prev-libctf || test -f stage1-lean
50009@endif libctf
0aed8855
PB
50010 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
50011 mkdir stageprofile-$(TARGET_SUBDIR); \
22121df0 50012 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50013 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 50014
80911fe1 50015stageprofile-end::
d545f33b 50016@if bfd
22121df0
L
50017 @if test -d $(HOST_SUBDIR)/bfd; then \
50018 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \
50019 mv prev-bfd stage1-bfd; : ; \
0aed8855 50020 fi
d545f33b
PB
50021@endif bfd
50022@if opcodes
22121df0
L
50023 @if test -d $(HOST_SUBDIR)/opcodes; then \
50024 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \
50025 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 50026 fi
d545f33b
PB
50027@endif opcodes
50028@if binutils
22121df0
L
50029 @if test -d $(HOST_SUBDIR)/binutils; then \
50030 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \
50031 mv prev-binutils stage1-binutils; : ; \
0aed8855 50032 fi
d545f33b 50033@endif binutils
201f096f 50034@if fixincludes
22121df0
L
50035 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50036 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \
50037 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 50038 fi
50039@endif fixincludes
d545f33b 50040@if gas
22121df0
L
50041 @if test -d $(HOST_SUBDIR)/gas; then \
50042 cd $(HOST_SUBDIR); mv gas stageprofile-gas; \
50043 mv prev-gas stage1-gas; : ; \
0aed8855 50044 fi
d545f33b
PB
50045@endif gas
50046@if gcc
22121df0
L
50047 @if test -d $(HOST_SUBDIR)/gcc; then \
50048 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \
50049 mv prev-gcc stage1-gcc; : ; \
0aed8855 50050 fi
d545f33b 50051@endif gcc
4b900473 50052@if gmp
22121df0
L
50053 @if test -d $(HOST_SUBDIR)/gmp; then \
50054 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \
50055 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
50056 fi
50057@endif gmp
50058@if mpfr
22121df0
L
50059 @if test -d $(HOST_SUBDIR)/mpfr; then \
50060 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \
50061 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
50062 fi
50063@endif mpfr
e8a5fa9c 50064@if mpc
22121df0
L
50065 @if test -d $(HOST_SUBDIR)/mpc; then \
50066 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \
50067 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
50068 fi
50069@endif mpc
7ec59b9e 50070@if isl
22121df0
L
50071 @if test -d $(HOST_SUBDIR)/isl; then \
50072 cd $(HOST_SUBDIR); mv isl stageprofile-isl; \
50073 mv prev-isl stage1-isl; : ; \
e28c595f 50074 fi
7ec59b9e 50075@endif isl
1f53ca9a 50076@if libelf
22121df0
L
50077 @if test -d $(HOST_SUBDIR)/libelf; then \
50078 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \
50079 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
50080 fi
50081@endif libelf
93f9b408 50082@if gold
22121df0
L
50083 @if test -d $(HOST_SUBDIR)/gold; then \
50084 cd $(HOST_SUBDIR); mv gold stageprofile-gold; \
50085 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
50086 fi
50087@endif gold
d545f33b 50088@if intl
22121df0
L
50089 @if test -d $(HOST_SUBDIR)/intl; then \
50090 cd $(HOST_SUBDIR); mv intl stageprofile-intl; \
50091 mv prev-intl stage1-intl; : ; \
0aed8855 50092 fi
d545f33b
PB
50093@endif intl
50094@if ld
22121df0
L
50095 @if test -d $(HOST_SUBDIR)/ld; then \
50096 cd $(HOST_SUBDIR); mv ld stageprofile-ld; \
50097 mv prev-ld stage1-ld; : ; \
0aed8855 50098 fi
d545f33b 50099@endif ld
2bf680c4 50100@if libbacktrace
22121df0
L
50101 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50102 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \
50103 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
50104 fi
50105@endif libbacktrace
d545f33b 50106@if libcpp
22121df0
L
50107 @if test -d $(HOST_SUBDIR)/libcpp; then \
50108 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \
50109 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 50110 fi
d545f33b 50111@endif libcpp
be01d343 50112@if libdecnumber
22121df0
L
50113 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50114 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \
50115 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 50116 fi
be01d343 50117@endif libdecnumber
d545f33b 50118@if libiberty
22121df0
L
50119 @if test -d $(HOST_SUBDIR)/libiberty; then \
50120 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \
50121 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 50122 fi
d545f33b 50123@endif libiberty
1b6c0831 50124@if libiberty-linker-plugin
22121df0
L
50125 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50126 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \
50127 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
50128 fi
50129@endif libiberty-linker-plugin
016a3251
DD
50130@if libiconv
50131 @if test -d $(HOST_SUBDIR)/libiconv; then \
50132 cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \
50133 mv prev-libiconv stage1-libiconv; : ; \
50134 fi
50135@endif libiconv
d545f33b 50136@if zlib
22121df0
L
50137 @if test -d $(HOST_SUBDIR)/zlib; then \
50138 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \
50139 mv prev-zlib stage1-zlib; : ; \
0aed8855 50140 fi
d545f33b 50141@endif zlib
700d40ca 50142@if lto-plugin
22121df0
L
50143 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50144 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
50145 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
50146 fi
50147@endif lto-plugin
0e65dfba
NA
50148@if libctf
50149 @if test -d $(HOST_SUBDIR)/libctf; then \
50150 cd $(HOST_SUBDIR); mv libctf stageprofile-libctf; \
50151 mv prev-libctf stage1-libctf; : ; \
50152 fi
50153@endif libctf
22121df0
L
50154 @if test -d $(TARGET_SUBDIR); then \
50155 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \
50156 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 50157 fi
80911fe1 50158 rm -f stage_current
72b2455a 50159
973601e1 50160# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 50161# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50162# reconfigured either.
d545f33b
PB
50163.PHONY: stageprofile-bubble
50164stageprofile-bubble:: stage1-bubble
e360f423
PB
50165 @r=`${PWD_COMMAND}`; export r; \
50166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
50167 if test -f stageprofile-lean || test -f stage1-lean ; then \
50168 echo Skipping rebuild of stageprofile; \
d545f33b 50169 else \
f70224b5
PB
50170 $(MAKE) stageprofile-start; \
50171 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 50172 fi
72b2455a 50173
d545f33b
PB
50174.PHONY: all-stageprofile clean-stageprofile
50175do-clean: clean-stageprofile
0df3d27f 50176
72b2455a
PB
50177# FIXME: Will not need to be conditional when toplevel bootstrap is the
50178# only possibility, but now it conflicts with no-bootstrap rules
50179@if gcc-bootstrap
50180
50181
50182
50183
0df3d27f 50184# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 50185distclean-stage1:: distclean-stageprofile
0df3d27f 50186.PHONY: distclean-stageprofile
72b2455a 50187distclean-stageprofile::
0aed8855 50188 @: $(MAKE); $(stage)
e00a73e3 50189 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 50190 rm -rf stageprofile-*
dfdffa2c
PB
50191
50192
72b2455a 50193@endif gcc-bootstrap
dfdffa2c
PB
50194
50195
72b2455a 50196.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 50197
72b2455a 50198stagefeedback-start::
0aed8855 50199 @: $(MAKE); $(stage); \
22121df0 50200 echo stagefeedback > stage_current; \
b00612cc 50201 echo stagefeedback > stage_last; \
0aed8855 50202 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 50203@if bfd
b00612cc
PB
50204 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
50205 mkdir stagefeedback-bfd; \
22121df0 50206 mv stagefeedback-bfd bfd; \
e3f56a99 50207 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
50208@endif bfd
50209@if opcodes
b00612cc
PB
50210 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
50211 mkdir stagefeedback-opcodes; \
22121df0 50212 mv stagefeedback-opcodes opcodes; \
e3f56a99 50213 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
50214@endif opcodes
50215@if binutils
b00612cc
PB
50216 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
50217 mkdir stagefeedback-binutils; \
22121df0 50218 mv stagefeedback-binutils binutils; \
e3f56a99 50219 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 50220@endif binutils
201f096f 50221@if fixincludes
50222 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
50223 mkdir stagefeedback-fixincludes; \
22121df0 50224 mv stagefeedback-fixincludes fixincludes; \
e3f56a99 50225 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
201f096f 50226@endif fixincludes
72b2455a 50227@if gas
b00612cc
PB
50228 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
50229 mkdir stagefeedback-gas; \
22121df0 50230 mv stagefeedback-gas gas; \
e3f56a99 50231 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
50232@endif gas
50233@if gcc
b00612cc
PB
50234 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
50235 mkdir stagefeedback-gcc; \
22121df0 50236 mv stagefeedback-gcc gcc; \
e3f56a99 50237 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 50238@endif gcc
4b900473
PB
50239@if gmp
50240 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
50241 mkdir stagefeedback-gmp; \
22121df0 50242 mv stagefeedback-gmp gmp; \
e3f56a99 50243 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
4b900473
PB
50244@endif gmp
50245@if mpfr
50246 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
50247 mkdir stagefeedback-mpfr; \
22121df0 50248 mv stagefeedback-mpfr mpfr; \
e3f56a99 50249 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
4b900473 50250@endif mpfr
e8a5fa9c
RW
50251@if mpc
50252 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
50253 mkdir stagefeedback-mpc; \
22121df0 50254 mv stagefeedback-mpc mpc; \
e3f56a99 50255 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
e8a5fa9c 50256@endif mpc
7ec59b9e
L
50257@if isl
50258 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
50259 mkdir stagefeedback-isl; \
22121df0 50260 mv stagefeedback-isl isl; \
e3f56a99 50261 mv stageprofile-isl prev-isl || test -f stageprofile-lean
7ec59b9e 50262@endif isl
1f53ca9a
AO
50263@if libelf
50264 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
50265 mkdir stagefeedback-libelf; \
22121df0 50266 mv stagefeedback-libelf libelf; \
e3f56a99 50267 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
1f53ca9a 50268@endif libelf
93f9b408
ILT
50269@if gold
50270 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
50271 mkdir stagefeedback-gold; \
22121df0 50272 mv stagefeedback-gold gold; \
e3f56a99 50273 mv stageprofile-gold prev-gold || test -f stageprofile-lean
93f9b408 50274@endif gold
72b2455a 50275@if intl
b00612cc
PB
50276 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
50277 mkdir stagefeedback-intl; \
22121df0 50278 mv stagefeedback-intl intl; \
e3f56a99 50279 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
50280@endif intl
50281@if ld
b00612cc
PB
50282 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
50283 mkdir stagefeedback-ld; \
22121df0 50284 mv stagefeedback-ld ld; \
e3f56a99 50285 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 50286@endif ld
2bf680c4
ILT
50287@if libbacktrace
50288 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
50289 mkdir stagefeedback-libbacktrace; \
22121df0 50290 mv stagefeedback-libbacktrace libbacktrace; \
e3f56a99 50291 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
2bf680c4 50292@endif libbacktrace
72b2455a 50293@if libcpp
b00612cc
PB
50294 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
50295 mkdir stagefeedback-libcpp; \
22121df0 50296 mv stagefeedback-libcpp libcpp; \
e3f56a99 50297 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 50298@endif libcpp
be01d343
PB
50299@if libdecnumber
50300 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
50301 mkdir stagefeedback-libdecnumber; \
22121df0 50302 mv stagefeedback-libdecnumber libdecnumber; \
e3f56a99 50303 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 50304@endif libdecnumber
72b2455a 50305@if libiberty
b00612cc
PB
50306 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
50307 mkdir stagefeedback-libiberty; \
22121df0 50308 mv stagefeedback-libiberty libiberty; \
e3f56a99 50309 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 50310@endif libiberty
1b6c0831
L
50311@if libiberty-linker-plugin
50312 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
50313 mkdir stagefeedback-libiberty-linker-plugin; \
22121df0 50314 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \
e3f56a99 50315 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
1b6c0831 50316@endif libiberty-linker-plugin
016a3251
DD
50317@if libiconv
50318 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \
50319 mkdir stagefeedback-libiconv; \
50320 mv stagefeedback-libiconv libiconv; \
e3f56a99 50321 mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean
016a3251 50322@endif libiconv
72b2455a 50323@if zlib
b00612cc
PB
50324 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
50325 mkdir stagefeedback-zlib; \
22121df0 50326 mv stagefeedback-zlib zlib; \
e3f56a99 50327 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 50328@endif zlib
700d40ca
ILT
50329@if lto-plugin
50330 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
50331 mkdir stagefeedback-lto-plugin; \
22121df0 50332 mv stagefeedback-lto-plugin lto-plugin; \
e3f56a99 50333 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
700d40ca 50334@endif lto-plugin
0e65dfba
NA
50335@if libctf
50336 @cd $(HOST_SUBDIR); [ -d stagefeedback-libctf ] || \
50337 mkdir stagefeedback-libctf; \
50338 mv stagefeedback-libctf libctf; \
e3f56a99 50339 mv stageprofile-libctf prev-libctf || test -f stageprofile-lean
0e65dfba 50340@endif libctf
0aed8855
PB
50341 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
50342 mkdir stagefeedback-$(TARGET_SUBDIR); \
22121df0 50343 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
e3f56a99 50344 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 50345
80911fe1 50346stagefeedback-end::
72b2455a 50347@if bfd
22121df0
L
50348 @if test -d $(HOST_SUBDIR)/bfd; then \
50349 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \
e3f56a99 50350 mv prev-bfd stageprofile-bfd; : ; \
0aed8855 50351 fi
72b2455a
PB
50352@endif bfd
50353@if opcodes
22121df0
L
50354 @if test -d $(HOST_SUBDIR)/opcodes; then \
50355 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \
e3f56a99 50356 mv prev-opcodes stageprofile-opcodes; : ; \
0aed8855 50357 fi
72b2455a
PB
50358@endif opcodes
50359@if binutils
22121df0
L
50360 @if test -d $(HOST_SUBDIR)/binutils; then \
50361 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \
e3f56a99 50362 mv prev-binutils stageprofile-binutils; : ; \
0aed8855 50363 fi
72b2455a 50364@endif binutils
201f096f 50365@if fixincludes
22121df0
L
50366 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50367 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \
e3f56a99 50368 mv prev-fixincludes stageprofile-fixincludes; : ; \
201f096f 50369 fi
50370@endif fixincludes
72b2455a 50371@if gas
22121df0
L
50372 @if test -d $(HOST_SUBDIR)/gas; then \
50373 cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \
e3f56a99 50374 mv prev-gas stageprofile-gas; : ; \
0aed8855 50375 fi
72b2455a
PB
50376@endif gas
50377@if gcc
22121df0
L
50378 @if test -d $(HOST_SUBDIR)/gcc; then \
50379 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \
e3f56a99 50380 mv prev-gcc stageprofile-gcc; : ; \
0aed8855 50381 fi
72b2455a 50382@endif gcc
4b900473 50383@if gmp
22121df0
L
50384 @if test -d $(HOST_SUBDIR)/gmp; then \
50385 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \
e3f56a99 50386 mv prev-gmp stageprofile-gmp; : ; \
4b900473
PB
50387 fi
50388@endif gmp
50389@if mpfr
22121df0
L
50390 @if test -d $(HOST_SUBDIR)/mpfr; then \
50391 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \
e3f56a99 50392 mv prev-mpfr stageprofile-mpfr; : ; \
4b900473
PB
50393 fi
50394@endif mpfr
e8a5fa9c 50395@if mpc
22121df0
L
50396 @if test -d $(HOST_SUBDIR)/mpc; then \
50397 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \
e3f56a99 50398 mv prev-mpc stageprofile-mpc; : ; \
e8a5fa9c
RW
50399 fi
50400@endif mpc
7ec59b9e 50401@if isl
22121df0
L
50402 @if test -d $(HOST_SUBDIR)/isl; then \
50403 cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \
e3f56a99 50404 mv prev-isl stageprofile-isl; : ; \
e28c595f 50405 fi
7ec59b9e 50406@endif isl
1f53ca9a 50407@if libelf
22121df0
L
50408 @if test -d $(HOST_SUBDIR)/libelf; then \
50409 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \
e3f56a99 50410 mv prev-libelf stageprofile-libelf; : ; \
1f53ca9a
AO
50411 fi
50412@endif libelf
93f9b408 50413@if gold
22121df0
L
50414 @if test -d $(HOST_SUBDIR)/gold; then \
50415 cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \
e3f56a99 50416 mv prev-gold stageprofile-gold; : ; \
93f9b408
ILT
50417 fi
50418@endif gold
72b2455a 50419@if intl
22121df0
L
50420 @if test -d $(HOST_SUBDIR)/intl; then \
50421 cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \
e3f56a99 50422 mv prev-intl stageprofile-intl; : ; \
0aed8855 50423 fi
72b2455a
PB
50424@endif intl
50425@if ld
22121df0
L
50426 @if test -d $(HOST_SUBDIR)/ld; then \
50427 cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \
e3f56a99 50428 mv prev-ld stageprofile-ld; : ; \
0aed8855 50429 fi
72b2455a 50430@endif ld
2bf680c4 50431@if libbacktrace
22121df0
L
50432 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50433 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \
e3f56a99 50434 mv prev-libbacktrace stageprofile-libbacktrace; : ; \
2bf680c4
ILT
50435 fi
50436@endif libbacktrace
72b2455a 50437@if libcpp
22121df0
L
50438 @if test -d $(HOST_SUBDIR)/libcpp; then \
50439 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \
e3f56a99 50440 mv prev-libcpp stageprofile-libcpp; : ; \
0aed8855 50441 fi
72b2455a 50442@endif libcpp
be01d343 50443@if libdecnumber
22121df0
L
50444 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50445 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \
e3f56a99 50446 mv prev-libdecnumber stageprofile-libdecnumber; : ; \
0aed8855 50447 fi
be01d343 50448@endif libdecnumber
72b2455a 50449@if libiberty
22121df0
L
50450 @if test -d $(HOST_SUBDIR)/libiberty; then \
50451 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \
e3f56a99 50452 mv prev-libiberty stageprofile-libiberty; : ; \
0aed8855 50453 fi
72b2455a 50454@endif libiberty
1b6c0831 50455@if libiberty-linker-plugin
22121df0
L
50456 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50457 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \
e3f56a99 50458 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \
1b6c0831
L
50459 fi
50460@endif libiberty-linker-plugin
016a3251
DD
50461@if libiconv
50462 @if test -d $(HOST_SUBDIR)/libiconv; then \
50463 cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \
e3f56a99 50464 mv prev-libiconv stageprofile-libiconv; : ; \
016a3251
DD
50465 fi
50466@endif libiconv
72b2455a 50467@if zlib
22121df0
L
50468 @if test -d $(HOST_SUBDIR)/zlib; then \
50469 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \
e3f56a99 50470 mv prev-zlib stageprofile-zlib; : ; \
0aed8855 50471 fi
72b2455a 50472@endif zlib
700d40ca 50473@if lto-plugin
22121df0
L
50474 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50475 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
e3f56a99 50476 mv prev-lto-plugin stageprofile-lto-plugin; : ; \
700d40ca
ILT
50477 fi
50478@endif lto-plugin
0e65dfba
NA
50479@if libctf
50480 @if test -d $(HOST_SUBDIR)/libctf; then \
50481 cd $(HOST_SUBDIR); mv libctf stagefeedback-libctf; \
e3f56a99 50482 mv prev-libctf stageprofile-libctf; : ; \
0e65dfba
NA
50483 fi
50484@endif libctf
22121df0
L
50485 @if test -d $(TARGET_SUBDIR); then \
50486 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \
e3f56a99 50487 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \
0aed8855 50488 fi
80911fe1 50489 rm -f stage_current
dfdffa2c 50490
973601e1 50491# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 50492# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50493# reconfigured either.
72b2455a 50494.PHONY: stagefeedback-bubble
e3f56a99 50495stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
50496 @r=`${PWD_COMMAND}`; export r; \
50497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e3f56a99 50498 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
22121df0 50499 echo Skipping rebuild of stagefeedback; \
9cb3fa6f 50500 else \
f70224b5
PB
50501 $(MAKE) stagefeedback-start; \
50502 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 50503 fi
72b2455a 50504
0df3d27f 50505.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 50506do-clean: clean-stagefeedback
0df3d27f 50507
72b2455a
PB
50508# FIXME: Will not need to be conditional when toplevel bootstrap is the
50509# only possibility, but now it conflicts with no-bootstrap rules
50510@if gcc-bootstrap
656fdd47
PB
50511
50512
50513
80911fe1 50514.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
50515profiledbootstrap:
50516 echo stagefeedback > stage_final
50517 @r=`${PWD_COMMAND}`; export r; \
50518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50519 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 50520 @: $(MAKE); $(unstage)
be01d343
PB
50521 @r=`${PWD_COMMAND}`; export r; \
50522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50523 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 50524 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 50525
80911fe1
PB
50526profiledbootstrap-lean:
50527 echo stagefeedback > stage_final
50528 @r=`${PWD_COMMAND}`; export r; \
50529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50530 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
50531 @: $(MAKE); $(unstage)
50532 @r=`${PWD_COMMAND}`; export r; \
50533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50534 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
50535 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50536
656fdd47 50537
0df3d27f 50538# Rules to wipe a stage and all the following ones, also used for cleanstrap
e3f56a99 50539distclean-stageprofile:: distclean-stagefeedback
0df3d27f 50540.PHONY: distclean-stagefeedback
656fdd47 50541distclean-stagefeedback::
0aed8855 50542 @: $(MAKE); $(stage)
e00a73e3 50543 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 50544 rm -rf stagefeedback-*
656fdd47
PB
50545
50546
72b2455a 50547@endif gcc-bootstrap
656fdd47
PB
50548
50549
50550
7d329e61
PB
50551stageprofile-end::
50552 $(MAKE) distclean-stagefeedback
656fdd47 50553
7d329e61 50554stagefeedback-start::
656fdd47
PB
50555 @r=`${PWD_COMMAND}`; export r; \
50556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61 50557 for i in prev-*; do \
22121df0 50558 j=`echo $$i | sed s/^prev-//`; \
7d329e61 50559 cd $$r/$$i && \
22121df0
L
50560 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \
50561 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \
7d329e61 50562 done
b8908782 50563
0df3d27f 50564@if gcc-bootstrap
0df3d27f 50565do-distclean: distclean-stage1
c52c6897
PB
50566
50567# Provide a GCC build when we're building target libraries. This does
50568# not work as a dependency, just as the minimum necessary to avoid errors.
50569stage_last:
314b2e66
AS
50570 @r=`${PWD_COMMAND}`; export r; \
50571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 50572 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 50573
4f0ef2d8
CD
50574# Same as unstage, but not phony and defaulting to stage1-start. We place
50575# it in the dependency so that for example `make -j3 all-gcc' works.
50576stage_current:
50577 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
50578
c52c6897 50579.PHONY: restrap
266df637 50580restrap::
c52c6897 50581 @: $(MAKE); $(stage)
e3f56a99 50582 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 50583restrap:: all
c380fdd8 50584@endif gcc-bootstrap
c52c6897 50585
ae831be5
NN
50586# --------------------------------------
50587# Dependencies between different modules
50588# --------------------------------------
252b5132 50589
9e6ce191 50590# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 50591@if gcc-bootstrap
e8a5fa9c
RW
50592configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
50593configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
50594configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
50595configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
50596configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
50597configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
50598configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
50599configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
50600configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
50601configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
50602configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
50603configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
50604configure-stage1-target-libmpx: maybe-all-stage1-gcc
50605configure-stage2-target-libmpx: maybe-all-stage2-gcc
50606configure-stage3-target-libmpx: maybe-all-stage3-gcc
50607configure-stage4-target-libmpx: maybe-all-stage4-gcc
50608configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
50609configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
50610configure-stage1-target-libvtv: maybe-all-stage1-gcc
50611configure-stage2-target-libvtv: maybe-all-stage2-gcc
50612configure-stage3-target-libvtv: maybe-all-stage3-gcc
50613configure-stage4-target-libvtv: maybe-all-stage4-gcc
50614configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
50615configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
e3f56a99 50616configure-target-libcilkrts: stage_last
1b6c0831 50617configure-target-liboffloadmic: stage_last
c52c6897 50618configure-target-libssp: stage_last
c52c6897 50619configure-target-newlib: stage_last
6aa8ef82
DJ
50620configure-stage1-target-libgcc: maybe-all-stage1-gcc
50621configure-stage2-target-libgcc: maybe-all-stage2-gcc
50622configure-stage3-target-libgcc: maybe-all-stage3-gcc
50623configure-stage4-target-libgcc: maybe-all-stage4-gcc
50624configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
50625configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 50626configure-target-libbacktrace: stage_last
e552509b 50627configure-target-libquadmath: stage_last
c52c6897
PB
50628configure-target-libgfortran: stage_last
50629configure-target-libobjc: stage_last
e552509b 50630configure-target-libgo: stage_last
c52c6897
PB
50631configure-target-libtermcap: stage_last
50632configure-target-winsup: stage_last
50633configure-target-libgloss: stage_last
c52c6897 50634configure-target-libffi: stage_last
c52c6897 50635configure-target-zlib: stage_last
c52c6897
PB
50636configure-target-rda: stage_last
50637configure-target-libada: stage_last
911e63d0
JR
50638configure-stage1-target-libgomp: maybe-all-stage1-gcc
50639configure-stage2-target-libgomp: maybe-all-stage2-gcc
50640configure-stage3-target-libgomp: maybe-all-stage3-gcc
50641configure-stage4-target-libgomp: maybe-all-stage4-gcc
50642configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
50643configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
50644configure-target-libitm: stage_last
50645configure-target-libatomic: stage_last
c52c6897 50646@endif gcc-bootstrap
9e6ce191 50647
c52c6897 50648@if gcc-no-bootstrap
9e6ce191 50649configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 50650configure-target-libsanitizer: maybe-all-gcc
1b6c0831 50651configure-target-libmpx: maybe-all-gcc
95e43135 50652configure-target-libvtv: maybe-all-gcc
e3f56a99 50653configure-target-libcilkrts: maybe-all-gcc
1b6c0831 50654configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 50655configure-target-libssp: maybe-all-gcc
9e6ce191 50656configure-target-newlib: maybe-all-gcc
6aa8ef82 50657configure-target-libgcc: maybe-all-gcc
2bf680c4 50658configure-target-libbacktrace: maybe-all-gcc
e552509b 50659configure-target-libquadmath: maybe-all-gcc
9e6ce191 50660configure-target-libgfortran: maybe-all-gcc
9e6ce191 50661configure-target-libobjc: maybe-all-gcc
e552509b 50662configure-target-libgo: maybe-all-gcc
9e6ce191 50663configure-target-libtermcap: maybe-all-gcc
9e6ce191 50664configure-target-winsup: maybe-all-gcc
9e6ce191 50665configure-target-libgloss: maybe-all-gcc
9e6ce191 50666configure-target-libffi: maybe-all-gcc
9e6ce191 50667configure-target-zlib: maybe-all-gcc
9e6ce191 50668configure-target-rda: maybe-all-gcc
9e6ce191 50669configure-target-libada: maybe-all-gcc
b3ded179 50670configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
50671configure-target-libitm: maybe-all-gcc
50672configure-target-libatomic: maybe-all-gcc
c52c6897 50673@endif gcc-no-bootstrap
b3ded179 50674
9e6ce191 50675
ae831be5
NN
50676# There are two types of dependencies here: 'hard' dependencies, where one
50677# module simply won't build without the other; and 'soft' dependencies, where
50678# if the depended-on module is missing, the depending module will do without
50679# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 50680# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
50681# it's safer to use a soft dependency.
50682
9e6ce191
PB
50683
50684
50685
50686
c60fe18b 50687
9e6ce191
PB
50688# With all the machinery above in place, it is pretty easy to generate
50689# dependencies. Host dependencies are a bit more complex because we have
50690# to check for bootstrap/prebootstrap dependencies. To resolve
50691# prebootstrap dependencies, prebootstrap modules are gathered in
50692# a hash table.
6a9cf61e
PB
50693all-build-bison: maybe-all-build-texinfo
50694all-build-flex: maybe-all-build-texinfo
9e6ce191 50695all-build-flex: maybe-all-build-bison
9e6ce191 50696all-build-flex: maybe-all-build-m4
6a9cf61e 50697all-build-libiberty: maybe-all-build-texinfo
9e6ce191 50698all-build-m4: maybe-all-build-texinfo
ee025550 50699all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 50700all-build-libcpp: maybe-all-build-libiberty
9e6ce191 50701configure-gcc: maybe-configure-intl
9e6ce191
PB
50702configure-stage1-gcc: maybe-configure-stage1-intl
50703configure-stage2-gcc: maybe-configure-stage2-intl
50704configure-stage3-gcc: maybe-configure-stage3-intl
50705configure-stage4-gcc: maybe-configure-stage4-intl
50706configure-stageprofile-gcc: maybe-configure-stageprofile-intl
50707configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8 50708configure-gcc: maybe-all-gmp
861ea9c8
L
50709configure-stage1-gcc: maybe-all-stage1-gmp
50710configure-stage2-gcc: maybe-all-stage2-gmp
50711configure-stage3-gcc: maybe-all-stage3-gmp
50712configure-stage4-gcc: maybe-all-stage4-gmp
50713configure-stageprofile-gcc: maybe-all-stageprofile-gmp
50714configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831 50715configure-gcc: maybe-all-mpfr
1b6c0831
L
50716configure-stage1-gcc: maybe-all-stage1-mpfr
50717configure-stage2-gcc: maybe-all-stage2-mpfr
50718configure-stage3-gcc: maybe-all-stage3-mpfr
50719configure-stage4-gcc: maybe-all-stage4-mpfr
50720configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
50721configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
50722configure-gcc: maybe-all-mpc
1b6c0831
L
50723configure-stage1-gcc: maybe-all-stage1-mpc
50724configure-stage2-gcc: maybe-all-stage2-mpc
50725configure-stage3-gcc: maybe-all-stage3-mpc
50726configure-stage4-gcc: maybe-all-stage4-mpc
50727configure-stageprofile-gcc: maybe-all-stageprofile-mpc
50728configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
50729configure-gcc: maybe-all-isl
1b6c0831
L
50730configure-stage1-gcc: maybe-all-stage1-isl
50731configure-stage2-gcc: maybe-all-stage2-isl
50732configure-stage3-gcc: maybe-all-stage3-isl
50733configure-stage4-gcc: maybe-all-stage4-isl
50734configure-stageprofile-gcc: maybe-all-stageprofile-isl
50735configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a 50736configure-gcc: maybe-all-lto-plugin
8d8eef9a
RW
50737configure-stage1-gcc: maybe-all-stage1-lto-plugin
50738configure-stage2-gcc: maybe-all-stage2-lto-plugin
50739configure-stage3-gcc: maybe-all-stage3-lto-plugin
50740configure-stage4-gcc: maybe-all-stage4-lto-plugin
50741configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50742configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b 50743configure-gcc: maybe-all-binutils
c60fe18b
PB
50744configure-stage1-gcc: maybe-all-stage1-binutils
50745configure-stage2-gcc: maybe-all-stage2-binutils
50746configure-stage3-gcc: maybe-all-stage3-binutils
50747configure-stage4-gcc: maybe-all-stage4-binutils
50748configure-stageprofile-gcc: maybe-all-stageprofile-binutils
50749configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
50750configure-gcc: maybe-all-gas
c60fe18b
PB
50751configure-stage1-gcc: maybe-all-stage1-gas
50752configure-stage2-gcc: maybe-all-stage2-gas
50753configure-stage3-gcc: maybe-all-stage3-gas
50754configure-stage4-gcc: maybe-all-stage4-gas
50755configure-stageprofile-gcc: maybe-all-stageprofile-gas
50756configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
50757configure-gcc: maybe-all-ld
c60fe18b
PB
50758configure-stage1-gcc: maybe-all-stage1-ld
50759configure-stage2-gcc: maybe-all-stage2-ld
50760configure-stage3-gcc: maybe-all-stage3-ld
50761configure-stage4-gcc: maybe-all-stage4-ld
50762configure-stageprofile-gcc: maybe-all-stageprofile-ld
50763configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408 50764configure-gcc: maybe-all-gold
93f9b408
ILT
50765configure-stage1-gcc: maybe-all-stage1-gold
50766configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 50767configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
50768configure-stage4-gcc: maybe-all-stage4-gold
50769configure-stageprofile-gcc: maybe-all-stageprofile-gold
50770configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480 50771configure-gcc: maybe-all-libelf
7530c480
AO
50772configure-stage1-gcc: maybe-all-stage1-libelf
50773configure-stage2-gcc: maybe-all-stage2-libelf
50774configure-stage3-gcc: maybe-all-stage3-libelf
50775configure-stage4-gcc: maybe-all-stage4-libelf
50776configure-stageprofile-gcc: maybe-all-stageprofile-libelf
50777configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
016a3251 50778configure-gcc: maybe-all-libiconv
016a3251
DD
50779configure-stage1-gcc: maybe-all-stage1-libiconv
50780configure-stage2-gcc: maybe-all-stage2-libiconv
50781configure-stage3-gcc: maybe-all-stage3-libiconv
50782configure-stage4-gcc: maybe-all-stage4-libiconv
50783configure-stageprofile-gcc: maybe-all-stageprofile-libiconv
50784configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
9e6ce191 50785all-gcc: all-libiberty
9e6ce191
PB
50786all-stage1-gcc: all-stage1-libiberty
50787all-stage2-gcc: all-stage2-libiberty
50788all-stage3-gcc: all-stage3-libiberty
50789all-stage4-gcc: all-stage4-libiberty
50790all-stageprofile-gcc: all-stageprofile-libiberty
50791all-stagefeedback-gcc: all-stagefeedback-libiberty
50792all-gcc: maybe-all-intl
9e6ce191
PB
50793all-stage1-gcc: maybe-all-stage1-intl
50794all-stage2-gcc: maybe-all-stage2-intl
50795all-stage3-gcc: maybe-all-stage3-intl
50796all-stage4-gcc: maybe-all-stage4-intl
50797all-stageprofile-gcc: maybe-all-stageprofile-intl
50798all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473 50799all-gcc: maybe-all-mpfr
4b900473
PB
50800all-stage1-gcc: maybe-all-stage1-mpfr
50801all-stage2-gcc: maybe-all-stage2-mpfr
50802all-stage3-gcc: maybe-all-stage3-mpfr
50803all-stage4-gcc: maybe-all-stage4-mpfr
50804all-stageprofile-gcc: maybe-all-stageprofile-mpfr
50805all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c 50806all-gcc: maybe-all-mpc
e8a5fa9c
RW
50807all-stage1-gcc: maybe-all-stage1-mpc
50808all-stage2-gcc: maybe-all-stage2-mpc
50809all-stage3-gcc: maybe-all-stage3-mpc
50810all-stage4-gcc: maybe-all-stage4-mpc
50811all-stageprofile-gcc: maybe-all-stageprofile-mpc
50812all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831 50813all-gcc: maybe-all-isl
1b6c0831
L
50814all-stage1-gcc: maybe-all-stage1-isl
50815all-stage2-gcc: maybe-all-stage2-isl
50816all-stage3-gcc: maybe-all-stage3-isl
50817all-stage4-gcc: maybe-all-stage4-isl
50818all-stageprofile-gcc: maybe-all-stageprofile-isl
50819all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a 50820all-gcc: maybe-all-build-texinfo
72b2455a
PB
50821all-stage1-gcc: maybe-all-build-texinfo
50822all-stage2-gcc: maybe-all-build-texinfo
50823all-stage3-gcc: maybe-all-build-texinfo
50824all-stage4-gcc: maybe-all-build-texinfo
50825all-stageprofile-gcc: maybe-all-build-texinfo
50826all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a 50827all-gcc: maybe-all-build-bison
72b2455a
PB
50828all-stage1-gcc: maybe-all-build-bison
50829all-stage2-gcc: maybe-all-build-bison
50830all-stage3-gcc: maybe-all-build-bison
50831all-stage4-gcc: maybe-all-build-bison
50832all-stageprofile-gcc: maybe-all-build-bison
50833all-stagefeedback-gcc: maybe-all-build-bison
72b2455a 50834all-gcc: maybe-all-build-flex
72b2455a
PB
50835all-stage1-gcc: maybe-all-build-flex
50836all-stage2-gcc: maybe-all-build-flex
50837all-stage3-gcc: maybe-all-build-flex
50838all-stage4-gcc: maybe-all-build-flex
50839all-stageprofile-gcc: maybe-all-build-flex
50840all-stagefeedback-gcc: maybe-all-build-flex
ee025550 50841all-gcc: maybe-all-build-libiberty
ee025550
PB
50842all-stage1-gcc: maybe-all-build-libiberty
50843all-stage2-gcc: maybe-all-build-libiberty
50844all-stage3-gcc: maybe-all-build-libiberty
50845all-stage4-gcc: maybe-all-build-libiberty
50846all-stageprofile-gcc: maybe-all-build-libiberty
50847all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550 50848all-gcc: maybe-all-build-fixincludes
ee025550
PB
50849all-stage1-gcc: maybe-all-build-fixincludes
50850all-stage2-gcc: maybe-all-build-fixincludes
50851all-stage3-gcc: maybe-all-build-fixincludes
50852all-stage4-gcc: maybe-all-build-fixincludes
50853all-stageprofile-gcc: maybe-all-build-fixincludes
50854all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831 50855all-gcc: maybe-all-build-libcpp
1b6c0831
L
50856all-stage1-gcc: maybe-all-build-libcpp
50857all-stage2-gcc: maybe-all-build-libcpp
50858all-stage3-gcc: maybe-all-build-libcpp
50859all-stage4-gcc: maybe-all-build-libcpp
50860all-stageprofile-gcc: maybe-all-build-libcpp
50861all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191 50862all-gcc: maybe-all-zlib
9e6ce191
PB
50863all-stage1-gcc: maybe-all-stage1-zlib
50864all-stage2-gcc: maybe-all-stage2-zlib
50865all-stage3-gcc: maybe-all-stage3-zlib
50866all-stage4-gcc: maybe-all-stage4-zlib
50867all-stageprofile-gcc: maybe-all-stageprofile-zlib
50868all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b 50869all-gcc: all-libbacktrace
8e71395b
L
50870all-stage1-gcc: all-stage1-libbacktrace
50871all-stage2-gcc: all-stage2-libbacktrace
50872all-stage3-gcc: all-stage3-libbacktrace
50873all-stage4-gcc: all-stage4-libbacktrace
50874all-stageprofile-gcc: all-stageprofile-libbacktrace
50875all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191 50876all-gcc: all-libcpp
9e6ce191
PB
50877all-stage1-gcc: all-stage1-libcpp
50878all-stage2-gcc: all-stage2-libcpp
50879all-stage3-gcc: all-stage3-libcpp
50880all-stage4-gcc: all-stage4-libcpp
50881all-stageprofile-gcc: all-stageprofile-libcpp
50882all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343 50883all-gcc: all-libdecnumber
be01d343
PB
50884all-stage1-gcc: all-stage1-libdecnumber
50885all-stage2-gcc: all-stage2-libdecnumber
50886all-stage3-gcc: all-stage3-libdecnumber
50887all-stage4-gcc: all-stage4-libdecnumber
50888all-stageprofile-gcc: all-stageprofile-libdecnumber
50889all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c 50890all-gcc: maybe-all-libiberty
d3ed111c
GK
50891all-stage1-gcc: maybe-all-stage1-libiberty
50892all-stage2-gcc: maybe-all-stage2-libiberty
50893all-stage3-gcc: maybe-all-stage3-libiberty
50894all-stage4-gcc: maybe-all-stage4-libiberty
50895all-stageprofile-gcc: maybe-all-stageprofile-libiberty
50896all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
50897all-gcc: maybe-all-fixincludes
201f096f 50898all-stage1-gcc: maybe-all-stage1-fixincludes
50899all-stage2-gcc: maybe-all-stage2-fixincludes
50900all-stage3-gcc: maybe-all-stage3-fixincludes
50901all-stage4-gcc: maybe-all-stage4-fixincludes
50902all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
50903all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a 50904all-gcc: maybe-all-lto-plugin
8d8eef9a
RW
50905all-stage1-gcc: maybe-all-stage1-lto-plugin
50906all-stage2-gcc: maybe-all-stage2-lto-plugin
50907all-stage3-gcc: maybe-all-stage3-lto-plugin
50908all-stage4-gcc: maybe-all-stage4-lto-plugin
50909all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50910all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
016a3251 50911all-gcc: maybe-all-libiconv
016a3251
DD
50912all-stage1-gcc: maybe-all-stage1-libiconv
50913all-stage2-gcc: maybe-all-stage2-libiconv
50914all-stage3-gcc: maybe-all-stage3-libiconv
50915all-stage4-gcc: maybe-all-stage4-libiconv
50916all-stageprofile-gcc: maybe-all-stageprofile-libiconv
50917all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
57eefe4d 50918info-gcc: maybe-all-build-libiberty
57eefe4d
RW
50919info-stage1-gcc: maybe-all-build-libiberty
50920info-stage2-gcc: maybe-all-build-libiberty
50921info-stage3-gcc: maybe-all-build-libiberty
50922info-stage4-gcc: maybe-all-build-libiberty
50923info-stageprofile-gcc: maybe-all-build-libiberty
50924info-stagefeedback-gcc: maybe-all-build-libiberty
50925dvi-gcc: maybe-all-build-libiberty
57eefe4d
RW
50926dvi-stage1-gcc: maybe-all-build-libiberty
50927dvi-stage2-gcc: maybe-all-build-libiberty
50928dvi-stage3-gcc: maybe-all-build-libiberty
50929dvi-stage4-gcc: maybe-all-build-libiberty
50930dvi-stageprofile-gcc: maybe-all-build-libiberty
50931dvi-stagefeedback-gcc: maybe-all-build-libiberty
50932pdf-gcc: maybe-all-build-libiberty
57eefe4d
RW
50933pdf-stage1-gcc: maybe-all-build-libiberty
50934pdf-stage2-gcc: maybe-all-build-libiberty
50935pdf-stage3-gcc: maybe-all-build-libiberty
50936pdf-stage4-gcc: maybe-all-build-libiberty
50937pdf-stageprofile-gcc: maybe-all-build-libiberty
50938pdf-stagefeedback-gcc: maybe-all-build-libiberty
50939html-gcc: maybe-all-build-libiberty
57eefe4d
RW
50940html-stage1-gcc: maybe-all-build-libiberty
50941html-stage2-gcc: maybe-all-build-libiberty
50942html-stage3-gcc: maybe-all-build-libiberty
50943html-stage4-gcc: maybe-all-build-libiberty
50944html-stageprofile-gcc: maybe-all-build-libiberty
50945html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 50946install-gcc: maybe-install-fixincludes
8d8eef9a 50947install-gcc: maybe-install-lto-plugin
9b980aa1 50948install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 50949install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191 50950configure-libcpp: configure-libiberty
9e6ce191
PB
50951configure-stage1-libcpp: configure-stage1-libiberty
50952configure-stage2-libcpp: configure-stage2-libiberty
50953configure-stage3-libcpp: configure-stage3-libiberty
50954configure-stage4-libcpp: configure-stage4-libiberty
50955configure-stageprofile-libcpp: configure-stageprofile-libiberty
50956configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
50957configure-libcpp: maybe-configure-intl
9e6ce191
PB
50958configure-stage1-libcpp: maybe-configure-stage1-intl
50959configure-stage2-libcpp: maybe-configure-stage2-intl
50960configure-stage3-libcpp: maybe-configure-stage3-intl
50961configure-stage4-libcpp: maybe-configure-stage4-intl
50962configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
50963configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
016a3251 50964configure-libcpp: maybe-all-libiconv
016a3251
DD
50965configure-stage1-libcpp: maybe-all-stage1-libiconv
50966configure-stage2-libcpp: maybe-all-stage2-libiconv
50967configure-stage3-libcpp: maybe-all-stage3-libiconv
50968configure-stage4-libcpp: maybe-all-stage4-libiconv
50969configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50970configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
9e6ce191 50971all-libcpp: all-libiberty
9e6ce191
PB
50972all-stage1-libcpp: all-stage1-libiberty
50973all-stage2-libcpp: all-stage2-libiberty
50974all-stage3-libcpp: all-stage3-libiberty
50975all-stage4-libcpp: all-stage4-libiberty
50976all-stageprofile-libcpp: all-stageprofile-libiberty
50977all-stagefeedback-libcpp: all-stagefeedback-libiberty
50978all-libcpp: maybe-all-intl
9e6ce191
PB
50979all-stage1-libcpp: maybe-all-stage1-intl
50980all-stage2-libcpp: maybe-all-stage2-intl
50981all-stage3-libcpp: maybe-all-stage3-intl
50982all-stage4-libcpp: maybe-all-stage4-intl
50983all-stageprofile-libcpp: maybe-all-stageprofile-intl
50984all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
016a3251 50985all-libcpp: maybe-all-libiconv
016a3251
DD
50986all-stage1-libcpp: maybe-all-stage1-libiconv
50987all-stage2-libcpp: maybe-all-stage2-libiconv
50988all-stage3-libcpp: maybe-all-stage3-libiconv
50989all-stage4-libcpp: maybe-all-stage4-libiconv
50990all-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50991all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
d3ed111c 50992all-fixincludes: maybe-all-libiberty
201f096f 50993all-stage1-fixincludes: maybe-all-stage1-libiberty
50994all-stage2-fixincludes: maybe-all-stage2-libiberty
50995all-stage3-fixincludes: maybe-all-stage3-libiberty
50996all-stage4-fixincludes: maybe-all-stage4-libiberty
50997all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
50998all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 50999all-gnattools: maybe-all-target-libada
8d8eef9a 51000all-lto-plugin: maybe-all-libiberty
8d8eef9a
RW
51001all-stage1-lto-plugin: maybe-all-stage1-libiberty
51002all-stage2-lto-plugin: maybe-all-stage2-libiberty
51003all-stage3-lto-plugin: maybe-all-stage3-libiberty
51004all-stage4-lto-plugin: maybe-all-stage4-libiberty
51005all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
51006all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831 51007all-lto-plugin: maybe-all-libiberty-linker-plugin
1b6c0831
L
51008all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
51009all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
51010all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
51011all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
51012all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
51013all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
1b6c0831 51014all-gotools: maybe-all-target-libgo
016a3251 51015configure-intl: maybe-all-libiconv
016a3251
DD
51016configure-stage1-intl: maybe-all-stage1-libiconv
51017configure-stage2-intl: maybe-all-stage2-libiconv
51018configure-stage3-intl: maybe-all-stage3-libiconv
51019configure-stage4-intl: maybe-all-stage4-libiconv
51020configure-stageprofile-intl: maybe-all-stageprofile-libiconv
51021configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv
4b900473 51022configure-mpfr: maybe-all-gmp
4b900473
PB
51023configure-stage1-mpfr: maybe-all-stage1-gmp
51024configure-stage2-mpfr: maybe-all-stage2-gmp
51025configure-stage3-mpfr: maybe-all-stage3-gmp
51026configure-stage4-mpfr: maybe-all-stage4-gmp
51027configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
51028configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c 51029configure-mpc: maybe-all-mpfr
e8a5fa9c
RW
51030configure-stage1-mpc: maybe-all-stage1-mpfr
51031configure-stage2-mpc: maybe-all-stage2-mpfr
51032configure-stage3-mpc: maybe-all-stage3-mpfr
51033configure-stage4-mpc: maybe-all-stage4-mpfr
51034configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
51035configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e 51036configure-isl: maybe-all-gmp
7ec59b9e
L
51037configure-stage1-isl: maybe-all-stage1-gmp
51038configure-stage2-isl: maybe-all-stage2-gmp
51039configure-stage3-isl: maybe-all-stage3-gmp
51040configure-stage4-isl: maybe-all-stage4-gmp
51041configure-stageprofile-isl: maybe-all-stageprofile-gmp
51042configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
016a3251 51043all-intl: maybe-all-libiconv
016a3251
DD
51044all-stage1-intl: maybe-all-stage1-libiconv
51045all-stage2-intl: maybe-all-stage2-libiconv
51046all-stage3-intl: maybe-all-stage3-libiconv
51047all-stage4-intl: maybe-all-stage4-libiconv
51048all-stageprofile-intl: maybe-all-stageprofile-libiconv
51049all-stagefeedback-intl: maybe-all-stagefeedback-libiconv
9e6ce191 51050configure-gdb: maybe-configure-sim
73cc7272
TT
51051configure-gdb: maybe-all-gnulib
51052all-gdb: maybe-all-gnulib
9e6ce191 51053all-gdb: maybe-all-readline
72b2455a 51054all-gdb: maybe-all-build-bison
9e6ce191 51055all-gdb: maybe-all-sim
dbbe5f95 51056all-gdb: maybe-all-libtermcap
9e6ce191
PB
51057configure-libgui: maybe-configure-tcl
51058configure-libgui: maybe-configure-tk
51059all-libgui: maybe-all-tcl
51060all-libgui: maybe-all-tk
51061all-libgui: maybe-all-itcl
b4a77b47 51062configure-bfd: configure-libiberty
9e6ce191
PB
51063configure-stage1-bfd: configure-stage1-libiberty
51064configure-stage2-bfd: configure-stage2-libiberty
51065configure-stage3-bfd: configure-stage3-libiberty
51066configure-stage4-bfd: configure-stage4-libiberty
51067configure-stageprofile-bfd: configure-stageprofile-libiberty
51068configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23 51069configure-bfd: maybe-configure-intl
20e95c23
DJ
51070configure-stage1-bfd: maybe-configure-stage1-intl
51071configure-stage2-bfd: maybe-configure-stage2-intl
51072configure-stage3-bfd: maybe-configure-stage3-intl
51073configure-stage4-bfd: maybe-configure-stage4-intl
51074configure-stageprofile-bfd: maybe-configure-stageprofile-intl
51075configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191 51076all-bfd: maybe-all-libiberty
9e6ce191
PB
51077all-stage1-bfd: maybe-all-stage1-libiberty
51078all-stage2-bfd: maybe-all-stage2-libiberty
51079all-stage3-bfd: maybe-all-stage3-libiberty
51080all-stage4-bfd: maybe-all-stage4-libiberty
51081all-stageprofile-bfd: maybe-all-stageprofile-libiberty
51082all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
51083all-bfd: maybe-all-intl
9e6ce191
PB
51084all-stage1-bfd: maybe-all-stage1-intl
51085all-stage2-bfd: maybe-all-stage2-intl
51086all-stage3-bfd: maybe-all-stage3-intl
51087all-stage4-bfd: maybe-all-stage4-intl
51088all-stageprofile-bfd: maybe-all-stageprofile-intl
51089all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea 51090all-bfd: maybe-all-zlib
d2d67aea
L
51091all-stage1-bfd: maybe-all-stage1-zlib
51092all-stage2-bfd: maybe-all-stage2-zlib
51093all-stage3-bfd: maybe-all-stage3-zlib
51094all-stage4-bfd: maybe-all-stage4-zlib
51095all-stageprofile-bfd: maybe-all-stageprofile-zlib
51096all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67 51097configure-opcodes: configure-libiberty
66775d67
AM
51098configure-stage1-opcodes: configure-stage1-libiberty
51099configure-stage2-opcodes: configure-stage2-libiberty
66775d67 51100configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
51101configure-stage4-opcodes: configure-stage4-libiberty
51102configure-stageprofile-opcodes: configure-stageprofile-libiberty
51103configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
51104all-opcodes: maybe-all-libiberty
66775d67
AM
51105all-stage1-opcodes: maybe-all-stage1-libiberty
51106all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 51107all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
51108all-stage4-opcodes: maybe-all-stage4-libiberty
51109all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
51110all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23 51111configure-binutils: maybe-configure-intl
20e95c23
DJ
51112configure-stage1-binutils: maybe-configure-stage1-intl
51113configure-stage2-binutils: maybe-configure-stage2-intl
51114configure-stage3-binutils: maybe-configure-stage3-intl
51115configure-stage4-binutils: maybe-configure-stage4-intl
51116configure-stageprofile-binutils: maybe-configure-stageprofile-intl
51117configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191 51118all-binutils: maybe-all-libiberty
9e6ce191
PB
51119all-stage1-binutils: maybe-all-stage1-libiberty
51120all-stage2-binutils: maybe-all-stage2-libiberty
51121all-stage3-binutils: maybe-all-stage3-libiberty
51122all-stage4-binutils: maybe-all-stage4-libiberty
51123all-stageprofile-binutils: maybe-all-stageprofile-libiberty
51124all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
51125all-binutils: maybe-all-opcodes
9e6ce191
PB
51126all-stage1-binutils: maybe-all-stage1-opcodes
51127all-stage2-binutils: maybe-all-stage2-opcodes
51128all-stage3-binutils: maybe-all-stage3-opcodes
51129all-stage4-binutils: maybe-all-stage4-opcodes
51130all-stageprofile-binutils: maybe-all-stageprofile-opcodes
51131all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
51132all-binutils: maybe-all-bfd
9e6ce191
PB
51133all-stage1-binutils: maybe-all-stage1-bfd
51134all-stage2-binutils: maybe-all-stage2-bfd
51135all-stage3-binutils: maybe-all-stage3-bfd
51136all-stage4-binutils: maybe-all-stage4-bfd
51137all-stageprofile-binutils: maybe-all-stageprofile-bfd
51138all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a 51139all-binutils: maybe-all-build-flex
72b2455a
PB
51140all-stage1-binutils: maybe-all-build-flex
51141all-stage2-binutils: maybe-all-build-flex
51142all-stage3-binutils: maybe-all-build-flex
51143all-stage4-binutils: maybe-all-build-flex
51144all-stageprofile-binutils: maybe-all-build-flex
51145all-stagefeedback-binutils: maybe-all-build-flex
72b2455a 51146all-binutils: maybe-all-build-bison
72b2455a
PB
51147all-stage1-binutils: maybe-all-build-bison
51148all-stage2-binutils: maybe-all-build-bison
51149all-stage3-binutils: maybe-all-build-bison
51150all-stage4-binutils: maybe-all-build-bison
51151all-stageprofile-binutils: maybe-all-build-bison
51152all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191 51153all-binutils: maybe-all-intl
9e6ce191
PB
51154all-stage1-binutils: maybe-all-stage1-intl
51155all-stage2-binutils: maybe-all-stage2-intl
51156all-stage3-binutils: maybe-all-stage3-intl
51157all-stage4-binutils: maybe-all-stage4-intl
51158all-stageprofile-binutils: maybe-all-stageprofile-intl
51159all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685 51160all-binutils: maybe-all-gas
0140d685
L
51161all-stage1-binutils: maybe-all-stage1-gas
51162all-stage2-binutils: maybe-all-stage2-gas
51163all-stage3-binutils: maybe-all-stage3-gas
51164all-stage4-binutils: maybe-all-stage4-gas
51165all-stageprofile-binutils: maybe-all-stageprofile-gas
51166all-stagefeedback-binutils: maybe-all-stagefeedback-gas
0e65dfba
NA
51167all-binutils: maybe-all-libctf
51168all-stage1-binutils: maybe-all-stage1-libctf
51169all-stage2-binutils: maybe-all-stage2-libctf
51170all-stage3-binutils: maybe-all-stage3-libctf
51171all-stage4-binutils: maybe-all-stage4-libctf
51172all-stageprofile-binutils: maybe-all-stageprofile-libctf
51173all-stagefeedback-binutils: maybe-all-stagefeedback-libctf
1ff6de03
NA
51174all-ld: maybe-all-libctf
51175all-stage1-ld: maybe-all-stage1-libctf
51176all-stage2-ld: maybe-all-stage2-libctf
51177all-stage3-ld: maybe-all-stage3-libctf
51178all-stage4-ld: maybe-all-stage4-libctf
51179all-stageprofile-ld: maybe-all-stageprofile-libctf
51180all-stagefeedback-ld: maybe-all-stagefeedback-libctf
ae831be5 51181install-binutils: maybe-install-opcodes
9b980aa1 51182install-strip-binutils: maybe-install-strip-opcodes
cf662e21 51183install-opcodes: maybe-install-bfd
9b980aa1 51184install-strip-opcodes: maybe-install-strip-bfd
20e95c23 51185configure-gas: maybe-configure-intl
20e95c23
DJ
51186configure-stage1-gas: maybe-configure-stage1-intl
51187configure-stage2-gas: maybe-configure-stage2-intl
51188configure-stage3-gas: maybe-configure-stage3-intl
51189configure-stage4-gas: maybe-configure-stage4-intl
51190configure-stageprofile-gas: maybe-configure-stageprofile-intl
51191configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191 51192all-gas: maybe-all-libiberty
9e6ce191
PB
51193all-stage1-gas: maybe-all-stage1-libiberty
51194all-stage2-gas: maybe-all-stage2-libiberty
51195all-stage3-gas: maybe-all-stage3-libiberty
51196all-stage4-gas: maybe-all-stage4-libiberty
51197all-stageprofile-gas: maybe-all-stageprofile-libiberty
51198all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
51199all-gas: maybe-all-opcodes
9e6ce191
PB
51200all-stage1-gas: maybe-all-stage1-opcodes
51201all-stage2-gas: maybe-all-stage2-opcodes
51202all-stage3-gas: maybe-all-stage3-opcodes
51203all-stage4-gas: maybe-all-stage4-opcodes
51204all-stageprofile-gas: maybe-all-stageprofile-opcodes
51205all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
51206all-gas: maybe-all-bfd
9e6ce191
PB
51207all-stage1-gas: maybe-all-stage1-bfd
51208all-stage2-gas: maybe-all-stage2-bfd
51209all-stage3-gas: maybe-all-stage3-bfd
51210all-stage4-gas: maybe-all-stage4-bfd
51211all-stageprofile-gas: maybe-all-stageprofile-bfd
51212all-stagefeedback-gas: maybe-all-stagefeedback-bfd
51213all-gas: maybe-all-intl
9e6ce191
PB
51214all-stage1-gas: maybe-all-stage1-intl
51215all-stage2-gas: maybe-all-stage2-intl
51216all-stage3-gas: maybe-all-stage3-intl
51217all-stage4-gas: maybe-all-stage4-intl
51218all-stageprofile-gas: maybe-all-stageprofile-intl
51219all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 51220configure-ld: maybe-configure-intl
20e95c23
DJ
51221configure-stage1-ld: maybe-configure-stage1-intl
51222configure-stage2-ld: maybe-configure-stage2-intl
51223configure-stage3-ld: maybe-configure-stage3-intl
51224configure-stage4-ld: maybe-configure-stage4-intl
51225configure-stageprofile-ld: maybe-configure-stageprofile-intl
51226configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191 51227all-ld: maybe-all-libiberty
9e6ce191
PB
51228all-stage1-ld: maybe-all-stage1-libiberty
51229all-stage2-ld: maybe-all-stage2-libiberty
51230all-stage3-ld: maybe-all-stage3-libiberty
51231all-stage4-ld: maybe-all-stage4-libiberty
51232all-stageprofile-ld: maybe-all-stageprofile-libiberty
51233all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
51234all-ld: maybe-all-bfd
9e6ce191
PB
51235all-stage1-ld: maybe-all-stage1-bfd
51236all-stage2-ld: maybe-all-stage2-bfd
51237all-stage3-ld: maybe-all-stage3-bfd
51238all-stage4-ld: maybe-all-stage4-bfd
51239all-stageprofile-ld: maybe-all-stageprofile-bfd
51240all-stagefeedback-ld: maybe-all-stagefeedback-bfd
51241all-ld: maybe-all-opcodes
9e6ce191
PB
51242all-stage1-ld: maybe-all-stage1-opcodes
51243all-stage2-ld: maybe-all-stage2-opcodes
51244all-stage3-ld: maybe-all-stage3-opcodes
51245all-stage4-ld: maybe-all-stage4-opcodes
51246all-stageprofile-ld: maybe-all-stageprofile-opcodes
51247all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a 51248all-ld: maybe-all-build-bison
72b2455a
PB
51249all-stage1-ld: maybe-all-build-bison
51250all-stage2-ld: maybe-all-build-bison
51251all-stage3-ld: maybe-all-build-bison
51252all-stage4-ld: maybe-all-build-bison
51253all-stageprofile-ld: maybe-all-build-bison
51254all-stagefeedback-ld: maybe-all-build-bison
72b2455a 51255all-ld: maybe-all-build-flex
72b2455a
PB
51256all-stage1-ld: maybe-all-build-flex
51257all-stage2-ld: maybe-all-build-flex
51258all-stage3-ld: maybe-all-build-flex
51259all-stage4-ld: maybe-all-build-flex
51260all-stageprofile-ld: maybe-all-build-flex
51261all-stagefeedback-ld: maybe-all-build-flex
9e6ce191 51262all-ld: maybe-all-intl
9e6ce191
PB
51263all-stage1-ld: maybe-all-stage1-intl
51264all-stage2-ld: maybe-all-stage2-intl
51265all-stage3-ld: maybe-all-stage3-intl
51266all-stage4-ld: maybe-all-stage4-intl
51267all-stageprofile-ld: maybe-all-stageprofile-intl
51268all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685 51269all-ld: maybe-all-gas
0140d685
L
51270all-stage1-ld: maybe-all-stage1-gas
51271all-stage2-ld: maybe-all-stage2-gas
51272all-stage3-ld: maybe-all-stage3-gas
51273all-stage4-ld: maybe-all-stage4-gas
51274all-stageprofile-ld: maybe-all-stageprofile-gas
51275all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403 51276all-ld: maybe-all-binutils
a6305403
YS
51277all-stage1-ld: maybe-all-stage1-binutils
51278all-stage2-ld: maybe-all-stage2-binutils
51279all-stage3-ld: maybe-all-stage3-binutils
51280all-stage4-ld: maybe-all-stage4-binutils
51281all-stageprofile-ld: maybe-all-stageprofile-binutils
51282all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 51283install-ld: maybe-install-gold
9b980aa1 51284install-strip-ld: maybe-install-strip-gold
93f9b408 51285configure-gold: maybe-configure-intl
93f9b408
ILT
51286configure-stage1-gold: maybe-configure-stage1-intl
51287configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 51288configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
51289configure-stage4-gold: maybe-configure-stage4-intl
51290configure-stageprofile-gold: maybe-configure-stageprofile-intl
51291configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
51292all-gold: maybe-all-libiberty
93f9b408
ILT
51293all-stage1-gold: maybe-all-stage1-libiberty
51294all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 51295all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
51296all-stage4-gold: maybe-all-stage4-libiberty
51297all-stageprofile-gold: maybe-all-stageprofile-libiberty
51298all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
51299all-gold: maybe-all-intl
93f9b408
ILT
51300all-stage1-gold: maybe-all-stage1-intl
51301all-stage2-gold: maybe-all-stage2-intl
93f9b408 51302all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
51303all-stage4-gold: maybe-all-stage4-intl
51304all-stageprofile-gold: maybe-all-stageprofile-intl
51305all-stagefeedback-gold: maybe-all-stagefeedback-intl
51306all-gold: maybe-all-bfd
93f9b408
ILT
51307all-stage1-gold: maybe-all-stage1-bfd
51308all-stage2-gold: maybe-all-stage2-bfd
93f9b408 51309all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
51310all-stage4-gold: maybe-all-stage4-bfd
51311all-stageprofile-gold: maybe-all-stageprofile-bfd
51312all-stagefeedback-gold: maybe-all-stagefeedback-bfd
51313all-gold: maybe-all-build-bison
93f9b408
ILT
51314all-stage1-gold: maybe-all-build-bison
51315all-stage2-gold: maybe-all-build-bison
93f9b408 51316all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
51317all-stage4-gold: maybe-all-build-bison
51318all-stageprofile-gold: maybe-all-build-bison
51319all-stagefeedback-gold: maybe-all-build-bison
0140d685 51320all-gold: maybe-all-gas
0140d685
L
51321all-stage1-gold: maybe-all-stage1-gas
51322all-stage2-gold: maybe-all-stage2-gas
51323all-stage3-gold: maybe-all-stage3-gas
51324all-stage4-gold: maybe-all-stage4-gas
51325all-stageprofile-gold: maybe-all-stageprofile-gas
51326all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97 51327check-gold: maybe-all-binutils
e5164e97
ILT
51328check-stage1-gold: maybe-all-stage1-binutils
51329check-stage2-gold: maybe-all-stage2-binutils
e5164e97 51330check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
51331check-stage4-gold: maybe-all-stage4-binutils
51332check-stageprofile-gold: maybe-all-stageprofile-binutils
51333check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca 51334check-gold: maybe-all-gas
700d40ca
ILT
51335check-stage1-gold: maybe-all-stage1-gas
51336check-stage2-gold: maybe-all-stage2-gas
51337check-stage3-gold: maybe-all-stage3-gas
51338check-stage4-gold: maybe-all-stage4-gas
51339check-stageprofile-gold: maybe-all-stageprofile-gas
51340check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee 51341configure-opcodes: maybe-configure-intl
7206a0ee
JJ
51342configure-stage1-opcodes: maybe-configure-stage1-intl
51343configure-stage2-opcodes: maybe-configure-stage2-intl
51344configure-stage3-opcodes: maybe-configure-stage3-intl
51345configure-stage4-opcodes: maybe-configure-stage4-intl
51346configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
51347configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191 51348all-opcodes: maybe-all-bfd
9e6ce191
PB
51349all-stage1-opcodes: maybe-all-stage1-bfd
51350all-stage2-opcodes: maybe-all-stage2-bfd
51351all-stage3-opcodes: maybe-all-stage3-bfd
51352all-stage4-opcodes: maybe-all-stage4-bfd
51353all-stageprofile-opcodes: maybe-all-stageprofile-bfd
51354all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
51355all-opcodes: maybe-all-libiberty
9e6ce191
PB
51356all-stage1-opcodes: maybe-all-stage1-libiberty
51357all-stage2-opcodes: maybe-all-stage2-libiberty
51358all-stage3-opcodes: maybe-all-stage3-libiberty
51359all-stage4-opcodes: maybe-all-stage4-libiberty
51360all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
51361all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee 51362all-opcodes: maybe-all-intl
7206a0ee
JJ
51363all-stage1-opcodes: maybe-all-stage1-intl
51364all-stage2-opcodes: maybe-all-stage2-intl
51365all-stage3-opcodes: maybe-all-stage3-intl
51366all-stage4-opcodes: maybe-all-stage4-intl
51367all-stageprofile-opcodes: maybe-all-stageprofile-intl
51368all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
51369all-dejagnu: maybe-all-tcl
51370all-dejagnu: maybe-all-expect
51371all-dejagnu: maybe-all-tk
51372configure-expect: maybe-configure-tcl
51373configure-expect: maybe-configure-tk
51374all-expect: maybe-all-tcl
51375all-expect: maybe-all-tk
51376configure-itcl: maybe-configure-tcl
51377configure-itcl: maybe-configure-tk
51378all-itcl: maybe-all-tcl
51379all-itcl: maybe-all-tk
ae831be5 51380install-itcl: maybe-install-tcl
9b980aa1 51381install-strip-itcl: maybe-install-strip-tcl
b4a77b47 51382configure-tk: maybe-configure-tcl
ae831be5 51383all-tk: maybe-all-tcl
9e6ce191
PB
51384all-sid: maybe-all-tcl
51385all-sid: maybe-all-tk
51386install-sid: maybe-install-tcl
9b980aa1 51387install-strip-sid: maybe-install-strip-tcl
9e6ce191 51388install-sid: maybe-install-tk
9b980aa1 51389install-strip-sid: maybe-install-strip-tk
9e6ce191
PB
51390all-sim: maybe-all-readline
51391all-sim: maybe-configure-gdb
72b2455a 51392all-fastjar: maybe-all-build-texinfo
0e65dfba
NA
51393all-libctf: all-libiberty
51394all-stage1-libctf: all-stage1-libiberty
51395all-stage2-libctf: all-stage2-libiberty
51396all-stage3-libctf: all-stage3-libiberty
51397all-stage4-libctf: all-stage4-libiberty
51398all-stageprofile-libctf: all-stageprofile-libiberty
51399all-stagefeedback-libctf: all-stagefeedback-libiberty
51400all-libctf: maybe-all-bfd
51401all-stage1-libctf: maybe-all-stage1-bfd
51402all-stage2-libctf: maybe-all-stage2-bfd
51403all-stage3-libctf: maybe-all-stage3-bfd
51404all-stage4-libctf: maybe-all-stage4-bfd
51405all-stageprofile-libctf: maybe-all-stageprofile-bfd
51406all-stagefeedback-libctf: maybe-all-stagefeedback-bfd
51407all-libctf: maybe-all-zlib
51408all-stage1-libctf: maybe-all-stage1-zlib
51409all-stage2-libctf: maybe-all-stage2-zlib
51410all-stage3-libctf: maybe-all-stage3-zlib
51411all-stage4-libctf: maybe-all-stage4-zlib
51412all-stageprofile-libctf: maybe-all-stageprofile-zlib
51413all-stagefeedback-libctf: maybe-all-stagefeedback-zlib
9698cf9b
NA
51414configure-libctf: maybe-all-bfd
51415configure-stage1-libctf: maybe-all-stage1-bfd
51416configure-stage2-libctf: maybe-all-stage2-bfd
51417configure-stage3-libctf: maybe-all-stage3-bfd
51418configure-stage4-libctf: maybe-all-stage4-bfd
51419configure-stageprofile-libctf: maybe-all-stageprofile-bfd
51420configure-stagefeedback-libctf: maybe-all-stagefeedback-bfd
51421configure-libctf: maybe-all-intl
51422configure-stage1-libctf: maybe-all-stage1-intl
51423configure-stage2-libctf: maybe-all-stage2-intl
51424configure-stage3-libctf: maybe-all-stage3-intl
51425configure-stage4-libctf: maybe-all-stage4-intl
51426configure-stageprofile-libctf: maybe-all-stageprofile-intl
51427configure-stagefeedback-libctf: maybe-all-stagefeedback-intl
51428configure-libctf: maybe-all-zlib
51429configure-stage1-libctf: maybe-all-stage1-zlib
51430configure-stage2-libctf: maybe-all-stage2-zlib
51431configure-stage3-libctf: maybe-all-stage3-zlib
51432configure-stage4-libctf: maybe-all-stage4-zlib
51433configure-stageprofile-libctf: maybe-all-stageprofile-zlib
51434configure-stagefeedback-libctf: maybe-all-stagefeedback-zlib
51435configure-libctf: maybe-all-libiconv
51436configure-stage1-libctf: maybe-all-stage1-libiconv
51437configure-stage2-libctf: maybe-all-stage2-libiconv
51438configure-stage3-libctf: maybe-all-stage3-libiconv
51439configure-stage4-libctf: maybe-all-stage4-libiconv
51440configure-stageprofile-libctf: maybe-all-stageprofile-libiconv
51441configure-stagefeedback-libctf: maybe-all-stagefeedback-libiconv
72b2455a 51442all-bison: maybe-all-build-texinfo
72b2455a 51443all-flex: maybe-all-build-bison
9e6ce191 51444all-flex: maybe-all-m4
72b2455a 51445all-flex: maybe-all-build-texinfo
72b2455a 51446all-m4: maybe-all-build-texinfo
b4a77b47 51447configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 51448all-target-fastjar: maybe-all-target-zlib
e552509b 51449configure-target-libgo: maybe-configure-target-libffi
8e71395b 51450all-target-libgo: maybe-all-target-libbacktrace
e552509b 51451all-target-libgo: maybe-all-target-libffi
9417cd2f 51452all-target-libgo: maybe-all-target-libatomic
cff87f51 51453configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
51454configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
51455configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
51456configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
51457configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
51458configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
51459configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
5286fdef 51460configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
51461configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
51462configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
51463configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
51464configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
51465configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
51466configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135 51467configure-target-libvtv: maybe-all-target-libstdc++-v3
95e43135
JBG
51468configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
51469configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
51470configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
51471configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
51472configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
51473configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0 51474all-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
51475all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
51476all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
51477all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
51478all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
51479all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
51480all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
9417cd2f
JBG
51481install-target-libgo: maybe-install-target-libatomic
51482install-target-libgfortran: maybe-install-target-libquadmath
51483install-target-libgfortran: maybe-install-target-libgcc
3dae1673 51484install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 51485install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
51486install-target-libvtv: maybe-install-target-libstdc++-v3
51487install-target-libvtv: maybe-install-target-libgcc
e3f56a99
NC
51488install-target-libcilkrts: maybe-install-target-libstdc++-v3
51489install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
51490install-target-liboffloadmic: maybe-install-target-libstdc++-v3
51491install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
51492install-target-libitm: maybe-install-target-libgcc
51493install-target-libobjc: maybe-install-target-libgcc
51494install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 51495all-target-libgloss: maybe-all-target-newlib
9e6ce191 51496all-target-winsup: maybe-all-target-libtermcap
e552509b 51497configure-target-libgfortran: maybe-all-target-libquadmath
68996839 51498configure-target-libgfortran: maybe-all-target-libbacktrace
9e6ce191
PB
51499
51500
4119873a
AO
51501@if gcc-bootstrap
51502configure-gnattools: stage_last
51503configure-libcc1: stage_last
51504configure-utils: stage_last
51505configure-gdb: stage_last
51506configure-gprof: stage_last
51507configure-sid: stage_last
51508configure-sim: stage_last
51509configure-fastjar: stage_last
51510configure-bison: stage_last
51511configure-flex: stage_last
51512configure-m4: stage_last
51513@endif gcc-bootstrap
51514
51515@unless gcc-bootstrap
51516all-gnattools: maybe-all-target-libstdc++-v3
51517configure-libcc1: maybe-configure-gcc
51518all-libcc1: maybe-all-gcc
51519all-utils: maybe-all-libiberty
51520configure-gdb: maybe-all-intl
51521configure-gdb: maybe-all-bfd
51522configure-gdb: maybe-all-libiconv
51523all-gdb: maybe-all-libiberty
51524all-gdb: maybe-all-libiconv
51525all-gdb: maybe-all-opcodes
51526all-gdb: maybe-all-libdecnumber
30d1f018 51527all-gdb: maybe-all-libctf
4119873a
AO
51528configure-gprof: maybe-configure-intl
51529all-gprof: maybe-all-libiberty
51530all-gprof: maybe-all-bfd
51531all-gprof: maybe-all-opcodes
51532all-gprof: maybe-all-intl
51533all-gprof: maybe-all-gas
51534all-sid: maybe-all-libiberty
51535all-sid: maybe-all-bfd
51536all-sid: maybe-all-opcodes
51537configure-sim: maybe-configure-intl
51538all-sim: maybe-all-intl
51539all-sim: maybe-all-libiberty
51540all-sim: maybe-all-bfd
51541all-sim: maybe-all-opcodes
51542all-fastjar: maybe-all-zlib
51543all-fastjar: maybe-all-libiberty
51544all-bison: maybe-all-intl
51545all-flex: maybe-all-intl
51546all-m4: maybe-all-intl
51547configure-target-libgo: maybe-all-target-libstdc++-v3
51548configure-target-liboffloadmic: maybe-configure-target-libgomp
51549all-target-liboffloadmic: maybe-all-target-libgomp
51550configure-target-newlib: maybe-all-binutils
51551configure-target-newlib: maybe-all-ld
51552@endunless gcc-bootstrap
51553
6aa8ef82
DJ
51554# Dependencies for target modules on other target modules are
51555# described by lang_env_dependencies; the defaults apply to anything
51556# not mentioned there.
51557
51558
51559@if gcc-bootstrap
e8a5fa9c
RW
51560configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
51561configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
51562configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
51563configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
51564configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
51565configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
51566configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
51567configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
51568configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
51569configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
51570configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
51571configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
51572configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
51573configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
51574configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
51575configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
51576configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
51577configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
51578configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
51579configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
51580configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
51581configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
51582configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
51583configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
51584configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
51585configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
51586configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
51587configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
51588configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
51589configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
51590@endif gcc-bootstrap
51591
51592@if gcc-no-bootstrap
51593configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 51594configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 51595configure-target-libmpx: maybe-all-target-libgcc
95e43135 51596configure-target-libvtv: maybe-all-target-libgcc
e3f56a99 51597configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 51598configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 51599configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 51600configure-target-newlib: maybe-all-target-libgcc
2bf680c4 51601configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 51602configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
51603configure-target-libgfortran: maybe-all-target-libgcc
51604configure-target-libobjc: maybe-all-target-libgcc
e552509b 51605configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
51606configure-target-libtermcap: maybe-all-target-libgcc
51607configure-target-winsup: maybe-all-target-libgcc
51608configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82 51609configure-target-libffi: maybe-all-target-libgcc
6aa8ef82 51610configure-target-zlib: maybe-all-target-libgcc
6aa8ef82
DJ
51611configure-target-rda: maybe-all-target-libgcc
51612configure-target-libada: maybe-all-target-libgcc
51613configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
51614configure-target-libitm: maybe-all-target-libgcc
51615configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
51616@endif gcc-no-bootstrap
51617
51618
51619configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
51620
5286fdef
L
51621configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
51622
1b6c0831
L
51623configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
51624
95e43135
JBG
51625configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
51626
e3f56a99
NC
51627configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
51628configure-target-libcilkrts: maybe-all-target-libstdc++-v3
51629
1b6c0831
L
51630configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
51631configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
51632
6aa8ef82
DJ
51633configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
51634
51635
51636
2bf680c4
ILT
51637configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
51638
e552509b
ILT
51639configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
51640
6aa8ef82
DJ
51641configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
51642
51643configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
51644
e552509b
ILT
51645configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
51646
6aa8ef82
DJ
51647configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
51648
51649configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
51650
51651
6aa8ef82 51652configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
4849dfd8 51653configure-target-libffi: maybe-all-target-libstdc++-v3
6aa8ef82 51654
6aa8ef82
DJ
51655configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
51656
6aa8ef82
DJ
51657configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
51658
51659configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
51660
51661configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
51662
7ec59b9e
L
51663configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
51664configure-target-libitm: maybe-all-target-libstdc++-v3
51665
51666configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
51667
6aa8ef82 51668
907be67c 51669CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 51670GDB_TK = @GDB_TK@
907be67c
DJ
51671INSTALL_GDB_TK = @INSTALL_GDB_TK@
51672configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 51673all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 51674install-gdb: $(INSTALL_GDB_TK)
907a7241 51675
a2cc058a
NN
51676# Serialization dependencies. Host configures don't work well in parallel to
51677# each other, due to contention over config.cache. Target configures and
51678# build configures are similar.
51679@serialization_dependencies@
51680
15723a45
NN
51681# --------------------------------
51682# Regenerating top level configury
51683# --------------------------------
252b5132 51684
14a2a2f1 51685# Rebuilding Makefile.in, using autogen.
43be203f 51686AUTOGEN = autogen
6b784d9f 51687$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 51688 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 51689
a0da8069 51690# Rebuilding Makefile.
43be203f
AO
51691Makefile: $(srcdir)/Makefile.in config.status
51692 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
51693
479759c8 51694config.status: configure
10ecffb9 51695 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 51696
a0da8069 51697# Rebuilding configure.
43be203f 51698AUTOCONF = autoconf
da888c87 51699$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
0597bdc4
AM
51700 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4 \
51701 $(srcdir)/config/elf.m4 $(srcdir)/config/isl.m4 \
51702 $(srcdir)/libtool.m4 $(srcdir)/ltoptions.m4 $(srcdir)/ltsugar.m4 \
51703 $(srcdir)/ltversion.m4 $(srcdir)/lt~obsolete.m4
43be203f 51704 cd $(srcdir) && $(AUTOCONF)
252b5132 51705
3728fade
NN
51706# ------------------------------
51707# Special directives to GNU Make
51708# ------------------------------
51709
3728fade
NN
51710# Don't pass command-line variables to submakes.
51711.NOEXPORT:
51712MAKEOVERRIDES=
51713
252b5132 51714# end of Makefile.in
This page took 5.452231 seconds and 4 git commands to generate.