Create a PLT entry for R_386_PC32 in non-code sections
[deliverable/binutils-gdb.git] / Makefile.in
CommitLineData
405ea7a0
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
252b5132
RH
3#
4# Makefile for directory with subdirs to build.
5cec67bf 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
98dd765a 6# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
1b05fbbd 7# Free Software Foundation
252b5132
RH
8#
9# This file is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
e8a5fa9c 11# the Free Software Foundation; either version 3 of the License, or
252b5132
RH
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
e8a5fa9c
RW
20# along with this program; see the file COPYING3. If not see
21# <http://www.gnu.org/licenses/>.
252b5132
RH
22#
23
0bb6ea20
HPN
24# First, test for a proper version of make, but only where one is required.
25
26@if gcc
27ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty.
28$(error GNU make version 3.80 or newer is required.)
29endif
30@endif gcc
31
50212802
NN
32# -------------------------------
33# Standard Autoconf-set variables
34# -------------------------------
583d52d7 35VPATH=@srcdir@
583d52d7 36
c6b750e1 37build_alias=@build_noncanonical@
4b900473
PB
38build_vendor=@build_vendor@
39build_os=@build_os@
7f121bbf 40build=@build@
c6b750e1 41host_alias=@host_noncanonical@
4b900473
PB
42host_vendor=@host_vendor@
43host_os=@host_os@
7f121bbf 44host=@host@
c6b750e1 45target_alias=@target_noncanonical@
4b900473
PB
46target_vendor=@target_vendor@
47target_os=@target_os@
7f121bbf 48target=@target@
583d52d7 49
50212802 50program_transform_name = @program_transform_name@
403d9505
NN
51
52prefix = @prefix@
53exec_prefix = @exec_prefix@
54
50212802
NN
55srcdir = @srcdir@
56
403d9505
NN
57bindir = @bindir@
58sbindir = @sbindir@
59libexecdir = @libexecdir@
60datadir = @datadir@
61sysconfdir = @sysconfdir@
62sharedstatedir = @sharedstatedir@
63localstatedir = @localstatedir@
64libdir = @libdir@
65includedir = @includedir@
66oldincludedir = @oldincludedir@
67infodir = @infodir@
108a6f8e
CD
68datarootdir = @datarootdir@
69docdir = @docdir@
a3ca38d2 70pdfdir = @pdfdir@
108a6f8e 71htmldir = @htmldir@
403d9505 72mandir = @mandir@
252b5132
RH
73man1dir = $(mandir)/man1
74man2dir = $(mandir)/man2
75man3dir = $(mandir)/man3
76man4dir = $(mandir)/man4
77man5dir = $(mandir)/man5
78man6dir = $(mandir)/man6
79man7dir = $(mandir)/man7
80man8dir = $(mandir)/man8
81man9dir = $(mandir)/man9
d5de0a84 82
e5c3f801
NN
83INSTALL = @INSTALL@
84INSTALL_PROGRAM = @INSTALL_PROGRAM@
85INSTALL_SCRIPT = @INSTALL_SCRIPT@
86INSTALL_DATA = @INSTALL_DATA@
656fdd47
PB
87LN = @LN@
88LN_S = @LN_S@
77d7106f
AM
89MAINT = @MAINT@
90MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
91MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
252b5132 92
50212802
NN
93# -------------------------------------------------
94# Miscellaneous non-standard autoconf-set variables
95# -------------------------------------------------
252b5132 96
50212802
NN
97# The gcc driver likes to know the arguments it was configured with.
98TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
252b5132 99
50212802
NN
100tooldir = @tooldir@
101build_tooldir = @build_tooldir@
252b5132 102
50212802
NN
103# This is the name of the environment variable used for the path to
104# the libraries.
105RPATH_ENVVAR = @RPATH_ENVVAR@
252b5132 106
3bbd2f8f
AL
107# On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path
108# is used instead of the directory itself to avoid including built
109# executables in PATH.
110GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
111
50212802
NN
112# Build programs are put under this directory.
113BUILD_SUBDIR = @build_subdir@
114# This is set by the configure script to the arguments to use when configuring
115# directories built for the build system.
a7254363 116BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
6a9cf61e 117
e8a5fa9c
RW
118# Linker flags to use on the host, for stage1 or when not
119# bootstrapping.
120STAGE1_LDFLAGS = @stage1_ldflags@
121
122# Libraries to use on the host, for stage1 or when not bootstrapping.
123STAGE1_LIBS = @stage1_libs@
124
125# Linker flags to use for stage2 and later.
126POSTSTAGE1_LDFLAGS = @poststage1_ldflags@
127
128# Libraries to use for stage2 and later.
129POSTSTAGE1_LIBS = @poststage1_libs@
130
6a9cf61e
PB
131# This is the list of variables to export in the environment when
132# configuring any subdirectory. It must also be exported whenever
133# recursing into a build directory in case that directory's Makefile
134# re-runs configure.
135BASE_EXPORTS = \
136 FLEX="$(FLEX)"; export FLEX; \
137 LEX="$(LEX)"; export LEX; \
138 BISON="$(BISON)"; export BISON; \
139 YACC="$(YACC)"; export YACC; \
140 M4="$(M4)"; export M4; \
8e957354
PB
141 SED="$(SED)"; export SED; \
142 AWK="$(AWK)"; export AWK; \
6a9cf61e
PB
143 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
144
378fce5b 145# This is the list of variables to export in the environment when
6a9cf61e 146# configuring subdirectories for the build system.
378fce5b 147BUILD_EXPORTS = \
6a9cf61e 148 $(BASE_EXPORTS) \
378fce5b
DD
149 AR="$(AR_FOR_BUILD)"; export AR; \
150 AS="$(AS_FOR_BUILD)"; export AS; \
151 CC="$(CC_FOR_BUILD)"; export CC; \
152 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
153 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
154 CXX="$(CXX_FOR_BUILD)"; export CXX; \
155 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
156 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
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
AO
194 GCJ="$(GCJ)"; export GCJ; \
195 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
9b980aa1 196 GOC="$(GOC)"; export GOC; \
378fce5b
DD
197 AR="$(AR)"; export AR; \
198 AS="$(AS)"; export AS; \
199 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
200 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
201 LD="$(LD)"; export LD; \
e8a5fa9c 202 LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
378fce5b
DD
203 NM="$(NM)"; export NM; \
204 RANLIB="$(RANLIB)"; export RANLIB; \
205 WINDRES="$(WINDRES)"; export WINDRES; \
0c24b341 206 WINDMC="$(WINDMC)"; export WINDMC; \
378fce5b 207 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
95b6a1f2 208 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
b121d7d4 209 READELF="$(READELF)"; export READELF; \
be01d343
PB
210 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
211 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
212 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
213 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
214 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
215 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
6b91c541 216 OBJCOPY_FOR_TARGET="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY_FOR_TARGET; \
be01d343 217 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
b121d7d4 218 READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
378fce5b 219 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
e8a5fa9c 220 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
378fce5b 221 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
315b3b02 222 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
1b6c0831 223 ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
7ec59b9e 224 ISLINC="$(HOST_ISLINC)"; export ISLINC; \
22121df0
L
225 LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
226 LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
f70224b5
PB
227@if gcc-bootstrap
228 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
229@endif gcc-bootstrap
e90269c8 230 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
378fce5b 231
1f53ca9a
AO
232POSTSTAGE1_CXX_EXPORT = \
233 CXX='$(CXX)'; export CXX; \
234 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
235@if target-libstdc++-v3-bootstrap
236# Override the above if we're bootstrapping C++.
237POSTSTAGE1_CXX_EXPORT = \
d2489204 238 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \
1f53ca9a 239 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
1d14850f 240 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
ffdd6afc 241 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
abca8d87 242 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
243 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
244 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$s/libstdc++-v3/libsupc++ \
ffdd6afc
ILT
245 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
246 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \
247 export CXX; \
1f53ca9a
AO
248 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
249@endif target-libstdc++-v3-bootstrap
250
378fce5b 251# Similar, for later GCC stages.
d545f33b 252POSTSTAGE1_HOST_EXPORTS = \
7ffa0b57 253 $(HOST_EXPORTS) \
b00612cc 254 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
1b05fbbd
AO
255 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
256 $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
257 CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
1f53ca9a 258 $(POSTSTAGE1_CXX_EXPORT) \
1b6c0831 259 $(LTO_EXPORTS) \
e8a5fa9c
RW
260 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
261 LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
262 HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
50212802 263
50212802
NN
264# Target libraries are put under this directory:
265TARGET_SUBDIR = @target_subdir@
266# This is set by the configure script to the arguments to use when configuring
267# directories built for the target.
a7254363 268TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
378fce5b 269# This is the list of variables to export in the environment when
f2b2dd91 270# configuring subdirectories for the target system.
378fce5b 271BASE_TARGET_EXPORTS = \
6a9cf61e 272 $(BASE_EXPORTS) \
378fce5b 273 AR="$(AR_FOR_TARGET)"; export AR; \
be01d343 274 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
1b05fbbd
AO
275 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
276 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
378fce5b 277 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
06bcb89d 278 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
1b05fbbd
AO
279 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
280 GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \
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
7ec59b9e 314# Where to find ISL
1b6c0831 315HOST_ISLLIBS = @isllibs@
7ec59b9e 316HOST_ISLINC = @islinc@
e28c595f 317
700d40ca
ILT
318# Where to find libelf
319HOST_LIBELFLIBS = @libelflibs@
320HOST_LIBELFINC = @libelfinc@
321
ffdd6afc
ILT
322EXTRA_CONFIGARGS_LIBJAVA = @EXTRA_CONFIGARGS_LIBJAVA@
323
50212802
NN
324# ----------------------------------------------
325# Programs producing files for the BUILD machine
326# ----------------------------------------------
327
f6c1938b 328SHELL = @SHELL@
50212802
NN
329
330# pwd command to use. Allow user to override default by setting PWDCMD in
331# the environment to account for automounters. The make variable must not
332# be called PWDCMD, otherwise the value set here is passed to make
333# subprocesses and overrides the setting from the user's environment.
b40e3958
L
334# Don't use PWD since it is a common shell environment variable and we
335# don't want to corrupt it.
336PWD_COMMAND = $${PWDCMD-pwd}
50212802
NN
337
338# compilers to use to create programs which must be run in the build
339# environment.
b5714970
PB
340AR_FOR_BUILD = @AR_FOR_BUILD@
341AS_FOR_BUILD = @AS_FOR_BUILD@
50212802 342CC_FOR_BUILD = @CC_FOR_BUILD@
5fbad20a 343CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
b5714970
PB
344CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
345CXX_FOR_BUILD = @CXX_FOR_BUILD@
346DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
347GCJ_FOR_BUILD = @GCJ_FOR_BUILD@
348GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
9b980aa1 349GOC_FOR_BUILD = @GOC_FOR_BUILD@
b5714970
PB
350LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
351LD_FOR_BUILD = @LD_FOR_BUILD@
352NM_FOR_BUILD = @NM_FOR_BUILD@
353RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
354WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
355WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
50212802
NN
356
357# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
358# here so that they can be overridden by Makefile fragments.
50212802
NN
359BUILD_PREFIX = @BUILD_PREFIX@
360BUILD_PREFIX_1 = @BUILD_PREFIX_1@
252b5132 361
0df3d27f
PB
362# Flags to pass to stage2 and later makes. They are defined
363# here so that they can be overridden by Makefile fragments.
364BOOT_CFLAGS= -g -O2
f6d183c0 365BOOT_LDFLAGS=
d7b9dae9 366BOOT_ADAFLAGS= -gnatpg
0df3d27f 367
8e957354
PB
368AWK = @AWK@
369SED = @SED@
be01d343
PB
370BISON = @BISON@
371YACC = @YACC@
372FLEX = @FLEX@
373LEX = @LEX@
374M4 = @M4@
375MAKEINFO = @MAKEINFO@
376EXPECT = @EXPECT@
377RUNTEST = @RUNTEST@
252b5132
RH
378
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
1b05fbbd
AO
415TFLAGS =
416
417# Defaults for all stages; some are overridden below.
418
419STAGE_CFLAGS = $(BOOT_CFLAGS)
420STAGE_TFLAGS = $(TFLAGS)
421STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
422
423
424# Defaults for stage 1; some are overridden below.
425STAGE1_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
426STAGE1_CXXFLAGS = $(CXXFLAGS)
427@if target-libstdc++-v3-bootstrap
428# Override the above if we're bootstrapping C++.
429STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
430@endif target-libstdc++-v3-bootstrap
1b05fbbd 431STAGE1_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 432STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
433
434# Defaults for stage 2; some are overridden below.
435STAGE2_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
436STAGE2_CXXFLAGS = $(CXXFLAGS)
437@if target-libstdc++-v3-bootstrap
438# Override the above if we're bootstrapping C++.
439STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
440@endif target-libstdc++-v3-bootstrap
1b05fbbd 441STAGE2_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 442STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
443
444# Defaults for stage 3; some are overridden below.
445STAGE3_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
446STAGE3_CXXFLAGS = $(CXXFLAGS)
447@if target-libstdc++-v3-bootstrap
448# Override the above if we're bootstrapping C++.
449STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
450@endif target-libstdc++-v3-bootstrap
1b05fbbd 451STAGE3_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 452STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
453
454# Defaults for stage 4; some are overridden below.
455STAGE4_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
456STAGE4_CXXFLAGS = $(CXXFLAGS)
457@if target-libstdc++-v3-bootstrap
458# Override the above if we're bootstrapping C++.
459STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
460@endif target-libstdc++-v3-bootstrap
1b05fbbd 461STAGE4_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 462STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
463
464# Defaults for stage profile; some are overridden below.
465STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
466STAGEprofile_CXXFLAGS = $(CXXFLAGS)
467@if target-libstdc++-v3-bootstrap
468# Override the above if we're bootstrapping C++.
469STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
470@endif target-libstdc++-v3-bootstrap
1b05fbbd 471STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 472STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
473
474# Defaults for stage feedback; some are overridden below.
475STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
476STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
477@if target-libstdc++-v3-bootstrap
478# Override the above if we're bootstrapping C++.
479STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
480@endif target-libstdc++-v3-bootstrap
1b05fbbd 481STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 482STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
483
484
22121df0
L
485# By default, C and C++ are the only stage1 languages, because they are the
486# only ones we require to build with the bootstrap compiler, and also the
487# only ones useful for building stage2.
8a0d8a5c 488
1b05fbbd 489STAGE1_CFLAGS = @stage1_cflags@
1f53ca9a
AO
490STAGE1_CHECKING = @stage1_checking@
491STAGE1_LANGUAGES = @stage1_languages@
1b05fbbd
AO
492# * We force-disable intermodule optimizations, even if
493# --enable-intermodule was passed, since the installed compiler
494# probably can't handle them. Luckily, autoconf always respects
495# the last argument when conflicting --enable arguments are passed.
496# * Likewise, we force-disable coverage flags, since the installed
497# compiler probably has never heard of them.
880b18d1 498# * We also disable -Wformat, since older GCCs don't understand newer %s.
1b05fbbd 499STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
880b18d1 500 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \
501 --disable-build-format-warnings
8a0d8a5c 502
1b05fbbd
AO
503STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
504STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
8520c408 505
1b05fbbd
AO
506STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
507STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
7f6ef0c0 508
8520c408
AO
509do-compare = @do_compare@
510do-compare3 = $(do-compare)
8520c408 511
50212802
NN
512# -----------------------------------------------
513# Programs producing files for the TARGET machine
514# -----------------------------------------------
0da52010 515
50212802 516AR_FOR_TARGET=@AR_FOR_TARGET@
852e5f18 517AS_FOR_TARGET=@AS_FOR_TARGET@
1b05fbbd 518CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
55db4b87 519
50212802
NN
520# If GCC_FOR_TARGET is not overriden on the command line, then this
521# variable is passed down to the gcc Makefile, where it is used to
522# build libgcc2.a. We define it here so that it can itself be
523# overridden on the command line.
1b05fbbd
AO
524GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
525CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
526RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
527GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@
528GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
e552509b 529GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
852e5f18 530DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
50212802 531LD_FOR_TARGET=@LD_FOR_TARGET@
50212802 532
7e0f7140 533LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
50212802 534NM_FOR_TARGET=@NM_FOR_TARGET@
5ae72758 535OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
6b91c541 536OBJCOPY_FOR_TARGET=@OBJCOPY_FOR_TARGET@
852e5f18 537RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
b121d7d4 538READELF_FOR_TARGET=@READELF_FOR_TARGET@
7e0f7140 539STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
50212802 540WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
0c24b341 541WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
252b5132 542
be01d343
PB
543COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
544COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
545COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
546
7f6ef0c0
PB
547CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
548CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
7f6ef0c0 549
be01d343
PB
550LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
551LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
91c1f14c 552LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
e552509b 553GOCFLAGS_FOR_TARGET = -O2 -g
50212802 554
1b05fbbd
AO
555FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
556SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
557DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
558
559XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
560
50212802
NN
561# ------------------------------------
562# Miscellaneous targets and flag lists
563# ------------------------------------
564
252b5132
RH
565# The first rule in the file had better be this one. Don't put any above it.
566# This lives here to allow makefile fragments to contain dependencies.
f70224b5 567all:
252b5132 568
252b5132 569#### host and target specific makefile fragments come in here.
a0da8069
NN
570@target_makefile_frag@
571@alphaieee_frag@
572@ospace_frag@
573@host_makefile_frag@
252b5132
RH
574###
575
e90269c8 576# This is the list of directories that may be needed in RPATH_ENVVAR
18a8530e 577# so that programs built for the target machine work.
1b6c0831 578TARGET_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
579
580@if target-libstdc++-v3
18a8530e 581TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
e90269c8
PB
582@endif target-libstdc++-v3
583
5286fdef
L
584@if target-libsanitizer
585TARGET_LIB_PATH_libsanitizer = $$r/$(TARGET_SUBDIR)/libsanitizer/.libs:
586@endif target-libsanitizer
587
1b6c0831
L
588@if target-libmpx
589TARGET_LIB_PATH_libmpx = $$r/$(TARGET_SUBDIR)/libmpx/.libs:
590@endif target-libmpx
591
95e43135
JBG
592@if target-libvtv
593TARGET_LIB_PATH_libvtv = $$r/$(TARGET_SUBDIR)/libvtv/.libs:
594@endif target-libvtv
595
e78e02e6 596@if target-libcilkrts
597TARGET_LIB_PATH_libcilkrts = $$r/$(TARGET_SUBDIR)/libcilkrts/.libs:
598@endif target-libcilkrts
599
1b6c0831
L
600@if target-liboffloadmic
601TARGET_LIB_PATH_liboffloadmic = $$r/$(TARGET_SUBDIR)/liboffloadmic/.libs:
602@endif target-liboffloadmic
603
064d0a7c
PB
604@if target-libssp
605TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
606@endif target-libssp
607
b3ded179
PB
608@if target-libgomp
609TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
610@endif target-libgomp
611
7ec59b9e
L
612@if target-libitm
613TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs:
614@endif target-libitm
615
616@if target-libatomic
617TARGET_LIB_PATH_libatomic = $$r/$(TARGET_SUBDIR)/libatomic/.libs:
618@endif target-libatomic
619
e90269c8
PB
620
621
622# This is the list of directories that may be needed in RPATH_ENVVAR
623# so that programs built for the host machine work.
1b6c0831 624HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_isl)$(HOST_LIB_PATH_libelf)
e90269c8
PB
625
626# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
627@if gcc
3bbd2f8f 628HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
e90269c8
PB
629@endif gcc
630
631
4b900473
PB
632@if gmp
633HOST_LIB_PATH_gmp = \
634 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
635@endif gmp
636
637@if mpfr
638HOST_LIB_PATH_mpfr = \
639 $$r/$(HOST_SUBDIR)/mpfr/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/.libs:
640@endif mpfr
641
e8a5fa9c
RW
642@if mpc
643HOST_LIB_PATH_mpc = \
644 $$r/$(HOST_SUBDIR)/mpc/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/.libs:
645@endif mpc
646
7ec59b9e
L
647@if isl
648HOST_LIB_PATH_isl = \
649 $$r/$(HOST_SUBDIR)/isl/.libs:$$r/$(HOST_SUBDIR)/prev-isl/.libs:
650@endif isl
e28c595f 651
1f53ca9a
AO
652@if libelf
653HOST_LIB_PATH_libelf = \
654 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
655@endif libelf
656
e90269c8 657
87cda2cf
AO
658CXX_FOR_TARGET_FLAG_TO_PASS = \
659 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
660@if target-libstdc++-v3
661# CXX_FOR_TARGET is tricky to get right for target libs that require a
662# functional C++ compiler. When we recurse, if we expand
663# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
664# libstdc++ include flags from the script. Instead, we get an
665# -funconfigured-* word, so that we'll get errors if this invalid C++
666# command line is used for anything, but also so that we can use the
667# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
668# don't pass it on, sub-make will use the default definition, that
669# re-expands it at the time of use, so we'll get it right when we need
670# it. One potential exception is the expansion of CXX_FOR_TARGET
671# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
672# really work, for C++ host programs can't depend on the current-stage
673# C++ target library.
674CXX_FOR_TARGET_FLAG_TO_PASS = \
675 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
676@endif target-libstdc++-v3
677
22121df0
L
678# Flags to pass down to all sub-makes. STAGE*FLAGS,
679# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
680# overrideable (for a bootstrap build stage1 also builds gcc.info).
252b5132 681BASE_FLAGS_TO_PASS = \
497f816e 682 "DESTDIR=$(DESTDIR)" \
252b5132 683 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
252b5132 684 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
252b5132
RH
685 "bindir=$(bindir)" \
686 "datadir=$(datadir)" \
687 "exec_prefix=$(exec_prefix)" \
688 "includedir=$(includedir)" \
108a6f8e
CD
689 "datarootdir=$(datarootdir)" \
690 "docdir=$(docdir)" \
252b5132 691 "infodir=$(infodir)" \
a3ca38d2 692 "pdfdir=$(pdfdir)" \
108a6f8e 693 "htmldir=$(htmldir)" \
252b5132
RH
694 "libdir=$(libdir)" \
695 "libexecdir=$(libexecdir)" \
696 "lispdir=$(lispdir)" \
697 "localstatedir=$(localstatedir)" \
698 "mandir=$(mandir)" \
699 "oldincludedir=$(oldincludedir)" \
700 "prefix=$(prefix)" \
701 "sbindir=$(sbindir)" \
702 "sharedstatedir=$(sharedstatedir)" \
703 "sysconfdir=$(sysconfdir)" \
704 "tooldir=$(tooldir)" \
ba73c63f 705 "build_tooldir=$(build_tooldir)" \
12f0bd74 706 "target_alias=$(target_alias)" \
8e957354 707 "AWK=$(AWK)" \
12f0bd74
NN
708 "BISON=$(BISON)" \
709 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
b2edd3b5 710 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
12f0bd74
NN
711 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
712 "EXPECT=$(EXPECT)" \
6a9cf61e 713 "FLEX=$(FLEX)" \
12f0bd74
NN
714 "INSTALL=$(INSTALL)" \
715 "INSTALL_DATA=$(INSTALL_DATA)" \
716 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
717 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
6641ce42 718 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
12f0bd74
NN
719 "LEX=$(LEX)" \
720 "M4=$(M4)" \
721 "MAKE=$(MAKE)" \
722 "RUNTEST=$(RUNTEST)" \
723 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
8e957354 724 "SED=$(SED)" \
12f0bd74
NN
725 "SHELL=$(SHELL)" \
726 "YACC=$(YACC)" \
c52c6897 727 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
da888c87 728 "ADA_CFLAGS=$(ADA_CFLAGS)" \
12f0bd74 729 "AR_FLAGS=$(AR_FLAGS)" \
c52c6897 730 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
f6d183c0
PB
731 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
732 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
12f0bd74
NN
733 "CFLAGS=$(CFLAGS)" \
734 "CXXFLAGS=$(CXXFLAGS)" \
735 "LDFLAGS=$(LDFLAGS)" \
736 "LIBCFLAGS=$(LIBCFLAGS)" \
737 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
8a0d8a5c 738 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
80911fe1 739 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
a0323144
PB
740 "GNATBIND=$(GNATBIND)" \
741 "GNATMAKE=$(GNATMAKE)" \
12f0bd74
NN
742 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
743 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
744 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
745 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
06bcb89d 746 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
12f0bd74
NN
747 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
748 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
1b05fbbd 749 "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
12f0bd74 750 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
4b1cb4fe 751 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
e552509b
ILT
752 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
753 "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
12f0bd74 754 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
7e0f7140 755 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
414e5532 756 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
12f0bd74
NN
757 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
758 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
759 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
5ae72758 760 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
6b91c541 761 "OBJCOPY_FOR_TARGET=$(OBJCOPY_FOR_TARGET)" \
12f0bd74 762 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
b121d7d4 763 "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \
7e0f7140 764 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
12f0bd74 765 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
0c24b341 766 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
1b05fbbd 767 "BUILD_CONFIG=$(BUILD_CONFIG)" \
c52c6897 768 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
80911fe1 769 "LEAN=$(LEAN)" \
1b05fbbd 770 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
1f53ca9a 771 "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
772 "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
773 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
1f53ca9a 774 "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
775 "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
776 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
1f53ca9a 777 "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
778 "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
779 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
1f53ca9a 780 "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
1b05fbbd
AO
781 "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
782 "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
1f53ca9a 783 "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
784 "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
785 "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
1f53ca9a 786 "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd 787 "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
87cda2cf 788 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
1b05fbbd 789 "TFLAGS=$(TFLAGS)" \
10ecffb9 790 "CONFIG_SHELL=$(SHELL)" \
12f0bd74 791 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
252b5132 792
55db4b87
PB
793# We leave this in just in case, but it is not needed anymore.
794RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
656fdd47 795
252b5132
RH
796# Flags to pass down to most sub-makes, in which we're building with
797# the host environment.
252b5132
RH
798EXTRA_HOST_FLAGS = \
799 'AR=$(AR)' \
800 'AS=$(AS)' \
801 'CC=$(CC)' \
802 'CXX=$(CXX)' \
803 'DLLTOOL=$(DLLTOOL)' \
1b05fbbd
AO
804 'GCJ=$(GCJ)' \
805 'GFORTRAN=$(GFORTRAN)' \
9b980aa1 806 'GOC=$(GOC)' \
252b5132 807 'LD=$(LD)' \
be01d343 808 'LIPO=$(LIPO)' \
252b5132 809 'NM=$(NM)' \
80911fe1 810 'OBJDUMP=$(OBJDUMP)' \
b9459e83 811 'RANLIB=$(RANLIB)' \
b121d7d4 812 'READELF=$(READELF)' \
be01d343 813 'STRIP=$(STRIP)' \
0c24b341
NC
814 'WINDRES=$(WINDRES)' \
815 'WINDMC=$(WINDMC)'
252b5132
RH
816
817FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
818
b3676d82
EB
819# Flags to pass to stage1 or when not bootstrapping.
820
821STAGE1_FLAGS_TO_PASS = \
822 LDFLAGS="$${LDFLAGS}" \
823 HOST_LIBS="$${HOST_LIBS}"
824
8a0d8a5c
PB
825# Flags to pass to stage2 and later makes.
826
827POSTSTAGE1_FLAGS_TO_PASS = \
e8a5fa9c
RW
828 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
829 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
830 GNATBIND="$${GNATBIND}" \
1f53ca9a
AO
831 LDFLAGS="$${LDFLAGS}" \
832 HOST_LIBS="$${HOST_LIBS}" \
1b6c0831 833 $(LTO_FLAGS_TO_PASS) \
8a0d8a5c
PB
834 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
835
f91ca6bc
IB
836@if gcc-bootstrap
837EXTRA_HOST_EXPORTS = if [ $(current_stage) != stage1 ]; then \
838 $(POSTSTAGE1_HOST_EXPORTS) \
22121df0 839 fi;
f91ca6bc
IB
840
841EXTRA_BOOTSTRAP_FLAGS = CC="$$CC" CXX="$$CXX" LDFLAGS="$$LDFLAGS"
842@endif gcc-bootstrap
843
252b5132 844# Flags to pass down to makes which are built with the target environment.
0aed8855
PB
845# The double $ decreases the length of the command line; those variables
846# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
7f6ef0c0
PB
847# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
848# so we expand them here.
252b5132
RH
849EXTRA_TARGET_FLAGS = \
850 'AR=$$(AR_FOR_TARGET)' \
0aed8855 851 'AS=$(COMPILER_AS_FOR_TARGET)' \
1b05fbbd
AO
852 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
853 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
1b6c0831
L
854 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
855 -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
856 $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
1b05fbbd 857 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
252b5132 858 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
1b05fbbd
AO
859 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
860 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
9b980aa1 861 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
e552509b 862 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
0aed8855 863 'LD=$(COMPILER_LD_FOR_TARGET)' \
414e5532 864 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
1b05fbbd
AO
865 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
866 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
0aed8855 867 'NM=$(COMPILER_NM_FOR_TARGET)' \
5ae72758 868 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
6b91c541 869 'OBJCOPY=$$(OBJCOPY_FOR_TARGET)' \
252b5132 870 'RANLIB=$$(RANLIB_FOR_TARGET)' \
b121d7d4 871 'READELF=$$(READELF_FOR_TARGET)' \
0c24b341 872 'WINDRES=$$(WINDRES_FOR_TARGET)' \
1b05fbbd
AO
873 'WINDMC=$$(WINDMC_FOR_TARGET)' \
874 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
1b6c0831
L
875 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \
876 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \
1b05fbbd 877 "TFLAGS=$$TFLAGS"
252b5132
RH
878
879TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
880
881# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
882# unfortunately needs the native compiler and the target ar and
883# ranlib.
884# If any variables are added here, they must be added to do-*, below.
2a4cbe27 885# The BUILD_* variables are a special case, which are used for the gcc
252b5132
RH
886# cross-building scheme.
887EXTRA_GCC_FLAGS = \
252b5132 888 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
3dee29da 889 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
98dd765a 890 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
252b5132 891
f0b24077 892GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
252b5132 893
1b05fbbd 894@if gcc
96655cc4 895BUILD_CONFIG = @BUILD_CONFIG@
1b05fbbd
AO
896ifneq ($(BUILD_CONFIG),)
897include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
898endif
899@endif gcc
900
dd12c3a8 901.PHONY: configure-host
b813574b 902configure-host: \
dd12c3a8
NN
903 maybe-configure-bfd \
904 maybe-configure-opcodes \
905 maybe-configure-binutils \
906 maybe-configure-bison \
f9806fa5 907 maybe-configure-cgen \
dd12c3a8 908 maybe-configure-dejagnu \
dd12c3a8
NN
909 maybe-configure-etc \
910 maybe-configure-fastjar \
d3ed111c 911 maybe-configure-fixincludes \
dd12c3a8
NN
912 maybe-configure-flex \
913 maybe-configure-gas \
b813574b 914 maybe-configure-gcc \
4b900473
PB
915 maybe-configure-gmp \
916 maybe-configure-mpfr \
e8a5fa9c 917 maybe-configure-mpc \
7ec59b9e 918 maybe-configure-isl \
1f53ca9a 919 maybe-configure-libelf \
93f9b408 920 maybe-configure-gold \
dd12c3a8 921 maybe-configure-gprof \
dd12c3a8
NN
922 maybe-configure-intl \
923 maybe-configure-tcl \
924 maybe-configure-itcl \
925 maybe-configure-ld \
2bf680c4 926 maybe-configure-libbacktrace \
04cf1b77 927 maybe-configure-libcpp \
be01d343 928 maybe-configure-libdecnumber \
dd12c3a8
NN
929 maybe-configure-libgui \
930 maybe-configure-libiberty \
1b6c0831 931 maybe-configure-libiberty-linker-plugin \
dc448a7b 932 maybe-configure-libiconv \
dd12c3a8 933 maybe-configure-m4 \
dd12c3a8 934 maybe-configure-readline \
dd12c3a8
NN
935 maybe-configure-sid \
936 maybe-configure-sim \
dd12c3a8 937 maybe-configure-texinfo \
dd12c3a8
NN
938 maybe-configure-zlib \
939 maybe-configure-gdb \
940 maybe-configure-expect \
941 maybe-configure-guile \
942 maybe-configure-tk \
dd12c3a8 943 maybe-configure-libtermcap \
b00612cc 944 maybe-configure-utils \
700d40ca 945 maybe-configure-gnattools \
1b6c0831
L
946 maybe-configure-lto-plugin \
947 maybe-configure-libcc1 \
948 maybe-configure-gotools
dd12c3a8
NN
949.PHONY: configure-target
950configure-target: \
951 maybe-configure-target-libstdc++-v3 \
5286fdef 952 maybe-configure-target-libsanitizer \
1b6c0831 953 maybe-configure-target-libmpx \
95e43135 954 maybe-configure-target-libvtv \
e78e02e6 955 maybe-configure-target-libcilkrts \
1b6c0831 956 maybe-configure-target-liboffloadmic \
064d0a7c 957 maybe-configure-target-libssp \
dd12c3a8 958 maybe-configure-target-newlib \
6aa8ef82 959 maybe-configure-target-libgcc \
2bf680c4 960 maybe-configure-target-libbacktrace \
e552509b 961 maybe-configure-target-libquadmath \
4b1cb4fe 962 maybe-configure-target-libgfortran \
dd12c3a8 963 maybe-configure-target-libobjc \
e552509b 964 maybe-configure-target-libgo \
dd12c3a8
NN
965 maybe-configure-target-libtermcap \
966 maybe-configure-target-winsup \
967 maybe-configure-target-libgloss \
dd12c3a8
NN
968 maybe-configure-target-libffi \
969 maybe-configure-target-libjava \
970 maybe-configure-target-zlib \
971 maybe-configure-target-boehm-gc \
a2592b1b 972 maybe-configure-target-rda \
b3ded179 973 maybe-configure-target-libada \
7ec59b9e
L
974 maybe-configure-target-libgomp \
975 maybe-configure-target-libitm \
976 maybe-configure-target-libatomic
252b5132 977
319cab08
PB
978# The target built for a native non-bootstrap build.
979.PHONY: all
f70224b5
PB
980all:
981@if gcc-bootstrap
be01d343 982 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
983 @r=`${PWD_COMMAND}`; export r; \
984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 985 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 986@endif gcc-bootstrap
0aed8855 987 @: $(MAKE); $(unstage)
f70224b5
PB
988 @r=`${PWD_COMMAND}`; export r; \
989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 990@if gcc-bootstrap
b5233201 991 if [ -f stage_last ]; then \
07fc31c9 992 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 993 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 994 else \
1b05fbbd 995@endif gcc-bootstrap
b5233201
AO
996 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
997@if gcc-bootstrap
998 ; \
04ec0acb 999 fi \
b5233201 1000@endif gcc-bootstrap
04ec0acb 1001 && :
6a9cf61e
PB
1002
1003.PHONY: all-build
c52c6897
PB
1004
1005all-build: maybe-all-build-libiberty
1006all-build: maybe-all-build-bison
c52c6897
PB
1007all-build: maybe-all-build-flex
1008all-build: maybe-all-build-m4
1009all-build: maybe-all-build-texinfo
1010all-build: maybe-all-build-fixincludes
1b6c0831 1011all-build: maybe-all-build-libcpp
c52c6897 1012
dd12c3a8 1013.PHONY: all-host
c52c6897 1014
c52c6897
PB
1015@if bfd-no-bootstrap
1016all-host: maybe-all-bfd
1017@endif bfd-no-bootstrap
1018@if opcodes-no-bootstrap
1019all-host: maybe-all-opcodes
1020@endif opcodes-no-bootstrap
1021@if binutils-no-bootstrap
1022all-host: maybe-all-binutils
1023@endif binutils-no-bootstrap
1024all-host: maybe-all-bison
f9806fa5 1025all-host: maybe-all-cgen
c52c6897 1026all-host: maybe-all-dejagnu
c52c6897
PB
1027all-host: maybe-all-etc
1028all-host: maybe-all-fastjar
201f096f 1029@if fixincludes-no-bootstrap
c52c6897 1030all-host: maybe-all-fixincludes
201f096f 1031@endif fixincludes-no-bootstrap
c52c6897
PB
1032all-host: maybe-all-flex
1033@if gas-no-bootstrap
1034all-host: maybe-all-gas
1035@endif gas-no-bootstrap
1036@if gcc-no-bootstrap
1037all-host: maybe-all-gcc
1038@endif gcc-no-bootstrap
4b900473
PB
1039@if gmp-no-bootstrap
1040all-host: maybe-all-gmp
1041@endif gmp-no-bootstrap
1042@if mpfr-no-bootstrap
1043all-host: maybe-all-mpfr
1044@endif mpfr-no-bootstrap
e8a5fa9c
RW
1045@if mpc-no-bootstrap
1046all-host: maybe-all-mpc
1047@endif mpc-no-bootstrap
7ec59b9e
L
1048@if isl-no-bootstrap
1049all-host: maybe-all-isl
1050@endif isl-no-bootstrap
1f53ca9a
AO
1051@if libelf-no-bootstrap
1052all-host: maybe-all-libelf
1053@endif libelf-no-bootstrap
93f9b408
ILT
1054@if gold-no-bootstrap
1055all-host: maybe-all-gold
1056@endif gold-no-bootstrap
c52c6897 1057all-host: maybe-all-gprof
c52c6897
PB
1058@if intl-no-bootstrap
1059all-host: maybe-all-intl
1060@endif intl-no-bootstrap
1061all-host: maybe-all-tcl
1062all-host: maybe-all-itcl
1063@if ld-no-bootstrap
1064all-host: maybe-all-ld
1065@endif ld-no-bootstrap
2bf680c4
ILT
1066@if libbacktrace-no-bootstrap
1067all-host: maybe-all-libbacktrace
1068@endif libbacktrace-no-bootstrap
c52c6897
PB
1069@if libcpp-no-bootstrap
1070all-host: maybe-all-libcpp
1071@endif libcpp-no-bootstrap
1072@if libdecnumber-no-bootstrap
1073all-host: maybe-all-libdecnumber
1074@endif libdecnumber-no-bootstrap
1075all-host: maybe-all-libgui
1076@if libiberty-no-bootstrap
1077all-host: maybe-all-libiberty
1078@endif libiberty-no-bootstrap
1b6c0831
L
1079@if libiberty-linker-plugin-no-bootstrap
1080all-host: maybe-all-libiberty-linker-plugin
1081@endif libiberty-linker-plugin-no-bootstrap
016a3251 1082@if libiconv-no-bootstrap
dc448a7b 1083all-host: maybe-all-libiconv
016a3251 1084@endif libiconv-no-bootstrap
c52c6897 1085all-host: maybe-all-m4
c52c6897 1086all-host: maybe-all-readline
c52c6897
PB
1087all-host: maybe-all-sid
1088all-host: maybe-all-sim
c52c6897 1089all-host: maybe-all-texinfo
c52c6897
PB
1090@if zlib-no-bootstrap
1091all-host: maybe-all-zlib
1092@endif zlib-no-bootstrap
1093all-host: maybe-all-gdb
1094all-host: maybe-all-expect
1095all-host: maybe-all-guile
1096all-host: maybe-all-tk
1097all-host: maybe-all-libtermcap
1098all-host: maybe-all-utils
1099all-host: maybe-all-gnattools
700d40ca
ILT
1100@if lto-plugin-no-bootstrap
1101all-host: maybe-all-lto-plugin
1102@endif lto-plugin-no-bootstrap
1b6c0831
L
1103all-host: maybe-all-libcc1
1104all-host: maybe-all-gotools
c52c6897 1105
dd12c3a8 1106.PHONY: all-target
c52c6897 1107
e8a5fa9c 1108@if target-libstdc++-v3-no-bootstrap
c52c6897 1109all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1110@endif target-libstdc++-v3-no-bootstrap
5eb08693 1111@if target-libsanitizer-no-bootstrap
5286fdef 1112all-target: maybe-all-target-libsanitizer
5eb08693 1113@endif target-libsanitizer-no-bootstrap
1b6c0831
L
1114@if target-libmpx-no-bootstrap
1115all-target: maybe-all-target-libmpx
1116@endif target-libmpx-no-bootstrap
95e43135
JBG
1117@if target-libvtv-no-bootstrap
1118all-target: maybe-all-target-libvtv
1119@endif target-libvtv-no-bootstrap
e78e02e6 1120all-target: maybe-all-target-libcilkrts
1b6c0831 1121all-target: maybe-all-target-liboffloadmic
c52c6897 1122all-target: maybe-all-target-libssp
c52c6897 1123all-target: maybe-all-target-newlib
f86e35b8 1124@if target-libgcc-no-bootstrap
6aa8ef82 1125all-target: maybe-all-target-libgcc
f86e35b8 1126@endif target-libgcc-no-bootstrap
2bf680c4 1127all-target: maybe-all-target-libbacktrace
e552509b 1128all-target: maybe-all-target-libquadmath
c52c6897
PB
1129all-target: maybe-all-target-libgfortran
1130all-target: maybe-all-target-libobjc
e552509b 1131all-target: maybe-all-target-libgo
c52c6897
PB
1132all-target: maybe-all-target-libtermcap
1133all-target: maybe-all-target-winsup
1134all-target: maybe-all-target-libgloss
c52c6897
PB
1135all-target: maybe-all-target-libffi
1136all-target: maybe-all-target-libjava
1137all-target: maybe-all-target-zlib
1138all-target: maybe-all-target-boehm-gc
c52c6897
PB
1139all-target: maybe-all-target-rda
1140all-target: maybe-all-target-libada
911e63d0 1141@if target-libgomp-no-bootstrap
c52c6897 1142all-target: maybe-all-target-libgomp
911e63d0 1143@endif target-libgomp-no-bootstrap
7ec59b9e
L
1144all-target: maybe-all-target-libitm
1145all-target: maybe-all-target-libatomic
252b5132
RH
1146
1147# Do a target for all the subdirectories. A ``make do-X'' will do a
1148# ``make X'' in all subdirectories (because, in general, there is a
1149# dependency (below) of X upon do-X, a ``make X'' will also do this,
1150# but it may do additional work as well).
e393202e 1151
2a4cbe27 1152.PHONY: do-info
f70224b5 1153do-info:
0aed8855 1154 @: $(MAKE); $(unstage)
e360f423
PB
1155 @r=`${PWD_COMMAND}`; export r; \
1156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1157 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1158 info-target
f70224b5 1159
e393202e 1160
2a4cbe27 1161.PHONY: info-host
c52c6897 1162
c52c6897
PB
1163info-host: maybe-info-bfd
1164info-host: maybe-info-opcodes
1165info-host: maybe-info-binutils
1166info-host: maybe-info-bison
f9806fa5 1167info-host: maybe-info-cgen
c52c6897 1168info-host: maybe-info-dejagnu
c52c6897
PB
1169info-host: maybe-info-etc
1170info-host: maybe-info-fastjar
c52c6897
PB
1171info-host: maybe-info-fixincludes
1172info-host: maybe-info-flex
1173info-host: maybe-info-gas
1174info-host: maybe-info-gcc
4b900473
PB
1175info-host: maybe-info-gmp
1176info-host: maybe-info-mpfr
e8a5fa9c 1177info-host: maybe-info-mpc
7ec59b9e 1178info-host: maybe-info-isl
1f53ca9a 1179info-host: maybe-info-libelf
93f9b408 1180info-host: maybe-info-gold
c52c6897 1181info-host: maybe-info-gprof
c52c6897
PB
1182info-host: maybe-info-intl
1183info-host: maybe-info-tcl
1184info-host: maybe-info-itcl
1185info-host: maybe-info-ld
2bf680c4 1186info-host: maybe-info-libbacktrace
c52c6897
PB
1187info-host: maybe-info-libcpp
1188info-host: maybe-info-libdecnumber
1189info-host: maybe-info-libgui
1190info-host: maybe-info-libiberty
1b6c0831 1191info-host: maybe-info-libiberty-linker-plugin
dc448a7b 1192info-host: maybe-info-libiconv
c52c6897 1193info-host: maybe-info-m4
c52c6897 1194info-host: maybe-info-readline
c52c6897
PB
1195info-host: maybe-info-sid
1196info-host: maybe-info-sim
c52c6897 1197info-host: maybe-info-texinfo
c52c6897
PB
1198info-host: maybe-info-zlib
1199info-host: maybe-info-gdb
1200info-host: maybe-info-expect
1201info-host: maybe-info-guile
1202info-host: maybe-info-tk
1203info-host: maybe-info-libtermcap
1204info-host: maybe-info-utils
1205info-host: maybe-info-gnattools
700d40ca 1206info-host: maybe-info-lto-plugin
1b6c0831
L
1207info-host: maybe-info-libcc1
1208info-host: maybe-info-gotools
252b5132 1209
2a4cbe27 1210.PHONY: info-target
c52c6897
PB
1211
1212info-target: maybe-info-target-libstdc++-v3
5286fdef 1213info-target: maybe-info-target-libsanitizer
1b6c0831 1214info-target: maybe-info-target-libmpx
95e43135 1215info-target: maybe-info-target-libvtv
e78e02e6 1216info-target: maybe-info-target-libcilkrts
1b6c0831 1217info-target: maybe-info-target-liboffloadmic
c52c6897 1218info-target: maybe-info-target-libssp
c52c6897 1219info-target: maybe-info-target-newlib
6aa8ef82 1220info-target: maybe-info-target-libgcc
2bf680c4 1221info-target: maybe-info-target-libbacktrace
e552509b 1222info-target: maybe-info-target-libquadmath
c52c6897
PB
1223info-target: maybe-info-target-libgfortran
1224info-target: maybe-info-target-libobjc
e552509b 1225info-target: maybe-info-target-libgo
c52c6897
PB
1226info-target: maybe-info-target-libtermcap
1227info-target: maybe-info-target-winsup
1228info-target: maybe-info-target-libgloss
c52c6897
PB
1229info-target: maybe-info-target-libffi
1230info-target: maybe-info-target-libjava
1231info-target: maybe-info-target-zlib
1232info-target: maybe-info-target-boehm-gc
c52c6897
PB
1233info-target: maybe-info-target-rda
1234info-target: maybe-info-target-libada
1235info-target: maybe-info-target-libgomp
7ec59b9e
L
1236info-target: maybe-info-target-libitm
1237info-target: maybe-info-target-libatomic
252b5132 1238
4fa63067 1239.PHONY: do-dvi
f70224b5 1240do-dvi:
0aed8855 1241 @: $(MAKE); $(unstage)
e360f423
PB
1242 @r=`${PWD_COMMAND}`; export r; \
1243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1244 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1245 dvi-target
f70224b5 1246
2a4cbe27 1247
4fa63067 1248.PHONY: dvi-host
c52c6897 1249
c52c6897
PB
1250dvi-host: maybe-dvi-bfd
1251dvi-host: maybe-dvi-opcodes
1252dvi-host: maybe-dvi-binutils
1253dvi-host: maybe-dvi-bison
f9806fa5 1254dvi-host: maybe-dvi-cgen
c52c6897 1255dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1256dvi-host: maybe-dvi-etc
1257dvi-host: maybe-dvi-fastjar
c52c6897
PB
1258dvi-host: maybe-dvi-fixincludes
1259dvi-host: maybe-dvi-flex
1260dvi-host: maybe-dvi-gas
1261dvi-host: maybe-dvi-gcc
4b900473
PB
1262dvi-host: maybe-dvi-gmp
1263dvi-host: maybe-dvi-mpfr
e8a5fa9c 1264dvi-host: maybe-dvi-mpc
7ec59b9e 1265dvi-host: maybe-dvi-isl
1f53ca9a 1266dvi-host: maybe-dvi-libelf
93f9b408 1267dvi-host: maybe-dvi-gold
c52c6897 1268dvi-host: maybe-dvi-gprof
c52c6897
PB
1269dvi-host: maybe-dvi-intl
1270dvi-host: maybe-dvi-tcl
1271dvi-host: maybe-dvi-itcl
1272dvi-host: maybe-dvi-ld
2bf680c4 1273dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1274dvi-host: maybe-dvi-libcpp
1275dvi-host: maybe-dvi-libdecnumber
1276dvi-host: maybe-dvi-libgui
1277dvi-host: maybe-dvi-libiberty
1b6c0831 1278dvi-host: maybe-dvi-libiberty-linker-plugin
dc448a7b 1279dvi-host: maybe-dvi-libiconv
c52c6897 1280dvi-host: maybe-dvi-m4
c52c6897 1281dvi-host: maybe-dvi-readline
c52c6897
PB
1282dvi-host: maybe-dvi-sid
1283dvi-host: maybe-dvi-sim
c52c6897 1284dvi-host: maybe-dvi-texinfo
c52c6897
PB
1285dvi-host: maybe-dvi-zlib
1286dvi-host: maybe-dvi-gdb
1287dvi-host: maybe-dvi-expect
1288dvi-host: maybe-dvi-guile
1289dvi-host: maybe-dvi-tk
1290dvi-host: maybe-dvi-libtermcap
1291dvi-host: maybe-dvi-utils
1292dvi-host: maybe-dvi-gnattools
700d40ca 1293dvi-host: maybe-dvi-lto-plugin
1b6c0831
L
1294dvi-host: maybe-dvi-libcc1
1295dvi-host: maybe-dvi-gotools
2a4cbe27 1296
4fa63067 1297.PHONY: dvi-target
c52c6897
PB
1298
1299dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1300dvi-target: maybe-dvi-target-libsanitizer
1b6c0831 1301dvi-target: maybe-dvi-target-libmpx
95e43135 1302dvi-target: maybe-dvi-target-libvtv
e78e02e6 1303dvi-target: maybe-dvi-target-libcilkrts
1b6c0831 1304dvi-target: maybe-dvi-target-liboffloadmic
c52c6897 1305dvi-target: maybe-dvi-target-libssp
c52c6897 1306dvi-target: maybe-dvi-target-newlib
6aa8ef82 1307dvi-target: maybe-dvi-target-libgcc
2bf680c4 1308dvi-target: maybe-dvi-target-libbacktrace
e552509b 1309dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1310dvi-target: maybe-dvi-target-libgfortran
1311dvi-target: maybe-dvi-target-libobjc
e552509b 1312dvi-target: maybe-dvi-target-libgo
c52c6897
PB
1313dvi-target: maybe-dvi-target-libtermcap
1314dvi-target: maybe-dvi-target-winsup
1315dvi-target: maybe-dvi-target-libgloss
c52c6897
PB
1316dvi-target: maybe-dvi-target-libffi
1317dvi-target: maybe-dvi-target-libjava
1318dvi-target: maybe-dvi-target-zlib
1319dvi-target: maybe-dvi-target-boehm-gc
c52c6897
PB
1320dvi-target: maybe-dvi-target-rda
1321dvi-target: maybe-dvi-target-libada
1322dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1323dvi-target: maybe-dvi-target-libitm
1324dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1325
56a8fe78
DD
1326.PHONY: do-pdf
1327do-pdf:
1328 @: $(MAKE); $(unstage)
1329 @r=`${PWD_COMMAND}`; export r; \
1330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1331 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1332 pdf-target
1333
1334
1335.PHONY: pdf-host
1336
56a8fe78
DD
1337pdf-host: maybe-pdf-bfd
1338pdf-host: maybe-pdf-opcodes
1339pdf-host: maybe-pdf-binutils
1340pdf-host: maybe-pdf-bison
f9806fa5 1341pdf-host: maybe-pdf-cgen
56a8fe78 1342pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1343pdf-host: maybe-pdf-etc
1344pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1345pdf-host: maybe-pdf-fixincludes
1346pdf-host: maybe-pdf-flex
1347pdf-host: maybe-pdf-gas
1348pdf-host: maybe-pdf-gcc
4b900473
PB
1349pdf-host: maybe-pdf-gmp
1350pdf-host: maybe-pdf-mpfr
e8a5fa9c 1351pdf-host: maybe-pdf-mpc
7ec59b9e 1352pdf-host: maybe-pdf-isl
1f53ca9a 1353pdf-host: maybe-pdf-libelf
93f9b408 1354pdf-host: maybe-pdf-gold
56a8fe78 1355pdf-host: maybe-pdf-gprof
56a8fe78
DD
1356pdf-host: maybe-pdf-intl
1357pdf-host: maybe-pdf-tcl
1358pdf-host: maybe-pdf-itcl
1359pdf-host: maybe-pdf-ld
2bf680c4 1360pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1361pdf-host: maybe-pdf-libcpp
1362pdf-host: maybe-pdf-libdecnumber
1363pdf-host: maybe-pdf-libgui
1364pdf-host: maybe-pdf-libiberty
1b6c0831 1365pdf-host: maybe-pdf-libiberty-linker-plugin
dc448a7b 1366pdf-host: maybe-pdf-libiconv
56a8fe78 1367pdf-host: maybe-pdf-m4
56a8fe78 1368pdf-host: maybe-pdf-readline
56a8fe78
DD
1369pdf-host: maybe-pdf-sid
1370pdf-host: maybe-pdf-sim
56a8fe78 1371pdf-host: maybe-pdf-texinfo
56a8fe78
DD
1372pdf-host: maybe-pdf-zlib
1373pdf-host: maybe-pdf-gdb
1374pdf-host: maybe-pdf-expect
1375pdf-host: maybe-pdf-guile
1376pdf-host: maybe-pdf-tk
1377pdf-host: maybe-pdf-libtermcap
1378pdf-host: maybe-pdf-utils
1379pdf-host: maybe-pdf-gnattools
700d40ca 1380pdf-host: maybe-pdf-lto-plugin
1b6c0831
L
1381pdf-host: maybe-pdf-libcc1
1382pdf-host: maybe-pdf-gotools
56a8fe78
DD
1383
1384.PHONY: pdf-target
1385
1386pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1387pdf-target: maybe-pdf-target-libsanitizer
1b6c0831 1388pdf-target: maybe-pdf-target-libmpx
95e43135 1389pdf-target: maybe-pdf-target-libvtv
e78e02e6 1390pdf-target: maybe-pdf-target-libcilkrts
1b6c0831 1391pdf-target: maybe-pdf-target-liboffloadmic
56a8fe78
DD
1392pdf-target: maybe-pdf-target-libssp
1393pdf-target: maybe-pdf-target-newlib
6aa8ef82 1394pdf-target: maybe-pdf-target-libgcc
2bf680c4 1395pdf-target: maybe-pdf-target-libbacktrace
e552509b 1396pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1397pdf-target: maybe-pdf-target-libgfortran
1398pdf-target: maybe-pdf-target-libobjc
e552509b 1399pdf-target: maybe-pdf-target-libgo
56a8fe78
DD
1400pdf-target: maybe-pdf-target-libtermcap
1401pdf-target: maybe-pdf-target-winsup
1402pdf-target: maybe-pdf-target-libgloss
56a8fe78
DD
1403pdf-target: maybe-pdf-target-libffi
1404pdf-target: maybe-pdf-target-libjava
1405pdf-target: maybe-pdf-target-zlib
1406pdf-target: maybe-pdf-target-boehm-gc
56a8fe78
DD
1407pdf-target: maybe-pdf-target-rda
1408pdf-target: maybe-pdf-target-libada
1409pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1410pdf-target: maybe-pdf-target-libitm
1411pdf-target: maybe-pdf-target-libatomic
56a8fe78 1412
6d389afc 1413.PHONY: do-html
f70224b5 1414do-html:
0aed8855 1415 @: $(MAKE); $(unstage)
e360f423
PB
1416 @r=`${PWD_COMMAND}`; export r; \
1417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1418 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1419 html-target
f70224b5 1420
6d389afc
MS
1421
1422.PHONY: html-host
c52c6897 1423
c52c6897
PB
1424html-host: maybe-html-bfd
1425html-host: maybe-html-opcodes
1426html-host: maybe-html-binutils
1427html-host: maybe-html-bison
f9806fa5 1428html-host: maybe-html-cgen
c52c6897 1429html-host: maybe-html-dejagnu
c52c6897
PB
1430html-host: maybe-html-etc
1431html-host: maybe-html-fastjar
c52c6897
PB
1432html-host: maybe-html-fixincludes
1433html-host: maybe-html-flex
1434html-host: maybe-html-gas
1435html-host: maybe-html-gcc
4b900473
PB
1436html-host: maybe-html-gmp
1437html-host: maybe-html-mpfr
e8a5fa9c 1438html-host: maybe-html-mpc
7ec59b9e 1439html-host: maybe-html-isl
1f53ca9a 1440html-host: maybe-html-libelf
93f9b408 1441html-host: maybe-html-gold
c52c6897 1442html-host: maybe-html-gprof
c52c6897
PB
1443html-host: maybe-html-intl
1444html-host: maybe-html-tcl
1445html-host: maybe-html-itcl
1446html-host: maybe-html-ld
2bf680c4 1447html-host: maybe-html-libbacktrace
c52c6897
PB
1448html-host: maybe-html-libcpp
1449html-host: maybe-html-libdecnumber
1450html-host: maybe-html-libgui
1451html-host: maybe-html-libiberty
1b6c0831 1452html-host: maybe-html-libiberty-linker-plugin
dc448a7b 1453html-host: maybe-html-libiconv
c52c6897 1454html-host: maybe-html-m4
c52c6897 1455html-host: maybe-html-readline
c52c6897
PB
1456html-host: maybe-html-sid
1457html-host: maybe-html-sim
c52c6897 1458html-host: maybe-html-texinfo
c52c6897
PB
1459html-host: maybe-html-zlib
1460html-host: maybe-html-gdb
1461html-host: maybe-html-expect
1462html-host: maybe-html-guile
1463html-host: maybe-html-tk
1464html-host: maybe-html-libtermcap
1465html-host: maybe-html-utils
1466html-host: maybe-html-gnattools
700d40ca 1467html-host: maybe-html-lto-plugin
1b6c0831
L
1468html-host: maybe-html-libcc1
1469html-host: maybe-html-gotools
6d389afc
MS
1470
1471.PHONY: html-target
c52c6897
PB
1472
1473html-target: maybe-html-target-libstdc++-v3
5286fdef 1474html-target: maybe-html-target-libsanitizer
1b6c0831 1475html-target: maybe-html-target-libmpx
95e43135 1476html-target: maybe-html-target-libvtv
e78e02e6 1477html-target: maybe-html-target-libcilkrts
1b6c0831 1478html-target: maybe-html-target-liboffloadmic
c52c6897 1479html-target: maybe-html-target-libssp
c52c6897 1480html-target: maybe-html-target-newlib
6aa8ef82 1481html-target: maybe-html-target-libgcc
2bf680c4 1482html-target: maybe-html-target-libbacktrace
e552509b 1483html-target: maybe-html-target-libquadmath
c52c6897
PB
1484html-target: maybe-html-target-libgfortran
1485html-target: maybe-html-target-libobjc
e552509b 1486html-target: maybe-html-target-libgo
c52c6897
PB
1487html-target: maybe-html-target-libtermcap
1488html-target: maybe-html-target-winsup
1489html-target: maybe-html-target-libgloss
c52c6897
PB
1490html-target: maybe-html-target-libffi
1491html-target: maybe-html-target-libjava
1492html-target: maybe-html-target-zlib
1493html-target: maybe-html-target-boehm-gc
c52c6897
PB
1494html-target: maybe-html-target-rda
1495html-target: maybe-html-target-libada
1496html-target: maybe-html-target-libgomp
7ec59b9e
L
1497html-target: maybe-html-target-libitm
1498html-target: maybe-html-target-libatomic
6d389afc 1499
4fa63067 1500.PHONY: do-TAGS
f70224b5 1501do-TAGS:
0aed8855 1502 @: $(MAKE); $(unstage)
e360f423
PB
1503 @r=`${PWD_COMMAND}`; export r; \
1504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1505 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1506 TAGS-target
f70224b5 1507
2a4cbe27 1508
4fa63067 1509.PHONY: TAGS-host
c52c6897 1510
c52c6897
PB
1511TAGS-host: maybe-TAGS-bfd
1512TAGS-host: maybe-TAGS-opcodes
1513TAGS-host: maybe-TAGS-binutils
1514TAGS-host: maybe-TAGS-bison
f9806fa5 1515TAGS-host: maybe-TAGS-cgen
c52c6897 1516TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1517TAGS-host: maybe-TAGS-etc
1518TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1519TAGS-host: maybe-TAGS-fixincludes
1520TAGS-host: maybe-TAGS-flex
1521TAGS-host: maybe-TAGS-gas
1522TAGS-host: maybe-TAGS-gcc
4b900473
PB
1523TAGS-host: maybe-TAGS-gmp
1524TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1525TAGS-host: maybe-TAGS-mpc
7ec59b9e 1526TAGS-host: maybe-TAGS-isl
1f53ca9a 1527TAGS-host: maybe-TAGS-libelf
93f9b408 1528TAGS-host: maybe-TAGS-gold
c52c6897 1529TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1530TAGS-host: maybe-TAGS-intl
1531TAGS-host: maybe-TAGS-tcl
1532TAGS-host: maybe-TAGS-itcl
1533TAGS-host: maybe-TAGS-ld
2bf680c4 1534TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1535TAGS-host: maybe-TAGS-libcpp
1536TAGS-host: maybe-TAGS-libdecnumber
1537TAGS-host: maybe-TAGS-libgui
1538TAGS-host: maybe-TAGS-libiberty
1b6c0831 1539TAGS-host: maybe-TAGS-libiberty-linker-plugin
dc448a7b 1540TAGS-host: maybe-TAGS-libiconv
c52c6897 1541TAGS-host: maybe-TAGS-m4
c52c6897 1542TAGS-host: maybe-TAGS-readline
c52c6897
PB
1543TAGS-host: maybe-TAGS-sid
1544TAGS-host: maybe-TAGS-sim
c52c6897 1545TAGS-host: maybe-TAGS-texinfo
c52c6897
PB
1546TAGS-host: maybe-TAGS-zlib
1547TAGS-host: maybe-TAGS-gdb
1548TAGS-host: maybe-TAGS-expect
1549TAGS-host: maybe-TAGS-guile
1550TAGS-host: maybe-TAGS-tk
1551TAGS-host: maybe-TAGS-libtermcap
1552TAGS-host: maybe-TAGS-utils
1553TAGS-host: maybe-TAGS-gnattools
700d40ca 1554TAGS-host: maybe-TAGS-lto-plugin
1b6c0831
L
1555TAGS-host: maybe-TAGS-libcc1
1556TAGS-host: maybe-TAGS-gotools
2a4cbe27 1557
4fa63067 1558.PHONY: TAGS-target
c52c6897
PB
1559
1560TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1561TAGS-target: maybe-TAGS-target-libsanitizer
1b6c0831 1562TAGS-target: maybe-TAGS-target-libmpx
95e43135 1563TAGS-target: maybe-TAGS-target-libvtv
e78e02e6 1564TAGS-target: maybe-TAGS-target-libcilkrts
1b6c0831 1565TAGS-target: maybe-TAGS-target-liboffloadmic
c52c6897 1566TAGS-target: maybe-TAGS-target-libssp
c52c6897 1567TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1568TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1569TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1570TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1571TAGS-target: maybe-TAGS-target-libgfortran
1572TAGS-target: maybe-TAGS-target-libobjc
e552509b 1573TAGS-target: maybe-TAGS-target-libgo
c52c6897
PB
1574TAGS-target: maybe-TAGS-target-libtermcap
1575TAGS-target: maybe-TAGS-target-winsup
1576TAGS-target: maybe-TAGS-target-libgloss
c52c6897
PB
1577TAGS-target: maybe-TAGS-target-libffi
1578TAGS-target: maybe-TAGS-target-libjava
1579TAGS-target: maybe-TAGS-target-zlib
1580TAGS-target: maybe-TAGS-target-boehm-gc
c52c6897
PB
1581TAGS-target: maybe-TAGS-target-rda
1582TAGS-target: maybe-TAGS-target-libada
1583TAGS-target: maybe-TAGS-target-libgomp
7ec59b9e
L
1584TAGS-target: maybe-TAGS-target-libitm
1585TAGS-target: maybe-TAGS-target-libatomic
a2592b1b 1586
4fa63067 1587.PHONY: do-install-info
f70224b5 1588do-install-info:
0aed8855 1589 @: $(MAKE); $(unstage)
e360f423
PB
1590 @r=`${PWD_COMMAND}`; export r; \
1591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1592 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
f70224b5 1593 install-info-target
f70224b5 1594
a2592b1b 1595
4fa63067 1596.PHONY: install-info-host
c52c6897 1597
c52c6897
PB
1598install-info-host: maybe-install-info-bfd
1599install-info-host: maybe-install-info-opcodes
1600install-info-host: maybe-install-info-binutils
1601install-info-host: maybe-install-info-bison
f9806fa5 1602install-info-host: maybe-install-info-cgen
c52c6897 1603install-info-host: maybe-install-info-dejagnu
c52c6897
PB
1604install-info-host: maybe-install-info-etc
1605install-info-host: maybe-install-info-fastjar
c52c6897
PB
1606install-info-host: maybe-install-info-fixincludes
1607install-info-host: maybe-install-info-flex
1608install-info-host: maybe-install-info-gas
1609install-info-host: maybe-install-info-gcc
4b900473
PB
1610install-info-host: maybe-install-info-gmp
1611install-info-host: maybe-install-info-mpfr
e8a5fa9c 1612install-info-host: maybe-install-info-mpc
7ec59b9e 1613install-info-host: maybe-install-info-isl
1f53ca9a 1614install-info-host: maybe-install-info-libelf
93f9b408 1615install-info-host: maybe-install-info-gold
c52c6897 1616install-info-host: maybe-install-info-gprof
c52c6897
PB
1617install-info-host: maybe-install-info-intl
1618install-info-host: maybe-install-info-tcl
1619install-info-host: maybe-install-info-itcl
1620install-info-host: maybe-install-info-ld
2bf680c4 1621install-info-host: maybe-install-info-libbacktrace
c52c6897
PB
1622install-info-host: maybe-install-info-libcpp
1623install-info-host: maybe-install-info-libdecnumber
1624install-info-host: maybe-install-info-libgui
1625install-info-host: maybe-install-info-libiberty
1b6c0831 1626install-info-host: maybe-install-info-libiberty-linker-plugin
dc448a7b 1627install-info-host: maybe-install-info-libiconv
c52c6897 1628install-info-host: maybe-install-info-m4
c52c6897 1629install-info-host: maybe-install-info-readline
c52c6897
PB
1630install-info-host: maybe-install-info-sid
1631install-info-host: maybe-install-info-sim
c52c6897 1632install-info-host: maybe-install-info-texinfo
c52c6897
PB
1633install-info-host: maybe-install-info-zlib
1634install-info-host: maybe-install-info-gdb
1635install-info-host: maybe-install-info-expect
1636install-info-host: maybe-install-info-guile
1637install-info-host: maybe-install-info-tk
1638install-info-host: maybe-install-info-libtermcap
1639install-info-host: maybe-install-info-utils
1640install-info-host: maybe-install-info-gnattools
700d40ca 1641install-info-host: maybe-install-info-lto-plugin
1b6c0831
L
1642install-info-host: maybe-install-info-libcc1
1643install-info-host: maybe-install-info-gotools
a2592b1b 1644
4fa63067 1645.PHONY: install-info-target
c52c6897
PB
1646
1647install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1648install-info-target: maybe-install-info-target-libsanitizer
1b6c0831 1649install-info-target: maybe-install-info-target-libmpx
95e43135 1650install-info-target: maybe-install-info-target-libvtv
e78e02e6 1651install-info-target: maybe-install-info-target-libcilkrts
1b6c0831 1652install-info-target: maybe-install-info-target-liboffloadmic
c52c6897 1653install-info-target: maybe-install-info-target-libssp
c52c6897 1654install-info-target: maybe-install-info-target-newlib
6aa8ef82 1655install-info-target: maybe-install-info-target-libgcc
2bf680c4 1656install-info-target: maybe-install-info-target-libbacktrace
e552509b 1657install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1658install-info-target: maybe-install-info-target-libgfortran
1659install-info-target: maybe-install-info-target-libobjc
e552509b 1660install-info-target: maybe-install-info-target-libgo
c52c6897
PB
1661install-info-target: maybe-install-info-target-libtermcap
1662install-info-target: maybe-install-info-target-winsup
1663install-info-target: maybe-install-info-target-libgloss
c52c6897
PB
1664install-info-target: maybe-install-info-target-libffi
1665install-info-target: maybe-install-info-target-libjava
1666install-info-target: maybe-install-info-target-zlib
1667install-info-target: maybe-install-info-target-boehm-gc
c52c6897
PB
1668install-info-target: maybe-install-info-target-rda
1669install-info-target: maybe-install-info-target-libada
1670install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1671install-info-target: maybe-install-info-target-libitm
1672install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1673
a3ca38d2
DD
1674.PHONY: do-install-pdf
1675do-install-pdf:
1676 @: $(MAKE); $(unstage)
1677 @r=`${PWD_COMMAND}`; export r; \
1678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1679 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1680 install-pdf-target
1681
1682
1683.PHONY: install-pdf-host
1684
a3ca38d2
DD
1685install-pdf-host: maybe-install-pdf-bfd
1686install-pdf-host: maybe-install-pdf-opcodes
1687install-pdf-host: maybe-install-pdf-binutils
1688install-pdf-host: maybe-install-pdf-bison
f9806fa5 1689install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1690install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1691install-pdf-host: maybe-install-pdf-etc
1692install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1693install-pdf-host: maybe-install-pdf-fixincludes
1694install-pdf-host: maybe-install-pdf-flex
1695install-pdf-host: maybe-install-pdf-gas
1696install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1697install-pdf-host: maybe-install-pdf-gmp
1698install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1699install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1700install-pdf-host: maybe-install-pdf-isl
1f53ca9a 1701install-pdf-host: maybe-install-pdf-libelf
93f9b408 1702install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1703install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1704install-pdf-host: maybe-install-pdf-intl
1705install-pdf-host: maybe-install-pdf-tcl
1706install-pdf-host: maybe-install-pdf-itcl
1707install-pdf-host: maybe-install-pdf-ld
2bf680c4 1708install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1709install-pdf-host: maybe-install-pdf-libcpp
1710install-pdf-host: maybe-install-pdf-libdecnumber
1711install-pdf-host: maybe-install-pdf-libgui
1712install-pdf-host: maybe-install-pdf-libiberty
1b6c0831 1713install-pdf-host: maybe-install-pdf-libiberty-linker-plugin
dc448a7b 1714install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1715install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1716install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1717install-pdf-host: maybe-install-pdf-sid
1718install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1719install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2
DD
1720install-pdf-host: maybe-install-pdf-zlib
1721install-pdf-host: maybe-install-pdf-gdb
1722install-pdf-host: maybe-install-pdf-expect
1723install-pdf-host: maybe-install-pdf-guile
1724install-pdf-host: maybe-install-pdf-tk
1725install-pdf-host: maybe-install-pdf-libtermcap
1726install-pdf-host: maybe-install-pdf-utils
1727install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1728install-pdf-host: maybe-install-pdf-lto-plugin
1b6c0831
L
1729install-pdf-host: maybe-install-pdf-libcc1
1730install-pdf-host: maybe-install-pdf-gotools
a3ca38d2
DD
1731
1732.PHONY: install-pdf-target
1733
1734install-pdf-target: maybe-install-pdf-target-libstdc++-v3
5286fdef 1735install-pdf-target: maybe-install-pdf-target-libsanitizer
1b6c0831 1736install-pdf-target: maybe-install-pdf-target-libmpx
95e43135 1737install-pdf-target: maybe-install-pdf-target-libvtv
e78e02e6 1738install-pdf-target: maybe-install-pdf-target-libcilkrts
1b6c0831 1739install-pdf-target: maybe-install-pdf-target-liboffloadmic
a3ca38d2
DD
1740install-pdf-target: maybe-install-pdf-target-libssp
1741install-pdf-target: maybe-install-pdf-target-newlib
1742install-pdf-target: maybe-install-pdf-target-libgcc
2bf680c4 1743install-pdf-target: maybe-install-pdf-target-libbacktrace
e552509b 1744install-pdf-target: maybe-install-pdf-target-libquadmath
a3ca38d2
DD
1745install-pdf-target: maybe-install-pdf-target-libgfortran
1746install-pdf-target: maybe-install-pdf-target-libobjc
e552509b 1747install-pdf-target: maybe-install-pdf-target-libgo
a3ca38d2
DD
1748install-pdf-target: maybe-install-pdf-target-libtermcap
1749install-pdf-target: maybe-install-pdf-target-winsup
1750install-pdf-target: maybe-install-pdf-target-libgloss
a3ca38d2
DD
1751install-pdf-target: maybe-install-pdf-target-libffi
1752install-pdf-target: maybe-install-pdf-target-libjava
1753install-pdf-target: maybe-install-pdf-target-zlib
1754install-pdf-target: maybe-install-pdf-target-boehm-gc
a3ca38d2
DD
1755install-pdf-target: maybe-install-pdf-target-rda
1756install-pdf-target: maybe-install-pdf-target-libada
1757install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1758install-pdf-target: maybe-install-pdf-target-libitm
1759install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1760
108a6f8e
CD
1761.PHONY: do-install-html
1762do-install-html:
1763 @: $(MAKE); $(unstage)
1764 @r=`${PWD_COMMAND}`; export r; \
1765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1766 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1767 install-html-target
1768
1769
1770.PHONY: install-html-host
1771
108a6f8e
CD
1772install-html-host: maybe-install-html-bfd
1773install-html-host: maybe-install-html-opcodes
1774install-html-host: maybe-install-html-binutils
1775install-html-host: maybe-install-html-bison
f9806fa5 1776install-html-host: maybe-install-html-cgen
108a6f8e 1777install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1778install-html-host: maybe-install-html-etc
1779install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1780install-html-host: maybe-install-html-fixincludes
1781install-html-host: maybe-install-html-flex
1782install-html-host: maybe-install-html-gas
1783install-html-host: maybe-install-html-gcc
4b900473
PB
1784install-html-host: maybe-install-html-gmp
1785install-html-host: maybe-install-html-mpfr
e8a5fa9c 1786install-html-host: maybe-install-html-mpc
7ec59b9e 1787install-html-host: maybe-install-html-isl
1f53ca9a 1788install-html-host: maybe-install-html-libelf
93f9b408 1789install-html-host: maybe-install-html-gold
108a6f8e 1790install-html-host: maybe-install-html-gprof
108a6f8e
CD
1791install-html-host: maybe-install-html-intl
1792install-html-host: maybe-install-html-tcl
1793install-html-host: maybe-install-html-itcl
1794install-html-host: maybe-install-html-ld
2bf680c4 1795install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1796install-html-host: maybe-install-html-libcpp
1797install-html-host: maybe-install-html-libdecnumber
1798install-html-host: maybe-install-html-libgui
1799install-html-host: maybe-install-html-libiberty
1b6c0831 1800install-html-host: maybe-install-html-libiberty-linker-plugin
dc448a7b 1801install-html-host: maybe-install-html-libiconv
108a6f8e 1802install-html-host: maybe-install-html-m4
108a6f8e 1803install-html-host: maybe-install-html-readline
108a6f8e
CD
1804install-html-host: maybe-install-html-sid
1805install-html-host: maybe-install-html-sim
108a6f8e 1806install-html-host: maybe-install-html-texinfo
108a6f8e
CD
1807install-html-host: maybe-install-html-zlib
1808install-html-host: maybe-install-html-gdb
1809install-html-host: maybe-install-html-expect
1810install-html-host: maybe-install-html-guile
1811install-html-host: maybe-install-html-tk
1812install-html-host: maybe-install-html-libtermcap
1813install-html-host: maybe-install-html-utils
1814install-html-host: maybe-install-html-gnattools
700d40ca 1815install-html-host: maybe-install-html-lto-plugin
1b6c0831
L
1816install-html-host: maybe-install-html-libcc1
1817install-html-host: maybe-install-html-gotools
108a6f8e
CD
1818
1819.PHONY: install-html-target
1820
1821install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1822install-html-target: maybe-install-html-target-libsanitizer
1b6c0831 1823install-html-target: maybe-install-html-target-libmpx
95e43135 1824install-html-target: maybe-install-html-target-libvtv
e78e02e6 1825install-html-target: maybe-install-html-target-libcilkrts
1b6c0831 1826install-html-target: maybe-install-html-target-liboffloadmic
108a6f8e 1827install-html-target: maybe-install-html-target-libssp
108a6f8e 1828install-html-target: maybe-install-html-target-newlib
6aa8ef82 1829install-html-target: maybe-install-html-target-libgcc
2bf680c4 1830install-html-target: maybe-install-html-target-libbacktrace
e552509b 1831install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1832install-html-target: maybe-install-html-target-libgfortran
1833install-html-target: maybe-install-html-target-libobjc
e552509b 1834install-html-target: maybe-install-html-target-libgo
108a6f8e
CD
1835install-html-target: maybe-install-html-target-libtermcap
1836install-html-target: maybe-install-html-target-winsup
1837install-html-target: maybe-install-html-target-libgloss
108a6f8e
CD
1838install-html-target: maybe-install-html-target-libffi
1839install-html-target: maybe-install-html-target-libjava
1840install-html-target: maybe-install-html-target-zlib
1841install-html-target: maybe-install-html-target-boehm-gc
108a6f8e
CD
1842install-html-target: maybe-install-html-target-rda
1843install-html-target: maybe-install-html-target-libada
1844install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1845install-html-target: maybe-install-html-target-libitm
1846install-html-target: maybe-install-html-target-libatomic
108a6f8e 1847
2a4cbe27 1848.PHONY: do-installcheck
f70224b5 1849do-installcheck:
0aed8855 1850 @: $(MAKE); $(unstage)
e360f423
PB
1851 @r=`${PWD_COMMAND}`; export r; \
1852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1853 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1854 installcheck-target
f70224b5 1855
2a4cbe27
NN
1856
1857.PHONY: installcheck-host
c52c6897 1858
c52c6897
PB
1859installcheck-host: maybe-installcheck-bfd
1860installcheck-host: maybe-installcheck-opcodes
1861installcheck-host: maybe-installcheck-binutils
1862installcheck-host: maybe-installcheck-bison
f9806fa5 1863installcheck-host: maybe-installcheck-cgen
c52c6897 1864installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1865installcheck-host: maybe-installcheck-etc
1866installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1867installcheck-host: maybe-installcheck-fixincludes
1868installcheck-host: maybe-installcheck-flex
1869installcheck-host: maybe-installcheck-gas
1870installcheck-host: maybe-installcheck-gcc
4b900473
PB
1871installcheck-host: maybe-installcheck-gmp
1872installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1873installcheck-host: maybe-installcheck-mpc
7ec59b9e 1874installcheck-host: maybe-installcheck-isl
1f53ca9a 1875installcheck-host: maybe-installcheck-libelf
93f9b408 1876installcheck-host: maybe-installcheck-gold
c52c6897 1877installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1878installcheck-host: maybe-installcheck-intl
1879installcheck-host: maybe-installcheck-tcl
1880installcheck-host: maybe-installcheck-itcl
1881installcheck-host: maybe-installcheck-ld
2bf680c4 1882installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1883installcheck-host: maybe-installcheck-libcpp
1884installcheck-host: maybe-installcheck-libdecnumber
1885installcheck-host: maybe-installcheck-libgui
1886installcheck-host: maybe-installcheck-libiberty
1b6c0831 1887installcheck-host: maybe-installcheck-libiberty-linker-plugin
dc448a7b 1888installcheck-host: maybe-installcheck-libiconv
c52c6897 1889installcheck-host: maybe-installcheck-m4
c52c6897 1890installcheck-host: maybe-installcheck-readline
c52c6897
PB
1891installcheck-host: maybe-installcheck-sid
1892installcheck-host: maybe-installcheck-sim
c52c6897 1893installcheck-host: maybe-installcheck-texinfo
c52c6897
PB
1894installcheck-host: maybe-installcheck-zlib
1895installcheck-host: maybe-installcheck-gdb
1896installcheck-host: maybe-installcheck-expect
1897installcheck-host: maybe-installcheck-guile
1898installcheck-host: maybe-installcheck-tk
1899installcheck-host: maybe-installcheck-libtermcap
1900installcheck-host: maybe-installcheck-utils
1901installcheck-host: maybe-installcheck-gnattools
700d40ca 1902installcheck-host: maybe-installcheck-lto-plugin
1b6c0831
L
1903installcheck-host: maybe-installcheck-libcc1
1904installcheck-host: maybe-installcheck-gotools
2a4cbe27
NN
1905
1906.PHONY: installcheck-target
c52c6897
PB
1907
1908installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 1909installcheck-target: maybe-installcheck-target-libsanitizer
1b6c0831 1910installcheck-target: maybe-installcheck-target-libmpx
95e43135 1911installcheck-target: maybe-installcheck-target-libvtv
e78e02e6 1912installcheck-target: maybe-installcheck-target-libcilkrts
1b6c0831 1913installcheck-target: maybe-installcheck-target-liboffloadmic
c52c6897 1914installcheck-target: maybe-installcheck-target-libssp
c52c6897 1915installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 1916installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 1917installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 1918installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
1919installcheck-target: maybe-installcheck-target-libgfortran
1920installcheck-target: maybe-installcheck-target-libobjc
e552509b 1921installcheck-target: maybe-installcheck-target-libgo
c52c6897
PB
1922installcheck-target: maybe-installcheck-target-libtermcap
1923installcheck-target: maybe-installcheck-target-winsup
1924installcheck-target: maybe-installcheck-target-libgloss
c52c6897
PB
1925installcheck-target: maybe-installcheck-target-libffi
1926installcheck-target: maybe-installcheck-target-libjava
1927installcheck-target: maybe-installcheck-target-zlib
1928installcheck-target: maybe-installcheck-target-boehm-gc
c52c6897
PB
1929installcheck-target: maybe-installcheck-target-rda
1930installcheck-target: maybe-installcheck-target-libada
1931installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
1932installcheck-target: maybe-installcheck-target-libitm
1933installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 1934
4fa63067 1935.PHONY: do-mostlyclean
f70224b5 1936do-mostlyclean:
0aed8855 1937 @: $(MAKE); $(unstage)
e360f423
PB
1938 @r=`${PWD_COMMAND}`; export r; \
1939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1940 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
f70224b5 1941 mostlyclean-target
f70224b5 1942
2a4cbe27 1943
4fa63067 1944.PHONY: mostlyclean-host
c52c6897 1945
c52c6897
PB
1946mostlyclean-host: maybe-mostlyclean-bfd
1947mostlyclean-host: maybe-mostlyclean-opcodes
1948mostlyclean-host: maybe-mostlyclean-binutils
1949mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 1950mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 1951mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
1952mostlyclean-host: maybe-mostlyclean-etc
1953mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
1954mostlyclean-host: maybe-mostlyclean-fixincludes
1955mostlyclean-host: maybe-mostlyclean-flex
1956mostlyclean-host: maybe-mostlyclean-gas
1957mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
1958mostlyclean-host: maybe-mostlyclean-gmp
1959mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 1960mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 1961mostlyclean-host: maybe-mostlyclean-isl
1f53ca9a 1962mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 1963mostlyclean-host: maybe-mostlyclean-gold
c52c6897 1964mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
1965mostlyclean-host: maybe-mostlyclean-intl
1966mostlyclean-host: maybe-mostlyclean-tcl
1967mostlyclean-host: maybe-mostlyclean-itcl
1968mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 1969mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
1970mostlyclean-host: maybe-mostlyclean-libcpp
1971mostlyclean-host: maybe-mostlyclean-libdecnumber
1972mostlyclean-host: maybe-mostlyclean-libgui
1973mostlyclean-host: maybe-mostlyclean-libiberty
1b6c0831 1974mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin
dc448a7b 1975mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 1976mostlyclean-host: maybe-mostlyclean-m4
c52c6897 1977mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
1978mostlyclean-host: maybe-mostlyclean-sid
1979mostlyclean-host: maybe-mostlyclean-sim
c52c6897 1980mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897
PB
1981mostlyclean-host: maybe-mostlyclean-zlib
1982mostlyclean-host: maybe-mostlyclean-gdb
1983mostlyclean-host: maybe-mostlyclean-expect
1984mostlyclean-host: maybe-mostlyclean-guile
1985mostlyclean-host: maybe-mostlyclean-tk
1986mostlyclean-host: maybe-mostlyclean-libtermcap
1987mostlyclean-host: maybe-mostlyclean-utils
1988mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 1989mostlyclean-host: maybe-mostlyclean-lto-plugin
1b6c0831
L
1990mostlyclean-host: maybe-mostlyclean-libcc1
1991mostlyclean-host: maybe-mostlyclean-gotools
2a4cbe27 1992
4fa63067 1993.PHONY: mostlyclean-target
c52c6897
PB
1994
1995mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 1996mostlyclean-target: maybe-mostlyclean-target-libsanitizer
1b6c0831 1997mostlyclean-target: maybe-mostlyclean-target-libmpx
95e43135 1998mostlyclean-target: maybe-mostlyclean-target-libvtv
e78e02e6 1999mostlyclean-target: maybe-mostlyclean-target-libcilkrts
1b6c0831 2000mostlyclean-target: maybe-mostlyclean-target-liboffloadmic
c52c6897 2001mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 2002mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 2003mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 2004mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 2005mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
2006mostlyclean-target: maybe-mostlyclean-target-libgfortran
2007mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 2008mostlyclean-target: maybe-mostlyclean-target-libgo
c52c6897
PB
2009mostlyclean-target: maybe-mostlyclean-target-libtermcap
2010mostlyclean-target: maybe-mostlyclean-target-winsup
2011mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897
PB
2012mostlyclean-target: maybe-mostlyclean-target-libffi
2013mostlyclean-target: maybe-mostlyclean-target-libjava
2014mostlyclean-target: maybe-mostlyclean-target-zlib
2015mostlyclean-target: maybe-mostlyclean-target-boehm-gc
c52c6897
PB
2016mostlyclean-target: maybe-mostlyclean-target-rda
2017mostlyclean-target: maybe-mostlyclean-target-libada
2018mostlyclean-target: maybe-mostlyclean-target-libgomp
7ec59b9e
L
2019mostlyclean-target: maybe-mostlyclean-target-libitm
2020mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 2021
4fa63067 2022.PHONY: do-clean
f70224b5 2023do-clean:
0aed8855 2024 @: $(MAKE); $(unstage)
e360f423
PB
2025 @r=`${PWD_COMMAND}`; export r; \
2026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2027 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 2028 clean-target
f70224b5 2029
2a4cbe27 2030
4fa63067 2031.PHONY: clean-host
c52c6897 2032
c52c6897
PB
2033clean-host: maybe-clean-bfd
2034clean-host: maybe-clean-opcodes
2035clean-host: maybe-clean-binutils
2036clean-host: maybe-clean-bison
f9806fa5 2037clean-host: maybe-clean-cgen
c52c6897 2038clean-host: maybe-clean-dejagnu
c52c6897
PB
2039clean-host: maybe-clean-etc
2040clean-host: maybe-clean-fastjar
c52c6897
PB
2041clean-host: maybe-clean-fixincludes
2042clean-host: maybe-clean-flex
2043clean-host: maybe-clean-gas
2044clean-host: maybe-clean-gcc
4b900473
PB
2045clean-host: maybe-clean-gmp
2046clean-host: maybe-clean-mpfr
e8a5fa9c 2047clean-host: maybe-clean-mpc
7ec59b9e 2048clean-host: maybe-clean-isl
1f53ca9a 2049clean-host: maybe-clean-libelf
93f9b408 2050clean-host: maybe-clean-gold
c52c6897 2051clean-host: maybe-clean-gprof
c52c6897
PB
2052clean-host: maybe-clean-intl
2053clean-host: maybe-clean-tcl
2054clean-host: maybe-clean-itcl
2055clean-host: maybe-clean-ld
2bf680c4 2056clean-host: maybe-clean-libbacktrace
c52c6897
PB
2057clean-host: maybe-clean-libcpp
2058clean-host: maybe-clean-libdecnumber
2059clean-host: maybe-clean-libgui
2060clean-host: maybe-clean-libiberty
1b6c0831 2061clean-host: maybe-clean-libiberty-linker-plugin
dc448a7b 2062clean-host: maybe-clean-libiconv
c52c6897 2063clean-host: maybe-clean-m4
c52c6897 2064clean-host: maybe-clean-readline
c52c6897
PB
2065clean-host: maybe-clean-sid
2066clean-host: maybe-clean-sim
c52c6897 2067clean-host: maybe-clean-texinfo
c52c6897
PB
2068clean-host: maybe-clean-zlib
2069clean-host: maybe-clean-gdb
2070clean-host: maybe-clean-expect
2071clean-host: maybe-clean-guile
2072clean-host: maybe-clean-tk
2073clean-host: maybe-clean-libtermcap
2074clean-host: maybe-clean-utils
2075clean-host: maybe-clean-gnattools
700d40ca 2076clean-host: maybe-clean-lto-plugin
1b6c0831
L
2077clean-host: maybe-clean-libcc1
2078clean-host: maybe-clean-gotools
2a4cbe27 2079
4fa63067 2080.PHONY: clean-target
c52c6897
PB
2081
2082clean-target: maybe-clean-target-libstdc++-v3
5286fdef 2083clean-target: maybe-clean-target-libsanitizer
1b6c0831 2084clean-target: maybe-clean-target-libmpx
95e43135 2085clean-target: maybe-clean-target-libvtv
e78e02e6 2086clean-target: maybe-clean-target-libcilkrts
1b6c0831 2087clean-target: maybe-clean-target-liboffloadmic
c52c6897 2088clean-target: maybe-clean-target-libssp
c52c6897 2089clean-target: maybe-clean-target-newlib
6aa8ef82 2090clean-target: maybe-clean-target-libgcc
2bf680c4 2091clean-target: maybe-clean-target-libbacktrace
e552509b 2092clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2093clean-target: maybe-clean-target-libgfortran
2094clean-target: maybe-clean-target-libobjc
e552509b 2095clean-target: maybe-clean-target-libgo
c52c6897
PB
2096clean-target: maybe-clean-target-libtermcap
2097clean-target: maybe-clean-target-winsup
2098clean-target: maybe-clean-target-libgloss
c52c6897
PB
2099clean-target: maybe-clean-target-libffi
2100clean-target: maybe-clean-target-libjava
2101clean-target: maybe-clean-target-zlib
2102clean-target: maybe-clean-target-boehm-gc
c52c6897
PB
2103clean-target: maybe-clean-target-rda
2104clean-target: maybe-clean-target-libada
2105clean-target: maybe-clean-target-libgomp
7ec59b9e
L
2106clean-target: maybe-clean-target-libitm
2107clean-target: maybe-clean-target-libatomic
2a4cbe27 2108
4fa63067 2109.PHONY: do-distclean
f70224b5 2110do-distclean:
0aed8855 2111 @: $(MAKE); $(unstage)
e360f423
PB
2112 @r=`${PWD_COMMAND}`; export r; \
2113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2114 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2115 distclean-target
f70224b5 2116
2a4cbe27 2117
4fa63067 2118.PHONY: distclean-host
c52c6897 2119
c52c6897
PB
2120distclean-host: maybe-distclean-bfd
2121distclean-host: maybe-distclean-opcodes
2122distclean-host: maybe-distclean-binutils
2123distclean-host: maybe-distclean-bison
f9806fa5 2124distclean-host: maybe-distclean-cgen
c52c6897 2125distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2126distclean-host: maybe-distclean-etc
2127distclean-host: maybe-distclean-fastjar
c52c6897
PB
2128distclean-host: maybe-distclean-fixincludes
2129distclean-host: maybe-distclean-flex
2130distclean-host: maybe-distclean-gas
2131distclean-host: maybe-distclean-gcc
4b900473
PB
2132distclean-host: maybe-distclean-gmp
2133distclean-host: maybe-distclean-mpfr
e8a5fa9c 2134distclean-host: maybe-distclean-mpc
7ec59b9e 2135distclean-host: maybe-distclean-isl
1f53ca9a 2136distclean-host: maybe-distclean-libelf
93f9b408 2137distclean-host: maybe-distclean-gold
c52c6897 2138distclean-host: maybe-distclean-gprof
c52c6897
PB
2139distclean-host: maybe-distclean-intl
2140distclean-host: maybe-distclean-tcl
2141distclean-host: maybe-distclean-itcl
2142distclean-host: maybe-distclean-ld
2bf680c4 2143distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2144distclean-host: maybe-distclean-libcpp
2145distclean-host: maybe-distclean-libdecnumber
2146distclean-host: maybe-distclean-libgui
2147distclean-host: maybe-distclean-libiberty
1b6c0831 2148distclean-host: maybe-distclean-libiberty-linker-plugin
dc448a7b 2149distclean-host: maybe-distclean-libiconv
c52c6897 2150distclean-host: maybe-distclean-m4
c52c6897 2151distclean-host: maybe-distclean-readline
c52c6897
PB
2152distclean-host: maybe-distclean-sid
2153distclean-host: maybe-distclean-sim
c52c6897 2154distclean-host: maybe-distclean-texinfo
c52c6897
PB
2155distclean-host: maybe-distclean-zlib
2156distclean-host: maybe-distclean-gdb
2157distclean-host: maybe-distclean-expect
2158distclean-host: maybe-distclean-guile
2159distclean-host: maybe-distclean-tk
2160distclean-host: maybe-distclean-libtermcap
2161distclean-host: maybe-distclean-utils
2162distclean-host: maybe-distclean-gnattools
700d40ca 2163distclean-host: maybe-distclean-lto-plugin
1b6c0831
L
2164distclean-host: maybe-distclean-libcc1
2165distclean-host: maybe-distclean-gotools
2a4cbe27 2166
4fa63067 2167.PHONY: distclean-target
c52c6897
PB
2168
2169distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2170distclean-target: maybe-distclean-target-libsanitizer
1b6c0831 2171distclean-target: maybe-distclean-target-libmpx
95e43135 2172distclean-target: maybe-distclean-target-libvtv
e78e02e6 2173distclean-target: maybe-distclean-target-libcilkrts
1b6c0831 2174distclean-target: maybe-distclean-target-liboffloadmic
c52c6897 2175distclean-target: maybe-distclean-target-libssp
c52c6897 2176distclean-target: maybe-distclean-target-newlib
6aa8ef82 2177distclean-target: maybe-distclean-target-libgcc
2bf680c4 2178distclean-target: maybe-distclean-target-libbacktrace
e552509b 2179distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2180distclean-target: maybe-distclean-target-libgfortran
2181distclean-target: maybe-distclean-target-libobjc
e552509b 2182distclean-target: maybe-distclean-target-libgo
c52c6897
PB
2183distclean-target: maybe-distclean-target-libtermcap
2184distclean-target: maybe-distclean-target-winsup
2185distclean-target: maybe-distclean-target-libgloss
c52c6897
PB
2186distclean-target: maybe-distclean-target-libffi
2187distclean-target: maybe-distclean-target-libjava
2188distclean-target: maybe-distclean-target-zlib
2189distclean-target: maybe-distclean-target-boehm-gc
c52c6897
PB
2190distclean-target: maybe-distclean-target-rda
2191distclean-target: maybe-distclean-target-libada
2192distclean-target: maybe-distclean-target-libgomp
7ec59b9e
L
2193distclean-target: maybe-distclean-target-libitm
2194distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2195
4fa63067 2196.PHONY: do-maintainer-clean
f70224b5 2197do-maintainer-clean:
0aed8855 2198 @: $(MAKE); $(unstage)
e360f423
PB
2199 @r=`${PWD_COMMAND}`; export r; \
2200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2201 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2202 maintainer-clean-target
f70224b5 2203
2a4cbe27 2204
4fa63067 2205.PHONY: maintainer-clean-host
c52c6897 2206
c52c6897
PB
2207maintainer-clean-host: maybe-maintainer-clean-bfd
2208maintainer-clean-host: maybe-maintainer-clean-opcodes
2209maintainer-clean-host: maybe-maintainer-clean-binutils
2210maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2211maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2212maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2213maintainer-clean-host: maybe-maintainer-clean-etc
2214maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2215maintainer-clean-host: maybe-maintainer-clean-fixincludes
2216maintainer-clean-host: maybe-maintainer-clean-flex
2217maintainer-clean-host: maybe-maintainer-clean-gas
2218maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2219maintainer-clean-host: maybe-maintainer-clean-gmp
2220maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2221maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2222maintainer-clean-host: maybe-maintainer-clean-isl
1f53ca9a 2223maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2224maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2225maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2226maintainer-clean-host: maybe-maintainer-clean-intl
2227maintainer-clean-host: maybe-maintainer-clean-tcl
2228maintainer-clean-host: maybe-maintainer-clean-itcl
2229maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2230maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2231maintainer-clean-host: maybe-maintainer-clean-libcpp
2232maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2233maintainer-clean-host: maybe-maintainer-clean-libgui
2234maintainer-clean-host: maybe-maintainer-clean-libiberty
1b6c0831 2235maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin
dc448a7b 2236maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2237maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2238maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2239maintainer-clean-host: maybe-maintainer-clean-sid
2240maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2241maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897
PB
2242maintainer-clean-host: maybe-maintainer-clean-zlib
2243maintainer-clean-host: maybe-maintainer-clean-gdb
2244maintainer-clean-host: maybe-maintainer-clean-expect
2245maintainer-clean-host: maybe-maintainer-clean-guile
2246maintainer-clean-host: maybe-maintainer-clean-tk
2247maintainer-clean-host: maybe-maintainer-clean-libtermcap
2248maintainer-clean-host: maybe-maintainer-clean-utils
2249maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2250maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1b6c0831
L
2251maintainer-clean-host: maybe-maintainer-clean-libcc1
2252maintainer-clean-host: maybe-maintainer-clean-gotools
2a4cbe27 2253
4fa63067 2254.PHONY: maintainer-clean-target
c52c6897
PB
2255
2256maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2257maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
1b6c0831 2258maintainer-clean-target: maybe-maintainer-clean-target-libmpx
95e43135 2259maintainer-clean-target: maybe-maintainer-clean-target-libvtv
e78e02e6 2260maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts
1b6c0831 2261maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic
c52c6897 2262maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2263maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2264maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2265maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2266maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2267maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2268maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2269maintainer-clean-target: maybe-maintainer-clean-target-libgo
c52c6897
PB
2270maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2271maintainer-clean-target: maybe-maintainer-clean-target-winsup
2272maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897
PB
2273maintainer-clean-target: maybe-maintainer-clean-target-libffi
2274maintainer-clean-target: maybe-maintainer-clean-target-libjava
2275maintainer-clean-target: maybe-maintainer-clean-target-zlib
2276maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
c52c6897
PB
2277maintainer-clean-target: maybe-maintainer-clean-target-rda
2278maintainer-clean-target: maybe-maintainer-clean-target-libada
2279maintainer-clean-target: maybe-maintainer-clean-target-libgomp
7ec59b9e
L
2280maintainer-clean-target: maybe-maintainer-clean-target-libitm
2281maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2282
2a4cbe27 2283
4fa63067 2284# Here are the targets which correspond to the do-X targets.
2a4cbe27 2285
a3ca38d2
DD
2286.PHONY: info installcheck dvi pdf html
2287.PHONY: install-info install-pdf install-html
4fa63067
NN
2288.PHONY: clean distclean mostlyclean maintainer-clean realclean
2289.PHONY: local-clean local-distclean local-maintainer-clean
2290info: do-info
2291installcheck: do-installcheck
2292dvi: do-dvi
56a8fe78 2293pdf: do-pdf
6d389afc 2294html: do-html
2a4cbe27 2295
4fa63067
NN
2296# Make sure makeinfo is built before we do a `make info', if we're
2297# in fact building texinfo.
2298do-info: maybe-all-texinfo
2a4cbe27 2299
4fa63067 2300install-info: do-install-info dir.info
b40e3958 2301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
2302 if [ -f dir.info ]; then \
2303 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info; \
2304 else true; fi
2a4cbe27 2305
a3ca38d2
DD
2306install-pdf: do-install-pdf
2307
108a6f8e
CD
2308install-html: do-install-html
2309
4fa63067
NN
2310local-clean:
2311 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2312
4fa63067
NN
2313local-distclean:
2314 -rm -f Makefile config.status config.cache mh-frag mt-frag
0aed8855 2315 -rm -f maybedep.tmp serdep.tmp
4fa63067
NN
2316 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2317 rm -rf $(TARGET_SUBDIR); \
2318 else true; fi
2319 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2320 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2321 rm -rf $(HOST_SUBDIR); \
2322 else true; fi
4fa63067
NN
2323 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2324 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2325 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2326 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
2327 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
18fa8f9c 2328 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2329
4fa63067
NN
2330local-maintainer-clean:
2331 @echo "This command is intended for maintainers to use;"
2332 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2333
4fa63067
NN
2334clean: do-clean local-clean
2335mostlyclean: do-mostlyclean local-clean
2336distclean: do-distclean local-clean local-distclean
2337maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2338maintainer-clean: local-distclean
2339realclean: maintainer-clean
2a4cbe27 2340
4fa63067 2341# Check target.
2a4cbe27 2342
4fa63067
NN
2343.PHONY: check do-check
2344check: do-check
2a4cbe27 2345
4fa63067 2346# Only include modules actually being configured and built.
f70224b5
PB
2347.PHONY: check-host
2348check-host: \
4fa63067
NN
2349 maybe-check-bfd \
2350 maybe-check-opcodes \
2351 maybe-check-binutils \
2352 maybe-check-bison \
f9806fa5 2353 maybe-check-cgen \
4fa63067 2354 maybe-check-dejagnu \
4fa63067
NN
2355 maybe-check-etc \
2356 maybe-check-fastjar \
d3ed111c 2357 maybe-check-fixincludes \
4fa63067
NN
2358 maybe-check-flex \
2359 maybe-check-gas \
b813574b 2360 maybe-check-gcc \
4b900473
PB
2361 maybe-check-gmp \
2362 maybe-check-mpfr \
e8a5fa9c 2363 maybe-check-mpc \
7ec59b9e 2364 maybe-check-isl \
1f53ca9a 2365 maybe-check-libelf \
93f9b408 2366 maybe-check-gold \
4fa63067 2367 maybe-check-gprof \
4fa63067
NN
2368 maybe-check-intl \
2369 maybe-check-tcl \
2370 maybe-check-itcl \
2371 maybe-check-ld \
2bf680c4 2372 maybe-check-libbacktrace \
04cf1b77 2373 maybe-check-libcpp \
be01d343 2374 maybe-check-libdecnumber \
4fa63067
NN
2375 maybe-check-libgui \
2376 maybe-check-libiberty \
1b6c0831 2377 maybe-check-libiberty-linker-plugin \
dc448a7b 2378 maybe-check-libiconv \
4fa63067 2379 maybe-check-m4 \
4fa63067 2380 maybe-check-readline \
4fa63067
NN
2381 maybe-check-sid \
2382 maybe-check-sim \
4fa63067 2383 maybe-check-texinfo \
4fa63067
NN
2384 maybe-check-zlib \
2385 maybe-check-gdb \
2386 maybe-check-expect \
2387 maybe-check-guile \
2388 maybe-check-tk \
4fa63067
NN
2389 maybe-check-libtermcap \
2390 maybe-check-utils \
700d40ca 2391 maybe-check-gnattools \
1b6c0831
L
2392 maybe-check-lto-plugin \
2393 maybe-check-libcc1 \
2394 maybe-check-gotools
f70224b5
PB
2395
2396.PHONY: check-target
2397check-target: \
4fa63067 2398 maybe-check-target-libstdc++-v3 \
5286fdef 2399 maybe-check-target-libsanitizer \
1b6c0831 2400 maybe-check-target-libmpx \
95e43135 2401 maybe-check-target-libvtv \
e78e02e6 2402 maybe-check-target-libcilkrts \
1b6c0831 2403 maybe-check-target-liboffloadmic \
064d0a7c 2404 maybe-check-target-libssp \
4fa63067 2405 maybe-check-target-newlib \
6aa8ef82 2406 maybe-check-target-libgcc \
2bf680c4 2407 maybe-check-target-libbacktrace \
e552509b 2408 maybe-check-target-libquadmath \
4b1cb4fe 2409 maybe-check-target-libgfortran \
4fa63067 2410 maybe-check-target-libobjc \
e552509b 2411 maybe-check-target-libgo \
4fa63067
NN
2412 maybe-check-target-libtermcap \
2413 maybe-check-target-winsup \
2414 maybe-check-target-libgloss \
4fa63067
NN
2415 maybe-check-target-libffi \
2416 maybe-check-target-libjava \
2417 maybe-check-target-zlib \
2418 maybe-check-target-boehm-gc \
4fa63067 2419 maybe-check-target-rda \
b3ded179 2420 maybe-check-target-libada \
7ec59b9e
L
2421 maybe-check-target-libgomp \
2422 maybe-check-target-libitm \
2423 maybe-check-target-libatomic
f70224b5
PB
2424
2425do-check:
0aed8855 2426 @: $(MAKE); $(unstage)
e360f423
PB
2427 @r=`${PWD_COMMAND}`; export r; \
2428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2429 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2430
4fa63067 2431# Automated reporting of test results.
2a4cbe27 2432
4fa63067
NN
2433warning.log: build.log
2434 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2435
4fa63067
NN
2436mail-report.log:
2437 if test x'$(BOOT_CFLAGS)' != x''; then \
2438 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2439 fi; \
2440 $(srcdir)/contrib/test_summary -t >$@
2441 chmod +x $@
2442 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2443
4fa63067
NN
2444mail-report-with-warnings.log: warning.log
2445 if test x'$(BOOT_CFLAGS)' != x''; then \
2446 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2447 fi; \
2448 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2449 chmod +x $@
2450 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2451
1b6c0831
L
2452# Local Vim config
2453
2454$(srcdir)/.local.vimrc:
22121df0 2455 $(LN_S) contrib/vimrc $@
1b6c0831
L
2456
2457$(srcdir)/.lvimrc:
22121df0 2458 $(LN_S) contrib/vimrc $@
1b6c0831
L
2459
2460vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2461
2462.PHONY: vimrc
2463
4fa63067 2464# Installation targets.
2a4cbe27 2465
4fa63067 2466.PHONY: install uninstall
f70224b5 2467install:
0aed8855 2468 @: $(MAKE); $(unstage)
e360f423
PB
2469 @r=`${PWD_COMMAND}`; export r; \
2470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2471 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2472
4fa63067
NN
2473.PHONY: install-host-nogcc
2474install-host-nogcc: \
4fa63067
NN
2475 maybe-install-bfd \
2476 maybe-install-opcodes \
2477 maybe-install-binutils \
2478 maybe-install-bison \
f9806fa5 2479 maybe-install-cgen \
4fa63067 2480 maybe-install-dejagnu \
4fa63067
NN
2481 maybe-install-etc \
2482 maybe-install-fastjar \
d3ed111c 2483 maybe-install-fixincludes \
4fa63067
NN
2484 maybe-install-flex \
2485 maybe-install-gas \
4b900473
PB
2486 maybe-install-gmp \
2487 maybe-install-mpfr \
e8a5fa9c 2488 maybe-install-mpc \
7ec59b9e 2489 maybe-install-isl \
1f53ca9a 2490 maybe-install-libelf \
93f9b408 2491 maybe-install-gold \
4fa63067 2492 maybe-install-gprof \
4fa63067
NN
2493 maybe-install-intl \
2494 maybe-install-tcl \
2495 maybe-install-itcl \
2496 maybe-install-ld \
2bf680c4 2497 maybe-install-libbacktrace \
04cf1b77 2498 maybe-install-libcpp \
be01d343 2499 maybe-install-libdecnumber \
4fa63067
NN
2500 maybe-install-libgui \
2501 maybe-install-libiberty \
1b6c0831 2502 maybe-install-libiberty-linker-plugin \
dc448a7b 2503 maybe-install-libiconv \
4fa63067 2504 maybe-install-m4 \
4fa63067 2505 maybe-install-readline \
4fa63067
NN
2506 maybe-install-sid \
2507 maybe-install-sim \
4fa63067 2508 maybe-install-texinfo \
4fa63067
NN
2509 maybe-install-zlib \
2510 maybe-install-gdb \
2511 maybe-install-expect \
2512 maybe-install-guile \
2513 maybe-install-tk \
4fa63067 2514 maybe-install-libtermcap \
b00612cc 2515 maybe-install-utils \
700d40ca 2516 maybe-install-gnattools \
1b6c0831
L
2517 maybe-install-lto-plugin \
2518 maybe-install-libcc1 \
2519 maybe-install-gotools
2a4cbe27 2520
4fa63067 2521.PHONY: install-host
b813574b 2522install-host: \
4fa63067
NN
2523 maybe-install-bfd \
2524 maybe-install-opcodes \
2525 maybe-install-binutils \
2526 maybe-install-bison \
f9806fa5 2527 maybe-install-cgen \
4fa63067 2528 maybe-install-dejagnu \
4fa63067
NN
2529 maybe-install-etc \
2530 maybe-install-fastjar \
d3ed111c 2531 maybe-install-fixincludes \
4fa63067
NN
2532 maybe-install-flex \
2533 maybe-install-gas \
b813574b 2534 maybe-install-gcc \
4b900473
PB
2535 maybe-install-gmp \
2536 maybe-install-mpfr \
e8a5fa9c 2537 maybe-install-mpc \
7ec59b9e 2538 maybe-install-isl \
1f53ca9a 2539 maybe-install-libelf \
93f9b408 2540 maybe-install-gold \
4fa63067 2541 maybe-install-gprof \
4fa63067
NN
2542 maybe-install-intl \
2543 maybe-install-tcl \
2544 maybe-install-itcl \
2545 maybe-install-ld \
2bf680c4 2546 maybe-install-libbacktrace \
04cf1b77 2547 maybe-install-libcpp \
be01d343 2548 maybe-install-libdecnumber \
4fa63067
NN
2549 maybe-install-libgui \
2550 maybe-install-libiberty \
1b6c0831 2551 maybe-install-libiberty-linker-plugin \
dc448a7b 2552 maybe-install-libiconv \
4fa63067 2553 maybe-install-m4 \
4fa63067 2554 maybe-install-readline \
4fa63067
NN
2555 maybe-install-sid \
2556 maybe-install-sim \
4fa63067 2557 maybe-install-texinfo \
4fa63067
NN
2558 maybe-install-zlib \
2559 maybe-install-gdb \
2560 maybe-install-expect \
2561 maybe-install-guile \
2562 maybe-install-tk \
4fa63067 2563 maybe-install-libtermcap \
b00612cc 2564 maybe-install-utils \
700d40ca 2565 maybe-install-gnattools \
1b6c0831
L
2566 maybe-install-lto-plugin \
2567 maybe-install-libcc1 \
2568 maybe-install-gotools
2a4cbe27 2569
4fa63067
NN
2570.PHONY: install-target
2571install-target: \
2572 maybe-install-target-libstdc++-v3 \
5286fdef 2573 maybe-install-target-libsanitizer \
1b6c0831 2574 maybe-install-target-libmpx \
95e43135 2575 maybe-install-target-libvtv \
e78e02e6 2576 maybe-install-target-libcilkrts \
1b6c0831 2577 maybe-install-target-liboffloadmic \
064d0a7c 2578 maybe-install-target-libssp \
4fa63067 2579 maybe-install-target-newlib \
6aa8ef82 2580 maybe-install-target-libgcc \
2bf680c4 2581 maybe-install-target-libbacktrace \
e552509b 2582 maybe-install-target-libquadmath \
4b1cb4fe 2583 maybe-install-target-libgfortran \
4fa63067 2584 maybe-install-target-libobjc \
e552509b 2585 maybe-install-target-libgo \
4fa63067
NN
2586 maybe-install-target-libtermcap \
2587 maybe-install-target-winsup \
2588 maybe-install-target-libgloss \
4fa63067
NN
2589 maybe-install-target-libffi \
2590 maybe-install-target-libjava \
2591 maybe-install-target-zlib \
2592 maybe-install-target-boehm-gc \
4fa63067 2593 maybe-install-target-rda \
b3ded179 2594 maybe-install-target-libada \
7ec59b9e
L
2595 maybe-install-target-libgomp \
2596 maybe-install-target-libitm \
2597 maybe-install-target-libatomic
2a4cbe27 2598
4fa63067
NN
2599uninstall:
2600 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2601
4fa63067
NN
2602.PHONY: install.all
2603install.all: install-no-fixedincludes
22121df0
L
2604 @if [ -f ./gcc/Makefile ]; then \
2605 r=`${PWD_COMMAND}`; export r; \
0aed8855 2606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2607 $(HOST_EXPORTS) \
4fa63067 2608 (cd ./gcc && \
22121df0 2609 $(MAKE) $(FLAGS_TO_PASS) install-headers); \
4fa63067 2610 else \
22121df0 2611 true; \
4fa63067 2612 fi
2a4cbe27 2613
7ec59b9e
L
2614# install-no-fixedincludes is used to allow the elaboration of binary packages
2615# suitable for distribution, where we cannot include the fixed system header
2616# files.
4fa63067
NN
2617.PHONY: install-no-fixedincludes
2618install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2619 install-target gcc-install-no-fixedincludes
2a4cbe27 2620
9b980aa1
RW
2621.PHONY: install-strip
2622install-strip:
2623 @: $(MAKE); $(unstage)
2624 @r=`${PWD_COMMAND}`; export r; \
2625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2626 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2627
2628.PHONY: install-strip-host
2629install-strip-host: \
9b980aa1
RW
2630 maybe-install-strip-bfd \
2631 maybe-install-strip-opcodes \
2632 maybe-install-strip-binutils \
2633 maybe-install-strip-bison \
9b980aa1
RW
2634 maybe-install-strip-cgen \
2635 maybe-install-strip-dejagnu \
9b980aa1
RW
2636 maybe-install-strip-etc \
2637 maybe-install-strip-fastjar \
9b980aa1
RW
2638 maybe-install-strip-fixincludes \
2639 maybe-install-strip-flex \
2640 maybe-install-strip-gas \
2641 maybe-install-strip-gcc \
9b980aa1
RW
2642 maybe-install-strip-gmp \
2643 maybe-install-strip-mpfr \
2644 maybe-install-strip-mpc \
7ec59b9e 2645 maybe-install-strip-isl \
9b980aa1 2646 maybe-install-strip-libelf \
9b980aa1
RW
2647 maybe-install-strip-gold \
2648 maybe-install-strip-gprof \
9b980aa1
RW
2649 maybe-install-strip-intl \
2650 maybe-install-strip-tcl \
2651 maybe-install-strip-itcl \
2652 maybe-install-strip-ld \
2bf680c4 2653 maybe-install-strip-libbacktrace \
9b980aa1
RW
2654 maybe-install-strip-libcpp \
2655 maybe-install-strip-libdecnumber \
2656 maybe-install-strip-libgui \
2657 maybe-install-strip-libiberty \
1b6c0831 2658 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2659 maybe-install-strip-libiconv \
9b980aa1 2660 maybe-install-strip-m4 \
9b980aa1 2661 maybe-install-strip-readline \
9b980aa1
RW
2662 maybe-install-strip-sid \
2663 maybe-install-strip-sim \
9b980aa1 2664 maybe-install-strip-texinfo \
9b980aa1
RW
2665 maybe-install-strip-zlib \
2666 maybe-install-strip-gdb \
2667 maybe-install-strip-expect \
2668 maybe-install-strip-guile \
2669 maybe-install-strip-tk \
2670 maybe-install-strip-libtermcap \
2671 maybe-install-strip-utils \
2672 maybe-install-strip-gnattools \
1b6c0831
L
2673 maybe-install-strip-lto-plugin \
2674 maybe-install-strip-libcc1 \
2675 maybe-install-strip-gotools
9b980aa1
RW
2676
2677.PHONY: install-strip-target
2678install-strip-target: \
2679 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2680 maybe-install-strip-target-libsanitizer \
1b6c0831 2681 maybe-install-strip-target-libmpx \
95e43135 2682 maybe-install-strip-target-libvtv \
e78e02e6 2683 maybe-install-strip-target-libcilkrts \
1b6c0831 2684 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2685 maybe-install-strip-target-libssp \
2686 maybe-install-strip-target-newlib \
2687 maybe-install-strip-target-libgcc \
2bf680c4 2688 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2689 maybe-install-strip-target-libquadmath \
2690 maybe-install-strip-target-libgfortran \
2691 maybe-install-strip-target-libobjc \
2692 maybe-install-strip-target-libgo \
2693 maybe-install-strip-target-libtermcap \
2694 maybe-install-strip-target-winsup \
2695 maybe-install-strip-target-libgloss \
9b980aa1
RW
2696 maybe-install-strip-target-libffi \
2697 maybe-install-strip-target-libjava \
2698 maybe-install-strip-target-zlib \
2699 maybe-install-strip-target-boehm-gc \
9b980aa1
RW
2700 maybe-install-strip-target-rda \
2701 maybe-install-strip-target-libada \
7ec59b9e
L
2702 maybe-install-strip-target-libgomp \
2703 maybe-install-strip-target-libitm \
2704 maybe-install-strip-target-libatomic
9b980aa1
RW
2705
2706
4fa63067 2707### other supporting targets
2a4cbe27 2708
4fa63067
NN
2709MAKEDIRS= \
2710 $(DESTDIR)$(prefix) \
2711 $(DESTDIR)$(exec_prefix)
2712.PHONY: installdirs
2713installdirs: mkinstalldirs
2714 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2715
4fa63067 2716dir.info: do-install-info
22121df0
L
2717 if [ -f $(srcdir)/texinfo/gen-info-dir ]; then \
2718 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new; \
2719 mv -f dir.info.new dir.info; \
2720 else true; \
4fa63067 2721 fi
2a4cbe27 2722
4fa63067
NN
2723dist:
2724 @echo "Building a full distribution of this tree isn't done"
2725 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2726
4fa63067 2727etags tags: TAGS
2a4cbe27 2728
4fa63067
NN
2729# Right now this just builds TAGS in each subdirectory. emacs19 has the
2730# ability to use several tags files at once, so there is probably no need
2731# to combine them into one big TAGS file (like CVS 1.3 does). We could
2732# (if we felt like it) have this Makefile write a piece of elisp which
2733# the user could load to tell emacs19 where all the TAGS files we just
2734# built are.
2735TAGS: do-TAGS
2a4cbe27 2736
a7254363
PB
2737# ------------------------------------
2738# Macros for configure and all targets
2739# ------------------------------------
2740
2741
2742
2743
2744
4fa63067
NN
2745# --------------------------------------
2746# Modules which run on the build machine
2747# --------------------------------------
2748
a7254363 2749
4fa63067
NN
2750.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2751maybe-configure-build-libiberty:
4f0ef2d8
CD
2752@if gcc-bootstrap
2753configure-build-libiberty: stage_current
2754@endif gcc-bootstrap
6bd3dfaa
PB
2755@if build-libiberty
2756maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2757configure-build-libiberty:
0aed8855 2758 @: $(MAKE); $(unstage)
c52c6897 2759 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2761 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 2762 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty; \
1f53ca9a 2763 $(BUILD_EXPORTS) \
4fa63067
NN
2764 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2765 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2766 case $(srcdir) in \
b00612cc
PB
2767 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2768 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2769 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2770 esac; \
1b6c0831 2771 module_srcdir=libiberty; \
4fa63067 2772 rm -f no-such-file || : ; \
1b6c0831
L
2773 CONFIG_SITE=no-such-file $(SHELL) \
2774 $$s/$$module_srcdir/configure \
2775 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2776 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2777 --target=${target_alias} \
2a4cbe27 2778 || exit 1
6bd3dfaa 2779@endif build-libiberty
2a4cbe27 2780
a7254363
PB
2781
2782
d545f33b
PB
2783
2784
4fa63067
NN
2785.PHONY: all-build-libiberty maybe-all-build-libiberty
2786maybe-all-build-libiberty:
4f0ef2d8
CD
2787@if gcc-bootstrap
2788all-build-libiberty: stage_current
2789@endif gcc-bootstrap
6bd3dfaa 2790@if build-libiberty
72b2455a 2791TARGET-build-libiberty=all
6bd3dfaa 2792maybe-all-build-libiberty: all-build-libiberty
4fa63067 2793all-build-libiberty: configure-build-libiberty
0aed8855 2794 @: $(MAKE); $(unstage)
4fa63067 2795 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2797 $(BUILD_EXPORTS) \
72b2455a 2798 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2799 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2800 $(TARGET-build-libiberty))
6bd3dfaa 2801@endif build-libiberty
2a4cbe27 2802
a7254363
PB
2803
2804
d545f33b
PB
2805
2806
6a9cf61e
PB
2807.PHONY: configure-build-bison maybe-configure-build-bison
2808maybe-configure-build-bison:
4f0ef2d8
CD
2809@if gcc-bootstrap
2810configure-build-bison: stage_current
2811@endif gcc-bootstrap
6a9cf61e
PB
2812@if build-bison
2813maybe-configure-build-bison: configure-build-bison
c52c6897 2814configure-build-bison:
0aed8855 2815 @: $(MAKE); $(unstage)
c52c6897 2816 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2818 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
22121df0 2819 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison; \
1f53ca9a 2820 $(BUILD_EXPORTS) \
6a9cf61e
PB
2821 echo Configuring in $(BUILD_SUBDIR)/bison; \
2822 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2823 case $(srcdir) in \
b00612cc
PB
2824 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2825 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2826 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2827 esac; \
1b6c0831 2828 module_srcdir=bison; \
6a9cf61e 2829 rm -f no-such-file || : ; \
1b6c0831
L
2830 CONFIG_SITE=no-such-file $(SHELL) \
2831 $$s/$$module_srcdir/configure \
2832 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2833 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2834 --target=${target_alias} \
6a9cf61e
PB
2835 || exit 1
2836@endif build-bison
2837
a7254363
PB
2838
2839
d545f33b
PB
2840
2841
6a9cf61e
PB
2842.PHONY: all-build-bison maybe-all-build-bison
2843maybe-all-build-bison:
4f0ef2d8
CD
2844@if gcc-bootstrap
2845all-build-bison: stage_current
2846@endif gcc-bootstrap
6a9cf61e 2847@if build-bison
72b2455a 2848TARGET-build-bison=all
6a9cf61e
PB
2849maybe-all-build-bison: all-build-bison
2850all-build-bison: configure-build-bison
0aed8855 2851 @: $(MAKE); $(unstage)
6a9cf61e
PB
2852 @r=`${PWD_COMMAND}`; export r; \
2853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2854 $(BUILD_EXPORTS) \
72b2455a 2855 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2856 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2857 $(TARGET-build-bison))
6a9cf61e
PB
2858@endif build-bison
2859
a7254363
PB
2860
2861
d545f33b
PB
2862
2863
6a9cf61e
PB
2864.PHONY: configure-build-flex maybe-configure-build-flex
2865maybe-configure-build-flex:
4f0ef2d8
CD
2866@if gcc-bootstrap
2867configure-build-flex: stage_current
2868@endif gcc-bootstrap
6a9cf61e
PB
2869@if build-flex
2870maybe-configure-build-flex: configure-build-flex
c52c6897 2871configure-build-flex:
0aed8855 2872 @: $(MAKE); $(unstage)
c52c6897 2873 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2875 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
22121df0 2876 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex; \
1f53ca9a 2877 $(BUILD_EXPORTS) \
6a9cf61e
PB
2878 echo Configuring in $(BUILD_SUBDIR)/flex; \
2879 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2880 case $(srcdir) in \
b00612cc
PB
2881 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2882 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2883 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2884 esac; \
1b6c0831 2885 module_srcdir=flex; \
6a9cf61e 2886 rm -f no-such-file || : ; \
1b6c0831
L
2887 CONFIG_SITE=no-such-file $(SHELL) \
2888 $$s/$$module_srcdir/configure \
2889 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2890 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2891 --target=${target_alias} \
6a9cf61e
PB
2892 || exit 1
2893@endif build-flex
2894
a7254363
PB
2895
2896
d545f33b
PB
2897
2898
6a9cf61e
PB
2899.PHONY: all-build-flex maybe-all-build-flex
2900maybe-all-build-flex:
4f0ef2d8
CD
2901@if gcc-bootstrap
2902all-build-flex: stage_current
2903@endif gcc-bootstrap
6a9cf61e 2904@if build-flex
72b2455a 2905TARGET-build-flex=all
6a9cf61e
PB
2906maybe-all-build-flex: all-build-flex
2907all-build-flex: configure-build-flex
0aed8855 2908 @: $(MAKE); $(unstage)
6a9cf61e
PB
2909 @r=`${PWD_COMMAND}`; export r; \
2910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2911 $(BUILD_EXPORTS) \
72b2455a 2912 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 2913 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2914 $(TARGET-build-flex))
6a9cf61e
PB
2915@endif build-flex
2916
a7254363
PB
2917
2918
d545f33b
PB
2919
2920
6a9cf61e
PB
2921.PHONY: configure-build-m4 maybe-configure-build-m4
2922maybe-configure-build-m4:
4f0ef2d8
CD
2923@if gcc-bootstrap
2924configure-build-m4: stage_current
2925@endif gcc-bootstrap
6a9cf61e
PB
2926@if build-m4
2927maybe-configure-build-m4: configure-build-m4
c52c6897 2928configure-build-m4:
0aed8855 2929 @: $(MAKE); $(unstage)
c52c6897 2930 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2932 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
22121df0 2933 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4; \
1f53ca9a 2934 $(BUILD_EXPORTS) \
6a9cf61e
PB
2935 echo Configuring in $(BUILD_SUBDIR)/m4; \
2936 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2937 case $(srcdir) in \
b00612cc
PB
2938 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2939 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2940 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2941 esac; \
1b6c0831 2942 module_srcdir=m4; \
6a9cf61e 2943 rm -f no-such-file || : ; \
1b6c0831
L
2944 CONFIG_SITE=no-such-file $(SHELL) \
2945 $$s/$$module_srcdir/configure \
2946 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2947 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2948 --target=${target_alias} \
6a9cf61e
PB
2949 || exit 1
2950@endif build-m4
2951
a7254363
PB
2952
2953
d545f33b
PB
2954
2955
6a9cf61e
PB
2956.PHONY: all-build-m4 maybe-all-build-m4
2957maybe-all-build-m4:
4f0ef2d8
CD
2958@if gcc-bootstrap
2959all-build-m4: stage_current
2960@endif gcc-bootstrap
6a9cf61e 2961@if build-m4
72b2455a 2962TARGET-build-m4=all
6a9cf61e
PB
2963maybe-all-build-m4: all-build-m4
2964all-build-m4: configure-build-m4
0aed8855 2965 @: $(MAKE); $(unstage)
6a9cf61e
PB
2966 @r=`${PWD_COMMAND}`; export r; \
2967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2968 $(BUILD_EXPORTS) \
72b2455a 2969 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 2970 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2971 $(TARGET-build-m4))
6a9cf61e
PB
2972@endif build-m4
2973
a7254363
PB
2974
2975
d545f33b
PB
2976
2977
6a9cf61e
PB
2978.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2979maybe-configure-build-texinfo:
4f0ef2d8
CD
2980@if gcc-bootstrap
2981configure-build-texinfo: stage_current
2982@endif gcc-bootstrap
6a9cf61e
PB
2983@if build-texinfo
2984maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 2985configure-build-texinfo:
0aed8855 2986 @: $(MAKE); $(unstage)
c52c6897 2987 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2989 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 2990 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo; \
1f53ca9a 2991 $(BUILD_EXPORTS) \
6a9cf61e
PB
2992 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2993 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2994 case $(srcdir) in \
b00612cc
PB
2995 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2996 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2997 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2998 esac; \
1b6c0831 2999 module_srcdir=texinfo; \
6a9cf61e 3000 rm -f no-such-file || : ; \
1b6c0831
L
3001 CONFIG_SITE=no-such-file $(SHELL) \
3002 $$s/$$module_srcdir/configure \
3003 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3004 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3005 --target=${target_alias} \
6a9cf61e
PB
3006 || exit 1
3007@endif build-texinfo
3008
a7254363
PB
3009
3010
d545f33b
PB
3011
3012
6a9cf61e
PB
3013.PHONY: all-build-texinfo maybe-all-build-texinfo
3014maybe-all-build-texinfo:
4f0ef2d8
CD
3015@if gcc-bootstrap
3016all-build-texinfo: stage_current
3017@endif gcc-bootstrap
6a9cf61e 3018@if build-texinfo
72b2455a 3019TARGET-build-texinfo=all
6a9cf61e
PB
3020maybe-all-build-texinfo: all-build-texinfo
3021all-build-texinfo: configure-build-texinfo
0aed8855 3022 @: $(MAKE); $(unstage)
6a9cf61e
PB
3023 @r=`${PWD_COMMAND}`; export r; \
3024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3025 $(BUILD_EXPORTS) \
72b2455a 3026 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3027 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3028 $(TARGET-build-texinfo))
6a9cf61e
PB
3029@endif build-texinfo
3030
a7254363
PB
3031
3032
d545f33b
PB
3033
3034
ee025550
PB
3035.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3036maybe-configure-build-fixincludes:
4f0ef2d8
CD
3037@if gcc-bootstrap
3038configure-build-fixincludes: stage_current
3039@endif gcc-bootstrap
ee025550
PB
3040@if build-fixincludes
3041maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3042configure-build-fixincludes:
0aed8855 3043 @: $(MAKE); $(unstage)
c52c6897 3044 @r=`${PWD_COMMAND}`; export r; \
ee025550 3045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3046 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 3047 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes; \
1f53ca9a 3048 $(BUILD_EXPORTS) \
ee025550
PB
3049 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3050 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3051 case $(srcdir) in \
b00612cc
PB
3052 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3053 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3054 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3055 esac; \
1b6c0831 3056 module_srcdir=fixincludes; \
ee025550 3057 rm -f no-such-file || : ; \
1b6c0831
L
3058 CONFIG_SITE=no-such-file $(SHELL) \
3059 $$s/$$module_srcdir/configure \
3060 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3061 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3062 --target=${target_alias} \
ee025550
PB
3063 || exit 1
3064@endif build-fixincludes
3065
a7254363
PB
3066
3067
d545f33b
PB
3068
3069
ee025550
PB
3070.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3071maybe-all-build-fixincludes:
4f0ef2d8
CD
3072@if gcc-bootstrap
3073all-build-fixincludes: stage_current
3074@endif gcc-bootstrap
ee025550
PB
3075@if build-fixincludes
3076TARGET-build-fixincludes=all
3077maybe-all-build-fixincludes: all-build-fixincludes
3078all-build-fixincludes: configure-build-fixincludes
0aed8855 3079 @: $(MAKE); $(unstage)
ee025550
PB
3080 @r=`${PWD_COMMAND}`; export r; \
3081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3082 $(BUILD_EXPORTS) \
ee025550 3083 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3084 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3085 $(TARGET-build-fixincludes))
ee025550
PB
3086@endif build-fixincludes
3087
2a4cbe27 3088
a7254363 3089
d545f33b
PB
3090
3091
1b6c0831
L
3092.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3093maybe-configure-build-libcpp:
3094@if gcc-bootstrap
3095configure-build-libcpp: stage_current
3096@endif gcc-bootstrap
3097@if build-libcpp
3098maybe-configure-build-libcpp: configure-build-libcpp
3099configure-build-libcpp:
3100 @: $(MAKE); $(unstage)
3101 @r=`${PWD_COMMAND}`; export r; \
3102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3103 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 3104 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp; \
1b6c0831
L
3105 $(BUILD_EXPORTS) \
3106 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3107 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3108 case $(srcdir) in \
3109 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3110 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3111 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3112 esac; \
3113 module_srcdir=libcpp; \
3114 rm -f no-such-file || : ; \
3115 CONFIG_SITE=no-such-file $(SHELL) \
3116 $$s/$$module_srcdir/configure \
3117 --srcdir=$${topdir}/$$module_srcdir \
3118 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3119 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3120 || exit 1
3121@endif build-libcpp
3122
3123
3124
3125
3126
3127.PHONY: all-build-libcpp maybe-all-build-libcpp
3128maybe-all-build-libcpp:
3129@if gcc-bootstrap
3130all-build-libcpp: stage_current
3131@endif gcc-bootstrap
3132@if build-libcpp
3133TARGET-build-libcpp=all
3134maybe-all-build-libcpp: all-build-libcpp
3135all-build-libcpp: configure-build-libcpp
3136 @: $(MAKE); $(unstage)
3137 @r=`${PWD_COMMAND}`; export r; \
3138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3139 $(BUILD_EXPORTS) \
3140 (cd $(BUILD_SUBDIR)/libcpp && \
3141 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3142 $(TARGET-build-libcpp))
3143@endif build-libcpp
3144
3145
3146
3147
3148
4fa63067
NN
3149# --------------------------------------
3150# Modules which run on the host machine
3151# --------------------------------------
2a4cbe27 3152
a7254363 3153
a90ef4bf
JM
3154.PHONY: configure-bfd maybe-configure-bfd
3155maybe-configure-bfd:
4f0ef2d8 3156@if gcc-bootstrap
a90ef4bf 3157configure-bfd: stage_current
4f0ef2d8 3158@endif gcc-bootstrap
a90ef4bf
JM
3159@if bfd
3160maybe-configure-bfd: configure-bfd
3161configure-bfd:
c52c6897 3162 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3164 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
22121df0 3165 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
1f53ca9a 3166 $(HOST_EXPORTS) \
a90ef4bf
JM
3167 echo Configuring in $(HOST_SUBDIR)/bfd; \
3168 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3169 case $(srcdir) in \
b00612cc 3170 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3171 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3172 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3173 esac; \
1b6c0831
L
3174 module_srcdir=bfd; \
3175 $(SHELL) \
3176 $$s/$$module_srcdir/configure \
3177 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3178 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3179 --target=${target_alias} \
2a4cbe27 3180 || exit 1
a90ef4bf 3181@endif bfd
a7254363 3182
d545f33b
PB
3183
3184
a90ef4bf
JM
3185.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3186maybe-configure-stage1-bfd:
3187@if bfd-bootstrap
3188maybe-configure-stage1-bfd: configure-stage1-bfd
3189configure-stage1-bfd:
3190 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3191 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3192 @r=`${PWD_COMMAND}`; export r; \
3193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3194 TFLAGS="$(STAGE1_TFLAGS)"; \
3195 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3196 $(HOST_EXPORTS) \
3197 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3198 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3199 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
3200 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd; \
3201 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3202 cd $(HOST_SUBDIR)/bfd || exit 1; \
3203 case $(srcdir) in \
3204 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3205 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3206 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3207 esac; \
1b6c0831
L
3208 module_srcdir=bfd; \
3209 $(SHELL) $$s/$$module_srcdir/configure \
3210 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3211 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3212 --target=${target_alias} \
3213 \
a90ef4bf
JM
3214 $(STAGE1_CONFIGURE_FLAGS)
3215@endif bfd-bootstrap
2a4cbe27 3216
a90ef4bf
JM
3217.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3218maybe-configure-stage2-bfd:
3219@if bfd-bootstrap
3220maybe-configure-stage2-bfd: configure-stage2-bfd
3221configure-stage2-bfd:
3222 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3223 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3224 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3226 TFLAGS="$(STAGE2_TFLAGS)"; \
3227 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3228 $(HOST_EXPORTS) \
a90ef4bf
JM
3229 $(POSTSTAGE1_HOST_EXPORTS) \
3230 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3231 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3232 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3233 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd; \
3234 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3235 cd $(HOST_SUBDIR)/bfd || exit 1; \
3236 case $(srcdir) in \
3237 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3238 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3239 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3240 esac; \
1b6c0831
L
3241 module_srcdir=bfd; \
3242 $(SHELL) $$s/$$module_srcdir/configure \
3243 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3244 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3245 --target=${target_alias} \
22121df0 3246 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3247 $(STAGE2_CONFIGURE_FLAGS)
3248@endif bfd-bootstrap
2a4cbe27 3249
a90ef4bf
JM
3250.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3251maybe-configure-stage3-bfd:
3252@if bfd-bootstrap
3253maybe-configure-stage3-bfd: configure-stage3-bfd
3254configure-stage3-bfd:
3255 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3256 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3257 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3259 TFLAGS="$(STAGE3_TFLAGS)"; \
3260 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3261 $(HOST_EXPORTS) \
a90ef4bf
JM
3262 $(POSTSTAGE1_HOST_EXPORTS) \
3263 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3264 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3265 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3266 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd; \
3267 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3268 cd $(HOST_SUBDIR)/bfd || exit 1; \
3269 case $(srcdir) in \
3270 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3271 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3272 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3273 esac; \
1b6c0831
L
3274 module_srcdir=bfd; \
3275 $(SHELL) $$s/$$module_srcdir/configure \
3276 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3277 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3278 --target=${target_alias} \
22121df0 3279 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3280 $(STAGE3_CONFIGURE_FLAGS)
3281@endif bfd-bootstrap
9b980aa1 3282
a90ef4bf
JM
3283.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3284maybe-configure-stage4-bfd:
3285@if bfd-bootstrap
3286maybe-configure-stage4-bfd: configure-stage4-bfd
3287configure-stage4-bfd:
3288 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3289 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3290 @r=`${PWD_COMMAND}`; export r; \
3291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3292 TFLAGS="$(STAGE4_TFLAGS)"; \
3293 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3294 $(HOST_EXPORTS) \
a90ef4bf
JM
3295 $(POSTSTAGE1_HOST_EXPORTS) \
3296 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3297 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3298 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3299 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd; \
3300 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3301 cd $(HOST_SUBDIR)/bfd || exit 1; \
3302 case $(srcdir) in \
3303 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3304 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3305 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3306 esac; \
1b6c0831
L
3307 module_srcdir=bfd; \
3308 $(SHELL) $$s/$$module_srcdir/configure \
3309 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3310 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3311 --target=${target_alias} \
22121df0 3312 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3313 $(STAGE4_CONFIGURE_FLAGS)
3314@endif bfd-bootstrap
4fa63067 3315
a90ef4bf
JM
3316.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3317maybe-configure-stageprofile-bfd:
3318@if bfd-bootstrap
3319maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3320configure-stageprofile-bfd:
3321 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3322 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3323 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3325 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3326 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3327 $(HOST_EXPORTS) \
a90ef4bf
JM
3328 $(POSTSTAGE1_HOST_EXPORTS) \
3329 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3330 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3331 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3332 echo Configuring stage profile in $(HOST_SUBDIR)/bfd; \
3333 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3334 cd $(HOST_SUBDIR)/bfd || exit 1; \
3335 case $(srcdir) in \
3336 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3337 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3338 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3339 esac; \
1b6c0831
L
3340 module_srcdir=bfd; \
3341 $(SHELL) $$s/$$module_srcdir/configure \
3342 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3343 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3344 --target=${target_alias} \
22121df0 3345 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3346 $(STAGEprofile_CONFIGURE_FLAGS)
3347@endif bfd-bootstrap
2a4cbe27 3348
a90ef4bf
JM
3349.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3350maybe-configure-stagefeedback-bfd:
3351@if bfd-bootstrap
3352maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3353configure-stagefeedback-bfd:
3354 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3355 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3356 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3358 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3359 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3360 $(HOST_EXPORTS) \
a90ef4bf
JM
3361 $(POSTSTAGE1_HOST_EXPORTS) \
3362 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3363 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3364 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3365 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd; \
3366 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3367 cd $(HOST_SUBDIR)/bfd || exit 1; \
3368 case $(srcdir) in \
3369 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3370 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3371 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3372 esac; \
1b6c0831
L
3373 module_srcdir=bfd; \
3374 $(SHELL) $$s/$$module_srcdir/configure \
3375 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3376 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3377 --target=${target_alias} \
22121df0 3378 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3379 $(STAGEfeedback_CONFIGURE_FLAGS)
3380@endif bfd-bootstrap
2a4cbe27 3381
56a8fe78 3382
56a8fe78 3383
56a8fe78 3384
6d389afc 3385
a90ef4bf
JM
3386.PHONY: all-bfd maybe-all-bfd
3387maybe-all-bfd:
3388@if gcc-bootstrap
3389all-bfd: stage_current
3390@endif gcc-bootstrap
3391@if bfd
3392TARGET-bfd=all
3393maybe-all-bfd: all-bfd
3394all-bfd: configure-bfd
3395 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3397 $(HOST_EXPORTS) \
3398 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3399 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3400 $(TARGET-bfd))
3401@endif bfd
6d389afc 3402
6d389afc 3403
2a4cbe27 3404
a90ef4bf
JM
3405.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3406.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3407maybe-all-stage1-bfd:
3408maybe-clean-stage1-bfd:
3409@if bfd-bootstrap
3410maybe-all-stage1-bfd: all-stage1-bfd
3411all-stage1: all-stage1-bfd
3412TARGET-stage1-bfd = $(TARGET-bfd)
3413all-stage1-bfd: configure-stage1-bfd
3414 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3415 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3417 TFLAGS="$(STAGE1_TFLAGS)"; \
3418 $(HOST_EXPORTS) \
3419 cd $(HOST_SUBDIR)/bfd && \
3420 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3421 CFLAGS="$(STAGE1_CFLAGS)" \
3422 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3423 LIBCFLAGS="$(LIBCFLAGS)" \
3424 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3425 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3426 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3427 $(EXTRA_HOST_FLAGS) \
3428 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3429 TFLAGS="$(STAGE1_TFLAGS)" \
3430 $(TARGET-stage1-bfd)
2a4cbe27 3431
a90ef4bf
JM
3432maybe-clean-stage1-bfd: clean-stage1-bfd
3433clean-stage1: clean-stage1-bfd
3434clean-stage1-bfd:
3435 @if [ $(current_stage) = stage1 ]; then \
3436 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3437 else \
3438 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3439 $(MAKE) stage1-start; \
3440 fi; \
3441 cd $(HOST_SUBDIR)/bfd && \
3442 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3443 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3444@endif bfd-bootstrap
2a4cbe27 3445
2a4cbe27 3446
a90ef4bf
JM
3447.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3448.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3449maybe-all-stage2-bfd:
3450maybe-clean-stage2-bfd:
3451@if bfd-bootstrap
3452maybe-all-stage2-bfd: all-stage2-bfd
3453all-stage2: all-stage2-bfd
3454TARGET-stage2-bfd = $(TARGET-bfd)
3455all-stage2-bfd: configure-stage2-bfd
3456 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3457 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3459 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3460 $(HOST_EXPORTS) \
a90ef4bf
JM
3461 $(POSTSTAGE1_HOST_EXPORTS) \
3462 cd $(HOST_SUBDIR)/bfd && \
3463 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3464 CFLAGS="$(STAGE2_CFLAGS)" \
3465 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3466 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3467 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3468 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3469 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3470 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3471 TFLAGS="$(STAGE2_TFLAGS)" \
3472 $(TARGET-stage2-bfd)
2a4cbe27 3473
a90ef4bf
JM
3474maybe-clean-stage2-bfd: clean-stage2-bfd
3475clean-stage2: clean-stage2-bfd
3476clean-stage2-bfd:
3477 @if [ $(current_stage) = stage2 ]; then \
3478 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3479 else \
3480 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3481 $(MAKE) stage2-start; \
3482 fi; \
3483 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3484 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3485@endif bfd-bootstrap
2a4cbe27 3486
a3ca38d2 3487
a90ef4bf
JM
3488.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3489.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3490maybe-all-stage3-bfd:
3491maybe-clean-stage3-bfd:
3492@if bfd-bootstrap
3493maybe-all-stage3-bfd: all-stage3-bfd
3494all-stage3: all-stage3-bfd
3495TARGET-stage3-bfd = $(TARGET-bfd)
3496all-stage3-bfd: configure-stage3-bfd
3497 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3498 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3500 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3501 $(HOST_EXPORTS) \
a90ef4bf
JM
3502 $(POSTSTAGE1_HOST_EXPORTS) \
3503 cd $(HOST_SUBDIR)/bfd && \
3504 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3505 CFLAGS="$(STAGE3_CFLAGS)" \
3506 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3507 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3508 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3509 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3510 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3511 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3512 TFLAGS="$(STAGE3_TFLAGS)" \
3513 $(TARGET-stage3-bfd)
a3ca38d2 3514
a90ef4bf
JM
3515maybe-clean-stage3-bfd: clean-stage3-bfd
3516clean-stage3: clean-stage3-bfd
3517clean-stage3-bfd:
3518 @if [ $(current_stage) = stage3 ]; then \
3519 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3520 else \
3521 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3522 $(MAKE) stage3-start; \
3523 fi; \
3524 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3525 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3526@endif bfd-bootstrap
a3ca38d2 3527
108a6f8e 3528
a90ef4bf
JM
3529.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3530.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3531maybe-all-stage4-bfd:
3532maybe-clean-stage4-bfd:
3533@if bfd-bootstrap
3534maybe-all-stage4-bfd: all-stage4-bfd
3535all-stage4: all-stage4-bfd
3536TARGET-stage4-bfd = $(TARGET-bfd)
3537all-stage4-bfd: configure-stage4-bfd
3538 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3539 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3541 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3542 $(HOST_EXPORTS) \
a90ef4bf
JM
3543 $(POSTSTAGE1_HOST_EXPORTS) \
3544 cd $(HOST_SUBDIR)/bfd && \
3545 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3546 CFLAGS="$(STAGE4_CFLAGS)" \
3547 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3548 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3549 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3550 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3551 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3552 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3553 TFLAGS="$(STAGE4_TFLAGS)" \
3554 $(TARGET-stage4-bfd)
108a6f8e 3555
a90ef4bf
JM
3556maybe-clean-stage4-bfd: clean-stage4-bfd
3557clean-stage4: clean-stage4-bfd
3558clean-stage4-bfd:
3559 @if [ $(current_stage) = stage4 ]; then \
3560 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3561 else \
3562 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3563 $(MAKE) stage4-start; \
3564 fi; \
3565 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3566 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3567@endif bfd-bootstrap
108a6f8e 3568
2a4cbe27 3569
a90ef4bf
JM
3570.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3571.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3572maybe-all-stageprofile-bfd:
3573maybe-clean-stageprofile-bfd:
3574@if bfd-bootstrap
3575maybe-all-stageprofile-bfd: all-stageprofile-bfd
3576all-stageprofile: all-stageprofile-bfd
3577TARGET-stageprofile-bfd = $(TARGET-bfd)
3578all-stageprofile-bfd: configure-stageprofile-bfd
3579 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3580 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3582 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3583 $(HOST_EXPORTS) \
a90ef4bf
JM
3584 $(POSTSTAGE1_HOST_EXPORTS) \
3585 cd $(HOST_SUBDIR)/bfd && \
3586 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3587 CFLAGS="$(STAGEprofile_CFLAGS)" \
3588 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3589 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3590 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3591 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3592 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3593 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3594 TFLAGS="$(STAGEprofile_TFLAGS)" \
3595 $(TARGET-stageprofile-bfd)
2a4cbe27 3596
a90ef4bf
JM
3597maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3598clean-stageprofile: clean-stageprofile-bfd
3599clean-stageprofile-bfd:
3600 @if [ $(current_stage) = stageprofile ]; then \
3601 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3602 else \
3603 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3604 $(MAKE) stageprofile-start; \
3605 fi; \
3606 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3607 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3608@endif bfd-bootstrap
2a4cbe27 3609
a7254363 3610
a90ef4bf
JM
3611.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3612.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3613maybe-all-stagefeedback-bfd:
3614maybe-clean-stagefeedback-bfd:
3615@if bfd-bootstrap
3616maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3617all-stagefeedback: all-stagefeedback-bfd
3618TARGET-stagefeedback-bfd = $(TARGET-bfd)
3619all-stagefeedback-bfd: configure-stagefeedback-bfd
3620 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3621 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3623 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3624 $(HOST_EXPORTS) \
3625 $(POSTSTAGE1_HOST_EXPORTS) \
3626 cd $(HOST_SUBDIR)/bfd && \
3627 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3628 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3629 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3630 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3631 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3632 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3633 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3634 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3635 TFLAGS="$(STAGEfeedback_TFLAGS)" \
3636 $(TARGET-stagefeedback-bfd)
d545f33b 3637
a90ef4bf
JM
3638maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3639clean-stagefeedback: clean-stagefeedback-bfd
3640clean-stagefeedback-bfd:
3641 @if [ $(current_stage) = stagefeedback ]; then \
3642 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3643 else \
3644 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3645 $(MAKE) stagefeedback-start; \
3646 fi; \
3647 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3648 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3649@endif bfd-bootstrap
d545f33b 3650
2a4cbe27 3651
a7254363 3652
d545f33b
PB
3653
3654
a90ef4bf
JM
3655.PHONY: check-bfd maybe-check-bfd
3656maybe-check-bfd:
3657@if bfd
3658maybe-check-bfd: check-bfd
2a4cbe27 3659
a90ef4bf 3660check-bfd:
0aed8855 3661 @: $(MAKE); $(unstage)
4fa63067 3662 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 3664 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 3665 (cd $(HOST_SUBDIR)/bfd && \
f91ca6bc 3666 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 3667
a90ef4bf 3668@endif bfd
2a4cbe27 3669
a90ef4bf
JM
3670.PHONY: install-bfd maybe-install-bfd
3671maybe-install-bfd:
3672@if bfd
3673maybe-install-bfd: install-bfd
2a4cbe27 3674
a90ef4bf 3675install-bfd: installdirs
0aed8855 3676 @: $(MAKE); $(unstage)
4fa63067 3677 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3679 $(HOST_EXPORTS) \
a90ef4bf 3680 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3681 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3682
a90ef4bf 3683@endif bfd
2a4cbe27 3684
a90ef4bf
JM
3685.PHONY: install-strip-bfd maybe-install-strip-bfd
3686maybe-install-strip-bfd:
3687@if bfd
3688maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3689
a90ef4bf 3690install-strip-bfd: installdirs
9b980aa1
RW
3691 @: $(MAKE); $(unstage)
3692 @r=`${PWD_COMMAND}`; export r; \
3693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3694 $(HOST_EXPORTS) \
a90ef4bf 3695 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3696 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3697
a90ef4bf 3698@endif bfd
9b980aa1 3699
56a8fe78 3700# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3701
a90ef4bf
JM
3702.PHONY: maybe-info-bfd info-bfd
3703maybe-info-bfd:
3704@if bfd
3705maybe-info-bfd: info-bfd
4fa63067 3706
a90ef4bf
JM
3707info-bfd: \
3708 configure-bfd
3709 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3710 r=`${PWD_COMMAND}`; export r; \
3711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3712 $(HOST_EXPORTS) \
b813574b 3713 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3715 done; \
22121df0 3716 echo "Doing info in bfd"; \
a90ef4bf 3717 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3720 "RANLIB=$${RANLIB}" \
0c24b341 3721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3722 info) \
2a4cbe27
NN
3723 || exit 1
3724
a90ef4bf 3725@endif bfd
2a4cbe27 3726
a90ef4bf
JM
3727.PHONY: maybe-dvi-bfd dvi-bfd
3728maybe-dvi-bfd:
3729@if bfd
3730maybe-dvi-bfd: dvi-bfd
2a4cbe27 3731
a90ef4bf
JM
3732dvi-bfd: \
3733 configure-bfd
3734 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3735 r=`${PWD_COMMAND}`; export r; \
3736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3737 $(HOST_EXPORTS) \
b813574b 3738 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3740 done; \
22121df0 3741 echo "Doing dvi in bfd"; \
a90ef4bf 3742 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3745 "RANLIB=$${RANLIB}" \
0c24b341 3746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3747 dvi) \
2a4cbe27
NN
3748 || exit 1
3749
a90ef4bf 3750@endif bfd
2a4cbe27 3751
a90ef4bf
JM
3752.PHONY: maybe-pdf-bfd pdf-bfd
3753maybe-pdf-bfd:
3754@if bfd
3755maybe-pdf-bfd: pdf-bfd
56a8fe78 3756
a90ef4bf
JM
3757pdf-bfd: \
3758 configure-bfd
3759 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3760 r=`${PWD_COMMAND}`; export r; \
3761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3762 $(HOST_EXPORTS) \
3763 for flag in $(EXTRA_HOST_FLAGS) ; do \
3764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3765 done; \
22121df0 3766 echo "Doing pdf in bfd"; \
a90ef4bf 3767 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
3768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3770 "RANLIB=$${RANLIB}" \
0c24b341 3771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
3772 pdf) \
3773 || exit 1
3774
a90ef4bf 3775@endif bfd
56a8fe78 3776
a90ef4bf
JM
3777.PHONY: maybe-html-bfd html-bfd
3778maybe-html-bfd:
3779@if bfd
3780maybe-html-bfd: html-bfd
6d389afc 3781
a90ef4bf
JM
3782html-bfd: \
3783 configure-bfd
3784 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3785 r=`${PWD_COMMAND}`; export r; \
3786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3787 $(HOST_EXPORTS) \
3788 for flag in $(EXTRA_HOST_FLAGS) ; do \
3789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3790 done; \
22121df0 3791 echo "Doing html in bfd"; \
a90ef4bf 3792 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3795 "RANLIB=$${RANLIB}" \
0c24b341 3796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3797 html) \
3798 || exit 1
3799
a90ef4bf 3800@endif bfd
6d389afc 3801
a90ef4bf
JM
3802.PHONY: maybe-TAGS-bfd TAGS-bfd
3803maybe-TAGS-bfd:
3804@if bfd
3805maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3806
a90ef4bf
JM
3807TAGS-bfd: \
3808 configure-bfd
3809 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3810 r=`${PWD_COMMAND}`; export r; \
3811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3812 $(HOST_EXPORTS) \
b813574b 3813 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3815 done; \
22121df0 3816 echo "Doing TAGS in bfd"; \
a90ef4bf 3817 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3820 "RANLIB=$${RANLIB}" \
0c24b341 3821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3822 TAGS) \
2a4cbe27
NN
3823 || exit 1
3824
a90ef4bf 3825@endif bfd
2a4cbe27 3826
a90ef4bf
JM
3827.PHONY: maybe-install-info-bfd install-info-bfd
3828maybe-install-info-bfd:
3829@if bfd
3830maybe-install-info-bfd: install-info-bfd
2a4cbe27 3831
a90ef4bf
JM
3832install-info-bfd: \
3833 configure-bfd \
3834 info-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 install-info 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 install-info) \
2a4cbe27
NN
3849 || exit 1
3850
a90ef4bf 3851@endif bfd
2a4cbe27 3852
a90ef4bf
JM
3853.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3854maybe-install-pdf-bfd:
3855@if bfd
3856maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3857
a90ef4bf
JM
3858install-pdf-bfd: \
3859 configure-bfd \
3860 pdf-bfd
3861 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3862 r=`${PWD_COMMAND}`; export r; \
3863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3864 $(HOST_EXPORTS) \
3865 for flag in $(EXTRA_HOST_FLAGS) ; do \
3866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3867 done; \
22121df0 3868 echo "Doing install-pdf in bfd"; \
a90ef4bf 3869 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
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}" \
a3ca38d2
DD
3874 install-pdf) \
3875 || exit 1
3876
a90ef4bf 3877@endif bfd
a3ca38d2 3878
a90ef4bf
JM
3879.PHONY: maybe-install-html-bfd install-html-bfd
3880maybe-install-html-bfd:
3881@if bfd
3882maybe-install-html-bfd: install-html-bfd
108a6f8e 3883
a90ef4bf
JM
3884install-html-bfd: \
3885 configure-bfd \
3886 html-bfd
3887 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
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-html in bfd"; \
a90ef4bf 3895 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
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}" \
108a6f8e
CD
3900 install-html) \
3901 || exit 1
3902
a90ef4bf 3903@endif bfd
108a6f8e 3904
a90ef4bf
JM
3905.PHONY: maybe-installcheck-bfd installcheck-bfd
3906maybe-installcheck-bfd:
3907@if bfd
3908maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3909
a90ef4bf
JM
3910installcheck-bfd: \
3911 configure-bfd
3912 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3913 r=`${PWD_COMMAND}`; export r; \
3914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3915 $(HOST_EXPORTS) \
b813574b 3916 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3918 done; \
22121df0 3919 echo "Doing installcheck in bfd"; \
a90ef4bf 3920 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3923 "RANLIB=$${RANLIB}" \
0c24b341 3924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3925 installcheck) \
2a4cbe27
NN
3926 || exit 1
3927
a90ef4bf 3928@endif bfd
2a4cbe27 3929
a90ef4bf
JM
3930.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3931maybe-mostlyclean-bfd:
3932@if bfd
3933maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3934
a90ef4bf
JM
3935mostlyclean-bfd:
3936 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3937 r=`${PWD_COMMAND}`; export r; \
3938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3939 $(HOST_EXPORTS) \
b813574b 3940 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3942 done; \
22121df0 3943 echo "Doing mostlyclean in bfd"; \
a90ef4bf 3944 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3947 "RANLIB=$${RANLIB}" \
0c24b341 3948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3949 mostlyclean) \
2a4cbe27
NN
3950 || exit 1
3951
a90ef4bf 3952@endif bfd
2a4cbe27 3953
a90ef4bf
JM
3954.PHONY: maybe-clean-bfd clean-bfd
3955maybe-clean-bfd:
3956@if bfd
3957maybe-clean-bfd: clean-bfd
2a4cbe27 3958
a90ef4bf
JM
3959clean-bfd:
3960 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3961 r=`${PWD_COMMAND}`; export r; \
3962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3963 $(HOST_EXPORTS) \
b813574b 3964 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3966 done; \
22121df0 3967 echo "Doing clean in bfd"; \
a90ef4bf 3968 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3971 "RANLIB=$${RANLIB}" \
0c24b341 3972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3973 clean) \
2a4cbe27
NN
3974 || exit 1
3975
a90ef4bf 3976@endif bfd
2a4cbe27 3977
a90ef4bf
JM
3978.PHONY: maybe-distclean-bfd distclean-bfd
3979maybe-distclean-bfd:
3980@if bfd
3981maybe-distclean-bfd: distclean-bfd
2a4cbe27 3982
a90ef4bf
JM
3983distclean-bfd:
3984 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3985 r=`${PWD_COMMAND}`; export r; \
3986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3987 $(HOST_EXPORTS) \
b813574b 3988 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3990 done; \
22121df0 3991 echo "Doing distclean in bfd"; \
a90ef4bf 3992 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3995 "RANLIB=$${RANLIB}" \
0c24b341 3996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3997 distclean) \
2a4cbe27
NN
3998 || exit 1
3999
a90ef4bf 4000@endif bfd
2a4cbe27 4001
a90ef4bf
JM
4002.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4003maybe-maintainer-clean-bfd:
4004@if bfd
4005maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 4006
a90ef4bf
JM
4007maintainer-clean-bfd:
4008 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4009 r=`${PWD_COMMAND}`; export r; \
4010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4011 $(HOST_EXPORTS) \
b813574b 4012 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4014 done; \
22121df0 4015 echo "Doing maintainer-clean in bfd"; \
a90ef4bf 4016 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4019 "RANLIB=$${RANLIB}" \
0c24b341 4020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4021 maintainer-clean) \
2a4cbe27
NN
4022 || exit 1
4023
a90ef4bf 4024@endif bfd
2a4cbe27 4025
2a4cbe27 4026
a7254363 4027
a90ef4bf
JM
4028.PHONY: configure-opcodes maybe-configure-opcodes
4029maybe-configure-opcodes:
4f0ef2d8 4030@if gcc-bootstrap
a90ef4bf 4031configure-opcodes: stage_current
4f0ef2d8 4032@endif gcc-bootstrap
a90ef4bf
JM
4033@if opcodes
4034maybe-configure-opcodes: configure-opcodes
4035configure-opcodes:
c52c6897 4036 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4038 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
22121df0 4039 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
1f53ca9a 4040 $(HOST_EXPORTS) \
a90ef4bf
JM
4041 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4042 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4043 case $(srcdir) in \
b00612cc 4044 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4045 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4046 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4047 esac; \
1b6c0831
L
4048 module_srcdir=opcodes; \
4049 $(SHELL) \
4050 $$s/$$module_srcdir/configure \
4051 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4052 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4053 --target=${target_alias} \
2a4cbe27 4054 || exit 1
a90ef4bf 4055@endif opcodes
a7254363 4056
d545f33b
PB
4057
4058
a90ef4bf
JM
4059.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4060maybe-configure-stage1-opcodes:
4061@if opcodes-bootstrap
4062maybe-configure-stage1-opcodes: configure-stage1-opcodes
4063configure-stage1-opcodes:
4064 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4065 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4066 @r=`${PWD_COMMAND}`; export r; \
4067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4068 TFLAGS="$(STAGE1_TFLAGS)"; \
4069 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4070 $(HOST_EXPORTS) \
4071 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4072 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4073 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4074 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes; \
4075 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4076 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4077 case $(srcdir) in \
4078 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4079 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4080 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4081 esac; \
1b6c0831
L
4082 module_srcdir=opcodes; \
4083 $(SHELL) $$s/$$module_srcdir/configure \
4084 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4085 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4086 --target=${target_alias} \
4087 \
a90ef4bf
JM
4088 $(STAGE1_CONFIGURE_FLAGS)
4089@endif opcodes-bootstrap
2a4cbe27 4090
a90ef4bf
JM
4091.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4092maybe-configure-stage2-opcodes:
4093@if opcodes-bootstrap
4094maybe-configure-stage2-opcodes: configure-stage2-opcodes
4095configure-stage2-opcodes:
4096 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4097 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4098 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4100 TFLAGS="$(STAGE2_TFLAGS)"; \
4101 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4102 $(HOST_EXPORTS) \
a90ef4bf
JM
4103 $(POSTSTAGE1_HOST_EXPORTS) \
4104 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4105 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4106 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4107 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes; \
4108 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4109 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4110 case $(srcdir) in \
4111 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4112 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4113 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4114 esac; \
1b6c0831
L
4115 module_srcdir=opcodes; \
4116 $(SHELL) $$s/$$module_srcdir/configure \
4117 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4118 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4119 --target=${target_alias} \
22121df0 4120 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4121 $(STAGE2_CONFIGURE_FLAGS)
4122@endif opcodes-bootstrap
2a4cbe27 4123
a90ef4bf
JM
4124.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4125maybe-configure-stage3-opcodes:
4126@if opcodes-bootstrap
4127maybe-configure-stage3-opcodes: configure-stage3-opcodes
4128configure-stage3-opcodes:
4129 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4130 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4131 @r=`${PWD_COMMAND}`; export r; \
4132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4133 TFLAGS="$(STAGE3_TFLAGS)"; \
4134 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4135 $(HOST_EXPORTS) \
a90ef4bf
JM
4136 $(POSTSTAGE1_HOST_EXPORTS) \
4137 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4138 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4139 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4140 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes; \
4141 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4142 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4143 case $(srcdir) in \
4144 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4145 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4146 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4147 esac; \
1b6c0831
L
4148 module_srcdir=opcodes; \
4149 $(SHELL) $$s/$$module_srcdir/configure \
4150 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4151 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4152 --target=${target_alias} \
22121df0 4153 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4154 $(STAGE3_CONFIGURE_FLAGS)
4155@endif opcodes-bootstrap
9b980aa1 4156
a90ef4bf
JM
4157.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4158maybe-configure-stage4-opcodes:
4159@if opcodes-bootstrap
4160maybe-configure-stage4-opcodes: configure-stage4-opcodes
4161configure-stage4-opcodes:
4162 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4163 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4164 @r=`${PWD_COMMAND}`; export r; \
4165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4166 TFLAGS="$(STAGE4_TFLAGS)"; \
4167 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4168 $(HOST_EXPORTS) \
a90ef4bf
JM
4169 $(POSTSTAGE1_HOST_EXPORTS) \
4170 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4171 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4172 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4173 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes; \
4174 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4175 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4176 case $(srcdir) in \
4177 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4178 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4179 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4180 esac; \
1b6c0831
L
4181 module_srcdir=opcodes; \
4182 $(SHELL) $$s/$$module_srcdir/configure \
4183 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4184 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4185 --target=${target_alias} \
22121df0 4186 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4187 $(STAGE4_CONFIGURE_FLAGS)
4188@endif opcodes-bootstrap
4fa63067 4189
a90ef4bf
JM
4190.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4191maybe-configure-stageprofile-opcodes:
4192@if opcodes-bootstrap
4193maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4194configure-stageprofile-opcodes:
4195 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4196 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4197 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4199 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4200 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4201 $(HOST_EXPORTS) \
a90ef4bf
JM
4202 $(POSTSTAGE1_HOST_EXPORTS) \
4203 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4204 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4205 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4206 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes; \
4207 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4208 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4209 case $(srcdir) in \
4210 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4211 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4212 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4213 esac; \
1b6c0831
L
4214 module_srcdir=opcodes; \
4215 $(SHELL) $$s/$$module_srcdir/configure \
4216 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4217 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4218 --target=${target_alias} \
22121df0 4219 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4220 $(STAGEprofile_CONFIGURE_FLAGS)
4221@endif opcodes-bootstrap
4222
4223.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4224maybe-configure-stagefeedback-opcodes:
4225@if opcodes-bootstrap
4226maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4227configure-stagefeedback-opcodes:
4228 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4229 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4230 @r=`${PWD_COMMAND}`; export r; \
4231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4232 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4233 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4234 $(HOST_EXPORTS) \
4235 $(POSTSTAGE1_HOST_EXPORTS) \
4236 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4237 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4238 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4239 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes; \
4240 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4241 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4242 case $(srcdir) in \
4243 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4244 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4245 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4246 esac; \
1b6c0831
L
4247 module_srcdir=opcodes; \
4248 $(SHELL) $$s/$$module_srcdir/configure \
4249 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4250 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4251 --target=${target_alias} \
22121df0 4252 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4253 $(STAGEfeedback_CONFIGURE_FLAGS)
4254@endif opcodes-bootstrap
4255
4256
4257
4258
4259
4260.PHONY: all-opcodes maybe-all-opcodes
4261maybe-all-opcodes:
4262@if gcc-bootstrap
4263all-opcodes: stage_current
4264@endif gcc-bootstrap
4265@if opcodes
4266TARGET-opcodes=all
4267maybe-all-opcodes: all-opcodes
4268all-opcodes: configure-opcodes
4269 @r=`${PWD_COMMAND}`; export r; \
4270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4271 $(HOST_EXPORTS) \
4272 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4273 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4274 $(TARGET-opcodes))
4275@endif opcodes
4276
4277
4278
4279.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4280.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4281maybe-all-stage1-opcodes:
4282maybe-clean-stage1-opcodes:
4283@if opcodes-bootstrap
4284maybe-all-stage1-opcodes: all-stage1-opcodes
4285all-stage1: all-stage1-opcodes
4286TARGET-stage1-opcodes = $(TARGET-opcodes)
4287all-stage1-opcodes: configure-stage1-opcodes
4288 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4289 @r=`${PWD_COMMAND}`; export r; \
4290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4291 TFLAGS="$(STAGE1_TFLAGS)"; \
4292 $(HOST_EXPORTS) \
4293 cd $(HOST_SUBDIR)/opcodes && \
4294 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4295 CFLAGS="$(STAGE1_CFLAGS)" \
4296 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4297 LIBCFLAGS="$(LIBCFLAGS)" \
4298 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4299 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4300 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4301 $(EXTRA_HOST_FLAGS) \
4302 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4303 TFLAGS="$(STAGE1_TFLAGS)" \
4304 $(TARGET-stage1-opcodes)
4305
4306maybe-clean-stage1-opcodes: clean-stage1-opcodes
4307clean-stage1: clean-stage1-opcodes
4308clean-stage1-opcodes:
4309 @if [ $(current_stage) = stage1 ]; then \
4310 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4311 else \
4312 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4313 $(MAKE) stage1-start; \
4314 fi; \
4315 cd $(HOST_SUBDIR)/opcodes && \
4316 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4317 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4318@endif opcodes-bootstrap
4319
4320
4321.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4322.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4323maybe-all-stage2-opcodes:
4324maybe-clean-stage2-opcodes:
4325@if opcodes-bootstrap
4326maybe-all-stage2-opcodes: all-stage2-opcodes
4327all-stage2: all-stage2-opcodes
4328TARGET-stage2-opcodes = $(TARGET-opcodes)
4329all-stage2-opcodes: configure-stage2-opcodes
4330 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4331 @r=`${PWD_COMMAND}`; export r; \
4332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4333 TFLAGS="$(STAGE2_TFLAGS)"; \
4334 $(HOST_EXPORTS) \
4335 $(POSTSTAGE1_HOST_EXPORTS) \
4336 cd $(HOST_SUBDIR)/opcodes && \
4337 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4338 CFLAGS="$(STAGE2_CFLAGS)" \
4339 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4340 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4341 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4342 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4343 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4344 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4345 TFLAGS="$(STAGE2_TFLAGS)" \
4346 $(TARGET-stage2-opcodes)
4347
4348maybe-clean-stage2-opcodes: clean-stage2-opcodes
4349clean-stage2: clean-stage2-opcodes
4350clean-stage2-opcodes:
4351 @if [ $(current_stage) = stage2 ]; then \
4352 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4353 else \
4354 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4355 $(MAKE) stage2-start; \
4356 fi; \
4357 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4358 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4359@endif opcodes-bootstrap
4360
4361
4362.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4363.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4364maybe-all-stage3-opcodes:
4365maybe-clean-stage3-opcodes:
4366@if opcodes-bootstrap
4367maybe-all-stage3-opcodes: all-stage3-opcodes
4368all-stage3: all-stage3-opcodes
4369TARGET-stage3-opcodes = $(TARGET-opcodes)
4370all-stage3-opcodes: configure-stage3-opcodes
4371 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4372 @r=`${PWD_COMMAND}`; export r; \
4373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4374 TFLAGS="$(STAGE3_TFLAGS)"; \
4375 $(HOST_EXPORTS) \
4376 $(POSTSTAGE1_HOST_EXPORTS) \
4377 cd $(HOST_SUBDIR)/opcodes && \
4378 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4379 CFLAGS="$(STAGE3_CFLAGS)" \
4380 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4381 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4382 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4383 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4384 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4385 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4386 TFLAGS="$(STAGE3_TFLAGS)" \
4387 $(TARGET-stage3-opcodes)
4388
4389maybe-clean-stage3-opcodes: clean-stage3-opcodes
4390clean-stage3: clean-stage3-opcodes
4391clean-stage3-opcodes:
4392 @if [ $(current_stage) = stage3 ]; then \
4393 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4394 else \
4395 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4396 $(MAKE) stage3-start; \
4397 fi; \
4398 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4399 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4400@endif opcodes-bootstrap
4401
4402
4403.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4404.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4405maybe-all-stage4-opcodes:
4406maybe-clean-stage4-opcodes:
4407@if opcodes-bootstrap
4408maybe-all-stage4-opcodes: all-stage4-opcodes
4409all-stage4: all-stage4-opcodes
4410TARGET-stage4-opcodes = $(TARGET-opcodes)
4411all-stage4-opcodes: configure-stage4-opcodes
4412 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4413 @r=`${PWD_COMMAND}`; export r; \
4414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4415 TFLAGS="$(STAGE4_TFLAGS)"; \
4416 $(HOST_EXPORTS) \
4417 $(POSTSTAGE1_HOST_EXPORTS) \
4418 cd $(HOST_SUBDIR)/opcodes && \
4419 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4420 CFLAGS="$(STAGE4_CFLAGS)" \
4421 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4422 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4423 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4424 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4425 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4426 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4427 TFLAGS="$(STAGE4_TFLAGS)" \
4428 $(TARGET-stage4-opcodes)
4429
4430maybe-clean-stage4-opcodes: clean-stage4-opcodes
4431clean-stage4: clean-stage4-opcodes
4432clean-stage4-opcodes:
4433 @if [ $(current_stage) = stage4 ]; then \
4434 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4435 else \
4436 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4437 $(MAKE) stage4-start; \
4438 fi; \
4439 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4440 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4441@endif opcodes-bootstrap
4442
4443
4444.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4445.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4446maybe-all-stageprofile-opcodes:
4447maybe-clean-stageprofile-opcodes:
4448@if opcodes-bootstrap
4449maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4450all-stageprofile: all-stageprofile-opcodes
4451TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4452all-stageprofile-opcodes: configure-stageprofile-opcodes
4453 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4454 @r=`${PWD_COMMAND}`; export r; \
4455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4456 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4457 $(HOST_EXPORTS) \
4458 $(POSTSTAGE1_HOST_EXPORTS) \
4459 cd $(HOST_SUBDIR)/opcodes && \
4460 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4461 CFLAGS="$(STAGEprofile_CFLAGS)" \
4462 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4463 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4464 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4465 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4466 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4467 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4468 TFLAGS="$(STAGEprofile_TFLAGS)" \
4469 $(TARGET-stageprofile-opcodes)
4470
4471maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4472clean-stageprofile: clean-stageprofile-opcodes
4473clean-stageprofile-opcodes:
4474 @if [ $(current_stage) = stageprofile ]; then \
4475 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4476 else \
4477 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4478 $(MAKE) stageprofile-start; \
4479 fi; \
4480 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4481 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4482@endif opcodes-bootstrap
4483
4484
4485.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4486.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4487maybe-all-stagefeedback-opcodes:
4488maybe-clean-stagefeedback-opcodes:
4489@if opcodes-bootstrap
4490maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4491all-stagefeedback: all-stagefeedback-opcodes
4492TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4493all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4494 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4495 @r=`${PWD_COMMAND}`; export r; \
4496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4497 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4498 $(HOST_EXPORTS) \
4499 $(POSTSTAGE1_HOST_EXPORTS) \
4500 cd $(HOST_SUBDIR)/opcodes && \
4501 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4502 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4503 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4504 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4505 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4506 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4507 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4508 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4509 TFLAGS="$(STAGEfeedback_TFLAGS)" \
4510 $(TARGET-stagefeedback-opcodes)
4511
4512maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4513clean-stagefeedback: clean-stagefeedback-opcodes
4514clean-stagefeedback-opcodes:
4515 @if [ $(current_stage) = stagefeedback ]; then \
4516 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4517 else \
4518 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4519 $(MAKE) stagefeedback-start; \
4520 fi; \
4521 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4522 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4523@endif opcodes-bootstrap
4524
4525
4526
4527
4528
4529.PHONY: check-opcodes maybe-check-opcodes
4530maybe-check-opcodes:
4531@if opcodes
4532maybe-check-opcodes: check-opcodes
4533
4534check-opcodes:
0aed8855 4535 @: $(MAKE); $(unstage)
a90ef4bf 4536 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 4538 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 4539 (cd $(HOST_SUBDIR)/opcodes && \
f91ca6bc 4540 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 4541
a90ef4bf 4542@endif opcodes
2a4cbe27 4543
a90ef4bf
JM
4544.PHONY: install-opcodes maybe-install-opcodes
4545maybe-install-opcodes:
4546@if opcodes
4547maybe-install-opcodes: install-opcodes
56a8fe78 4548
a90ef4bf 4549install-opcodes: installdirs
56a8fe78 4550 @: $(MAKE); $(unstage)
a90ef4bf 4551 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4553 $(HOST_EXPORTS) \
a90ef4bf
JM
4554 (cd $(HOST_SUBDIR)/opcodes && \
4555 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4556
a90ef4bf 4557@endif opcodes
56a8fe78 4558
a90ef4bf
JM
4559.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4560maybe-install-strip-opcodes:
4561@if opcodes
4562maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4563
a90ef4bf 4564install-strip-opcodes: installdirs
0aed8855 4565 @: $(MAKE); $(unstage)
a90ef4bf
JM
4566 @r=`${PWD_COMMAND}`; export r; \
4567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4568 $(HOST_EXPORTS) \
4569 (cd $(HOST_SUBDIR)/opcodes && \
4570 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4571
4572@endif opcodes
4573
4574# Other targets (info, dvi, pdf, etc.)
4575
4576.PHONY: maybe-info-opcodes info-opcodes
4577maybe-info-opcodes:
4578@if opcodes
4579maybe-info-opcodes: info-opcodes
4580
4581info-opcodes: \
4582 configure-opcodes
4583 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4584 r=`${PWD_COMMAND}`; export r; \
4585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4586 $(HOST_EXPORTS) \
4587 for flag in $(EXTRA_HOST_FLAGS) ; do \
4588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4589 done; \
22121df0 4590 echo "Doing info in opcodes"; \
a90ef4bf 4591 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
4592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4594 "RANLIB=$${RANLIB}" \
0c24b341 4595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4596 info) \
6d389afc
MS
4597 || exit 1
4598
a90ef4bf 4599@endif opcodes
6d389afc 4600
a90ef4bf
JM
4601.PHONY: maybe-dvi-opcodes dvi-opcodes
4602maybe-dvi-opcodes:
4603@if opcodes
4604maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4605
a90ef4bf
JM
4606dvi-opcodes: \
4607 configure-opcodes
4608 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4609 r=`${PWD_COMMAND}`; export r; \
4610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4611 $(HOST_EXPORTS) \
b813574b 4612 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4614 done; \
22121df0 4615 echo "Doing dvi in opcodes"; \
a90ef4bf 4616 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4619 "RANLIB=$${RANLIB}" \
0c24b341 4620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4621 dvi) \
2a4cbe27
NN
4622 || exit 1
4623
a90ef4bf 4624@endif opcodes
2a4cbe27 4625
a90ef4bf
JM
4626.PHONY: maybe-pdf-opcodes pdf-opcodes
4627maybe-pdf-opcodes:
4628@if opcodes
4629maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4630
a90ef4bf
JM
4631pdf-opcodes: \
4632 configure-opcodes
4633 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4634 r=`${PWD_COMMAND}`; export r; \
4635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4636 $(HOST_EXPORTS) \
b813574b 4637 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4639 done; \
22121df0 4640 echo "Doing pdf in opcodes"; \
a90ef4bf 4641 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4644 "RANLIB=$${RANLIB}" \
0c24b341 4645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4646 pdf) \
2a4cbe27
NN
4647 || exit 1
4648
a90ef4bf 4649@endif opcodes
2a4cbe27 4650
a90ef4bf
JM
4651.PHONY: maybe-html-opcodes html-opcodes
4652maybe-html-opcodes:
4653@if opcodes
4654maybe-html-opcodes: html-opcodes
a3ca38d2 4655
a90ef4bf
JM
4656html-opcodes: \
4657 configure-opcodes
4658 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4659 r=`${PWD_COMMAND}`; export r; \
4660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4661 $(HOST_EXPORTS) \
4662 for flag in $(EXTRA_HOST_FLAGS) ; do \
4663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4664 done; \
22121df0 4665 echo "Doing html in opcodes"; \
a90ef4bf 4666 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4669 "RANLIB=$${RANLIB}" \
0c24b341 4670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4671 html) \
a3ca38d2
DD
4672 || exit 1
4673
a90ef4bf 4674@endif opcodes
a3ca38d2 4675
a90ef4bf
JM
4676.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4677maybe-TAGS-opcodes:
4678@if opcodes
4679maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4680
a90ef4bf
JM
4681TAGS-opcodes: \
4682 configure-opcodes
4683 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4684 r=`${PWD_COMMAND}`; export r; \
4685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4686 $(HOST_EXPORTS) \
4687 for flag in $(EXTRA_HOST_FLAGS) ; do \
4688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4689 done; \
22121df0 4690 echo "Doing TAGS in opcodes"; \
a90ef4bf 4691 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4694 "RANLIB=$${RANLIB}" \
0c24b341 4695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4696 TAGS) \
108a6f8e
CD
4697 || exit 1
4698
a90ef4bf 4699@endif opcodes
108a6f8e 4700
a90ef4bf
JM
4701.PHONY: maybe-install-info-opcodes install-info-opcodes
4702maybe-install-info-opcodes:
4703@if opcodes
4704maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4705
a90ef4bf
JM
4706install-info-opcodes: \
4707 configure-opcodes \
4708 info-opcodes
4709 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4710 r=`${PWD_COMMAND}`; export r; \
4711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4712 $(HOST_EXPORTS) \
b813574b 4713 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4715 done; \
22121df0 4716 echo "Doing install-info in opcodes"; \
a90ef4bf 4717 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4720 "RANLIB=$${RANLIB}" \
0c24b341 4721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4722 install-info) \
2a4cbe27
NN
4723 || exit 1
4724
a90ef4bf 4725@endif opcodes
2a4cbe27 4726
a90ef4bf
JM
4727.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4728maybe-install-pdf-opcodes:
4729@if opcodes
4730maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4731
a90ef4bf
JM
4732install-pdf-opcodes: \
4733 configure-opcodes \
4734 pdf-opcodes
4735 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4736 r=`${PWD_COMMAND}`; export r; \
4737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4738 $(HOST_EXPORTS) \
b813574b 4739 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4741 done; \
22121df0 4742 echo "Doing install-pdf in opcodes"; \
a90ef4bf 4743 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4746 "RANLIB=$${RANLIB}" \
0c24b341 4747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4748 install-pdf) \
2a4cbe27
NN
4749 || exit 1
4750
a90ef4bf 4751@endif opcodes
2a4cbe27 4752
a90ef4bf
JM
4753.PHONY: maybe-install-html-opcodes install-html-opcodes
4754maybe-install-html-opcodes:
4755@if opcodes
4756maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4757
a90ef4bf
JM
4758install-html-opcodes: \
4759 configure-opcodes \
4760 html-opcodes
4761 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4762 r=`${PWD_COMMAND}`; export r; \
4763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4764 $(HOST_EXPORTS) \
b813574b 4765 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4767 done; \
22121df0 4768 echo "Doing install-html in opcodes"; \
a90ef4bf 4769 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4772 "RANLIB=$${RANLIB}" \
0c24b341 4773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4774 install-html) \
2a4cbe27
NN
4775 || exit 1
4776
a90ef4bf 4777@endif opcodes
2a4cbe27 4778
a90ef4bf
JM
4779.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4780maybe-installcheck-opcodes:
4781@if opcodes
4782maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4783
a90ef4bf
JM
4784installcheck-opcodes: \
4785 configure-opcodes
4786 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4787 r=`${PWD_COMMAND}`; export r; \
4788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4789 $(HOST_EXPORTS) \
b813574b 4790 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4792 done; \
22121df0 4793 echo "Doing installcheck in opcodes"; \
a90ef4bf 4794 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4797 "RANLIB=$${RANLIB}" \
0c24b341 4798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4799 installcheck) \
2a4cbe27
NN
4800 || exit 1
4801
a90ef4bf 4802@endif opcodes
2a4cbe27 4803
a90ef4bf
JM
4804.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4805maybe-mostlyclean-opcodes:
4806@if opcodes
4807maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4808
a90ef4bf
JM
4809mostlyclean-opcodes:
4810 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4811 r=`${PWD_COMMAND}`; export r; \
4812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4813 $(HOST_EXPORTS) \
b813574b 4814 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4816 done; \
22121df0 4817 echo "Doing mostlyclean in opcodes"; \
a90ef4bf 4818 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4821 "RANLIB=$${RANLIB}" \
0c24b341 4822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4823 mostlyclean) \
2a4cbe27
NN
4824 || exit 1
4825
a90ef4bf 4826@endif opcodes
2a4cbe27 4827
a90ef4bf
JM
4828.PHONY: maybe-clean-opcodes clean-opcodes
4829maybe-clean-opcodes:
4830@if opcodes
4831maybe-clean-opcodes: clean-opcodes
2a4cbe27 4832
a90ef4bf
JM
4833clean-opcodes:
4834 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4835 r=`${PWD_COMMAND}`; export r; \
4836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4837 $(HOST_EXPORTS) \
b813574b 4838 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4840 done; \
22121df0 4841 echo "Doing clean in opcodes"; \
a90ef4bf 4842 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4845 "RANLIB=$${RANLIB}" \
0c24b341 4846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4847 clean) \
2a4cbe27
NN
4848 || exit 1
4849
a90ef4bf 4850@endif opcodes
2a4cbe27 4851
a90ef4bf
JM
4852.PHONY: maybe-distclean-opcodes distclean-opcodes
4853maybe-distclean-opcodes:
4854@if opcodes
4855maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4856
a90ef4bf
JM
4857distclean-opcodes:
4858 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4859 r=`${PWD_COMMAND}`; export r; \
4860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4861 $(HOST_EXPORTS) \
b813574b 4862 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4864 done; \
22121df0 4865 echo "Doing distclean in opcodes"; \
a90ef4bf 4866 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4869 "RANLIB=$${RANLIB}" \
0c24b341 4870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4871 distclean) \
2a4cbe27
NN
4872 || exit 1
4873
a90ef4bf 4874@endif opcodes
2a4cbe27 4875
a90ef4bf
JM
4876.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4877maybe-maintainer-clean-opcodes:
4878@if opcodes
4879maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4880
a90ef4bf
JM
4881maintainer-clean-opcodes:
4882 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4883 r=`${PWD_COMMAND}`; export r; \
4884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4885 $(HOST_EXPORTS) \
b813574b 4886 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4888 done; \
22121df0 4889 echo "Doing maintainer-clean in opcodes"; \
a90ef4bf 4890 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4893 "RANLIB=$${RANLIB}" \
0c24b341 4894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4895 maintainer-clean) \
2a4cbe27
NN
4896 || exit 1
4897
a90ef4bf 4898@endif opcodes
2a4cbe27 4899
2a4cbe27 4900
a7254363 4901
a90ef4bf
JM
4902.PHONY: configure-binutils maybe-configure-binutils
4903maybe-configure-binutils:
4f0ef2d8 4904@if gcc-bootstrap
a90ef4bf 4905configure-binutils: stage_current
4f0ef2d8 4906@endif gcc-bootstrap
a90ef4bf
JM
4907@if binutils
4908maybe-configure-binutils: configure-binutils
4909configure-binutils:
c52c6897
PB
4910 @r=`${PWD_COMMAND}`; export r; \
4911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4912 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
22121df0 4913 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
1f53ca9a 4914 $(HOST_EXPORTS) \
a90ef4bf
JM
4915 echo Configuring in $(HOST_SUBDIR)/binutils; \
4916 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 4917 case $(srcdir) in \
b00612cc 4918 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4919 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 4920 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4921 esac; \
1b6c0831
L
4922 module_srcdir=binutils; \
4923 $(SHELL) \
4924 $$s/$$module_srcdir/configure \
4925 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4926 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4927 --target=${target_alias} \
2a4cbe27 4928 || exit 1
a90ef4bf 4929@endif binutils
2a4cbe27 4930
a7254363
PB
4931
4932
a90ef4bf
JM
4933.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
4934maybe-configure-stage1-binutils:
4935@if binutils-bootstrap
4936maybe-configure-stage1-binutils: configure-stage1-binutils
4937configure-stage1-binutils:
c52c6897 4938 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 4939 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4940 @r=`${PWD_COMMAND}`; export r; \
4941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4942 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 4943 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 4944 $(HOST_EXPORTS) \
8ee82aff 4945 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4946 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4947 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4948 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils; \
4949 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 4950 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4951 case $(srcdir) in \
4952 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4953 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4954 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4955 esac; \
1b6c0831
L
4956 module_srcdir=binutils; \
4957 $(SHELL) $$s/$$module_srcdir/configure \
4958 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4959 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4960 --target=${target_alias} \
4961 \
1b05fbbd 4962 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 4963@endif binutils-bootstrap
d545f33b 4964
a90ef4bf
JM
4965.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
4966maybe-configure-stage2-binutils:
4967@if binutils-bootstrap
4968maybe-configure-stage2-binutils: configure-stage2-binutils
4969configure-stage2-binutils:
c52c6897 4970 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-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="$(STAGE2_TFLAGS)"; \
a90ef4bf 4975 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4976 $(HOST_EXPORTS) \
1b05fbbd 4977 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 4978 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4979 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4980 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4981 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils; \
4982 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 4983 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4984 case $(srcdir) in \
4985 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4986 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4987 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4988 esac; \
1b6c0831
L
4989 module_srcdir=binutils; \
4990 $(SHELL) $$s/$$module_srcdir/configure \
4991 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4992 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4993 --target=${target_alias} \
22121df0 4994 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 4995 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 4996@endif binutils-bootstrap
8520c408 4997
a90ef4bf
JM
4998.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
4999maybe-configure-stage3-binutils:
5000@if binutils-bootstrap
5001maybe-configure-stage3-binutils: configure-stage3-binutils
5002configure-stage3-binutils:
c52c6897 5003 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 5004 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5005 @r=`${PWD_COMMAND}`; export r; \
5006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5007 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 5008 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5009 $(HOST_EXPORTS) \
1b05fbbd 5010 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5011 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5012 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5013 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5014 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils; \
5015 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5016 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5017 case $(srcdir) in \
5018 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5019 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5020 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5021 esac; \
1b6c0831
L
5022 module_srcdir=binutils; \
5023 $(SHELL) $$s/$$module_srcdir/configure \
5024 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5025 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5026 --target=${target_alias} \
22121df0 5027 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5028 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5029@endif binutils-bootstrap
8520c408 5030
a90ef4bf
JM
5031.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5032maybe-configure-stage4-binutils:
5033@if binutils-bootstrap
5034maybe-configure-stage4-binutils: configure-stage4-binutils
5035configure-stage4-binutils:
c52c6897 5036 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5037 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5038 @r=`${PWD_COMMAND}`; export r; \
5039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5040 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5041 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5042 $(HOST_EXPORTS) \
1b05fbbd 5043 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5044 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5045 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5046 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5047 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils; \
5048 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5049 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5050 case $(srcdir) in \
5051 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5052 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5053 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5054 esac; \
1b6c0831
L
5055 module_srcdir=binutils; \
5056 $(SHELL) $$s/$$module_srcdir/configure \
5057 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5058 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5059 --target=${target_alias} \
22121df0 5060 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5061 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5062@endif binutils-bootstrap
d545f33b 5063
a90ef4bf
JM
5064.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5065maybe-configure-stageprofile-binutils:
5066@if binutils-bootstrap
5067maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5068configure-stageprofile-binutils:
c52c6897 5069 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5070 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5071 @r=`${PWD_COMMAND}`; export r; \
5072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5073 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5074 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5075 $(HOST_EXPORTS) \
1b05fbbd
AO
5076 $(POSTSTAGE1_HOST_EXPORTS) \
5077 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5078 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5079 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5080 echo Configuring stage profile in $(HOST_SUBDIR)/binutils; \
5081 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5082 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5083 case $(srcdir) in \
5084 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5085 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5086 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5087 esac; \
1b6c0831
L
5088 module_srcdir=binutils; \
5089 $(SHELL) $$s/$$module_srcdir/configure \
5090 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5091 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5092 --target=${target_alias} \
22121df0 5093 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5094 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5095@endif binutils-bootstrap
d545f33b 5096
a90ef4bf
JM
5097.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5098maybe-configure-stagefeedback-binutils:
5099@if binutils-bootstrap
5100maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5101configure-stagefeedback-binutils:
c52c6897 5102 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5103 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5104 @r=`${PWD_COMMAND}`; export r; \
5105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5106 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5107 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5108 $(HOST_EXPORTS) \
1b05fbbd
AO
5109 $(POSTSTAGE1_HOST_EXPORTS) \
5110 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5111 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5112 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5113 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils; \
5114 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5115 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5116 case $(srcdir) in \
5117 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5118 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5119 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5120 esac; \
1b6c0831
L
5121 module_srcdir=binutils; \
5122 $(SHELL) $$s/$$module_srcdir/configure \
5123 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5124 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5125 --target=${target_alias} \
22121df0 5126 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5127 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5128@endif binutils-bootstrap
d545f33b
PB
5129
5130
5131
5132
5133
a90ef4bf
JM
5134.PHONY: all-binutils maybe-all-binutils
5135maybe-all-binutils:
4f0ef2d8 5136@if gcc-bootstrap
a90ef4bf 5137all-binutils: stage_current
4f0ef2d8 5138@endif gcc-bootstrap
a90ef4bf
JM
5139@if binutils
5140TARGET-binutils=all
5141maybe-all-binutils: all-binutils
5142all-binutils: configure-binutils
c52c6897 5143 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5145 $(HOST_EXPORTS) \
a90ef4bf 5146 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5147 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5148 $(TARGET-binutils))
5149@endif binutils
2a4cbe27 5150
a7254363 5151
d545f33b 5152
a90ef4bf
JM
5153.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5154.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5155maybe-all-stage1-binutils:
5156maybe-clean-stage1-binutils:
5157@if binutils-bootstrap
5158maybe-all-stage1-binutils: all-stage1-binutils
5159all-stage1: all-stage1-binutils
5160TARGET-stage1-binutils = $(TARGET-binutils)
5161all-stage1-binutils: configure-stage1-binutils
c52c6897 5162 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5163 @r=`${PWD_COMMAND}`; export r; \
5164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5165 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5166 $(HOST_EXPORTS) \
a90ef4bf 5167 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5168 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5169 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 5170 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5171 LIBCFLAGS="$(LIBCFLAGS)" \
5172 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5173 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5174 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5175 $(EXTRA_HOST_FLAGS) \
5176 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 5177 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5178 $(TARGET-stage1-binutils)
d545f33b 5179
a90ef4bf
JM
5180maybe-clean-stage1-binutils: clean-stage1-binutils
5181clean-stage1: clean-stage1-binutils
5182clean-stage1-binutils:
9dbaa842 5183 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5184 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5185 else \
a90ef4bf 5186 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5187 $(MAKE) stage1-start; \
5188 fi; \
a90ef4bf 5189 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5190 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5191 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5192@endif binutils-bootstrap
d545f33b
PB
5193
5194
a90ef4bf
JM
5195.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5196.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5197maybe-all-stage2-binutils:
5198maybe-clean-stage2-binutils:
5199@if binutils-bootstrap
5200maybe-all-stage2-binutils: all-stage2-binutils
5201all-stage2: all-stage2-binutils
5202TARGET-stage2-binutils = $(TARGET-binutils)
5203all-stage2-binutils: configure-stage2-binutils
c52c6897 5204 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5205 @r=`${PWD_COMMAND}`; export r; \
5206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5207 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5208 $(HOST_EXPORTS) \
1f53ca9a 5209 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5210 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5211 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5212 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5213 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5214 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5215 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5216 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5217 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5218 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5219 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5220 $(TARGET-stage2-binutils)
d545f33b 5221
a90ef4bf
JM
5222maybe-clean-stage2-binutils: clean-stage2-binutils
5223clean-stage2: clean-stage2-binutils
5224clean-stage2-binutils:
9dbaa842 5225 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5226 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5227 else \
a90ef4bf 5228 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5229 $(MAKE) stage2-start; \
5230 fi; \
a90ef4bf 5231 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5232 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5233@endif binutils-bootstrap
d545f33b
PB
5234
5235
a90ef4bf
JM
5236.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5237.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5238maybe-all-stage3-binutils:
5239maybe-clean-stage3-binutils:
5240@if binutils-bootstrap
5241maybe-all-stage3-binutils: all-stage3-binutils
5242all-stage3: all-stage3-binutils
5243TARGET-stage3-binutils = $(TARGET-binutils)
5244all-stage3-binutils: configure-stage3-binutils
c52c6897 5245 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5246 @r=`${PWD_COMMAND}`; export r; \
5247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5248 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5249 $(HOST_EXPORTS) \
1f53ca9a 5250 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5251 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5252 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5253 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5254 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5255 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5256 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5257 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5258 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5259 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5260 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5261 $(TARGET-stage3-binutils)
d545f33b 5262
a90ef4bf
JM
5263maybe-clean-stage3-binutils: clean-stage3-binutils
5264clean-stage3: clean-stage3-binutils
5265clean-stage3-binutils:
9dbaa842 5266 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5267 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5268 else \
a90ef4bf 5269 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5270 $(MAKE) stage3-start; \
5271 fi; \
a90ef4bf 5272 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5273 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5274@endif binutils-bootstrap
d545f33b
PB
5275
5276
a90ef4bf
JM
5277.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5278.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5279maybe-all-stage4-binutils:
5280maybe-clean-stage4-binutils:
5281@if binutils-bootstrap
5282maybe-all-stage4-binutils: all-stage4-binutils
5283all-stage4: all-stage4-binutils
5284TARGET-stage4-binutils = $(TARGET-binutils)
5285all-stage4-binutils: configure-stage4-binutils
c52c6897 5286 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5287 @r=`${PWD_COMMAND}`; export r; \
5288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5289 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5290 $(HOST_EXPORTS) \
1f53ca9a 5291 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5292 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5293 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5294 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5295 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5296 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5297 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5298 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5299 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5300 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5301 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5302 $(TARGET-stage4-binutils)
d545f33b 5303
a90ef4bf
JM
5304maybe-clean-stage4-binutils: clean-stage4-binutils
5305clean-stage4: clean-stage4-binutils
5306clean-stage4-binutils:
9dbaa842 5307 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5308 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5309 else \
a90ef4bf 5310 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5311 $(MAKE) stage4-start; \
5312 fi; \
a90ef4bf 5313 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5314 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5315@endif binutils-bootstrap
d545f33b
PB
5316
5317
a90ef4bf
JM
5318.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5319.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5320maybe-all-stageprofile-binutils:
5321maybe-clean-stageprofile-binutils:
5322@if binutils-bootstrap
5323maybe-all-stageprofile-binutils: all-stageprofile-binutils
5324all-stageprofile: all-stageprofile-binutils
5325TARGET-stageprofile-binutils = $(TARGET-binutils)
5326all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5327 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5328 @r=`${PWD_COMMAND}`; export r; \
5329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5330 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5331 $(HOST_EXPORTS) \
1f53ca9a 5332 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5333 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5334 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5335 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5336 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5337 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5338 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5339 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5340 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5341 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5342 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5343 $(TARGET-stageprofile-binutils)
d545f33b 5344
a90ef4bf
JM
5345maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5346clean-stageprofile: clean-stageprofile-binutils
5347clean-stageprofile-binutils:
9dbaa842 5348 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5349 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5350 else \
a90ef4bf 5351 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5352 $(MAKE) stageprofile-start; \
5353 fi; \
a90ef4bf 5354 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5355 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5356@endif binutils-bootstrap
d545f33b
PB
5357
5358
a90ef4bf
JM
5359.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5360.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5361maybe-all-stagefeedback-binutils:
5362maybe-clean-stagefeedback-binutils:
5363@if binutils-bootstrap
5364maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5365all-stagefeedback: all-stagefeedback-binutils
5366TARGET-stagefeedback-binutils = $(TARGET-binutils)
5367all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5368 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5369 @r=`${PWD_COMMAND}`; export r; \
5370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5371 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5372 $(HOST_EXPORTS) \
1f53ca9a 5373 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5374 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5375 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5376 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5377 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5378 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5379 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5380 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5381 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5382 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5383 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5384 $(TARGET-stagefeedback-binutils)
d545f33b 5385
a90ef4bf
JM
5386maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5387clean-stagefeedback: clean-stagefeedback-binutils
5388clean-stagefeedback-binutils:
9dbaa842 5389 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5390 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5391 else \
a90ef4bf 5392 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5393 $(MAKE) stagefeedback-start; \
5394 fi; \
a90ef4bf 5395 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5396 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5397@endif binutils-bootstrap
d545f33b
PB
5398
5399
5400
5401
5402
a90ef4bf
JM
5403.PHONY: check-binutils maybe-check-binutils
5404maybe-check-binutils:
5405@if binutils
5406maybe-check-binutils: check-binutils
2a4cbe27 5407
a90ef4bf 5408check-binutils:
0aed8855 5409 @: $(MAKE); $(unstage)
4fa63067 5410 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5412 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 5413 (cd $(HOST_SUBDIR)/binutils && \
f91ca6bc 5414 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 5415
a90ef4bf 5416@endif binutils
2a4cbe27 5417
a90ef4bf
JM
5418.PHONY: install-binutils maybe-install-binutils
5419maybe-install-binutils:
5420@if binutils
5421maybe-install-binutils: install-binutils
2a4cbe27 5422
a90ef4bf 5423install-binutils: installdirs
0aed8855 5424 @: $(MAKE); $(unstage)
4fa63067 5425 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5427 $(HOST_EXPORTS) \
a90ef4bf 5428 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5429 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5430
a90ef4bf 5431@endif binutils
2a4cbe27 5432
a90ef4bf
JM
5433.PHONY: install-strip-binutils maybe-install-strip-binutils
5434maybe-install-strip-binutils:
5435@if binutils
5436maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5437
a90ef4bf 5438install-strip-binutils: installdirs
9b980aa1
RW
5439 @: $(MAKE); $(unstage)
5440 @r=`${PWD_COMMAND}`; export r; \
5441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5442 $(HOST_EXPORTS) \
a90ef4bf 5443 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5444 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5445
a90ef4bf 5446@endif binutils
9b980aa1 5447
56a8fe78 5448# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5449
a90ef4bf
JM
5450.PHONY: maybe-info-binutils info-binutils
5451maybe-info-binutils:
5452@if binutils
5453maybe-info-binutils: info-binutils
4fa63067 5454
a90ef4bf
JM
5455info-binutils: \
5456 configure-binutils
5457 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5458 r=`${PWD_COMMAND}`; export r; \
5459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5460 $(HOST_EXPORTS) \
b813574b 5461 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5463 done; \
22121df0 5464 echo "Doing info in binutils"; \
a90ef4bf 5465 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5468 "RANLIB=$${RANLIB}" \
0c24b341 5469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5470 info) \
2a4cbe27
NN
5471 || exit 1
5472
a90ef4bf 5473@endif binutils
2a4cbe27 5474
a90ef4bf
JM
5475.PHONY: maybe-dvi-binutils dvi-binutils
5476maybe-dvi-binutils:
5477@if binutils
5478maybe-dvi-binutils: dvi-binutils
2a4cbe27 5479
a90ef4bf
JM
5480dvi-binutils: \
5481 configure-binutils
5482 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5483 r=`${PWD_COMMAND}`; export r; \
5484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5485 $(HOST_EXPORTS) \
b813574b 5486 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5488 done; \
22121df0 5489 echo "Doing dvi in binutils"; \
a90ef4bf 5490 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5493 "RANLIB=$${RANLIB}" \
0c24b341 5494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5495 dvi) \
2a4cbe27
NN
5496 || exit 1
5497
a90ef4bf 5498@endif binutils
2a4cbe27 5499
a90ef4bf
JM
5500.PHONY: maybe-pdf-binutils pdf-binutils
5501maybe-pdf-binutils:
5502@if binutils
5503maybe-pdf-binutils: pdf-binutils
56a8fe78 5504
a90ef4bf
JM
5505pdf-binutils: \
5506 configure-binutils
5507 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5508 r=`${PWD_COMMAND}`; export r; \
5509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5510 $(HOST_EXPORTS) \
5511 for flag in $(EXTRA_HOST_FLAGS) ; do \
5512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5513 done; \
22121df0 5514 echo "Doing pdf in binutils"; \
a90ef4bf 5515 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5518 "RANLIB=$${RANLIB}" \
0c24b341 5519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5520 pdf) \
5521 || exit 1
5522
a90ef4bf 5523@endif binutils
56a8fe78 5524
a90ef4bf
JM
5525.PHONY: maybe-html-binutils html-binutils
5526maybe-html-binutils:
5527@if binutils
5528maybe-html-binutils: html-binutils
6d389afc 5529
a90ef4bf
JM
5530html-binutils: \
5531 configure-binutils
5532 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5533 r=`${PWD_COMMAND}`; export r; \
5534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5535 $(HOST_EXPORTS) \
5536 for flag in $(EXTRA_HOST_FLAGS) ; do \
5537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5538 done; \
22121df0 5539 echo "Doing html in binutils"; \
a90ef4bf 5540 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5543 "RANLIB=$${RANLIB}" \
0c24b341 5544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5545 html) \
5546 || exit 1
5547
a90ef4bf 5548@endif binutils
6d389afc 5549
a90ef4bf
JM
5550.PHONY: maybe-TAGS-binutils TAGS-binutils
5551maybe-TAGS-binutils:
5552@if binutils
5553maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5554
a90ef4bf
JM
5555TAGS-binutils: \
5556 configure-binutils
5557 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5558 r=`${PWD_COMMAND}`; export r; \
5559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5560 $(HOST_EXPORTS) \
b813574b 5561 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5563 done; \
22121df0 5564 echo "Doing TAGS in binutils"; \
a90ef4bf 5565 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5568 "RANLIB=$${RANLIB}" \
0c24b341 5569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5570 TAGS) \
2a4cbe27
NN
5571 || exit 1
5572
a90ef4bf 5573@endif binutils
2a4cbe27 5574
a90ef4bf
JM
5575.PHONY: maybe-install-info-binutils install-info-binutils
5576maybe-install-info-binutils:
5577@if binutils
5578maybe-install-info-binutils: install-info-binutils
2a4cbe27 5579
a90ef4bf
JM
5580install-info-binutils: \
5581 configure-binutils \
5582 info-binutils
5583 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5584 r=`${PWD_COMMAND}`; export r; \
5585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5586 $(HOST_EXPORTS) \
b813574b 5587 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5589 done; \
22121df0 5590 echo "Doing install-info in binutils"; \
a90ef4bf 5591 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5594 "RANLIB=$${RANLIB}" \
0c24b341 5595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5596 install-info) \
2a4cbe27
NN
5597 || exit 1
5598
a90ef4bf 5599@endif binutils
2a4cbe27 5600
a90ef4bf
JM
5601.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5602maybe-install-pdf-binutils:
5603@if binutils
5604maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5605
a90ef4bf
JM
5606install-pdf-binutils: \
5607 configure-binutils \
5608 pdf-binutils
5609 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5610 r=`${PWD_COMMAND}`; export r; \
5611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5612 $(HOST_EXPORTS) \
5613 for flag in $(EXTRA_HOST_FLAGS) ; do \
5614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5615 done; \
22121df0 5616 echo "Doing install-pdf in binutils"; \
a90ef4bf 5617 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5620 "RANLIB=$${RANLIB}" \
0c24b341 5621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5622 install-pdf) \
5623 || exit 1
5624
a90ef4bf 5625@endif binutils
a3ca38d2 5626
a90ef4bf
JM
5627.PHONY: maybe-install-html-binutils install-html-binutils
5628maybe-install-html-binutils:
5629@if binutils
5630maybe-install-html-binutils: install-html-binutils
108a6f8e 5631
a90ef4bf
JM
5632install-html-binutils: \
5633 configure-binutils \
5634 html-binutils
5635 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5636 r=`${PWD_COMMAND}`; export r; \
5637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5638 $(HOST_EXPORTS) \
5639 for flag in $(EXTRA_HOST_FLAGS) ; do \
5640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5641 done; \
22121df0 5642 echo "Doing install-html in binutils"; \
a90ef4bf 5643 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
5644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5646 "RANLIB=$${RANLIB}" \
0c24b341 5647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
5648 install-html) \
5649 || exit 1
5650
a90ef4bf 5651@endif binutils
108a6f8e 5652
a90ef4bf
JM
5653.PHONY: maybe-installcheck-binutils installcheck-binutils
5654maybe-installcheck-binutils:
5655@if binutils
5656maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5657
a90ef4bf
JM
5658installcheck-binutils: \
5659 configure-binutils
5660 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5661 r=`${PWD_COMMAND}`; export r; \
5662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5663 $(HOST_EXPORTS) \
b813574b 5664 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5666 done; \
22121df0 5667 echo "Doing installcheck in binutils"; \
a90ef4bf 5668 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5671 "RANLIB=$${RANLIB}" \
0c24b341 5672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5673 installcheck) \
2a4cbe27
NN
5674 || exit 1
5675
a90ef4bf 5676@endif binutils
2a4cbe27 5677
a90ef4bf
JM
5678.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5679maybe-mostlyclean-binutils:
5680@if binutils
5681maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5682
a90ef4bf
JM
5683mostlyclean-binutils:
5684 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5685 r=`${PWD_COMMAND}`; export r; \
5686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5687 $(HOST_EXPORTS) \
b813574b 5688 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5690 done; \
22121df0 5691 echo "Doing mostlyclean in binutils"; \
a90ef4bf 5692 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5695 "RANLIB=$${RANLIB}" \
0c24b341 5696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5697 mostlyclean) \
2a4cbe27
NN
5698 || exit 1
5699
a90ef4bf 5700@endif binutils
2a4cbe27 5701
a90ef4bf
JM
5702.PHONY: maybe-clean-binutils clean-binutils
5703maybe-clean-binutils:
5704@if binutils
5705maybe-clean-binutils: clean-binutils
2a4cbe27 5706
a90ef4bf
JM
5707clean-binutils:
5708 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5709 r=`${PWD_COMMAND}`; export r; \
5710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5711 $(HOST_EXPORTS) \
b813574b 5712 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5714 done; \
22121df0 5715 echo "Doing clean in binutils"; \
a90ef4bf 5716 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5719 "RANLIB=$${RANLIB}" \
0c24b341 5720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5721 clean) \
2a4cbe27
NN
5722 || exit 1
5723
a90ef4bf 5724@endif binutils
2a4cbe27 5725
a90ef4bf
JM
5726.PHONY: maybe-distclean-binutils distclean-binutils
5727maybe-distclean-binutils:
5728@if binutils
5729maybe-distclean-binutils: distclean-binutils
2a4cbe27 5730
a90ef4bf
JM
5731distclean-binutils:
5732 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5733 r=`${PWD_COMMAND}`; export r; \
5734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5735 $(HOST_EXPORTS) \
b813574b 5736 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5738 done; \
22121df0 5739 echo "Doing distclean in binutils"; \
a90ef4bf 5740 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5743 "RANLIB=$${RANLIB}" \
0c24b341 5744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5745 distclean) \
2a4cbe27
NN
5746 || exit 1
5747
a90ef4bf 5748@endif binutils
2a4cbe27 5749
a90ef4bf
JM
5750.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5751maybe-maintainer-clean-binutils:
5752@if binutils
5753maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5754
a90ef4bf
JM
5755maintainer-clean-binutils:
5756 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5757 r=`${PWD_COMMAND}`; export r; \
5758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5759 $(HOST_EXPORTS) \
b813574b 5760 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5762 done; \
22121df0 5763 echo "Doing maintainer-clean in binutils"; \
a90ef4bf 5764 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5767 "RANLIB=$${RANLIB}" \
0c24b341 5768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5769 maintainer-clean) \
a2592b1b
DD
5770 || exit 1
5771
a90ef4bf 5772@endif binutils
a2592b1b 5773
2a4cbe27 5774
a7254363 5775
a90ef4bf
JM
5776.PHONY: configure-bison maybe-configure-bison
5777maybe-configure-bison:
4f0ef2d8 5778@if gcc-bootstrap
a90ef4bf 5779configure-bison: stage_current
4f0ef2d8 5780@endif gcc-bootstrap
a90ef4bf
JM
5781@if bison
5782maybe-configure-bison: configure-bison
5783configure-bison:
5784 @: $(MAKE); $(unstage)
c52c6897
PB
5785 @r=`${PWD_COMMAND}`; export r; \
5786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 5787 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
22121df0 5788 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison; \
1f53ca9a 5789 $(HOST_EXPORTS) \
a90ef4bf
JM
5790 echo Configuring in $(HOST_SUBDIR)/bison; \
5791 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5792 case $(srcdir) in \
b00612cc 5793 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5794 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5795 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5796 esac; \
1b6c0831
L
5797 module_srcdir=bison; \
5798 $(SHELL) \
5799 $$s/$$module_srcdir/configure \
5800 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5801 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5802 --target=${target_alias} \
4fa63067 5803 || exit 1
a90ef4bf 5804@endif bison
2a4cbe27 5805
a7254363
PB
5806
5807
d545f33b 5808
8520c408 5809
a90ef4bf
JM
5810.PHONY: all-bison maybe-all-bison
5811maybe-all-bison:
5812@if gcc-bootstrap
5813all-bison: stage_current
5814@endif gcc-bootstrap
5815@if bison
5816TARGET-bison=all
5817maybe-all-bison: all-bison
5818all-bison: configure-bison
5819 @: $(MAKE); $(unstage)
c52c6897
PB
5820 @r=`${PWD_COMMAND}`; export r; \
5821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5822 $(HOST_EXPORTS) \
5823 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5824 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5825 $(TARGET-bison))
5826@endif bison
8520c408 5827
d545f33b 5828
d545f33b 5829
d545f33b 5830
a90ef4bf
JM
5831.PHONY: check-bison maybe-check-bison
5832maybe-check-bison:
5833@if bison
5834maybe-check-bison: check-bison
d545f33b 5835
a90ef4bf
JM
5836# This module is only tested in a native toolchain.
5837check-bison:
5838 @: $(MAKE); $(unstage)
22121df0 5839 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
5840 r=`${PWD_COMMAND}`; export r; \
5841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5842 $(HOST_EXPORTS) \
a90ef4bf 5843 (cd $(HOST_SUBDIR)/bison && \
f91ca6bc 5844 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 5845 fi
d545f33b 5846
a90ef4bf 5847@endif bison
d545f33b 5848
a90ef4bf
JM
5849.PHONY: install-bison maybe-install-bison
5850maybe-install-bison:
5851@if bison
5852maybe-install-bison: install-bison
d545f33b 5853
a90ef4bf
JM
5854install-bison: installdirs
5855 @: $(MAKE); $(unstage)
c52c6897 5856 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5858 $(HOST_EXPORTS) \
5859 (cd $(HOST_SUBDIR)/bison && \
5860 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5861
a90ef4bf 5862@endif bison
a7254363 5863
a90ef4bf
JM
5864.PHONY: install-strip-bison maybe-install-strip-bison
5865maybe-install-strip-bison:
5866@if bison
5867maybe-install-strip-bison: install-strip-bison
d545f33b 5868
a90ef4bf
JM
5869install-strip-bison: installdirs
5870 @: $(MAKE); $(unstage)
d545f33b
PB
5871 @r=`${PWD_COMMAND}`; export r; \
5872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5873 $(HOST_EXPORTS) \
5874 (cd $(HOST_SUBDIR)/bison && \
5875 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 5876
a90ef4bf 5877@endif bison
d545f33b 5878
a90ef4bf 5879# Other targets (info, dvi, pdf, etc.)
d545f33b 5880
a90ef4bf
JM
5881.PHONY: maybe-info-bison info-bison
5882maybe-info-bison:
5883@if bison
5884maybe-info-bison: info-bison
5885
5886info-bison: \
5887 configure-bison
5888 @: $(MAKE); $(unstage)
5889 @[ -f ./bison/Makefile ] || exit 0; \
5890 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5892 $(HOST_EXPORTS) \
a90ef4bf
JM
5893 for flag in $(EXTRA_HOST_FLAGS) ; do \
5894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5895 done; \
22121df0 5896 echo "Doing info in bison"; \
a90ef4bf
JM
5897 (cd $(HOST_SUBDIR)/bison && \
5898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5900 "RANLIB=$${RANLIB}" \
5901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5902 info) \
5903 || exit 1
d545f33b 5904
a90ef4bf 5905@endif bison
d545f33b 5906
a90ef4bf
JM
5907.PHONY: maybe-dvi-bison dvi-bison
5908maybe-dvi-bison:
5909@if bison
5910maybe-dvi-bison: dvi-bison
d545f33b 5911
a90ef4bf
JM
5912dvi-bison: \
5913 configure-bison
5914 @: $(MAKE); $(unstage)
5915 @[ -f ./bison/Makefile ] || exit 0; \
5916 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5918 $(HOST_EXPORTS) \
a90ef4bf
JM
5919 for flag in $(EXTRA_HOST_FLAGS) ; do \
5920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5921 done; \
22121df0 5922 echo "Doing dvi in bison"; \
a90ef4bf
JM
5923 (cd $(HOST_SUBDIR)/bison && \
5924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5926 "RANLIB=$${RANLIB}" \
5927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5928 dvi) \
5929 || exit 1
d545f33b 5930
a90ef4bf 5931@endif bison
d545f33b 5932
a90ef4bf
JM
5933.PHONY: maybe-pdf-bison pdf-bison
5934maybe-pdf-bison:
5935@if bison
5936maybe-pdf-bison: pdf-bison
d545f33b 5937
a90ef4bf
JM
5938pdf-bison: \
5939 configure-bison
5940 @: $(MAKE); $(unstage)
5941 @[ -f ./bison/Makefile ] || exit 0; \
5942 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5944 $(HOST_EXPORTS) \
a90ef4bf
JM
5945 for flag in $(EXTRA_HOST_FLAGS) ; do \
5946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5947 done; \
22121df0 5948 echo "Doing pdf in bison"; \
a90ef4bf
JM
5949 (cd $(HOST_SUBDIR)/bison && \
5950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5952 "RANLIB=$${RANLIB}" \
5953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5954 pdf) \
5955 || exit 1
d545f33b 5956
a90ef4bf 5957@endif bison
d545f33b 5958
a90ef4bf
JM
5959.PHONY: maybe-html-bison html-bison
5960maybe-html-bison:
5961@if bison
5962maybe-html-bison: html-bison
d545f33b 5963
a90ef4bf
JM
5964html-bison: \
5965 configure-bison
5966 @: $(MAKE); $(unstage)
5967 @[ -f ./bison/Makefile ] || exit 0; \
5968 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5970 $(HOST_EXPORTS) \
a90ef4bf
JM
5971 for flag in $(EXTRA_HOST_FLAGS) ; do \
5972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5973 done; \
22121df0 5974 echo "Doing html in bison"; \
a90ef4bf
JM
5975 (cd $(HOST_SUBDIR)/bison && \
5976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5978 "RANLIB=$${RANLIB}" \
5979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5980 html) \
5981 || exit 1
d545f33b 5982
a90ef4bf 5983@endif bison
2a4cbe27 5984
a90ef4bf
JM
5985.PHONY: maybe-TAGS-bison TAGS-bison
5986maybe-TAGS-bison:
5987@if bison
5988maybe-TAGS-bison: TAGS-bison
2a4cbe27 5989
a90ef4bf
JM
5990TAGS-bison: \
5991 configure-bison
0aed8855 5992 @: $(MAKE); $(unstage)
a90ef4bf
JM
5993 @[ -f ./bison/Makefile ] || exit 0; \
5994 r=`${PWD_COMMAND}`; export r; \
4fa63067 5995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5996 $(HOST_EXPORTS) \
a90ef4bf
JM
5997 for flag in $(EXTRA_HOST_FLAGS) ; do \
5998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5999 done; \
22121df0 6000 echo "Doing TAGS in bison"; \
a90ef4bf
JM
6001 (cd $(HOST_SUBDIR)/bison && \
6002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6004 "RANLIB=$${RANLIB}" \
6005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6006 TAGS) \
6007 || exit 1
4fa63067 6008
a90ef4bf 6009@endif bison
4fa63067 6010
a90ef4bf
JM
6011.PHONY: maybe-install-info-bison install-info-bison
6012maybe-install-info-bison:
6013@if bison
6014maybe-install-info-bison: install-info-bison
9b980aa1 6015
a90ef4bf
JM
6016install-info-bison: \
6017 configure-bison \
6018 info-bison
9b980aa1 6019 @: $(MAKE); $(unstage)
a90ef4bf 6020 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6021 r=`${PWD_COMMAND}`; export r; \
6022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6023 $(HOST_EXPORTS) \
b813574b 6024 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6026 done; \
22121df0 6027 echo "Doing install-info in bison"; \
a90ef4bf 6028 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6031 "RANLIB=$${RANLIB}" \
0c24b341 6032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6033 install-info) \
2a4cbe27
NN
6034 || exit 1
6035
a90ef4bf 6036@endif bison
2a4cbe27 6037
a90ef4bf
JM
6038.PHONY: maybe-install-pdf-bison install-pdf-bison
6039maybe-install-pdf-bison:
6040@if bison
6041maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6042
a90ef4bf
JM
6043install-pdf-bison: \
6044 configure-bison \
6045 pdf-bison
6046 @: $(MAKE); $(unstage)
6047 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6048 r=`${PWD_COMMAND}`; export r; \
6049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6050 $(HOST_EXPORTS) \
b813574b 6051 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6053 done; \
22121df0 6054 echo "Doing install-pdf in bison"; \
a90ef4bf 6055 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6058 "RANLIB=$${RANLIB}" \
0c24b341 6059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6060 install-pdf) \
2a4cbe27
NN
6061 || exit 1
6062
a90ef4bf 6063@endif bison
2a4cbe27 6064
a90ef4bf
JM
6065.PHONY: maybe-install-html-bison install-html-bison
6066maybe-install-html-bison:
6067@if bison
6068maybe-install-html-bison: install-html-bison
56a8fe78 6069
a90ef4bf
JM
6070install-html-bison: \
6071 configure-bison \
6072 html-bison
6073 @: $(MAKE); $(unstage)
6074 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6075 r=`${PWD_COMMAND}`; export r; \
6076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6077 $(HOST_EXPORTS) \
6078 for flag in $(EXTRA_HOST_FLAGS) ; do \
6079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6080 done; \
22121df0 6081 echo "Doing install-html in bison"; \
a90ef4bf 6082 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6085 "RANLIB=$${RANLIB}" \
0c24b341 6086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6087 install-html) \
56a8fe78
DD
6088 || exit 1
6089
a90ef4bf 6090@endif bison
56a8fe78 6091
a90ef4bf
JM
6092.PHONY: maybe-installcheck-bison installcheck-bison
6093maybe-installcheck-bison:
6094@if bison
6095maybe-installcheck-bison: installcheck-bison
6d389afc 6096
a90ef4bf
JM
6097installcheck-bison: \
6098 configure-bison
6099 @: $(MAKE); $(unstage)
6100 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6101 r=`${PWD_COMMAND}`; export r; \
6102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6103 $(HOST_EXPORTS) \
6104 for flag in $(EXTRA_HOST_FLAGS) ; do \
6105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6106 done; \
22121df0 6107 echo "Doing installcheck in bison"; \
a90ef4bf 6108 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6111 "RANLIB=$${RANLIB}" \
0c24b341 6112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6113 installcheck) \
6d389afc
MS
6114 || exit 1
6115
a90ef4bf 6116@endif bison
6d389afc 6117
a90ef4bf
JM
6118.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6119maybe-mostlyclean-bison:
6120@if bison
6121maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6122
a90ef4bf
JM
6123mostlyclean-bison:
6124 @: $(MAKE); $(unstage)
6125 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6126 r=`${PWD_COMMAND}`; export r; \
6127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6128 $(HOST_EXPORTS) \
b813574b 6129 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6131 done; \
22121df0 6132 echo "Doing mostlyclean in bison"; \
a90ef4bf 6133 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6136 "RANLIB=$${RANLIB}" \
0c24b341 6137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6138 mostlyclean) \
2a4cbe27
NN
6139 || exit 1
6140
a90ef4bf 6141@endif bison
2a4cbe27 6142
a90ef4bf
JM
6143.PHONY: maybe-clean-bison clean-bison
6144maybe-clean-bison:
6145@if bison
6146maybe-clean-bison: clean-bison
2a4cbe27 6147
a90ef4bf
JM
6148clean-bison:
6149 @: $(MAKE); $(unstage)
6150 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6151 r=`${PWD_COMMAND}`; export r; \
6152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6153 $(HOST_EXPORTS) \
b813574b 6154 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6156 done; \
22121df0 6157 echo "Doing clean in bison"; \
a90ef4bf 6158 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6161 "RANLIB=$${RANLIB}" \
0c24b341 6162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6163 clean) \
2a4cbe27
NN
6164 || exit 1
6165
a90ef4bf 6166@endif bison
2a4cbe27 6167
a90ef4bf
JM
6168.PHONY: maybe-distclean-bison distclean-bison
6169maybe-distclean-bison:
6170@if bison
6171maybe-distclean-bison: distclean-bison
a3ca38d2 6172
a90ef4bf
JM
6173distclean-bison:
6174 @: $(MAKE); $(unstage)
6175 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
6176 r=`${PWD_COMMAND}`; export r; \
6177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6178 $(HOST_EXPORTS) \
6179 for flag in $(EXTRA_HOST_FLAGS) ; do \
6180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6181 done; \
22121df0 6182 echo "Doing distclean in bison"; \
a90ef4bf 6183 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
6184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6186 "RANLIB=$${RANLIB}" \
0c24b341 6187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6188 distclean) \
a3ca38d2
DD
6189 || exit 1
6190
a90ef4bf 6191@endif bison
a3ca38d2 6192
a90ef4bf
JM
6193.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6194maybe-maintainer-clean-bison:
6195@if bison
6196maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6197
a90ef4bf
JM
6198maintainer-clean-bison:
6199 @: $(MAKE); $(unstage)
6200 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6201 r=`${PWD_COMMAND}`; export r; \
6202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6203 $(HOST_EXPORTS) \
6204 for flag in $(EXTRA_HOST_FLAGS) ; do \
6205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6206 done; \
22121df0 6207 echo "Doing maintainer-clean in bison"; \
a90ef4bf 6208 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6211 "RANLIB=$${RANLIB}" \
0c24b341 6212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6213 maintainer-clean) \
108a6f8e
CD
6214 || exit 1
6215
a90ef4bf 6216@endif bison
108a6f8e 6217
2a4cbe27 6218
a90ef4bf
JM
6219
6220.PHONY: configure-cgen maybe-configure-cgen
6221maybe-configure-cgen:
6222@if gcc-bootstrap
6223configure-cgen: stage_current
6224@endif gcc-bootstrap
6225@if cgen
6226maybe-configure-cgen: configure-cgen
6227configure-cgen:
6228 @: $(MAKE); $(unstage)
6229 @r=`${PWD_COMMAND}`; export r; \
6230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6231 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
22121df0 6232 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen; \
a90ef4bf
JM
6233 $(HOST_EXPORTS) \
6234 echo Configuring in $(HOST_SUBDIR)/cgen; \
6235 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6236 case $(srcdir) in \
6237 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6238 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6239 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6240 esac; \
1b6c0831
L
6241 module_srcdir=cgen; \
6242 $(SHELL) \
6243 $$s/$$module_srcdir/configure \
6244 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 6245 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6246 --target=${target_alias} \
a90ef4bf
JM
6247 || exit 1
6248@endif cgen
6249
6250
6251
6252
6253
6254.PHONY: all-cgen maybe-all-cgen
6255maybe-all-cgen:
6256@if gcc-bootstrap
6257all-cgen: stage_current
6258@endif gcc-bootstrap
6259@if cgen
6260TARGET-cgen=all
6261maybe-all-cgen: all-cgen
6262all-cgen: configure-cgen
6263 @: $(MAKE); $(unstage)
6264 @r=`${PWD_COMMAND}`; export r; \
6265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6266 $(HOST_EXPORTS) \
6267 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6268 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6269 $(TARGET-cgen))
6270@endif cgen
6271
6272
6273
6274
6275.PHONY: check-cgen maybe-check-cgen
6276maybe-check-cgen:
6277@if cgen
6278maybe-check-cgen: check-cgen
6279
6280check-cgen:
6281 @: $(MAKE); $(unstage)
6282 @r=`${PWD_COMMAND}`; export r; \
6283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6284 $(HOST_EXPORTS) \
a90ef4bf
JM
6285 (cd $(HOST_SUBDIR)/cgen && \
6286 $(MAKE) $(FLAGS_TO_PASS) check)
6287
6288@endif cgen
6289
6290.PHONY: install-cgen maybe-install-cgen
6291maybe-install-cgen:
6292@if cgen
6293maybe-install-cgen: install-cgen
6294
6295install-cgen: installdirs
6296 @: $(MAKE); $(unstage)
6297 @r=`${PWD_COMMAND}`; export r; \
6298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6299 $(HOST_EXPORTS) \
6300 (cd $(HOST_SUBDIR)/cgen && \
6301 $(MAKE) $(FLAGS_TO_PASS) install)
6302
6303@endif cgen
6304
6305.PHONY: install-strip-cgen maybe-install-strip-cgen
6306maybe-install-strip-cgen:
6307@if cgen
6308maybe-install-strip-cgen: install-strip-cgen
6309
6310install-strip-cgen: installdirs
6311 @: $(MAKE); $(unstage)
6312 @r=`${PWD_COMMAND}`; export r; \
6313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6314 $(HOST_EXPORTS) \
6315 (cd $(HOST_SUBDIR)/cgen && \
6316 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6317
6318@endif cgen
6319
6320# Other targets (info, dvi, pdf, etc.)
6321
6322.PHONY: maybe-info-cgen info-cgen
6323maybe-info-cgen:
6324@if cgen
6325maybe-info-cgen: info-cgen
6326
6327info-cgen: \
6328 configure-cgen
6329 @: $(MAKE); $(unstage)
6330 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6331 r=`${PWD_COMMAND}`; export r; \
6332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6333 $(HOST_EXPORTS) \
b813574b 6334 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6336 done; \
22121df0 6337 echo "Doing info in cgen"; \
a90ef4bf 6338 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6341 "RANLIB=$${RANLIB}" \
0c24b341 6342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6343 info) \
2a4cbe27
NN
6344 || exit 1
6345
a90ef4bf 6346@endif cgen
2a4cbe27 6347
a90ef4bf
JM
6348.PHONY: maybe-dvi-cgen dvi-cgen
6349maybe-dvi-cgen:
6350@if cgen
6351maybe-dvi-cgen: dvi-cgen
2a4cbe27 6352
a90ef4bf
JM
6353dvi-cgen: \
6354 configure-cgen
6355 @: $(MAKE); $(unstage)
6356 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6357 r=`${PWD_COMMAND}`; export r; \
6358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6359 $(HOST_EXPORTS) \
b813574b 6360 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6362 done; \
22121df0 6363 echo "Doing dvi in cgen"; \
a90ef4bf 6364 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6367 "RANLIB=$${RANLIB}" \
0c24b341 6368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6369 dvi) \
2a4cbe27
NN
6370 || exit 1
6371
a90ef4bf 6372@endif cgen
2a4cbe27 6373
a90ef4bf
JM
6374.PHONY: maybe-pdf-cgen pdf-cgen
6375maybe-pdf-cgen:
6376@if cgen
6377maybe-pdf-cgen: pdf-cgen
2a4cbe27 6378
a90ef4bf
JM
6379pdf-cgen: \
6380 configure-cgen
6381 @: $(MAKE); $(unstage)
6382 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6383 r=`${PWD_COMMAND}`; export r; \
6384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6385 $(HOST_EXPORTS) \
b813574b 6386 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6388 done; \
22121df0 6389 echo "Doing pdf in cgen"; \
a90ef4bf 6390 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6393 "RANLIB=$${RANLIB}" \
0c24b341 6394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6395 pdf) \
2a4cbe27
NN
6396 || exit 1
6397
a90ef4bf 6398@endif cgen
2a4cbe27 6399
a90ef4bf
JM
6400.PHONY: maybe-html-cgen html-cgen
6401maybe-html-cgen:
6402@if cgen
6403maybe-html-cgen: html-cgen
2a4cbe27 6404
a90ef4bf
JM
6405html-cgen: \
6406 configure-cgen
6407 @: $(MAKE); $(unstage)
6408 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6409 r=`${PWD_COMMAND}`; export r; \
6410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6411 $(HOST_EXPORTS) \
b813574b 6412 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6414 done; \
22121df0 6415 echo "Doing html in cgen"; \
a90ef4bf 6416 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6419 "RANLIB=$${RANLIB}" \
0c24b341 6420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6421 html) \
2a4cbe27
NN
6422 || exit 1
6423
a90ef4bf 6424@endif cgen
2a4cbe27 6425
a90ef4bf
JM
6426.PHONY: maybe-TAGS-cgen TAGS-cgen
6427maybe-TAGS-cgen:
6428@if cgen
6429maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6430
a90ef4bf
JM
6431TAGS-cgen: \
6432 configure-cgen
6433 @: $(MAKE); $(unstage)
6434 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6435 r=`${PWD_COMMAND}`; export r; \
6436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6437 $(HOST_EXPORTS) \
b813574b 6438 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6440 done; \
22121df0 6441 echo "Doing TAGS in cgen"; \
a90ef4bf 6442 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6445 "RANLIB=$${RANLIB}" \
0c24b341 6446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6447 TAGS) \
2a4cbe27
NN
6448 || exit 1
6449
a90ef4bf 6450@endif cgen
2a4cbe27 6451
a90ef4bf
JM
6452.PHONY: maybe-install-info-cgen install-info-cgen
6453maybe-install-info-cgen:
6454@if cgen
6455maybe-install-info-cgen: install-info-cgen
2a4cbe27 6456
a90ef4bf
JM
6457install-info-cgen: \
6458 configure-cgen \
6459 info-cgen
6460 @: $(MAKE); $(unstage)
6461 @[ -f ./cgen/Makefile ] || exit 0; \
6462 r=`${PWD_COMMAND}`; export r; \
6463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6464 $(HOST_EXPORTS) \
6465 for flag in $(EXTRA_HOST_FLAGS) ; do \
6466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6467 done; \
22121df0 6468 echo "Doing install-info in cgen"; \
a90ef4bf
JM
6469 (cd $(HOST_SUBDIR)/cgen && \
6470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6472 "RANLIB=$${RANLIB}" \
6473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6474 install-info) \
6475 || exit 1
a7254363 6476
a90ef4bf
JM
6477@endif cgen
6478
6479.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6480maybe-install-pdf-cgen:
6481@if cgen
6482maybe-install-pdf-cgen: install-pdf-cgen
6483
6484install-pdf-cgen: \
6485 configure-cgen \
6486 pdf-cgen
6487 @: $(MAKE); $(unstage)
6488 @[ -f ./cgen/Makefile ] || exit 0; \
6489 r=`${PWD_COMMAND}`; export r; \
c52c6897 6490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6491 $(HOST_EXPORTS) \
6492 for flag in $(EXTRA_HOST_FLAGS) ; do \
6493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6494 done; \
22121df0 6495 echo "Doing install-pdf in cgen"; \
a90ef4bf
JM
6496 (cd $(HOST_SUBDIR)/cgen && \
6497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6499 "RANLIB=$${RANLIB}" \
6500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6501 install-pdf) \
2a4cbe27
NN
6502 || exit 1
6503
a90ef4bf 6504@endif cgen
a7254363 6505
a90ef4bf
JM
6506.PHONY: maybe-install-html-cgen install-html-cgen
6507maybe-install-html-cgen:
6508@if cgen
6509maybe-install-html-cgen: install-html-cgen
a7254363 6510
a90ef4bf
JM
6511install-html-cgen: \
6512 configure-cgen \
6513 html-cgen
6514 @: $(MAKE); $(unstage)
6515 @[ -f ./cgen/Makefile ] || exit 0; \
6516 r=`${PWD_COMMAND}`; export r; \
c52c6897 6517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6518 $(HOST_EXPORTS) \
a90ef4bf
JM
6519 for flag in $(EXTRA_HOST_FLAGS) ; do \
6520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6521 done; \
22121df0 6522 echo "Doing install-html in cgen"; \
a90ef4bf
JM
6523 (cd $(HOST_SUBDIR)/cgen && \
6524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6526 "RANLIB=$${RANLIB}" \
6527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6528 install-html) \
6529 || exit 1
d545f33b 6530
a90ef4bf
JM
6531@endif cgen
6532
6533.PHONY: maybe-installcheck-cgen installcheck-cgen
6534maybe-installcheck-cgen:
6535@if cgen
6536maybe-installcheck-cgen: installcheck-cgen
6537
6538installcheck-cgen: \
6539 configure-cgen
6540 @: $(MAKE); $(unstage)
6541 @[ -f ./cgen/Makefile ] || exit 0; \
6542 r=`${PWD_COMMAND}`; export r; \
c52c6897 6543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6544 $(HOST_EXPORTS) \
a90ef4bf
JM
6545 for flag in $(EXTRA_HOST_FLAGS) ; do \
6546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6547 done; \
22121df0 6548 echo "Doing installcheck in cgen"; \
a90ef4bf
JM
6549 (cd $(HOST_SUBDIR)/cgen && \
6550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6552 "RANLIB=$${RANLIB}" \
6553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6554 installcheck) \
6555 || exit 1
8520c408 6556
a90ef4bf
JM
6557@endif cgen
6558
6559.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6560maybe-mostlyclean-cgen:
6561@if cgen
6562maybe-mostlyclean-cgen: mostlyclean-cgen
6563
6564mostlyclean-cgen:
6565 @: $(MAKE); $(unstage)
6566 @[ -f ./cgen/Makefile ] || exit 0; \
6567 r=`${PWD_COMMAND}`; export r; \
c52c6897 6568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6569 $(HOST_EXPORTS) \
a90ef4bf
JM
6570 for flag in $(EXTRA_HOST_FLAGS) ; do \
6571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6572 done; \
22121df0 6573 echo "Doing mostlyclean in cgen"; \
a90ef4bf
JM
6574 (cd $(HOST_SUBDIR)/cgen && \
6575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6577 "RANLIB=$${RANLIB}" \
6578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6579 mostlyclean) \
6580 || exit 1
8520c408 6581
a90ef4bf
JM
6582@endif cgen
6583
6584.PHONY: maybe-clean-cgen clean-cgen
6585maybe-clean-cgen:
6586@if cgen
6587maybe-clean-cgen: clean-cgen
6588
6589clean-cgen:
6590 @: $(MAKE); $(unstage)
6591 @[ -f ./cgen/Makefile ] || exit 0; \
6592 r=`${PWD_COMMAND}`; export r; \
c52c6897 6593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6594 $(HOST_EXPORTS) \
a90ef4bf
JM
6595 for flag in $(EXTRA_HOST_FLAGS) ; do \
6596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6597 done; \
22121df0 6598 echo "Doing clean in cgen"; \
a90ef4bf
JM
6599 (cd $(HOST_SUBDIR)/cgen && \
6600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6602 "RANLIB=$${RANLIB}" \
6603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6604 clean) \
6605 || exit 1
d545f33b 6606
a90ef4bf
JM
6607@endif cgen
6608
6609.PHONY: maybe-distclean-cgen distclean-cgen
6610maybe-distclean-cgen:
6611@if cgen
6612maybe-distclean-cgen: distclean-cgen
6613
6614distclean-cgen:
6615 @: $(MAKE); $(unstage)
6616 @[ -f ./cgen/Makefile ] || exit 0; \
6617 r=`${PWD_COMMAND}`; export r; \
c52c6897 6618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6619 $(HOST_EXPORTS) \
a90ef4bf
JM
6620 for flag in $(EXTRA_HOST_FLAGS) ; do \
6621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6622 done; \
22121df0 6623 echo "Doing distclean in cgen"; \
a90ef4bf
JM
6624 (cd $(HOST_SUBDIR)/cgen && \
6625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6627 "RANLIB=$${RANLIB}" \
6628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6629 distclean) \
6630 || exit 1
d545f33b 6631
a90ef4bf
JM
6632@endif cgen
6633
6634.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6635maybe-maintainer-clean-cgen:
6636@if cgen
6637maybe-maintainer-clean-cgen: maintainer-clean-cgen
6638
6639maintainer-clean-cgen:
6640 @: $(MAKE); $(unstage)
6641 @[ -f ./cgen/Makefile ] || exit 0; \
6642 r=`${PWD_COMMAND}`; export r; \
c52c6897 6643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6644 $(HOST_EXPORTS) \
a90ef4bf
JM
6645 for flag in $(EXTRA_HOST_FLAGS) ; do \
6646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6647 done; \
22121df0 6648 echo "Doing maintainer-clean in cgen"; \
a90ef4bf
JM
6649 (cd $(HOST_SUBDIR)/cgen && \
6650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6652 "RANLIB=$${RANLIB}" \
6653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6654 maintainer-clean) \
6655 || exit 1
6656
6657@endif cgen
6658
6659
6660
6661.PHONY: configure-dejagnu maybe-configure-dejagnu
6662maybe-configure-dejagnu:
6663@if gcc-bootstrap
6664configure-dejagnu: stage_current
6665@endif gcc-bootstrap
6666@if dejagnu
6667maybe-configure-dejagnu: configure-dejagnu
6668configure-dejagnu:
6669 @: $(MAKE); $(unstage)
6670 @r=`${PWD_COMMAND}`; export r; \
6671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6672 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
22121df0 6673 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu; \
a90ef4bf
JM
6674 $(HOST_EXPORTS) \
6675 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6676 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6677 case $(srcdir) in \
6678 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6679 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6680 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6681 esac; \
1b6c0831
L
6682 module_srcdir=dejagnu; \
6683 $(SHELL) \
6684 $$s/$$module_srcdir/configure \
6685 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6686 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6687 --target=${target_alias} \
a90ef4bf
JM
6688 || exit 1
6689@endif dejagnu
d545f33b
PB
6690
6691
6692
6693
6694
a90ef4bf
JM
6695.PHONY: all-dejagnu maybe-all-dejagnu
6696maybe-all-dejagnu:
4f0ef2d8 6697@if gcc-bootstrap
a90ef4bf 6698all-dejagnu: stage_current
4f0ef2d8 6699@endif gcc-bootstrap
a90ef4bf
JM
6700@if dejagnu
6701TARGET-dejagnu=all
6702maybe-all-dejagnu: all-dejagnu
6703all-dejagnu: configure-dejagnu
6704 @: $(MAKE); $(unstage)
c52c6897 6705 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6707 $(HOST_EXPORTS) \
a90ef4bf 6708 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6709 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6710 $(TARGET-dejagnu))
6711@endif dejagnu
4fa63067 6712
a7254363 6713
4fa63067 6714
a90ef4bf
JM
6715
6716.PHONY: check-dejagnu maybe-check-dejagnu
6717maybe-check-dejagnu:
6718@if dejagnu
6719maybe-check-dejagnu: check-dejagnu
6720
6721check-dejagnu:
6722 @: $(MAKE); $(unstage)
4fa63067
NN
6723 @r=`${PWD_COMMAND}`; export r; \
6724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6725 $(HOST_EXPORTS) \
a90ef4bf
JM
6726 (cd $(HOST_SUBDIR)/dejagnu && \
6727 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6728
a90ef4bf 6729@endif dejagnu
2a4cbe27 6730
a90ef4bf
JM
6731.PHONY: install-dejagnu maybe-install-dejagnu
6732maybe-install-dejagnu:
6733@if dejagnu
6734maybe-install-dejagnu: install-dejagnu
2a4cbe27 6735
a90ef4bf
JM
6736install-dejagnu: installdirs
6737 @: $(MAKE); $(unstage)
4fa63067 6738 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6740 $(HOST_EXPORTS) \
a90ef4bf
JM
6741 (cd $(HOST_SUBDIR)/dejagnu && \
6742 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6743
a90ef4bf 6744@endif dejagnu
d545f33b 6745
a90ef4bf
JM
6746.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6747maybe-install-strip-dejagnu:
6748@if dejagnu
6749maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6750
a90ef4bf 6751install-strip-dejagnu: installdirs
9b980aa1
RW
6752 @: $(MAKE); $(unstage)
6753 @r=`${PWD_COMMAND}`; export r; \
6754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6755 $(HOST_EXPORTS) \
a90ef4bf 6756 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6757 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6758
a90ef4bf 6759@endif dejagnu
9b980aa1 6760
56a8fe78 6761# Other targets (info, dvi, pdf, etc.)
d545f33b 6762
a90ef4bf
JM
6763.PHONY: maybe-info-dejagnu info-dejagnu
6764maybe-info-dejagnu:
6765@if dejagnu
6766maybe-info-dejagnu: info-dejagnu
d545f33b 6767
a90ef4bf
JM
6768info-dejagnu: \
6769 configure-dejagnu
6770 @: $(MAKE); $(unstage)
6771 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6772 r=`${PWD_COMMAND}`; export r; \
6773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6774 $(HOST_EXPORTS) \
6775 for flag in $(EXTRA_HOST_FLAGS) ; do \
6776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6777 done; \
22121df0 6778 echo "Doing info in dejagnu"; \
a90ef4bf 6779 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6782 "RANLIB=$${RANLIB}" \
0c24b341 6783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6784 info) \
6785 || exit 1
6786
a90ef4bf 6787@endif dejagnu
d545f33b 6788
a90ef4bf
JM
6789.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6790maybe-dvi-dejagnu:
6791@if dejagnu
6792maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6793
a90ef4bf
JM
6794dvi-dejagnu: \
6795 configure-dejagnu
6796 @: $(MAKE); $(unstage)
6797 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6798 r=`${PWD_COMMAND}`; export r; \
6799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6800 $(HOST_EXPORTS) \
6801 for flag in $(EXTRA_HOST_FLAGS) ; do \
6802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6803 done; \
22121df0 6804 echo "Doing dvi in dejagnu"; \
a90ef4bf 6805 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6808 "RANLIB=$${RANLIB}" \
0c24b341 6809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6810 dvi) \
2a4cbe27
NN
6811 || exit 1
6812
a90ef4bf 6813@endif dejagnu
2a4cbe27 6814
a90ef4bf
JM
6815.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6816maybe-pdf-dejagnu:
6817@if dejagnu
6818maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6819
a90ef4bf
JM
6820pdf-dejagnu: \
6821 configure-dejagnu
6822 @: $(MAKE); $(unstage)
6823 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6824 r=`${PWD_COMMAND}`; export r; \
6825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6826 $(HOST_EXPORTS) \
6827 for flag in $(EXTRA_HOST_FLAGS) ; do \
6828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6829 done; \
22121df0 6830 echo "Doing pdf in dejagnu"; \
a90ef4bf 6831 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6834 "RANLIB=$${RANLIB}" \
0c24b341 6835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6836 pdf) \
6837 || exit 1
6838
a90ef4bf 6839@endif dejagnu
56a8fe78 6840
a90ef4bf
JM
6841.PHONY: maybe-html-dejagnu html-dejagnu
6842maybe-html-dejagnu:
6843@if dejagnu
6844maybe-html-dejagnu: html-dejagnu
6d389afc 6845
a90ef4bf
JM
6846html-dejagnu: \
6847 configure-dejagnu
6848 @: $(MAKE); $(unstage)
6849 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6850 r=`${PWD_COMMAND}`; export r; \
6851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6852 $(HOST_EXPORTS) \
6853 for flag in $(EXTRA_HOST_FLAGS) ; do \
6854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6855 done; \
22121df0 6856 echo "Doing html in dejagnu"; \
a90ef4bf 6857 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
6858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6860 "RANLIB=$${RANLIB}" \
0c24b341 6861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6862 html) \
6863 || exit 1
6864
a90ef4bf 6865@endif dejagnu
6d389afc 6866
a90ef4bf
JM
6867.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6868maybe-TAGS-dejagnu:
6869@if dejagnu
6870maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 6871
a90ef4bf
JM
6872TAGS-dejagnu: \
6873 configure-dejagnu
6874 @: $(MAKE); $(unstage)
6875 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6876 r=`${PWD_COMMAND}`; export r; \
6877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6878 $(HOST_EXPORTS) \
b813574b 6879 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6881 done; \
22121df0 6882 echo "Doing TAGS in dejagnu"; \
a90ef4bf 6883 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6886 "RANLIB=$${RANLIB}" \
0c24b341 6887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6888 TAGS) \
2a4cbe27
NN
6889 || exit 1
6890
a90ef4bf 6891@endif dejagnu
2a4cbe27 6892
a90ef4bf
JM
6893.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6894maybe-install-info-dejagnu:
6895@if dejagnu
6896maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 6897
a90ef4bf
JM
6898install-info-dejagnu: \
6899 configure-dejagnu \
6900 info-dejagnu
6901 @: $(MAKE); $(unstage)
6902 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6903 r=`${PWD_COMMAND}`; export r; \
6904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6905 $(HOST_EXPORTS) \
b813574b 6906 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6908 done; \
22121df0 6909 echo "Doing install-info in dejagnu"; \
a90ef4bf 6910 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6913 "RANLIB=$${RANLIB}" \
0c24b341 6914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6915 install-info) \
2a4cbe27
NN
6916 || exit 1
6917
a90ef4bf 6918@endif dejagnu
2a4cbe27 6919
a90ef4bf
JM
6920.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6921maybe-install-pdf-dejagnu:
6922@if dejagnu
6923maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 6924
a90ef4bf
JM
6925install-pdf-dejagnu: \
6926 configure-dejagnu \
6927 pdf-dejagnu
6928 @: $(MAKE); $(unstage)
6929 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
6930 r=`${PWD_COMMAND}`; export r; \
6931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6932 $(HOST_EXPORTS) \
6933 for flag in $(EXTRA_HOST_FLAGS) ; do \
6934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6935 done; \
22121df0 6936 echo "Doing install-pdf in dejagnu"; \
a90ef4bf 6937 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
6938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6940 "RANLIB=$${RANLIB}" \
0c24b341 6941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
6942 install-pdf) \
6943 || exit 1
6944
a90ef4bf 6945@endif dejagnu
a3ca38d2 6946
a90ef4bf
JM
6947.PHONY: maybe-install-html-dejagnu install-html-dejagnu
6948maybe-install-html-dejagnu:
6949@if dejagnu
6950maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 6951
a90ef4bf
JM
6952install-html-dejagnu: \
6953 configure-dejagnu \
6954 html-dejagnu
6955 @: $(MAKE); $(unstage)
6956 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
6957 r=`${PWD_COMMAND}`; export r; \
6958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6959 $(HOST_EXPORTS) \
6960 for flag in $(EXTRA_HOST_FLAGS) ; do \
6961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6962 done; \
22121df0 6963 echo "Doing install-html in dejagnu"; \
a90ef4bf 6964 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
6965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6967 "RANLIB=$${RANLIB}" \
0c24b341 6968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
6969 install-html) \
6970 || exit 1
6971
a90ef4bf 6972@endif dejagnu
108a6f8e 6973
a90ef4bf
JM
6974.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
6975maybe-installcheck-dejagnu:
6976@if dejagnu
6977maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 6978
a90ef4bf
JM
6979installcheck-dejagnu: \
6980 configure-dejagnu
6981 @: $(MAKE); $(unstage)
6982 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6983 r=`${PWD_COMMAND}`; export r; \
6984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6985 $(HOST_EXPORTS) \
b813574b 6986 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6988 done; \
22121df0 6989 echo "Doing installcheck in dejagnu"; \
a90ef4bf 6990 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6993 "RANLIB=$${RANLIB}" \
0c24b341 6994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6995 installcheck) \
2a4cbe27
NN
6996 || exit 1
6997
a90ef4bf 6998@endif dejagnu
2a4cbe27 6999
a90ef4bf
JM
7000.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7001maybe-mostlyclean-dejagnu:
7002@if dejagnu
7003maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 7004
a90ef4bf
JM
7005mostlyclean-dejagnu:
7006 @: $(MAKE); $(unstage)
7007 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7008 r=`${PWD_COMMAND}`; export r; \
7009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7010 $(HOST_EXPORTS) \
b813574b 7011 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7013 done; \
22121df0 7014 echo "Doing mostlyclean in dejagnu"; \
a90ef4bf 7015 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7018 "RANLIB=$${RANLIB}" \
0c24b341 7019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7020 mostlyclean) \
2a4cbe27
NN
7021 || exit 1
7022
a90ef4bf 7023@endif dejagnu
2a4cbe27 7024
a90ef4bf
JM
7025.PHONY: maybe-clean-dejagnu clean-dejagnu
7026maybe-clean-dejagnu:
7027@if dejagnu
7028maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7029
a90ef4bf
JM
7030clean-dejagnu:
7031 @: $(MAKE); $(unstage)
7032 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7033 r=`${PWD_COMMAND}`; export r; \
7034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7035 $(HOST_EXPORTS) \
b813574b 7036 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7038 done; \
22121df0 7039 echo "Doing clean in dejagnu"; \
a90ef4bf 7040 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7043 "RANLIB=$${RANLIB}" \
0c24b341 7044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7045 clean) \
2a4cbe27
NN
7046 || exit 1
7047
a90ef4bf 7048@endif dejagnu
2a4cbe27 7049
a90ef4bf
JM
7050.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7051maybe-distclean-dejagnu:
7052@if dejagnu
7053maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7054
a90ef4bf
JM
7055distclean-dejagnu:
7056 @: $(MAKE); $(unstage)
7057 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7058 r=`${PWD_COMMAND}`; export r; \
7059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7060 $(HOST_EXPORTS) \
b813574b 7061 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7063 done; \
22121df0 7064 echo "Doing distclean in dejagnu"; \
a90ef4bf 7065 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7068 "RANLIB=$${RANLIB}" \
0c24b341 7069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7070 distclean) \
2a4cbe27
NN
7071 || exit 1
7072
a90ef4bf 7073@endif dejagnu
2a4cbe27 7074
a90ef4bf
JM
7075.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7076maybe-maintainer-clean-dejagnu:
7077@if dejagnu
7078maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7079
a90ef4bf
JM
7080maintainer-clean-dejagnu:
7081 @: $(MAKE); $(unstage)
7082 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7083 r=`${PWD_COMMAND}`; export r; \
7084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7085 $(HOST_EXPORTS) \
b813574b 7086 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7088 done; \
22121df0 7089 echo "Doing maintainer-clean in dejagnu"; \
a90ef4bf 7090 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7093 "RANLIB=$${RANLIB}" \
0c24b341 7094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7095 maintainer-clean) \
2a4cbe27
NN
7096 || exit 1
7097
a90ef4bf 7098@endif dejagnu
2a4cbe27 7099
2a4cbe27 7100
a7254363 7101
a90ef4bf
JM
7102.PHONY: configure-etc maybe-configure-etc
7103maybe-configure-etc:
4f0ef2d8 7104@if gcc-bootstrap
a90ef4bf 7105configure-etc: stage_current
4f0ef2d8 7106@endif gcc-bootstrap
a90ef4bf
JM
7107@if etc
7108maybe-configure-etc: configure-etc
7109configure-etc:
0aed8855 7110 @: $(MAKE); $(unstage)
c52c6897 7111 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7113 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
22121df0 7114 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc; \
1f53ca9a 7115 $(HOST_EXPORTS) \
a90ef4bf
JM
7116 echo Configuring in $(HOST_SUBDIR)/etc; \
7117 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7118 case $(srcdir) in \
b00612cc 7119 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7120 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7121 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7122 esac; \
1b6c0831
L
7123 module_srcdir=etc; \
7124 $(SHELL) \
7125 $$s/$$module_srcdir/configure \
7126 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7127 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7128 --target=${target_alias} \
2a4cbe27 7129 || exit 1
a90ef4bf 7130@endif etc
2a4cbe27 7131
a7254363
PB
7132
7133
d545f33b
PB
7134
7135
a90ef4bf
JM
7136.PHONY: all-etc maybe-all-etc
7137maybe-all-etc:
4f0ef2d8 7138@if gcc-bootstrap
a90ef4bf 7139all-etc: stage_current
4f0ef2d8 7140@endif gcc-bootstrap
a90ef4bf
JM
7141@if etc
7142TARGET-etc=all
7143maybe-all-etc: all-etc
7144all-etc: configure-etc
0aed8855 7145 @: $(MAKE); $(unstage)
4fa63067
NN
7146 @r=`${PWD_COMMAND}`; export r; \
7147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7148 $(HOST_EXPORTS) \
a90ef4bf 7149 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7150 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7151 $(TARGET-etc))
7152@endif etc
2a4cbe27 7153
a7254363 7154
d545f33b
PB
7155
7156
a90ef4bf
JM
7157.PHONY: check-etc maybe-check-etc
7158maybe-check-etc:
7159@if etc
7160maybe-check-etc: check-etc
2a4cbe27 7161
a90ef4bf 7162check-etc:
0aed8855 7163 @: $(MAKE); $(unstage)
a90ef4bf
JM
7164 @r=`${PWD_COMMAND}`; export r; \
7165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7166 $(HOST_EXPORTS) \
a90ef4bf
JM
7167 (cd $(HOST_SUBDIR)/etc && \
7168 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7169
a90ef4bf 7170@endif etc
4fa63067 7171
a90ef4bf
JM
7172.PHONY: install-etc maybe-install-etc
7173maybe-install-etc:
7174@if etc
7175maybe-install-etc: install-etc
4fa63067 7176
a90ef4bf 7177install-etc: installdirs
0aed8855 7178 @: $(MAKE); $(unstage)
4fa63067 7179 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7181 $(HOST_EXPORTS) \
a90ef4bf 7182 (cd $(HOST_SUBDIR)/etc && \
2da12f12 7183 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7184
a90ef4bf 7185@endif etc
2a4cbe27 7186
a90ef4bf
JM
7187.PHONY: install-strip-etc maybe-install-strip-etc
7188maybe-install-strip-etc:
7189@if etc
7190maybe-install-strip-etc: install-strip-etc
9b980aa1 7191
a90ef4bf 7192install-strip-etc: installdirs
9b980aa1
RW
7193 @: $(MAKE); $(unstage)
7194 @r=`${PWD_COMMAND}`; export r; \
7195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7196 $(HOST_EXPORTS) \
a90ef4bf 7197 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7198 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7199
a90ef4bf 7200@endif etc
9b980aa1 7201
56a8fe78 7202# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7203
a90ef4bf
JM
7204.PHONY: maybe-info-etc info-etc
7205maybe-info-etc:
7206@if etc
7207maybe-info-etc: info-etc
4fa63067 7208
a90ef4bf
JM
7209info-etc: \
7210 configure-etc
0aed8855 7211 @: $(MAKE); $(unstage)
a90ef4bf 7212 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7213 r=`${PWD_COMMAND}`; export r; \
7214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7215 $(HOST_EXPORTS) \
b813574b 7216 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7218 done; \
22121df0 7219 echo "Doing info in etc"; \
a90ef4bf 7220 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7223 "RANLIB=$${RANLIB}" \
0c24b341 7224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7225 info) \
2a4cbe27
NN
7226 || exit 1
7227
a90ef4bf 7228@endif etc
2a4cbe27 7229
a90ef4bf
JM
7230.PHONY: maybe-dvi-etc dvi-etc
7231maybe-dvi-etc:
7232@if etc
7233maybe-dvi-etc: dvi-etc
2a4cbe27 7234
a90ef4bf
JM
7235dvi-etc: \
7236 configure-etc
0aed8855 7237 @: $(MAKE); $(unstage)
a90ef4bf 7238 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7239 r=`${PWD_COMMAND}`; export r; \
7240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7241 $(HOST_EXPORTS) \
b813574b 7242 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7244 done; \
22121df0 7245 echo "Doing dvi in etc"; \
a90ef4bf 7246 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7249 "RANLIB=$${RANLIB}" \
0c24b341 7250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7251 dvi) \
2a4cbe27
NN
7252 || exit 1
7253
a90ef4bf 7254@endif etc
2a4cbe27 7255
a90ef4bf
JM
7256.PHONY: maybe-pdf-etc pdf-etc
7257maybe-pdf-etc:
7258@if etc
7259maybe-pdf-etc: pdf-etc
56a8fe78 7260
a90ef4bf
JM
7261pdf-etc: \
7262 configure-etc
56a8fe78 7263 @: $(MAKE); $(unstage)
a90ef4bf 7264 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7265 r=`${PWD_COMMAND}`; export r; \
7266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7267 $(HOST_EXPORTS) \
7268 for flag in $(EXTRA_HOST_FLAGS) ; do \
7269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7270 done; \
22121df0 7271 echo "Doing pdf in etc"; \
a90ef4bf 7272 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
7273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7275 "RANLIB=$${RANLIB}" \
0c24b341 7276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7277 pdf) \
7278 || exit 1
7279
a90ef4bf 7280@endif etc
56a8fe78 7281
a90ef4bf
JM
7282.PHONY: maybe-html-etc html-etc
7283maybe-html-etc:
7284@if etc
7285maybe-html-etc: html-etc
6d389afc 7286
a90ef4bf
JM
7287html-etc: \
7288 configure-etc
0aed8855 7289 @: $(MAKE); $(unstage)
a90ef4bf 7290 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7291 r=`${PWD_COMMAND}`; export r; \
7292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7293 $(HOST_EXPORTS) \
7294 for flag in $(EXTRA_HOST_FLAGS) ; do \
7295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7296 done; \
22121df0 7297 echo "Doing html in etc"; \
a90ef4bf 7298 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7301 "RANLIB=$${RANLIB}" \
0c24b341 7302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7303 html) \
7304 || exit 1
7305
a90ef4bf 7306@endif etc
6d389afc 7307
a90ef4bf
JM
7308.PHONY: maybe-TAGS-etc TAGS-etc
7309maybe-TAGS-etc:
7310@if etc
7311maybe-TAGS-etc: TAGS-etc
2a4cbe27 7312
a90ef4bf
JM
7313TAGS-etc: \
7314 configure-etc
0aed8855 7315 @: $(MAKE); $(unstage)
a90ef4bf 7316 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7317 r=`${PWD_COMMAND}`; export r; \
7318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7319 $(HOST_EXPORTS) \
b813574b 7320 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7322 done; \
22121df0 7323 echo "Doing TAGS in etc"; \
a90ef4bf 7324 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7327 "RANLIB=$${RANLIB}" \
0c24b341 7328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7329 TAGS) \
2a4cbe27
NN
7330 || exit 1
7331
a90ef4bf 7332@endif etc
2a4cbe27 7333
a90ef4bf
JM
7334.PHONY: maybe-install-info-etc install-info-etc
7335maybe-install-info-etc:
7336@if etc
7337maybe-install-info-etc: install-info-etc
2a4cbe27 7338
a90ef4bf
JM
7339install-info-etc: \
7340 configure-etc \
7341 info-etc
0aed8855 7342 @: $(MAKE); $(unstage)
a90ef4bf 7343 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7344 r=`${PWD_COMMAND}`; export r; \
7345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7346 $(HOST_EXPORTS) \
b813574b 7347 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7349 done; \
22121df0 7350 echo "Doing install-info in etc"; \
a90ef4bf 7351 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7354 "RANLIB=$${RANLIB}" \
0c24b341 7355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7356 install-info) \
2a4cbe27
NN
7357 || exit 1
7358
a90ef4bf 7359@endif etc
2a4cbe27 7360
a90ef4bf
JM
7361.PHONY: maybe-install-pdf-etc install-pdf-etc
7362maybe-install-pdf-etc:
7363@if etc
7364maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7365
a90ef4bf
JM
7366install-pdf-etc: \
7367 configure-etc \
7368 pdf-etc
a3ca38d2 7369 @: $(MAKE); $(unstage)
a90ef4bf 7370 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7371 r=`${PWD_COMMAND}`; export r; \
7372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7373 $(HOST_EXPORTS) \
7374 for flag in $(EXTRA_HOST_FLAGS) ; do \
7375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7376 done; \
22121df0 7377 echo "Doing install-pdf in etc"; \
a90ef4bf 7378 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7381 "RANLIB=$${RANLIB}" \
0c24b341 7382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7383 install-pdf) \
7384 || exit 1
7385
a90ef4bf 7386@endif etc
a3ca38d2 7387
a90ef4bf
JM
7388.PHONY: maybe-install-html-etc install-html-etc
7389maybe-install-html-etc:
7390@if etc
7391maybe-install-html-etc: install-html-etc
108a6f8e 7392
a90ef4bf
JM
7393install-html-etc: \
7394 configure-etc \
7395 html-etc
108a6f8e 7396 @: $(MAKE); $(unstage)
a90ef4bf 7397 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7398 r=`${PWD_COMMAND}`; export r; \
7399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7400 $(HOST_EXPORTS) \
7401 for flag in $(EXTRA_HOST_FLAGS) ; do \
7402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7403 done; \
22121df0 7404 echo "Doing install-html in etc"; \
a90ef4bf 7405 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7408 "RANLIB=$${RANLIB}" \
0c24b341 7409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7410 install-html) \
7411 || exit 1
7412
a90ef4bf 7413@endif etc
108a6f8e 7414
a90ef4bf
JM
7415.PHONY: maybe-installcheck-etc installcheck-etc
7416maybe-installcheck-etc:
7417@if etc
7418maybe-installcheck-etc: installcheck-etc
2a4cbe27 7419
a90ef4bf
JM
7420installcheck-etc: \
7421 configure-etc
0aed8855 7422 @: $(MAKE); $(unstage)
a90ef4bf 7423 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7424 r=`${PWD_COMMAND}`; export r; \
7425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7426 $(HOST_EXPORTS) \
b813574b 7427 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7429 done; \
22121df0 7430 echo "Doing installcheck in etc"; \
a90ef4bf 7431 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7434 "RANLIB=$${RANLIB}" \
0c24b341 7435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7436 installcheck) \
2a4cbe27
NN
7437 || exit 1
7438
a90ef4bf 7439@endif etc
2a4cbe27 7440
a90ef4bf
JM
7441.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7442maybe-mostlyclean-etc:
7443@if etc
7444maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7445
a90ef4bf 7446mostlyclean-etc:
0aed8855 7447 @: $(MAKE); $(unstage)
a90ef4bf 7448 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7449 r=`${PWD_COMMAND}`; export r; \
7450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7451 $(HOST_EXPORTS) \
b813574b 7452 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7454 done; \
22121df0 7455 echo "Doing mostlyclean in etc"; \
a90ef4bf 7456 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7459 "RANLIB=$${RANLIB}" \
0c24b341 7460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7461 mostlyclean) \
2a4cbe27
NN
7462 || exit 1
7463
a90ef4bf 7464@endif etc
2a4cbe27 7465
a90ef4bf
JM
7466.PHONY: maybe-clean-etc clean-etc
7467maybe-clean-etc:
7468@if etc
7469maybe-clean-etc: clean-etc
2a4cbe27 7470
a90ef4bf 7471clean-etc:
0aed8855 7472 @: $(MAKE); $(unstage)
a90ef4bf 7473 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7474 r=`${PWD_COMMAND}`; export r; \
7475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7476 $(HOST_EXPORTS) \
b813574b 7477 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7479 done; \
22121df0 7480 echo "Doing clean in etc"; \
a90ef4bf 7481 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7484 "RANLIB=$${RANLIB}" \
0c24b341 7485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7486 clean) \
2a4cbe27
NN
7487 || exit 1
7488
a90ef4bf 7489@endif etc
2a4cbe27 7490
a90ef4bf
JM
7491.PHONY: maybe-distclean-etc distclean-etc
7492maybe-distclean-etc:
7493@if etc
7494maybe-distclean-etc: distclean-etc
2a4cbe27 7495
a90ef4bf 7496distclean-etc:
0aed8855 7497 @: $(MAKE); $(unstage)
a90ef4bf 7498 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7499 r=`${PWD_COMMAND}`; export r; \
7500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7501 $(HOST_EXPORTS) \
b813574b 7502 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7504 done; \
22121df0 7505 echo "Doing distclean in etc"; \
a90ef4bf 7506 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7509 "RANLIB=$${RANLIB}" \
0c24b341 7510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7511 distclean) \
2a4cbe27
NN
7512 || exit 1
7513
a90ef4bf 7514@endif etc
2a4cbe27 7515
a90ef4bf
JM
7516.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7517maybe-maintainer-clean-etc:
7518@if etc
7519maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7520
a90ef4bf 7521maintainer-clean-etc:
0aed8855 7522 @: $(MAKE); $(unstage)
a90ef4bf 7523 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7524 r=`${PWD_COMMAND}`; export r; \
7525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7526 $(HOST_EXPORTS) \
b813574b 7527 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7529 done; \
22121df0 7530 echo "Doing maintainer-clean in etc"; \
a90ef4bf 7531 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7534 "RANLIB=$${RANLIB}" \
0c24b341 7535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7536 maintainer-clean) \
2a4cbe27
NN
7537 || exit 1
7538
a90ef4bf 7539@endif etc
2a4cbe27 7540
2a4cbe27 7541
a7254363 7542
a90ef4bf
JM
7543.PHONY: configure-fastjar maybe-configure-fastjar
7544maybe-configure-fastjar:
4f0ef2d8 7545@if gcc-bootstrap
a90ef4bf 7546configure-fastjar: stage_current
4f0ef2d8 7547@endif gcc-bootstrap
a90ef4bf
JM
7548@if fastjar
7549maybe-configure-fastjar: configure-fastjar
7550configure-fastjar:
0aed8855 7551 @: $(MAKE); $(unstage)
c52c6897 7552 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7554 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
22121df0 7555 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar; \
1f53ca9a 7556 $(HOST_EXPORTS) \
a90ef4bf
JM
7557 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7558 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7559 case $(srcdir) in \
b00612cc 7560 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7561 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7562 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7563 esac; \
1b6c0831
L
7564 module_srcdir=fastjar; \
7565 $(SHELL) \
7566 $$s/$$module_srcdir/configure \
7567 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7568 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7569 --target=${target_alias} \
4fa63067 7570 || exit 1
a90ef4bf 7571@endif fastjar
4fa63067 7572
a7254363
PB
7573
7574
d545f33b
PB
7575
7576
a90ef4bf
JM
7577.PHONY: all-fastjar maybe-all-fastjar
7578maybe-all-fastjar:
4f0ef2d8 7579@if gcc-bootstrap
a90ef4bf 7580all-fastjar: stage_current
4f0ef2d8 7581@endif gcc-bootstrap
a90ef4bf
JM
7582@if fastjar
7583TARGET-fastjar=all
7584maybe-all-fastjar: all-fastjar
7585all-fastjar: configure-fastjar
0aed8855 7586 @: $(MAKE); $(unstage)
4fa63067
NN
7587 @r=`${PWD_COMMAND}`; export r; \
7588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7589 $(HOST_EXPORTS) \
a90ef4bf 7590 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7591 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7592 $(TARGET-fastjar))
7593@endif fastjar
4fa63067 7594
a7254363 7595
d545f33b
PB
7596
7597
a90ef4bf
JM
7598.PHONY: check-fastjar maybe-check-fastjar
7599maybe-check-fastjar:
7600@if fastjar
7601maybe-check-fastjar: check-fastjar
4fa63067
NN
7602
7603# This module is only tested in a native toolchain.
a90ef4bf 7604check-fastjar:
0aed8855 7605 @: $(MAKE); $(unstage)
22121df0 7606 @if [ '$(host)' = '$(target)' ]; then \
4fa63067
NN
7607 r=`${PWD_COMMAND}`; export r; \
7608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7609 $(HOST_EXPORTS) \
a90ef4bf 7610 (cd $(HOST_SUBDIR)/fastjar && \
f91ca6bc 7611 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067
NN
7612 fi
7613
a90ef4bf 7614@endif fastjar
4fa63067 7615
a90ef4bf
JM
7616.PHONY: install-fastjar maybe-install-fastjar
7617maybe-install-fastjar:
7618@if fastjar
7619maybe-install-fastjar: install-fastjar
4fa63067 7620
a90ef4bf 7621install-fastjar: installdirs
0aed8855 7622 @: $(MAKE); $(unstage)
4fa63067
NN
7623 @r=`${PWD_COMMAND}`; export r; \
7624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7625 $(HOST_EXPORTS) \
a90ef4bf 7626 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7627 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7628
a90ef4bf 7629@endif fastjar
4fa63067 7630
a90ef4bf
JM
7631.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7632maybe-install-strip-fastjar:
7633@if fastjar
7634maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7635
a90ef4bf 7636install-strip-fastjar: installdirs
9b980aa1
RW
7637 @: $(MAKE); $(unstage)
7638 @r=`${PWD_COMMAND}`; export r; \
7639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7640 $(HOST_EXPORTS) \
a90ef4bf 7641 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7642 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7643
a90ef4bf 7644@endif fastjar
9b980aa1 7645
56a8fe78 7646# Other targets (info, dvi, pdf, etc.)
4fa63067 7647
a90ef4bf
JM
7648.PHONY: maybe-info-fastjar info-fastjar
7649maybe-info-fastjar:
7650@if fastjar
7651maybe-info-fastjar: info-fastjar
4fa63067 7652
a90ef4bf
JM
7653info-fastjar: \
7654 configure-fastjar
0aed8855 7655 @: $(MAKE); $(unstage)
a90ef4bf 7656 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7657 r=`${PWD_COMMAND}`; export r; \
7658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7659 $(HOST_EXPORTS) \
b813574b 7660 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7662 done; \
22121df0 7663 echo "Doing info in fastjar"; \
a90ef4bf 7664 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7667 "RANLIB=$${RANLIB}" \
0c24b341 7668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7669 info) \
2a4cbe27
NN
7670 || exit 1
7671
a90ef4bf 7672@endif fastjar
2a4cbe27 7673
a90ef4bf
JM
7674.PHONY: maybe-dvi-fastjar dvi-fastjar
7675maybe-dvi-fastjar:
7676@if fastjar
7677maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7678
a90ef4bf
JM
7679dvi-fastjar: \
7680 configure-fastjar
0aed8855 7681 @: $(MAKE); $(unstage)
a90ef4bf 7682 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7683 r=`${PWD_COMMAND}`; export r; \
7684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7685 $(HOST_EXPORTS) \
b813574b 7686 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7688 done; \
22121df0 7689 echo "Doing dvi in fastjar"; \
a90ef4bf 7690 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7693 "RANLIB=$${RANLIB}" \
0c24b341 7694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7695 dvi) \
2a4cbe27
NN
7696 || exit 1
7697
a90ef4bf 7698@endif fastjar
2a4cbe27 7699
a90ef4bf
JM
7700.PHONY: maybe-pdf-fastjar pdf-fastjar
7701maybe-pdf-fastjar:
7702@if fastjar
7703maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7704
a90ef4bf
JM
7705pdf-fastjar: \
7706 configure-fastjar
56a8fe78 7707 @: $(MAKE); $(unstage)
a90ef4bf 7708 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7709 r=`${PWD_COMMAND}`; export r; \
7710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7711 $(HOST_EXPORTS) \
7712 for flag in $(EXTRA_HOST_FLAGS) ; do \
7713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7714 done; \
22121df0 7715 echo "Doing pdf in fastjar"; \
a90ef4bf 7716 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
7717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7719 "RANLIB=$${RANLIB}" \
0c24b341 7720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7721 pdf) \
7722 || exit 1
7723
a90ef4bf 7724@endif fastjar
56a8fe78 7725
a90ef4bf
JM
7726.PHONY: maybe-html-fastjar html-fastjar
7727maybe-html-fastjar:
7728@if fastjar
7729maybe-html-fastjar: html-fastjar
6d389afc 7730
a90ef4bf
JM
7731html-fastjar: \
7732 configure-fastjar
0aed8855 7733 @: $(MAKE); $(unstage)
a90ef4bf 7734 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7735 r=`${PWD_COMMAND}`; export r; \
7736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7737 $(HOST_EXPORTS) \
7738 for flag in $(EXTRA_HOST_FLAGS) ; do \
7739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7740 done; \
22121df0 7741 echo "Doing html in fastjar"; \
a90ef4bf 7742 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7745 "RANLIB=$${RANLIB}" \
0c24b341 7746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7747 html) \
7748 || exit 1
7749
a90ef4bf 7750@endif fastjar
6d389afc 7751
a90ef4bf
JM
7752.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7753maybe-TAGS-fastjar:
7754@if fastjar
7755maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7756
a90ef4bf
JM
7757TAGS-fastjar: \
7758 configure-fastjar
0aed8855 7759 @: $(MAKE); $(unstage)
a90ef4bf 7760 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7761 r=`${PWD_COMMAND}`; export r; \
7762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7763 $(HOST_EXPORTS) \
b813574b 7764 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7766 done; \
22121df0 7767 echo "Doing TAGS in fastjar"; \
a90ef4bf 7768 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7771 "RANLIB=$${RANLIB}" \
0c24b341 7772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7773 TAGS) \
2a4cbe27
NN
7774 || exit 1
7775
a90ef4bf 7776@endif fastjar
2a4cbe27 7777
a90ef4bf
JM
7778.PHONY: maybe-install-info-fastjar install-info-fastjar
7779maybe-install-info-fastjar:
7780@if fastjar
7781maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7782
a90ef4bf
JM
7783install-info-fastjar: \
7784 configure-fastjar \
7785 info-fastjar
0aed8855 7786 @: $(MAKE); $(unstage)
a90ef4bf 7787 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7788 r=`${PWD_COMMAND}`; export r; \
7789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7790 $(HOST_EXPORTS) \
b813574b 7791 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7793 done; \
22121df0 7794 echo "Doing install-info in fastjar"; \
a90ef4bf 7795 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7798 "RANLIB=$${RANLIB}" \
0c24b341 7799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7800 install-info) \
2a4cbe27
NN
7801 || exit 1
7802
a90ef4bf 7803@endif fastjar
2a4cbe27 7804
a90ef4bf
JM
7805.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7806maybe-install-pdf-fastjar:
7807@if fastjar
7808maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7809
a90ef4bf
JM
7810install-pdf-fastjar: \
7811 configure-fastjar \
7812 pdf-fastjar
a3ca38d2 7813 @: $(MAKE); $(unstage)
a90ef4bf 7814 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7815 r=`${PWD_COMMAND}`; export r; \
7816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7817 $(HOST_EXPORTS) \
7818 for flag in $(EXTRA_HOST_FLAGS) ; do \
7819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7820 done; \
22121df0 7821 echo "Doing install-pdf in fastjar"; \
a90ef4bf 7822 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7825 "RANLIB=$${RANLIB}" \
0c24b341 7826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7827 install-pdf) \
7828 || exit 1
7829
a90ef4bf 7830@endif fastjar
a3ca38d2 7831
a90ef4bf
JM
7832.PHONY: maybe-install-html-fastjar install-html-fastjar
7833maybe-install-html-fastjar:
7834@if fastjar
7835maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7836
a90ef4bf
JM
7837install-html-fastjar: \
7838 configure-fastjar \
7839 html-fastjar
108a6f8e 7840 @: $(MAKE); $(unstage)
a90ef4bf 7841 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7842 r=`${PWD_COMMAND}`; export r; \
7843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7844 $(HOST_EXPORTS) \
7845 for flag in $(EXTRA_HOST_FLAGS) ; do \
7846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7847 done; \
22121df0 7848 echo "Doing install-html in fastjar"; \
a90ef4bf 7849 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
7850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7852 "RANLIB=$${RANLIB}" \
0c24b341 7853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7854 install-html) \
7855 || exit 1
7856
a90ef4bf 7857@endif fastjar
108a6f8e 7858
a90ef4bf
JM
7859.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7860maybe-installcheck-fastjar:
7861@if fastjar
7862maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7863
a90ef4bf
JM
7864installcheck-fastjar: \
7865 configure-fastjar
0aed8855 7866 @: $(MAKE); $(unstage)
a90ef4bf 7867 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7868 r=`${PWD_COMMAND}`; export r; \
7869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7870 $(HOST_EXPORTS) \
b813574b 7871 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7873 done; \
22121df0 7874 echo "Doing installcheck in fastjar"; \
a90ef4bf 7875 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7878 "RANLIB=$${RANLIB}" \
0c24b341 7879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7880 installcheck) \
2a4cbe27
NN
7881 || exit 1
7882
a90ef4bf 7883@endif fastjar
2a4cbe27 7884
a90ef4bf
JM
7885.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7886maybe-mostlyclean-fastjar:
7887@if fastjar
7888maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 7889
a90ef4bf 7890mostlyclean-fastjar:
0aed8855 7891 @: $(MAKE); $(unstage)
a90ef4bf 7892 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7893 r=`${PWD_COMMAND}`; export r; \
7894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7895 $(HOST_EXPORTS) \
b813574b 7896 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7898 done; \
22121df0 7899 echo "Doing mostlyclean in fastjar"; \
a90ef4bf 7900 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7903 "RANLIB=$${RANLIB}" \
0c24b341 7904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7905 mostlyclean) \
2a4cbe27
NN
7906 || exit 1
7907
a90ef4bf 7908@endif fastjar
2a4cbe27 7909
a90ef4bf
JM
7910.PHONY: maybe-clean-fastjar clean-fastjar
7911maybe-clean-fastjar:
7912@if fastjar
7913maybe-clean-fastjar: clean-fastjar
2a4cbe27 7914
a90ef4bf 7915clean-fastjar:
0aed8855 7916 @: $(MAKE); $(unstage)
a90ef4bf 7917 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7918 r=`${PWD_COMMAND}`; export r; \
7919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7920 $(HOST_EXPORTS) \
b813574b 7921 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7923 done; \
22121df0 7924 echo "Doing clean in fastjar"; \
a90ef4bf 7925 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7928 "RANLIB=$${RANLIB}" \
0c24b341 7929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7930 clean) \
2a4cbe27
NN
7931 || exit 1
7932
a90ef4bf 7933@endif fastjar
2a4cbe27 7934
a90ef4bf
JM
7935.PHONY: maybe-distclean-fastjar distclean-fastjar
7936maybe-distclean-fastjar:
7937@if fastjar
7938maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 7939
a90ef4bf 7940distclean-fastjar:
0aed8855 7941 @: $(MAKE); $(unstage)
a90ef4bf 7942 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7943 r=`${PWD_COMMAND}`; export r; \
7944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7945 $(HOST_EXPORTS) \
b813574b 7946 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7948 done; \
22121df0 7949 echo "Doing distclean in fastjar"; \
a90ef4bf 7950 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7953 "RANLIB=$${RANLIB}" \
0c24b341 7954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7955 distclean) \
2a4cbe27
NN
7956 || exit 1
7957
a90ef4bf 7958@endif fastjar
2a4cbe27 7959
a90ef4bf
JM
7960.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7961maybe-maintainer-clean-fastjar:
7962@if fastjar
7963maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
7964
7965maintainer-clean-fastjar:
0aed8855 7966 @: $(MAKE); $(unstage)
a90ef4bf 7967 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7968 r=`${PWD_COMMAND}`; export r; \
7969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7970 $(HOST_EXPORTS) \
b813574b 7971 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7973 done; \
22121df0 7974 echo "Doing maintainer-clean in fastjar"; \
a90ef4bf 7975 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7978 "RANLIB=$${RANLIB}" \
0c24b341 7979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7980 maintainer-clean) \
2a4cbe27
NN
7981 || exit 1
7982
a90ef4bf 7983@endif fastjar
2a4cbe27 7984
2a4cbe27 7985
a7254363 7986
a90ef4bf
JM
7987.PHONY: configure-fixincludes maybe-configure-fixincludes
7988maybe-configure-fixincludes:
4f0ef2d8 7989@if gcc-bootstrap
a90ef4bf 7990configure-fixincludes: stage_current
4f0ef2d8 7991@endif gcc-bootstrap
a90ef4bf
JM
7992@if fixincludes
7993maybe-configure-fixincludes: configure-fixincludes
7994configure-fixincludes:
c52c6897 7995 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7997 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 7998 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
1f53ca9a 7999 $(HOST_EXPORTS) \
a90ef4bf
JM
8000 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
8001 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 8002 case $(srcdir) in \
b00612cc 8003 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8004 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 8005 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8006 esac; \
1b6c0831
L
8007 module_srcdir=fixincludes; \
8008 $(SHELL) \
8009 $$s/$$module_srcdir/configure \
8010 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8011 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8012 --target=${target_alias} \
4fa63067 8013 || exit 1
a90ef4bf 8014@endif fixincludes
4fa63067 8015
a7254363
PB
8016
8017
201f096f 8018.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8019maybe-configure-stage1-fixincludes:
8020@if fixincludes-bootstrap
8021maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8022configure-stage1-fixincludes:
8023 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8024 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8025 @r=`${PWD_COMMAND}`; export r; \
8026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8027 TFLAGS="$(STAGE1_TFLAGS)"; \
8028 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8029 $(HOST_EXPORTS) \
8030 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8031 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8032 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
8033 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes; \
8034 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8035 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8036 case $(srcdir) in \
8037 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8038 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8039 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8040 esac; \
1b6c0831
L
8041 module_srcdir=fixincludes; \
8042 $(SHELL) $$s/$$module_srcdir/configure \
8043 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8044 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8045 --target=${target_alias} \
8046 \
201f096f 8047 $(STAGE1_CONFIGURE_FLAGS)
8048@endif fixincludes-bootstrap
8049
8050.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8051maybe-configure-stage2-fixincludes:
8052@if fixincludes-bootstrap
8053maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8054configure-stage2-fixincludes:
8055 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8056 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8057 @r=`${PWD_COMMAND}`; export r; \
8058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8059 TFLAGS="$(STAGE2_TFLAGS)"; \
8060 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8061 $(HOST_EXPORTS) \
8062 $(POSTSTAGE1_HOST_EXPORTS) \
8063 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8064 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8065 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8066 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes; \
8067 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8068 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8069 case $(srcdir) in \
8070 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8071 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8072 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8073 esac; \
1b6c0831
L
8074 module_srcdir=fixincludes; \
8075 $(SHELL) $$s/$$module_srcdir/configure \
8076 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8077 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8078 --target=${target_alias} \
22121df0 8079 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8080 $(STAGE2_CONFIGURE_FLAGS)
8081@endif fixincludes-bootstrap
8082
8083.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8084maybe-configure-stage3-fixincludes:
8085@if fixincludes-bootstrap
8086maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8087configure-stage3-fixincludes:
8088 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8089 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8090 @r=`${PWD_COMMAND}`; export r; \
8091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8092 TFLAGS="$(STAGE3_TFLAGS)"; \
8093 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8094 $(HOST_EXPORTS) \
8095 $(POSTSTAGE1_HOST_EXPORTS) \
8096 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8097 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8098 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8099 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes; \
8100 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8101 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8102 case $(srcdir) in \
8103 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8104 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8105 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8106 esac; \
1b6c0831
L
8107 module_srcdir=fixincludes; \
8108 $(SHELL) $$s/$$module_srcdir/configure \
8109 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8110 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8111 --target=${target_alias} \
22121df0 8112 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8113 $(STAGE3_CONFIGURE_FLAGS)
8114@endif fixincludes-bootstrap
8115
8116.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8117maybe-configure-stage4-fixincludes:
8118@if fixincludes-bootstrap
8119maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8120configure-stage4-fixincludes:
8121 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8122 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8123 @r=`${PWD_COMMAND}`; export r; \
8124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8125 TFLAGS="$(STAGE4_TFLAGS)"; \
8126 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8127 $(HOST_EXPORTS) \
8128 $(POSTSTAGE1_HOST_EXPORTS) \
8129 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8130 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8131 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8132 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes; \
8133 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8134 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8135 case $(srcdir) in \
8136 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8137 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8138 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8139 esac; \
1b6c0831
L
8140 module_srcdir=fixincludes; \
8141 $(SHELL) $$s/$$module_srcdir/configure \
8142 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8143 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8144 --target=${target_alias} \
22121df0 8145 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8146 $(STAGE4_CONFIGURE_FLAGS)
8147@endif fixincludes-bootstrap
8148
8149.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8150maybe-configure-stageprofile-fixincludes:
8151@if fixincludes-bootstrap
8152maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8153configure-stageprofile-fixincludes:
8154 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8155 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8156 @r=`${PWD_COMMAND}`; export r; \
8157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8158 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8159 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8160 $(HOST_EXPORTS) \
8161 $(POSTSTAGE1_HOST_EXPORTS) \
8162 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8163 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8164 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8165 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes; \
8166 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8167 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8168 case $(srcdir) in \
8169 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8170 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8171 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8172 esac; \
1b6c0831
L
8173 module_srcdir=fixincludes; \
8174 $(SHELL) $$s/$$module_srcdir/configure \
8175 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8176 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8177 --target=${target_alias} \
22121df0 8178 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8179 $(STAGEprofile_CONFIGURE_FLAGS)
8180@endif fixincludes-bootstrap
8181
8182.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
8183maybe-configure-stagefeedback-fixincludes:
8184@if fixincludes-bootstrap
8185maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8186configure-stagefeedback-fixincludes:
8187 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8188 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8189 @r=`${PWD_COMMAND}`; export r; \
8190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8191 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8192 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8193 $(HOST_EXPORTS) \
8194 $(POSTSTAGE1_HOST_EXPORTS) \
8195 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8196 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8197 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8198 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes; \
8199 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8200 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8201 case $(srcdir) in \
8202 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8203 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8204 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8205 esac; \
1b6c0831
L
8206 module_srcdir=fixincludes; \
8207 $(SHELL) $$s/$$module_srcdir/configure \
8208 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8209 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8210 --target=${target_alias} \
22121df0 8211 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8212 $(STAGEfeedback_CONFIGURE_FLAGS)
8213@endif fixincludes-bootstrap
8214
8215
8216
d545f33b
PB
8217
8218
a90ef4bf
JM
8219.PHONY: all-fixincludes maybe-all-fixincludes
8220maybe-all-fixincludes:
4f0ef2d8 8221@if gcc-bootstrap
a90ef4bf 8222all-fixincludes: stage_current
4f0ef2d8 8223@endif gcc-bootstrap
a90ef4bf
JM
8224@if fixincludes
8225TARGET-fixincludes=all
8226maybe-all-fixincludes: all-fixincludes
8227all-fixincludes: configure-fixincludes
4fa63067
NN
8228 @r=`${PWD_COMMAND}`; export r; \
8229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8230 $(HOST_EXPORTS) \
a90ef4bf 8231 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 8232 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8233 $(TARGET-fixincludes))
8234@endif fixincludes
4fa63067 8235
a7254363 8236
d545f33b 8237
201f096f 8238.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
8239.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
8240maybe-all-stage1-fixincludes:
8241maybe-clean-stage1-fixincludes:
8242@if fixincludes-bootstrap
8243maybe-all-stage1-fixincludes: all-stage1-fixincludes
8244all-stage1: all-stage1-fixincludes
8245TARGET-stage1-fixincludes = $(TARGET-fixincludes)
8246all-stage1-fixincludes: configure-stage1-fixincludes
8247 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8248 @r=`${PWD_COMMAND}`; export r; \
8249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8250 TFLAGS="$(STAGE1_TFLAGS)"; \
8251 $(HOST_EXPORTS) \
8252 cd $(HOST_SUBDIR)/fixincludes && \
8253 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8254 CFLAGS="$(STAGE1_CFLAGS)" \
8255 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8256 LIBCFLAGS="$(LIBCFLAGS)" \
8257 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8258 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8259 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8260 $(EXTRA_HOST_FLAGS) \
8261 $(STAGE1_FLAGS_TO_PASS) \
8262 TFLAGS="$(STAGE1_TFLAGS)" \
8263 $(TARGET-stage1-fixincludes)
8264
8265maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
8266clean-stage1: clean-stage1-fixincludes
8267clean-stage1-fixincludes:
8268 @if [ $(current_stage) = stage1 ]; then \
8269 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8270 else \
8271 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
8272 $(MAKE) stage1-start; \
8273 fi; \
8274 cd $(HOST_SUBDIR)/fixincludes && \
8275 $(MAKE) $(EXTRA_HOST_FLAGS) \
8276 $(STAGE1_FLAGS_TO_PASS) clean
8277@endif fixincludes-bootstrap
8278
8279
8280.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
8281.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
8282maybe-all-stage2-fixincludes:
8283maybe-clean-stage2-fixincludes:
8284@if fixincludes-bootstrap
8285maybe-all-stage2-fixincludes: all-stage2-fixincludes
8286all-stage2: all-stage2-fixincludes
8287TARGET-stage2-fixincludes = $(TARGET-fixincludes)
8288all-stage2-fixincludes: configure-stage2-fixincludes
8289 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8290 @r=`${PWD_COMMAND}`; export r; \
8291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8292 TFLAGS="$(STAGE2_TFLAGS)"; \
8293 $(HOST_EXPORTS) \
8294 $(POSTSTAGE1_HOST_EXPORTS) \
8295 cd $(HOST_SUBDIR)/fixincludes && \
8296 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8297 CFLAGS="$(STAGE2_CFLAGS)" \
8298 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8299 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8300 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8301 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8302 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8303 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8304 TFLAGS="$(STAGE2_TFLAGS)" \
8305 $(TARGET-stage2-fixincludes)
8306
8307maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
8308clean-stage2: clean-stage2-fixincludes
8309clean-stage2-fixincludes:
8310 @if [ $(current_stage) = stage2 ]; then \
8311 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8312 else \
8313 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
8314 $(MAKE) stage2-start; \
8315 fi; \
8316 cd $(HOST_SUBDIR)/fixincludes && \
8317 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8318@endif fixincludes-bootstrap
8319
8320
8321.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
8322.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
8323maybe-all-stage3-fixincludes:
8324maybe-clean-stage3-fixincludes:
8325@if fixincludes-bootstrap
8326maybe-all-stage3-fixincludes: all-stage3-fixincludes
8327all-stage3: all-stage3-fixincludes
8328TARGET-stage3-fixincludes = $(TARGET-fixincludes)
8329all-stage3-fixincludes: configure-stage3-fixincludes
8330 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8331 @r=`${PWD_COMMAND}`; export r; \
8332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8333 TFLAGS="$(STAGE3_TFLAGS)"; \
8334 $(HOST_EXPORTS) \
8335 $(POSTSTAGE1_HOST_EXPORTS) \
8336 cd $(HOST_SUBDIR)/fixincludes && \
8337 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8338 CFLAGS="$(STAGE3_CFLAGS)" \
8339 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8340 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8341 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8342 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8343 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8344 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8345 TFLAGS="$(STAGE3_TFLAGS)" \
8346 $(TARGET-stage3-fixincludes)
8347
8348maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
8349clean-stage3: clean-stage3-fixincludes
8350clean-stage3-fixincludes:
8351 @if [ $(current_stage) = stage3 ]; then \
8352 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8353 else \
8354 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
8355 $(MAKE) stage3-start; \
8356 fi; \
8357 cd $(HOST_SUBDIR)/fixincludes && \
8358 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8359@endif fixincludes-bootstrap
8360
8361
8362.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
8363.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
8364maybe-all-stage4-fixincludes:
8365maybe-clean-stage4-fixincludes:
8366@if fixincludes-bootstrap
8367maybe-all-stage4-fixincludes: all-stage4-fixincludes
8368all-stage4: all-stage4-fixincludes
8369TARGET-stage4-fixincludes = $(TARGET-fixincludes)
8370all-stage4-fixincludes: configure-stage4-fixincludes
8371 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8372 @r=`${PWD_COMMAND}`; export r; \
8373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8374 TFLAGS="$(STAGE4_TFLAGS)"; \
8375 $(HOST_EXPORTS) \
8376 $(POSTSTAGE1_HOST_EXPORTS) \
8377 cd $(HOST_SUBDIR)/fixincludes && \
8378 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8379 CFLAGS="$(STAGE4_CFLAGS)" \
8380 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8381 LIBCFLAGS="$(STAGE4_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) \
8386 TFLAGS="$(STAGE4_TFLAGS)" \
8387 $(TARGET-stage4-fixincludes)
8388
8389maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
8390clean-stage4: clean-stage4-fixincludes
8391clean-stage4-fixincludes:
8392 @if [ $(current_stage) = stage4 ]; then \
8393 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8394 else \
8395 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
8396 $(MAKE) stage4-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-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
8404.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
8405maybe-all-stageprofile-fixincludes:
8406maybe-clean-stageprofile-fixincludes:
8407@if fixincludes-bootstrap
8408maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
8409all-stageprofile: all-stageprofile-fixincludes
8410TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
8411all-stageprofile-fixincludes: configure-stageprofile-fixincludes
8412 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8413 @r=`${PWD_COMMAND}`; export r; \
8414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8415 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8416 $(HOST_EXPORTS) \
8417 $(POSTSTAGE1_HOST_EXPORTS) \
8418 cd $(HOST_SUBDIR)/fixincludes && \
8419 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8420 CFLAGS="$(STAGEprofile_CFLAGS)" \
8421 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
8422 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
8423 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8424 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8425 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8426 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8427 TFLAGS="$(STAGEprofile_TFLAGS)" \
8428 $(TARGET-stageprofile-fixincludes)
8429
8430maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
8431clean-stageprofile: clean-stageprofile-fixincludes
8432clean-stageprofile-fixincludes:
8433 @if [ $(current_stage) = stageprofile ]; then \
8434 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8435 else \
8436 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
8437 $(MAKE) stageprofile-start; \
8438 fi; \
8439 cd $(HOST_SUBDIR)/fixincludes && \
8440 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8441@endif fixincludes-bootstrap
8442
8443
8444.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
8445.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
8446maybe-all-stagefeedback-fixincludes:
8447maybe-clean-stagefeedback-fixincludes:
8448@if fixincludes-bootstrap
8449maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
8450all-stagefeedback: all-stagefeedback-fixincludes
8451TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
8452all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8453 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8454 @r=`${PWD_COMMAND}`; export r; \
8455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8456 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8457 $(HOST_EXPORTS) \
8458 $(POSTSTAGE1_HOST_EXPORTS) \
8459 cd $(HOST_SUBDIR)/fixincludes && \
8460 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8461 CFLAGS="$(STAGEfeedback_CFLAGS)" \
8462 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
8463 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
8464 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8465 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8466 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8467 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8468 TFLAGS="$(STAGEfeedback_TFLAGS)" \
8469 $(TARGET-stagefeedback-fixincludes)
8470
8471maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
8472clean-stagefeedback: clean-stagefeedback-fixincludes
8473clean-stagefeedback-fixincludes:
8474 @if [ $(current_stage) = stagefeedback ]; then \
8475 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8476 else \
8477 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
8478 $(MAKE) stagefeedback-start; \
8479 fi; \
8480 cd $(HOST_SUBDIR)/fixincludes && \
8481 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8482@endif fixincludes-bootstrap
8483
8484
8485
8486
d545f33b 8487
a90ef4bf
JM
8488.PHONY: check-fixincludes maybe-check-fixincludes
8489maybe-check-fixincludes:
8490@if fixincludes
8491maybe-check-fixincludes: check-fixincludes
4fa63067 8492
a90ef4bf 8493check-fixincludes:
0aed8855 8494 @: $(MAKE); $(unstage)
4fa63067
NN
8495 @r=`${PWD_COMMAND}`; export r; \
8496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8497 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 8498 (cd $(HOST_SUBDIR)/fixincludes && \
f91ca6bc 8499 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 8500
a90ef4bf 8501@endif fixincludes
4fa63067 8502
a90ef4bf
JM
8503.PHONY: install-fixincludes maybe-install-fixincludes
8504maybe-install-fixincludes:
8505@if fixincludes
8506maybe-install-fixincludes: install-fixincludes
4fa63067 8507
a90ef4bf 8508install-fixincludes: installdirs
0aed8855 8509 @: $(MAKE); $(unstage)
4fa63067
NN
8510 @r=`${PWD_COMMAND}`; export r; \
8511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8512 $(HOST_EXPORTS) \
a90ef4bf 8513 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 8514 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8515
a90ef4bf 8516@endif fixincludes
4fa63067 8517
a90ef4bf
JM
8518.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
8519maybe-install-strip-fixincludes:
8520@if fixincludes
8521maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 8522
a90ef4bf 8523install-strip-fixincludes: installdirs
9b980aa1
RW
8524 @: $(MAKE); $(unstage)
8525 @r=`${PWD_COMMAND}`; export r; \
8526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8527 $(HOST_EXPORTS) \
a90ef4bf 8528 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
8529 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8530
a90ef4bf 8531@endif fixincludes
9b980aa1 8532
56a8fe78 8533# Other targets (info, dvi, pdf, etc.)
4fa63067 8534
a90ef4bf
JM
8535.PHONY: maybe-info-fixincludes info-fixincludes
8536maybe-info-fixincludes:
8537@if fixincludes
8538maybe-info-fixincludes: info-fixincludes
4fa63067 8539
a90ef4bf
JM
8540info-fixincludes: \
8541 configure-fixincludes
a90ef4bf 8542 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8543 r=`${PWD_COMMAND}`; export r; \
8544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8545 $(HOST_EXPORTS) \
b813574b 8546 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8548 done; \
22121df0 8549 echo "Doing info in fixincludes"; \
a90ef4bf 8550 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8553 "RANLIB=$${RANLIB}" \
0c24b341 8554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8555 info) \
2a4cbe27
NN
8556 || exit 1
8557
a90ef4bf 8558@endif fixincludes
2a4cbe27 8559
a90ef4bf
JM
8560.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8561maybe-dvi-fixincludes:
8562@if fixincludes
8563maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 8564
a90ef4bf
JM
8565dvi-fixincludes: \
8566 configure-fixincludes
a90ef4bf 8567 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8568 r=`${PWD_COMMAND}`; export r; \
8569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8570 $(HOST_EXPORTS) \
b813574b 8571 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8573 done; \
22121df0 8574 echo "Doing dvi in fixincludes"; \
a90ef4bf 8575 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8578 "RANLIB=$${RANLIB}" \
0c24b341 8579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8580 dvi) \
2a4cbe27
NN
8581 || exit 1
8582
a90ef4bf 8583@endif fixincludes
2a4cbe27 8584
a90ef4bf
JM
8585.PHONY: maybe-pdf-fixincludes pdf-fixincludes
8586maybe-pdf-fixincludes:
8587@if fixincludes
8588maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 8589
a90ef4bf
JM
8590pdf-fixincludes: \
8591 configure-fixincludes
a90ef4bf 8592 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
8593 r=`${PWD_COMMAND}`; export r; \
8594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8595 $(HOST_EXPORTS) \
8596 for flag in $(EXTRA_HOST_FLAGS) ; do \
8597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8598 done; \
22121df0 8599 echo "Doing pdf in fixincludes"; \
a90ef4bf 8600 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
8601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8603 "RANLIB=$${RANLIB}" \
0c24b341 8604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8605 pdf) \
8606 || exit 1
8607
a90ef4bf 8608@endif fixincludes
56a8fe78 8609
a90ef4bf
JM
8610.PHONY: maybe-html-fixincludes html-fixincludes
8611maybe-html-fixincludes:
8612@if fixincludes
8613maybe-html-fixincludes: html-fixincludes
6d389afc 8614
a90ef4bf
JM
8615html-fixincludes: \
8616 configure-fixincludes
a90ef4bf 8617 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
8618 r=`${PWD_COMMAND}`; export r; \
8619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8620 $(HOST_EXPORTS) \
8621 for flag in $(EXTRA_HOST_FLAGS) ; do \
8622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8623 done; \
22121df0 8624 echo "Doing html in fixincludes"; \
a90ef4bf 8625 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
8626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8628 "RANLIB=$${RANLIB}" \
0c24b341 8629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8630 html) \
8631 || exit 1
8632
a90ef4bf 8633@endif fixincludes
6d389afc 8634
a90ef4bf
JM
8635.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8636maybe-TAGS-fixincludes:
8637@if fixincludes
8638maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8639
a90ef4bf
JM
8640# fixincludes doesn't support TAGS.
8641TAGS-fixincludes:
2a4cbe27 8642
a90ef4bf 8643@endif fixincludes
2a4cbe27 8644
a90ef4bf
JM
8645.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8646maybe-install-info-fixincludes:
8647@if fixincludes
8648maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8649
a90ef4bf
JM
8650install-info-fixincludes: \
8651 configure-fixincludes \
8652 info-fixincludes
a90ef4bf 8653 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8654 r=`${PWD_COMMAND}`; export r; \
8655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8656 $(HOST_EXPORTS) \
b813574b 8657 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8659 done; \
22121df0 8660 echo "Doing install-info in fixincludes"; \
a90ef4bf 8661 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8664 "RANLIB=$${RANLIB}" \
0c24b341 8665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8666 install-info) \
2a4cbe27
NN
8667 || exit 1
8668
a90ef4bf 8669@endif fixincludes
2a4cbe27 8670
a90ef4bf
JM
8671.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8672maybe-install-pdf-fixincludes:
8673@if fixincludes
8674maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8675
a90ef4bf
JM
8676install-pdf-fixincludes: \
8677 configure-fixincludes \
8678 pdf-fixincludes
a90ef4bf 8679 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8680 r=`${PWD_COMMAND}`; export r; \
8681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8682 $(HOST_EXPORTS) \
8683 for flag in $(EXTRA_HOST_FLAGS) ; do \
8684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8685 done; \
22121df0 8686 echo "Doing install-pdf in fixincludes"; \
a90ef4bf 8687 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8690 "RANLIB=$${RANLIB}" \
0c24b341 8691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8692 install-pdf) \
8693 || exit 1
8694
a90ef4bf 8695@endif fixincludes
a3ca38d2 8696
a90ef4bf
JM
8697.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8698maybe-install-html-fixincludes:
8699@if fixincludes
8700maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8701
a90ef4bf
JM
8702install-html-fixincludes: \
8703 configure-fixincludes \
8704 html-fixincludes
a90ef4bf 8705 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8706 r=`${PWD_COMMAND}`; export r; \
8707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8708 $(HOST_EXPORTS) \
8709 for flag in $(EXTRA_HOST_FLAGS) ; do \
8710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8711 done; \
22121df0 8712 echo "Doing install-html in fixincludes"; \
a90ef4bf 8713 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
8714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8716 "RANLIB=$${RANLIB}" \
0c24b341 8717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8718 install-html) \
8719 || exit 1
8720
a90ef4bf 8721@endif fixincludes
108a6f8e 8722
a90ef4bf
JM
8723.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8724maybe-installcheck-fixincludes:
8725@if fixincludes
8726maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8727
a90ef4bf
JM
8728installcheck-fixincludes: \
8729 configure-fixincludes
a90ef4bf 8730 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8731 r=`${PWD_COMMAND}`; export r; \
8732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8733 $(HOST_EXPORTS) \
b813574b 8734 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8736 done; \
22121df0 8737 echo "Doing installcheck in fixincludes"; \
a90ef4bf 8738 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8741 "RANLIB=$${RANLIB}" \
0c24b341 8742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8743 installcheck) \
2a4cbe27
NN
8744 || exit 1
8745
a90ef4bf 8746@endif fixincludes
2a4cbe27 8747
a90ef4bf
JM
8748.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8749maybe-mostlyclean-fixincludes:
8750@if fixincludes
8751maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8752
a90ef4bf 8753mostlyclean-fixincludes:
a90ef4bf 8754 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8755 r=`${PWD_COMMAND}`; export r; \
8756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8757 $(HOST_EXPORTS) \
b813574b 8758 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8760 done; \
22121df0 8761 echo "Doing mostlyclean in fixincludes"; \
a90ef4bf 8762 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8765 "RANLIB=$${RANLIB}" \
0c24b341 8766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8767 mostlyclean) \
2a4cbe27
NN
8768 || exit 1
8769
a90ef4bf 8770@endif fixincludes
2a4cbe27 8771
a90ef4bf
JM
8772.PHONY: maybe-clean-fixincludes clean-fixincludes
8773maybe-clean-fixincludes:
8774@if fixincludes
8775maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8776
a90ef4bf 8777clean-fixincludes:
a90ef4bf 8778 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8779 r=`${PWD_COMMAND}`; export r; \
8780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8781 $(HOST_EXPORTS) \
b813574b 8782 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8784 done; \
22121df0 8785 echo "Doing clean in fixincludes"; \
a90ef4bf 8786 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8789 "RANLIB=$${RANLIB}" \
0c24b341 8790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8791 clean) \
2a4cbe27
NN
8792 || exit 1
8793
a90ef4bf 8794@endif fixincludes
2a4cbe27 8795
a90ef4bf
JM
8796.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8797maybe-distclean-fixincludes:
8798@if fixincludes
8799maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8800
a90ef4bf 8801distclean-fixincludes:
a90ef4bf 8802 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8803 r=`${PWD_COMMAND}`; export r; \
8804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8805 $(HOST_EXPORTS) \
b813574b 8806 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8808 done; \
22121df0 8809 echo "Doing distclean in fixincludes"; \
a90ef4bf 8810 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8813 "RANLIB=$${RANLIB}" \
0c24b341 8814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8815 distclean) \
2a4cbe27
NN
8816 || exit 1
8817
a90ef4bf 8818@endif fixincludes
2a4cbe27 8819
a90ef4bf
JM
8820.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8821maybe-maintainer-clean-fixincludes:
8822@if fixincludes
8823maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8824
a90ef4bf 8825maintainer-clean-fixincludes:
a90ef4bf 8826 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8827 r=`${PWD_COMMAND}`; export r; \
8828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8829 $(HOST_EXPORTS) \
b813574b 8830 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8832 done; \
22121df0 8833 echo "Doing maintainer-clean in fixincludes"; \
a90ef4bf 8834 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8837 "RANLIB=$${RANLIB}" \
0c24b341 8838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8839 maintainer-clean) \
2a4cbe27
NN
8840 || exit 1
8841
a90ef4bf 8842@endif fixincludes
2a4cbe27 8843
2a4cbe27 8844
a7254363 8845
a90ef4bf
JM
8846.PHONY: configure-flex maybe-configure-flex
8847maybe-configure-flex:
f9806fa5 8848@if gcc-bootstrap
a90ef4bf 8849configure-flex: stage_current
f9806fa5 8850@endif gcc-bootstrap
a90ef4bf
JM
8851@if flex
8852maybe-configure-flex: configure-flex
8853configure-flex:
f9806fa5
DE
8854 @: $(MAKE); $(unstage)
8855 @r=`${PWD_COMMAND}`; export r; \
8856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8857 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
22121df0 8858 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex; \
1f53ca9a 8859 $(HOST_EXPORTS) \
a90ef4bf
JM
8860 echo Configuring in $(HOST_SUBDIR)/flex; \
8861 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
8862 case $(srcdir) in \
8863 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8864 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
8865 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8866 esac; \
1b6c0831
L
8867 module_srcdir=flex; \
8868 $(SHELL) \
8869 $$s/$$module_srcdir/configure \
8870 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 8871 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8872 --target=${target_alias} \
f9806fa5 8873 || exit 1
a90ef4bf 8874@endif flex
f9806fa5
DE
8875
8876
8877
8878
8879
a90ef4bf
JM
8880.PHONY: all-flex maybe-all-flex
8881maybe-all-flex:
f9806fa5 8882@if gcc-bootstrap
a90ef4bf 8883all-flex: stage_current
f9806fa5 8884@endif gcc-bootstrap
a90ef4bf
JM
8885@if flex
8886TARGET-flex=all
8887maybe-all-flex: all-flex
8888all-flex: configure-flex
f9806fa5
DE
8889 @: $(MAKE); $(unstage)
8890 @r=`${PWD_COMMAND}`; export r; \
8891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8892 $(HOST_EXPORTS) \
a90ef4bf 8893 (cd $(HOST_SUBDIR)/flex && \
b3676d82 8894 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8895 $(TARGET-flex))
8896@endif flex
f9806fa5
DE
8897
8898
8899
8900
a90ef4bf
JM
8901.PHONY: check-flex maybe-check-flex
8902maybe-check-flex:
8903@if flex
8904maybe-check-flex: check-flex
f9806fa5 8905
a90ef4bf
JM
8906# This module is only tested in a native toolchain.
8907check-flex:
f9806fa5 8908 @: $(MAKE); $(unstage)
22121df0 8909 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
8910 r=`${PWD_COMMAND}`; export r; \
8911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8912 $(HOST_EXPORTS) \
a90ef4bf 8913 (cd $(HOST_SUBDIR)/flex && \
f91ca6bc 8914 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 8915 fi
f9806fa5 8916
a90ef4bf 8917@endif flex
f9806fa5 8918
a90ef4bf
JM
8919.PHONY: install-flex maybe-install-flex
8920maybe-install-flex:
8921@if flex
8922maybe-install-flex: install-flex
f9806fa5 8923
a90ef4bf 8924install-flex: installdirs
f9806fa5
DE
8925 @: $(MAKE); $(unstage)
8926 @r=`${PWD_COMMAND}`; export r; \
8927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8928 $(HOST_EXPORTS) \
a90ef4bf 8929 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8930 $(MAKE) $(FLAGS_TO_PASS) install)
8931
a90ef4bf 8932@endif flex
f9806fa5 8933
a90ef4bf
JM
8934.PHONY: install-strip-flex maybe-install-strip-flex
8935maybe-install-strip-flex:
8936@if flex
8937maybe-install-strip-flex: install-strip-flex
9b980aa1 8938
a90ef4bf 8939install-strip-flex: installdirs
9b980aa1
RW
8940 @: $(MAKE); $(unstage)
8941 @r=`${PWD_COMMAND}`; export r; \
8942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8943 $(HOST_EXPORTS) \
a90ef4bf 8944 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
8945 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8946
a90ef4bf 8947@endif flex
9b980aa1 8948
f9806fa5
DE
8949# Other targets (info, dvi, pdf, etc.)
8950
a90ef4bf
JM
8951.PHONY: maybe-info-flex info-flex
8952maybe-info-flex:
8953@if flex
8954maybe-info-flex: info-flex
f9806fa5 8955
a90ef4bf
JM
8956info-flex: \
8957 configure-flex
f9806fa5 8958 @: $(MAKE); $(unstage)
a90ef4bf 8959 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8960 r=`${PWD_COMMAND}`; export r; \
8961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8962 $(HOST_EXPORTS) \
8963 for flag in $(EXTRA_HOST_FLAGS) ; do \
8964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8965 done; \
22121df0 8966 echo "Doing info in flex"; \
a90ef4bf 8967 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8970 "RANLIB=$${RANLIB}" \
8971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8972 info) \
8973 || exit 1
8974
a90ef4bf 8975@endif flex
f9806fa5 8976
a90ef4bf
JM
8977.PHONY: maybe-dvi-flex dvi-flex
8978maybe-dvi-flex:
8979@if flex
8980maybe-dvi-flex: dvi-flex
f9806fa5 8981
a90ef4bf
JM
8982dvi-flex: \
8983 configure-flex
f9806fa5 8984 @: $(MAKE); $(unstage)
a90ef4bf 8985 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8986 r=`${PWD_COMMAND}`; export r; \
8987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8988 $(HOST_EXPORTS) \
8989 for flag in $(EXTRA_HOST_FLAGS) ; do \
8990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8991 done; \
22121df0 8992 echo "Doing dvi in flex"; \
a90ef4bf 8993 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8996 "RANLIB=$${RANLIB}" \
8997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8998 dvi) \
8999 || exit 1
9000
a90ef4bf 9001@endif flex
f9806fa5 9002
a90ef4bf
JM
9003.PHONY: maybe-pdf-flex pdf-flex
9004maybe-pdf-flex:
9005@if flex
9006maybe-pdf-flex: pdf-flex
f9806fa5 9007
a90ef4bf
JM
9008pdf-flex: \
9009 configure-flex
f9806fa5 9010 @: $(MAKE); $(unstage)
a90ef4bf 9011 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9012 r=`${PWD_COMMAND}`; export r; \
9013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9014 $(HOST_EXPORTS) \
9015 for flag in $(EXTRA_HOST_FLAGS) ; do \
9016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9017 done; \
22121df0 9018 echo "Doing pdf in flex"; \
a90ef4bf 9019 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9022 "RANLIB=$${RANLIB}" \
9023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9024 pdf) \
9025 || exit 1
9026
a90ef4bf 9027@endif flex
f9806fa5 9028
a90ef4bf
JM
9029.PHONY: maybe-html-flex html-flex
9030maybe-html-flex:
9031@if flex
9032maybe-html-flex: html-flex
f9806fa5 9033
a90ef4bf
JM
9034html-flex: \
9035 configure-flex
f9806fa5 9036 @: $(MAKE); $(unstage)
a90ef4bf 9037 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9038 r=`${PWD_COMMAND}`; export r; \
9039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9040 $(HOST_EXPORTS) \
9041 for flag in $(EXTRA_HOST_FLAGS) ; do \
9042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9043 done; \
22121df0 9044 echo "Doing html in flex"; \
a90ef4bf 9045 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9048 "RANLIB=$${RANLIB}" \
9049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9050 html) \
9051 || exit 1
9052
a90ef4bf 9053@endif flex
f9806fa5 9054
a90ef4bf
JM
9055.PHONY: maybe-TAGS-flex TAGS-flex
9056maybe-TAGS-flex:
9057@if flex
9058maybe-TAGS-flex: TAGS-flex
f9806fa5 9059
a90ef4bf
JM
9060TAGS-flex: \
9061 configure-flex
f9806fa5 9062 @: $(MAKE); $(unstage)
a90ef4bf 9063 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9064 r=`${PWD_COMMAND}`; export r; \
9065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9066 $(HOST_EXPORTS) \
9067 for flag in $(EXTRA_HOST_FLAGS) ; do \
9068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9069 done; \
22121df0 9070 echo "Doing TAGS in flex"; \
a90ef4bf 9071 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9074 "RANLIB=$${RANLIB}" \
9075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9076 TAGS) \
9077 || exit 1
9078
a90ef4bf 9079@endif flex
f9806fa5 9080
a90ef4bf
JM
9081.PHONY: maybe-install-info-flex install-info-flex
9082maybe-install-info-flex:
9083@if flex
9084maybe-install-info-flex: install-info-flex
f9806fa5 9085
a90ef4bf
JM
9086install-info-flex: \
9087 configure-flex \
9088 info-flex
f9806fa5 9089 @: $(MAKE); $(unstage)
a90ef4bf 9090 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9091 r=`${PWD_COMMAND}`; export r; \
9092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9093 $(HOST_EXPORTS) \
9094 for flag in $(EXTRA_HOST_FLAGS) ; do \
9095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9096 done; \
22121df0 9097 echo "Doing install-info in flex"; \
a90ef4bf 9098 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9101 "RANLIB=$${RANLIB}" \
9102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9103 install-info) \
9104 || exit 1
9105
a90ef4bf 9106@endif flex
f9806fa5 9107
a90ef4bf
JM
9108.PHONY: maybe-install-pdf-flex install-pdf-flex
9109maybe-install-pdf-flex:
9110@if flex
9111maybe-install-pdf-flex: install-pdf-flex
f9806fa5 9112
a90ef4bf
JM
9113install-pdf-flex: \
9114 configure-flex \
9115 pdf-flex
f9806fa5 9116 @: $(MAKE); $(unstage)
a90ef4bf 9117 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9118 r=`${PWD_COMMAND}`; export r; \
9119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9120 $(HOST_EXPORTS) \
9121 for flag in $(EXTRA_HOST_FLAGS) ; do \
9122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9123 done; \
22121df0 9124 echo "Doing install-pdf in flex"; \
a90ef4bf 9125 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9128 "RANLIB=$${RANLIB}" \
9129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9130 install-pdf) \
9131 || exit 1
9132
a90ef4bf 9133@endif flex
f9806fa5 9134
a90ef4bf
JM
9135.PHONY: maybe-install-html-flex install-html-flex
9136maybe-install-html-flex:
9137@if flex
9138maybe-install-html-flex: install-html-flex
f9806fa5 9139
a90ef4bf
JM
9140install-html-flex: \
9141 configure-flex \
9142 html-flex
f9806fa5 9143 @: $(MAKE); $(unstage)
a90ef4bf 9144 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9145 r=`${PWD_COMMAND}`; export r; \
9146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9147 $(HOST_EXPORTS) \
9148 for flag in $(EXTRA_HOST_FLAGS) ; do \
9149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9150 done; \
22121df0 9151 echo "Doing install-html in flex"; \
a90ef4bf 9152 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9155 "RANLIB=$${RANLIB}" \
9156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9157 install-html) \
9158 || exit 1
9159
a90ef4bf 9160@endif flex
f9806fa5 9161
a90ef4bf
JM
9162.PHONY: maybe-installcheck-flex installcheck-flex
9163maybe-installcheck-flex:
9164@if flex
9165maybe-installcheck-flex: installcheck-flex
f9806fa5 9166
a90ef4bf
JM
9167installcheck-flex: \
9168 configure-flex
f9806fa5 9169 @: $(MAKE); $(unstage)
a90ef4bf 9170 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9171 r=`${PWD_COMMAND}`; export r; \
9172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9173 $(HOST_EXPORTS) \
9174 for flag in $(EXTRA_HOST_FLAGS) ; do \
9175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9176 done; \
22121df0 9177 echo "Doing installcheck in flex"; \
a90ef4bf 9178 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9181 "RANLIB=$${RANLIB}" \
9182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9183 installcheck) \
9184 || exit 1
9185
a90ef4bf 9186@endif flex
f9806fa5 9187
a90ef4bf
JM
9188.PHONY: maybe-mostlyclean-flex mostlyclean-flex
9189maybe-mostlyclean-flex:
9190@if flex
9191maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 9192
a90ef4bf 9193mostlyclean-flex:
f9806fa5 9194 @: $(MAKE); $(unstage)
a90ef4bf 9195 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9196 r=`${PWD_COMMAND}`; export r; \
9197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9198 $(HOST_EXPORTS) \
9199 for flag in $(EXTRA_HOST_FLAGS) ; do \
9200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9201 done; \
22121df0 9202 echo "Doing mostlyclean in flex"; \
a90ef4bf 9203 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9206 "RANLIB=$${RANLIB}" \
9207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9208 mostlyclean) \
9209 || exit 1
9210
a90ef4bf 9211@endif flex
f9806fa5 9212
a90ef4bf
JM
9213.PHONY: maybe-clean-flex clean-flex
9214maybe-clean-flex:
9215@if flex
9216maybe-clean-flex: clean-flex
f9806fa5 9217
a90ef4bf 9218clean-flex:
f9806fa5 9219 @: $(MAKE); $(unstage)
a90ef4bf 9220 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9221 r=`${PWD_COMMAND}`; export r; \
9222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9223 $(HOST_EXPORTS) \
9224 for flag in $(EXTRA_HOST_FLAGS) ; do \
9225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9226 done; \
22121df0 9227 echo "Doing clean in flex"; \
a90ef4bf 9228 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9231 "RANLIB=$${RANLIB}" \
9232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9233 clean) \
9234 || exit 1
9235
a90ef4bf 9236@endif flex
f9806fa5 9237
a90ef4bf
JM
9238.PHONY: maybe-distclean-flex distclean-flex
9239maybe-distclean-flex:
9240@if flex
9241maybe-distclean-flex: distclean-flex
f9806fa5 9242
a90ef4bf 9243distclean-flex:
f9806fa5 9244 @: $(MAKE); $(unstage)
a90ef4bf 9245 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9246 r=`${PWD_COMMAND}`; export r; \
9247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9248 $(HOST_EXPORTS) \
9249 for flag in $(EXTRA_HOST_FLAGS) ; do \
9250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9251 done; \
22121df0 9252 echo "Doing distclean in flex"; \
a90ef4bf 9253 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9256 "RANLIB=$${RANLIB}" \
9257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9258 distclean) \
9259 || exit 1
9260
a90ef4bf 9261@endif flex
f9806fa5 9262
a90ef4bf
JM
9263.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
9264maybe-maintainer-clean-flex:
9265@if flex
9266maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 9267
a90ef4bf 9268maintainer-clean-flex:
f9806fa5 9269 @: $(MAKE); $(unstage)
a90ef4bf 9270 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9271 r=`${PWD_COMMAND}`; export r; \
9272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9273 $(HOST_EXPORTS) \
9274 for flag in $(EXTRA_HOST_FLAGS) ; do \
9275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9276 done; \
22121df0 9277 echo "Doing maintainer-clean in flex"; \
a90ef4bf 9278 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9281 "RANLIB=$${RANLIB}" \
9282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9283 maintainer-clean) \
9284 || exit 1
9285
a90ef4bf 9286@endif flex
f9806fa5
DE
9287
9288
9289
a90ef4bf
JM
9290.PHONY: configure-gas maybe-configure-gas
9291maybe-configure-gas:
4f0ef2d8 9292@if gcc-bootstrap
a90ef4bf 9293configure-gas: stage_current
4f0ef2d8 9294@endif gcc-bootstrap
a90ef4bf
JM
9295@if gas
9296maybe-configure-gas: configure-gas
9297configure-gas:
c52c6897 9298 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9300 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
22121df0 9301 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
1f53ca9a 9302 $(HOST_EXPORTS) \
a90ef4bf
JM
9303 echo Configuring in $(HOST_SUBDIR)/gas; \
9304 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 9305 case $(srcdir) in \
b00612cc 9306 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9307 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 9308 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9309 esac; \
1b6c0831
L
9310 module_srcdir=gas; \
9311 $(SHELL) \
9312 $$s/$$module_srcdir/configure \
9313 --srcdir=$${topdir}/$$module_srcdir \
4b900473 9314 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9315 --target=${target_alias} \
4fa63067 9316 || exit 1
a90ef4bf 9317@endif gas
a7254363 9318
d545f33b
PB
9319
9320
a90ef4bf
JM
9321.PHONY: configure-stage1-gas maybe-configure-stage1-gas
9322maybe-configure-stage1-gas:
9323@if gas-bootstrap
9324maybe-configure-stage1-gas: configure-stage1-gas
9325configure-stage1-gas:
9326 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9327 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9328 @r=`${PWD_COMMAND}`; export r; \
9329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9330 TFLAGS="$(STAGE1_TFLAGS)"; \
9331 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9332 $(HOST_EXPORTS) \
9333 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9334 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9335 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
9336 echo Configuring stage 1 in $(HOST_SUBDIR)/gas; \
9337 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9338 cd $(HOST_SUBDIR)/gas || exit 1; \
9339 case $(srcdir) in \
9340 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9341 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9342 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9343 esac; \
1b6c0831
L
9344 module_srcdir=gas; \
9345 $(SHELL) $$s/$$module_srcdir/configure \
9346 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9347 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9348 --target=${target_alias} \
9349 \
a90ef4bf
JM
9350 $(STAGE1_CONFIGURE_FLAGS)
9351@endif gas-bootstrap
4fa63067 9352
a90ef4bf
JM
9353.PHONY: configure-stage2-gas maybe-configure-stage2-gas
9354maybe-configure-stage2-gas:
9355@if gas-bootstrap
9356maybe-configure-stage2-gas: configure-stage2-gas
9357configure-stage2-gas:
9358 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9359 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9360 @r=`${PWD_COMMAND}`; export r; \
9361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9362 TFLAGS="$(STAGE2_TFLAGS)"; \
9363 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9364 $(HOST_EXPORTS) \
a90ef4bf
JM
9365 $(POSTSTAGE1_HOST_EXPORTS) \
9366 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9367 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9368 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9369 echo Configuring stage 2 in $(HOST_SUBDIR)/gas; \
9370 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9371 cd $(HOST_SUBDIR)/gas || exit 1; \
9372 case $(srcdir) in \
9373 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9374 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9375 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9376 esac; \
1b6c0831
L
9377 module_srcdir=gas; \
9378 $(SHELL) $$s/$$module_srcdir/configure \
9379 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9380 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9381 --target=${target_alias} \
22121df0 9382 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9383 $(STAGE2_CONFIGURE_FLAGS)
9384@endif gas-bootstrap
4fa63067 9385
a90ef4bf
JM
9386.PHONY: configure-stage3-gas maybe-configure-stage3-gas
9387maybe-configure-stage3-gas:
9388@if gas-bootstrap
9389maybe-configure-stage3-gas: configure-stage3-gas
9390configure-stage3-gas:
9391 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9392 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9393 @r=`${PWD_COMMAND}`; export r; \
9394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9395 TFLAGS="$(STAGE3_TFLAGS)"; \
9396 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9397 $(HOST_EXPORTS) \
a90ef4bf
JM
9398 $(POSTSTAGE1_HOST_EXPORTS) \
9399 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9400 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9401 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9402 echo Configuring stage 3 in $(HOST_SUBDIR)/gas; \
9403 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9404 cd $(HOST_SUBDIR)/gas || exit 1; \
9405 case $(srcdir) in \
9406 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9407 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9408 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9409 esac; \
1b6c0831
L
9410 module_srcdir=gas; \
9411 $(SHELL) $$s/$$module_srcdir/configure \
9412 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9413 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9414 --target=${target_alias} \
22121df0 9415 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9416 $(STAGE3_CONFIGURE_FLAGS)
9417@endif gas-bootstrap
9b980aa1 9418
a90ef4bf
JM
9419.PHONY: configure-stage4-gas maybe-configure-stage4-gas
9420maybe-configure-stage4-gas:
9421@if gas-bootstrap
9422maybe-configure-stage4-gas: configure-stage4-gas
9423configure-stage4-gas:
9424 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9425 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
9426 @r=`${PWD_COMMAND}`; export r; \
9427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9428 TFLAGS="$(STAGE4_TFLAGS)"; \
9429 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 9430 $(HOST_EXPORTS) \
a90ef4bf
JM
9431 $(POSTSTAGE1_HOST_EXPORTS) \
9432 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9433 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9434 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9435 echo Configuring stage 4 in $(HOST_SUBDIR)/gas; \
9436 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9437 cd $(HOST_SUBDIR)/gas || exit 1; \
9438 case $(srcdir) in \
9439 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9440 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9441 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9442 esac; \
1b6c0831
L
9443 module_srcdir=gas; \
9444 $(SHELL) $$s/$$module_srcdir/configure \
9445 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9446 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9447 --target=${target_alias} \
22121df0 9448 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9449 $(STAGE4_CONFIGURE_FLAGS)
9450@endif gas-bootstrap
4fa63067 9451
a90ef4bf
JM
9452.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
9453maybe-configure-stageprofile-gas:
9454@if gas-bootstrap
9455maybe-configure-stageprofile-gas: configure-stageprofile-gas
9456configure-stageprofile-gas:
9457 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9458 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9459 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9461 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9462 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9463 $(HOST_EXPORTS) \
a90ef4bf
JM
9464 $(POSTSTAGE1_HOST_EXPORTS) \
9465 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9466 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9467 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9468 echo Configuring stage profile in $(HOST_SUBDIR)/gas; \
9469 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9470 cd $(HOST_SUBDIR)/gas || exit 1; \
9471 case $(srcdir) in \
9472 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9473 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9474 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9475 esac; \
1b6c0831
L
9476 module_srcdir=gas; \
9477 $(SHELL) $$s/$$module_srcdir/configure \
9478 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9479 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9480 --target=${target_alias} \
22121df0 9481 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9482 $(STAGEprofile_CONFIGURE_FLAGS)
9483@endif gas-bootstrap
2a4cbe27 9484
a90ef4bf
JM
9485.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
9486maybe-configure-stagefeedback-gas:
9487@if gas-bootstrap
9488maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9489configure-stagefeedback-gas:
9490 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9491 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9492 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9494 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9495 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9496 $(HOST_EXPORTS) \
a90ef4bf
JM
9497 $(POSTSTAGE1_HOST_EXPORTS) \
9498 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9499 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9500 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9501 echo Configuring stage feedback in $(HOST_SUBDIR)/gas; \
9502 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9503 cd $(HOST_SUBDIR)/gas || exit 1; \
9504 case $(srcdir) in \
9505 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9506 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9507 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9508 esac; \
1b6c0831
L
9509 module_srcdir=gas; \
9510 $(SHELL) $$s/$$module_srcdir/configure \
9511 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9512 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9513 --target=${target_alias} \
22121df0 9514 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9515 $(STAGEfeedback_CONFIGURE_FLAGS)
9516@endif gas-bootstrap
2a4cbe27 9517
56a8fe78 9518
56a8fe78 9519
56a8fe78 9520
6d389afc 9521
a90ef4bf
JM
9522.PHONY: all-gas maybe-all-gas
9523maybe-all-gas:
9524@if gcc-bootstrap
9525all-gas: stage_current
9526@endif gcc-bootstrap
9527@if gas
9528TARGET-gas=all
9529maybe-all-gas: all-gas
9530all-gas: configure-gas
9531 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9533 $(HOST_EXPORTS) \
9534 (cd $(HOST_SUBDIR)/gas && \
b3676d82 9535 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9536 $(TARGET-gas))
9537@endif gas
6d389afc 9538
6d389afc 9539
2a4cbe27 9540
a90ef4bf
JM
9541.PHONY: all-stage1-gas maybe-all-stage1-gas
9542.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9543maybe-all-stage1-gas:
9544maybe-clean-stage1-gas:
9545@if gas-bootstrap
9546maybe-all-stage1-gas: all-stage1-gas
9547all-stage1: all-stage1-gas
9548TARGET-stage1-gas = $(TARGET-gas)
9549all-stage1-gas: configure-stage1-gas
9550 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9551 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9553 TFLAGS="$(STAGE1_TFLAGS)"; \
9554 $(HOST_EXPORTS) \
9555 cd $(HOST_SUBDIR)/gas && \
9556 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9557 CFLAGS="$(STAGE1_CFLAGS)" \
9558 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9559 LIBCFLAGS="$(LIBCFLAGS)" \
9560 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9561 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9562 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9563 $(EXTRA_HOST_FLAGS) \
9564 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9565 TFLAGS="$(STAGE1_TFLAGS)" \
9566 $(TARGET-stage1-gas)
2a4cbe27 9567
a90ef4bf
JM
9568maybe-clean-stage1-gas: clean-stage1-gas
9569clean-stage1: clean-stage1-gas
9570clean-stage1-gas:
9571 @if [ $(current_stage) = stage1 ]; then \
9572 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9573 else \
9574 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
9575 $(MAKE) stage1-start; \
9576 fi; \
9577 cd $(HOST_SUBDIR)/gas && \
9578 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9579 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9580@endif gas-bootstrap
2a4cbe27 9581
2a4cbe27 9582
a90ef4bf
JM
9583.PHONY: all-stage2-gas maybe-all-stage2-gas
9584.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9585maybe-all-stage2-gas:
9586maybe-clean-stage2-gas:
9587@if gas-bootstrap
9588maybe-all-stage2-gas: all-stage2-gas
9589all-stage2: all-stage2-gas
9590TARGET-stage2-gas = $(TARGET-gas)
9591all-stage2-gas: configure-stage2-gas
9592 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9593 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9595 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 9596 $(HOST_EXPORTS) \
a90ef4bf
JM
9597 $(POSTSTAGE1_HOST_EXPORTS) \
9598 cd $(HOST_SUBDIR)/gas && \
9599 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9600 CFLAGS="$(STAGE2_CFLAGS)" \
9601 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9602 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9603 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9604 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9605 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9606 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9607 TFLAGS="$(STAGE2_TFLAGS)" \
9608 $(TARGET-stage2-gas)
2a4cbe27 9609
a90ef4bf
JM
9610maybe-clean-stage2-gas: clean-stage2-gas
9611clean-stage2: clean-stage2-gas
9612clean-stage2-gas:
9613 @if [ $(current_stage) = stage2 ]; then \
9614 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9615 else \
9616 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
9617 $(MAKE) stage2-start; \
9618 fi; \
9619 cd $(HOST_SUBDIR)/gas && \
b3676d82 9620 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9621@endif gas-bootstrap
2a4cbe27 9622
2a4cbe27 9623
a90ef4bf
JM
9624.PHONY: all-stage3-gas maybe-all-stage3-gas
9625.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9626maybe-all-stage3-gas:
9627maybe-clean-stage3-gas:
9628@if gas-bootstrap
9629maybe-all-stage3-gas: all-stage3-gas
9630all-stage3: all-stage3-gas
9631TARGET-stage3-gas = $(TARGET-gas)
9632all-stage3-gas: configure-stage3-gas
9633 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9634 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9636 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9637 $(HOST_EXPORTS) \
a90ef4bf
JM
9638 $(POSTSTAGE1_HOST_EXPORTS) \
9639 cd $(HOST_SUBDIR)/gas && \
9640 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9641 CFLAGS="$(STAGE3_CFLAGS)" \
9642 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9643 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9644 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9645 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9646 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9647 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9648 TFLAGS="$(STAGE3_TFLAGS)" \
9649 $(TARGET-stage3-gas)
2a4cbe27 9650
a90ef4bf
JM
9651maybe-clean-stage3-gas: clean-stage3-gas
9652clean-stage3: clean-stage3-gas
9653clean-stage3-gas:
9654 @if [ $(current_stage) = stage3 ]; then \
9655 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9656 else \
9657 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9658 $(MAKE) stage3-start; \
9659 fi; \
9660 cd $(HOST_SUBDIR)/gas && \
b3676d82 9661 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9662@endif gas-bootstrap
2a4cbe27 9663
2a4cbe27 9664
a90ef4bf
JM
9665.PHONY: all-stage4-gas maybe-all-stage4-gas
9666.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9667maybe-all-stage4-gas:
9668maybe-clean-stage4-gas:
9669@if gas-bootstrap
9670maybe-all-stage4-gas: all-stage4-gas
9671all-stage4: all-stage4-gas
9672TARGET-stage4-gas = $(TARGET-gas)
9673all-stage4-gas: configure-stage4-gas
9674 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9675 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9677 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9678 $(HOST_EXPORTS) \
a90ef4bf
JM
9679 $(POSTSTAGE1_HOST_EXPORTS) \
9680 cd $(HOST_SUBDIR)/gas && \
9681 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9682 CFLAGS="$(STAGE4_CFLAGS)" \
9683 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9684 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9685 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9686 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9687 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9688 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9689 TFLAGS="$(STAGE4_TFLAGS)" \
9690 $(TARGET-stage4-gas)
2a4cbe27 9691
a90ef4bf
JM
9692maybe-clean-stage4-gas: clean-stage4-gas
9693clean-stage4: clean-stage4-gas
9694clean-stage4-gas:
9695 @if [ $(current_stage) = stage4 ]; then \
9696 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9697 else \
9698 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9699 $(MAKE) stage4-start; \
9700 fi; \
9701 cd $(HOST_SUBDIR)/gas && \
b3676d82 9702 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9703@endif gas-bootstrap
2a4cbe27 9704
2a4cbe27 9705
a90ef4bf
JM
9706.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9707.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9708maybe-all-stageprofile-gas:
9709maybe-clean-stageprofile-gas:
9710@if gas-bootstrap
9711maybe-all-stageprofile-gas: all-stageprofile-gas
9712all-stageprofile: all-stageprofile-gas
9713TARGET-stageprofile-gas = $(TARGET-gas)
9714all-stageprofile-gas: configure-stageprofile-gas
9715 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9716 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9718 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9719 $(HOST_EXPORTS) \
a90ef4bf
JM
9720 $(POSTSTAGE1_HOST_EXPORTS) \
9721 cd $(HOST_SUBDIR)/gas && \
9722 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9723 CFLAGS="$(STAGEprofile_CFLAGS)" \
9724 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9725 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9726 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9727 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9728 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9729 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9730 TFLAGS="$(STAGEprofile_TFLAGS)" \
9731 $(TARGET-stageprofile-gas)
4fa63067 9732
a90ef4bf
JM
9733maybe-clean-stageprofile-gas: clean-stageprofile-gas
9734clean-stageprofile: clean-stageprofile-gas
9735clean-stageprofile-gas:
9736 @if [ $(current_stage) = stageprofile ]; then \
9737 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9738 else \
9739 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9740 $(MAKE) stageprofile-start; \
9741 fi; \
9742 cd $(HOST_SUBDIR)/gas && \
b3676d82 9743 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9744@endif gas-bootstrap
4fa63067 9745
a7254363 9746
a90ef4bf
JM
9747.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9748.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9749maybe-all-stagefeedback-gas:
9750maybe-clean-stagefeedback-gas:
9751@if gas-bootstrap
9752maybe-all-stagefeedback-gas: all-stagefeedback-gas
9753all-stagefeedback: all-stagefeedback-gas
9754TARGET-stagefeedback-gas = $(TARGET-gas)
9755all-stagefeedback-gas: configure-stagefeedback-gas
9756 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9757 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9759 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9760 $(HOST_EXPORTS) \
9761 $(POSTSTAGE1_HOST_EXPORTS) \
9762 cd $(HOST_SUBDIR)/gas && \
9763 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9764 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9765 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9766 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9767 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9768 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9769 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9770 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9771 TFLAGS="$(STAGEfeedback_TFLAGS)" \
9772 $(TARGET-stagefeedback-gas)
d545f33b 9773
a90ef4bf
JM
9774maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9775clean-stagefeedback: clean-stagefeedback-gas
9776clean-stagefeedback-gas:
9777 @if [ $(current_stage) = stagefeedback ]; then \
9778 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9779 else \
9780 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9781 $(MAKE) stagefeedback-start; \
9782 fi; \
9783 cd $(HOST_SUBDIR)/gas && \
b3676d82 9784 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9785@endif gas-bootstrap
d545f33b 9786
2a4cbe27 9787
a7254363 9788
d545f33b
PB
9789
9790
a90ef4bf
JM
9791.PHONY: check-gas maybe-check-gas
9792maybe-check-gas:
9793@if gas
9794maybe-check-gas: check-gas
2a4cbe27 9795
a90ef4bf 9796check-gas:
0aed8855 9797 @: $(MAKE); $(unstage)
4fa63067 9798 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9800 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 9801 (cd $(HOST_SUBDIR)/gas && \
f91ca6bc 9802 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 9803
a90ef4bf 9804@endif gas
2a4cbe27 9805
a90ef4bf
JM
9806.PHONY: install-gas maybe-install-gas
9807maybe-install-gas:
9808@if gas
9809maybe-install-gas: install-gas
2a4cbe27 9810
a90ef4bf 9811install-gas: installdirs
0aed8855 9812 @: $(MAKE); $(unstage)
4fa63067 9813 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9815 $(HOST_EXPORTS) \
a90ef4bf 9816 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9817 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9818
a90ef4bf 9819@endif gas
2a4cbe27 9820
a90ef4bf
JM
9821.PHONY: install-strip-gas maybe-install-strip-gas
9822maybe-install-strip-gas:
9823@if gas
9824maybe-install-strip-gas: install-strip-gas
9b980aa1 9825
a90ef4bf 9826install-strip-gas: installdirs
9b980aa1
RW
9827 @: $(MAKE); $(unstage)
9828 @r=`${PWD_COMMAND}`; export r; \
9829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9830 $(HOST_EXPORTS) \
a90ef4bf 9831 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9832 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9833
a90ef4bf 9834@endif gas
9b980aa1 9835
56a8fe78 9836# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9837
a90ef4bf
JM
9838.PHONY: maybe-info-gas info-gas
9839maybe-info-gas:
9840@if gas
9841maybe-info-gas: info-gas
2a4cbe27 9842
a90ef4bf
JM
9843info-gas: \
9844 configure-gas
9845 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9846 r=`${PWD_COMMAND}`; export r; \
9847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9848 $(HOST_EXPORTS) \
b813574b 9849 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9851 done; \
22121df0 9852 echo "Doing info in gas"; \
a90ef4bf 9853 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9856 "RANLIB=$${RANLIB}" \
0c24b341 9857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9858 info) \
2a4cbe27
NN
9859 || exit 1
9860
a90ef4bf 9861@endif gas
2a4cbe27 9862
a90ef4bf
JM
9863.PHONY: maybe-dvi-gas dvi-gas
9864maybe-dvi-gas:
9865@if gas
9866maybe-dvi-gas: dvi-gas
2a4cbe27 9867
a90ef4bf
JM
9868dvi-gas: \
9869 configure-gas
9870 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9871 r=`${PWD_COMMAND}`; export r; \
9872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9873 $(HOST_EXPORTS) \
b813574b 9874 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9876 done; \
22121df0 9877 echo "Doing dvi in gas"; \
a90ef4bf 9878 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9881 "RANLIB=$${RANLIB}" \
0c24b341 9882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9883 dvi) \
2a4cbe27
NN
9884 || exit 1
9885
a90ef4bf 9886@endif gas
2a4cbe27 9887
a90ef4bf
JM
9888.PHONY: maybe-pdf-gas pdf-gas
9889maybe-pdf-gas:
9890@if gas
9891maybe-pdf-gas: pdf-gas
56a8fe78 9892
a90ef4bf
JM
9893pdf-gas: \
9894 configure-gas
9895 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
9896 r=`${PWD_COMMAND}`; export r; \
9897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9898 $(HOST_EXPORTS) \
9899 for flag in $(EXTRA_HOST_FLAGS) ; do \
9900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9901 done; \
22121df0 9902 echo "Doing pdf in gas"; \
a90ef4bf 9903 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
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}" \
56a8fe78
DD
9908 pdf) \
9909 || exit 1
9910
a90ef4bf 9911@endif gas
56a8fe78 9912
a90ef4bf
JM
9913.PHONY: maybe-html-gas html-gas
9914maybe-html-gas:
9915@if gas
9916maybe-html-gas: html-gas
6d389afc 9917
a90ef4bf
JM
9918html-gas: \
9919 configure-gas
9920 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
9921 r=`${PWD_COMMAND}`; export r; \
9922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
9923 $(HOST_EXPORTS) \
9924 for flag in $(EXTRA_HOST_FLAGS) ; do \
9925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9926 done; \
22121df0 9927 echo "Doing html in gas"; \
a90ef4bf 9928 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
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}" \
6d389afc
MS
9933 html) \
9934 || exit 1
9935
a90ef4bf 9936@endif gas
6d389afc 9937
a90ef4bf
JM
9938.PHONY: maybe-TAGS-gas TAGS-gas
9939maybe-TAGS-gas:
9940@if gas
9941maybe-TAGS-gas: TAGS-gas
2a4cbe27 9942
a90ef4bf
JM
9943TAGS-gas: \
9944 configure-gas
9945 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9946 r=`${PWD_COMMAND}`; export r; \
9947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9948 $(HOST_EXPORTS) \
b813574b 9949 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9951 done; \
22121df0 9952 echo "Doing TAGS in gas"; \
a90ef4bf 9953 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
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}" \
b813574b 9958 TAGS) \
2a4cbe27
NN
9959 || exit 1
9960
a90ef4bf 9961@endif gas
2a4cbe27 9962
a90ef4bf
JM
9963.PHONY: maybe-install-info-gas install-info-gas
9964maybe-install-info-gas:
9965@if gas
9966maybe-install-info-gas: install-info-gas
2a4cbe27 9967
a90ef4bf
JM
9968install-info-gas: \
9969 configure-gas \
9970 info-gas
9971 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9972 r=`${PWD_COMMAND}`; export r; \
9973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9974 $(HOST_EXPORTS) \
b813574b 9975 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9977 done; \
22121df0 9978 echo "Doing install-info in gas"; \
a90ef4bf 9979 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9982 "RANLIB=$${RANLIB}" \
0c24b341 9983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9984 install-info) \
2a4cbe27
NN
9985 || exit 1
9986
a90ef4bf 9987@endif gas
2a4cbe27 9988
a90ef4bf
JM
9989.PHONY: maybe-install-pdf-gas install-pdf-gas
9990maybe-install-pdf-gas:
9991@if gas
9992maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 9993
a90ef4bf
JM
9994install-pdf-gas: \
9995 configure-gas \
9996 pdf-gas
9997 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
9998 r=`${PWD_COMMAND}`; export r; \
9999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10000 $(HOST_EXPORTS) \
10001 for flag in $(EXTRA_HOST_FLAGS) ; do \
10002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10003 done; \
22121df0 10004 echo "Doing install-pdf in gas"; \
a90ef4bf 10005 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
10006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10008 "RANLIB=$${RANLIB}" \
0c24b341 10009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10010 install-pdf) \
10011 || exit 1
10012
a90ef4bf 10013@endif gas
a3ca38d2 10014
a90ef4bf
JM
10015.PHONY: maybe-install-html-gas install-html-gas
10016maybe-install-html-gas:
10017@if gas
10018maybe-install-html-gas: install-html-gas
108a6f8e 10019
a90ef4bf
JM
10020install-html-gas: \
10021 configure-gas \
10022 html-gas
10023 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
10024 r=`${PWD_COMMAND}`; export r; \
10025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10026 $(HOST_EXPORTS) \
10027 for flag in $(EXTRA_HOST_FLAGS) ; do \
10028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10029 done; \
22121df0 10030 echo "Doing install-html in gas"; \
a90ef4bf 10031 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
10032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10034 "RANLIB=$${RANLIB}" \
0c24b341 10035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10036 install-html) \
10037 || exit 1
10038
a90ef4bf 10039@endif gas
108a6f8e 10040
a90ef4bf
JM
10041.PHONY: maybe-installcheck-gas installcheck-gas
10042maybe-installcheck-gas:
10043@if gas
10044maybe-installcheck-gas: installcheck-gas
2a4cbe27 10045
a90ef4bf
JM
10046installcheck-gas: \
10047 configure-gas
10048 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10049 r=`${PWD_COMMAND}`; export r; \
10050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10051 $(HOST_EXPORTS) \
b813574b 10052 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10054 done; \
22121df0 10055 echo "Doing installcheck in gas"; \
a90ef4bf 10056 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10059 "RANLIB=$${RANLIB}" \
0c24b341 10060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10061 installcheck) \
2a4cbe27
NN
10062 || exit 1
10063
a90ef4bf 10064@endif gas
2a4cbe27 10065
a90ef4bf
JM
10066.PHONY: maybe-mostlyclean-gas mostlyclean-gas
10067maybe-mostlyclean-gas:
10068@if gas
10069maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 10070
a90ef4bf
JM
10071mostlyclean-gas:
10072 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10073 r=`${PWD_COMMAND}`; export r; \
10074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10075 $(HOST_EXPORTS) \
b813574b 10076 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10078 done; \
22121df0 10079 echo "Doing mostlyclean in gas"; \
a90ef4bf 10080 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10083 "RANLIB=$${RANLIB}" \
0c24b341 10084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10085 mostlyclean) \
2a4cbe27
NN
10086 || exit 1
10087
a90ef4bf 10088@endif gas
2a4cbe27 10089
a90ef4bf
JM
10090.PHONY: maybe-clean-gas clean-gas
10091maybe-clean-gas:
10092@if gas
10093maybe-clean-gas: clean-gas
2a4cbe27 10094
a90ef4bf
JM
10095clean-gas:
10096 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10097 r=`${PWD_COMMAND}`; export r; \
10098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10099 $(HOST_EXPORTS) \
b813574b 10100 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10102 done; \
22121df0 10103 echo "Doing clean in gas"; \
a90ef4bf 10104 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10107 "RANLIB=$${RANLIB}" \
0c24b341 10108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10109 clean) \
2a4cbe27
NN
10110 || exit 1
10111
a90ef4bf 10112@endif gas
2a4cbe27 10113
a90ef4bf
JM
10114.PHONY: maybe-distclean-gas distclean-gas
10115maybe-distclean-gas:
10116@if gas
10117maybe-distclean-gas: distclean-gas
2a4cbe27 10118
a90ef4bf
JM
10119distclean-gas:
10120 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10121 r=`${PWD_COMMAND}`; export r; \
10122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10123 $(HOST_EXPORTS) \
b813574b 10124 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10126 done; \
22121df0 10127 echo "Doing distclean in gas"; \
a90ef4bf 10128 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10131 "RANLIB=$${RANLIB}" \
0c24b341 10132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10133 distclean) \
2a4cbe27
NN
10134 || exit 1
10135
a90ef4bf 10136@endif gas
2a4cbe27 10137
a90ef4bf
JM
10138.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
10139maybe-maintainer-clean-gas:
10140@if gas
10141maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 10142
a90ef4bf
JM
10143maintainer-clean-gas:
10144 @[ -f ./gas/Makefile ] || exit 0; \
10145 r=`${PWD_COMMAND}`; export r; \
b40e3958 10146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10147 $(HOST_EXPORTS) \
b813574b 10148 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10150 done; \
22121df0 10151 echo "Doing maintainer-clean in gas"; \
a90ef4bf 10152 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10155 "RANLIB=$${RANLIB}" \
0c24b341 10156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10157 maintainer-clean) \
2a4cbe27
NN
10158 || exit 1
10159
a90ef4bf 10160@endif gas
2a4cbe27 10161
2a4cbe27 10162
a7254363 10163
a90ef4bf
JM
10164.PHONY: configure-gcc maybe-configure-gcc
10165maybe-configure-gcc:
4f0ef2d8 10166@if gcc-bootstrap
a90ef4bf 10167configure-gcc: stage_current
4f0ef2d8 10168@endif gcc-bootstrap
a90ef4bf
JM
10169@if gcc
10170maybe-configure-gcc: configure-gcc
10171configure-gcc:
c52c6897 10172 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10174 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
22121df0 10175 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
1f53ca9a 10176 $(HOST_EXPORTS) \
a90ef4bf
JM
10177 echo Configuring in $(HOST_SUBDIR)/gcc; \
10178 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 10179 case $(srcdir) in \
b00612cc 10180 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10181 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 10182 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10183 esac; \
1b6c0831
L
10184 module_srcdir=gcc; \
10185 $(SHELL) \
10186 $$s/$$module_srcdir/configure \
10187 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10188 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10189 --target=${target_alias} \
4fa63067 10190 || exit 1
a90ef4bf 10191@endif gcc
a7254363 10192
d545f33b
PB
10193
10194
a90ef4bf
JM
10195.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
10196maybe-configure-stage1-gcc:
4f0ef2d8 10197@if gcc-bootstrap
a90ef4bf
JM
10198maybe-configure-stage1-gcc: configure-stage1-gcc
10199configure-stage1-gcc:
10200 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10201 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
10202 @r=`${PWD_COMMAND}`; export r; \
10203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10204 TFLAGS="$(STAGE1_TFLAGS)"; \
10205 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10206 $(HOST_EXPORTS) \
10207 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10208 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10209 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
10210 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \
10211 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10212 cd $(HOST_SUBDIR)/gcc || exit 1; \
10213 case $(srcdir) in \
10214 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10215 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10216 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10217 esac; \
1b6c0831
L
10218 module_srcdir=gcc; \
10219 $(SHELL) $$s/$$module_srcdir/configure \
10220 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10221 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10222 --target=${target_alias} \
10223 \
a90ef4bf
JM
10224 $(STAGE1_CONFIGURE_FLAGS)
10225@endif gcc-bootstrap
4fa63067 10226
a90ef4bf
JM
10227.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
10228maybe-configure-stage2-gcc:
10229@if gcc-bootstrap
10230maybe-configure-stage2-gcc: configure-stage2-gcc
10231configure-stage2-gcc:
10232 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10233 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 10234 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10236 TFLAGS="$(STAGE2_TFLAGS)"; \
10237 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10238 $(HOST_EXPORTS) \
a90ef4bf
JM
10239 $(POSTSTAGE1_HOST_EXPORTS) \
10240 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10241 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10242 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10243 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \
10244 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10245 cd $(HOST_SUBDIR)/gcc || exit 1; \
10246 case $(srcdir) in \
10247 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10248 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10249 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10250 esac; \
1b6c0831
L
10251 module_srcdir=gcc; \
10252 $(SHELL) $$s/$$module_srcdir/configure \
10253 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10254 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10255 --target=${target_alias} \
22121df0 10256 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10257 $(STAGE2_CONFIGURE_FLAGS)
10258@endif gcc-bootstrap
9b980aa1 10259
a90ef4bf
JM
10260.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
10261maybe-configure-stage3-gcc:
10262@if gcc-bootstrap
10263maybe-configure-stage3-gcc: configure-stage3-gcc
10264configure-stage3-gcc:
10265 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10266 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
10267 @r=`${PWD_COMMAND}`; export r; \
10268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10269 TFLAGS="$(STAGE3_TFLAGS)"; \
10270 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 10271 $(HOST_EXPORTS) \
a90ef4bf
JM
10272 $(POSTSTAGE1_HOST_EXPORTS) \
10273 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10274 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10275 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10276 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \
10277 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10278 cd $(HOST_SUBDIR)/gcc || exit 1; \
10279 case $(srcdir) in \
10280 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10281 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10282 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10283 esac; \
1b6c0831
L
10284 module_srcdir=gcc; \
10285 $(SHELL) $$s/$$module_srcdir/configure \
10286 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10287 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10288 --target=${target_alias} \
22121df0 10289 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10290 $(STAGE3_CONFIGURE_FLAGS)
10291@endif gcc-bootstrap
4fa63067 10292
a90ef4bf
JM
10293.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
10294maybe-configure-stage4-gcc:
10295@if gcc-bootstrap
10296maybe-configure-stage4-gcc: configure-stage4-gcc
10297configure-stage4-gcc:
10298 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10299 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10300 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10302 TFLAGS="$(STAGE4_TFLAGS)"; \
10303 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10304 $(HOST_EXPORTS) \
a90ef4bf
JM
10305 $(POSTSTAGE1_HOST_EXPORTS) \
10306 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10307 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10308 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10309 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \
10310 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10311 cd $(HOST_SUBDIR)/gcc || exit 1; \
10312 case $(srcdir) in \
10313 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10314 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10315 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10316 esac; \
1b6c0831
L
10317 module_srcdir=gcc; \
10318 $(SHELL) $$s/$$module_srcdir/configure \
10319 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10320 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10321 --target=${target_alias} \
22121df0 10322 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10323 $(STAGE4_CONFIGURE_FLAGS)
10324@endif gcc-bootstrap
2a4cbe27 10325
a90ef4bf
JM
10326.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
10327maybe-configure-stageprofile-gcc:
10328@if gcc-bootstrap
10329maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
10330configure-stageprofile-gcc:
10331 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10332 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10333 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10335 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10336 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10337 $(HOST_EXPORTS) \
a90ef4bf
JM
10338 $(POSTSTAGE1_HOST_EXPORTS) \
10339 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10340 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10341 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10342 echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \
10343 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10344 cd $(HOST_SUBDIR)/gcc || exit 1; \
10345 case $(srcdir) in \
10346 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10347 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10348 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10349 esac; \
1b6c0831
L
10350 module_srcdir=gcc; \
10351 $(SHELL) $$s/$$module_srcdir/configure \
10352 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10353 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10354 --target=${target_alias} \
22121df0 10355 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10356 $(STAGEprofile_CONFIGURE_FLAGS)
10357@endif gcc-bootstrap
56a8fe78 10358
a90ef4bf
JM
10359.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
10360maybe-configure-stagefeedback-gcc:
10361@if gcc-bootstrap
10362maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
10363configure-stagefeedback-gcc:
10364 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10365 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10366 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10368 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10369 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 10370 $(HOST_EXPORTS) \
a90ef4bf
JM
10371 $(POSTSTAGE1_HOST_EXPORTS) \
10372 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10373 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10374 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10375 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \
10376 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10377 cd $(HOST_SUBDIR)/gcc || exit 1; \
10378 case $(srcdir) in \
10379 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10380 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10381 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10382 esac; \
1b6c0831
L
10383 module_srcdir=gcc; \
10384 $(SHELL) $$s/$$module_srcdir/configure \
10385 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10386 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10387 --target=${target_alias} \
22121df0 10388 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10389 $(STAGEfeedback_CONFIGURE_FLAGS)
10390@endif gcc-bootstrap
56a8fe78 10391
2a4cbe27 10392
2a4cbe27
NN
10393
10394
2a4cbe27 10395
a90ef4bf
JM
10396.PHONY: all-gcc maybe-all-gcc
10397maybe-all-gcc:
10398@if gcc-bootstrap
10399all-gcc: stage_current
10400@endif gcc-bootstrap
10401@if gcc
10402TARGET-gcc=all
10403maybe-all-gcc: all-gcc
10404all-gcc: configure-gcc
10405 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10407 $(HOST_EXPORTS) \
10408 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 10409 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10410 $(TARGET-gcc))
10411@endif gcc
6d389afc 10412
6d389afc 10413
6d389afc 10414
a90ef4bf
JM
10415.PHONY: all-stage1-gcc maybe-all-stage1-gcc
10416.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
10417maybe-all-stage1-gcc:
10418maybe-clean-stage1-gcc:
10419@if gcc-bootstrap
10420maybe-all-stage1-gcc: all-stage1-gcc
10421all-stage1: all-stage1-gcc
10422TARGET-stage1-gcc = $(TARGET-gcc)
10423all-stage1-gcc: configure-stage1-gcc
10424 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10425 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10427 TFLAGS="$(STAGE1_TFLAGS)"; \
10428 $(HOST_EXPORTS) \
10429 cd $(HOST_SUBDIR)/gcc && \
10430 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10431 CFLAGS="$(STAGE1_CFLAGS)" \
10432 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10433 LIBCFLAGS="$(LIBCFLAGS)" \
10434 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10435 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10436 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10437 $(EXTRA_HOST_FLAGS) \
10438 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10439 TFLAGS="$(STAGE1_TFLAGS)" \
10440 $(TARGET-stage1-gcc)
2a4cbe27 10441
a90ef4bf
JM
10442maybe-clean-stage1-gcc: clean-stage1-gcc
10443clean-stage1: clean-stage1-gcc
10444clean-stage1-gcc:
10445 @if [ $(current_stage) = stage1 ]; then \
10446 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10447 else \
10448 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
10449 $(MAKE) stage1-start; \
10450 fi; \
10451 cd $(HOST_SUBDIR)/gcc && \
10452 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10453 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10454@endif gcc-bootstrap
2a4cbe27 10455
a3ca38d2 10456
a90ef4bf
JM
10457.PHONY: all-stage2-gcc maybe-all-stage2-gcc
10458.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
10459maybe-all-stage2-gcc:
10460maybe-clean-stage2-gcc:
10461@if gcc-bootstrap
10462maybe-all-stage2-gcc: all-stage2-gcc
10463all-stage2: all-stage2-gcc
10464TARGET-stage2-gcc = $(TARGET-gcc)
10465all-stage2-gcc: configure-stage2-gcc
10466 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10467 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 10468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10469 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 10470 $(HOST_EXPORTS) \
a90ef4bf
JM
10471 $(POSTSTAGE1_HOST_EXPORTS) \
10472 cd $(HOST_SUBDIR)/gcc && \
10473 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10474 CFLAGS="$(STAGE2_CFLAGS)" \
10475 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10476 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10477 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10478 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10479 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10480 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10481 TFLAGS="$(STAGE2_TFLAGS)" \
10482 $(TARGET-stage2-gcc)
a3ca38d2 10483
a90ef4bf
JM
10484maybe-clean-stage2-gcc: clean-stage2-gcc
10485clean-stage2: clean-stage2-gcc
10486clean-stage2-gcc:
10487 @if [ $(current_stage) = stage2 ]; then \
10488 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10489 else \
10490 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
10491 $(MAKE) stage2-start; \
10492 fi; \
10493 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10494 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10495@endif gcc-bootstrap
a3ca38d2 10496
108a6f8e 10497
a90ef4bf
JM
10498.PHONY: all-stage3-gcc maybe-all-stage3-gcc
10499.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
10500maybe-all-stage3-gcc:
10501maybe-clean-stage3-gcc:
10502@if gcc-bootstrap
10503maybe-all-stage3-gcc: all-stage3-gcc
10504all-stage3: all-stage3-gcc
10505TARGET-stage3-gcc = $(TARGET-gcc)
10506all-stage3-gcc: configure-stage3-gcc
10507 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10508 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 10509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10510 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 10511 $(HOST_EXPORTS) \
a90ef4bf
JM
10512 $(POSTSTAGE1_HOST_EXPORTS) \
10513 cd $(HOST_SUBDIR)/gcc && \
10514 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10515 CFLAGS="$(STAGE3_CFLAGS)" \
10516 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10517 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10518 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10519 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10520 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10521 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10522 TFLAGS="$(STAGE3_TFLAGS)" \
10523 $(TARGET-stage3-gcc)
108a6f8e 10524
a90ef4bf
JM
10525maybe-clean-stage3-gcc: clean-stage3-gcc
10526clean-stage3: clean-stage3-gcc
10527clean-stage3-gcc:
10528 @if [ $(current_stage) = stage3 ]; then \
10529 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10530 else \
10531 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
10532 $(MAKE) stage3-start; \
10533 fi; \
10534 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10535 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10536@endif gcc-bootstrap
108a6f8e 10537
2a4cbe27 10538
a90ef4bf
JM
10539.PHONY: all-stage4-gcc maybe-all-stage4-gcc
10540.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
10541maybe-all-stage4-gcc:
10542maybe-clean-stage4-gcc:
10543@if gcc-bootstrap
10544maybe-all-stage4-gcc: all-stage4-gcc
10545all-stage4: all-stage4-gcc
10546TARGET-stage4-gcc = $(TARGET-gcc)
10547all-stage4-gcc: configure-stage4-gcc
10548 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10549 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10551 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10552 $(HOST_EXPORTS) \
a90ef4bf
JM
10553 $(POSTSTAGE1_HOST_EXPORTS) \
10554 cd $(HOST_SUBDIR)/gcc && \
10555 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10556 CFLAGS="$(STAGE4_CFLAGS)" \
10557 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10558 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10559 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10560 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10561 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10562 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10563 TFLAGS="$(STAGE4_TFLAGS)" \
10564 $(TARGET-stage4-gcc)
2a4cbe27 10565
a90ef4bf
JM
10566maybe-clean-stage4-gcc: clean-stage4-gcc
10567clean-stage4: clean-stage4-gcc
10568clean-stage4-gcc:
10569 @if [ $(current_stage) = stage4 ]; then \
10570 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10571 else \
10572 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
10573 $(MAKE) stage4-start; \
10574 fi; \
10575 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10576 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10577@endif gcc-bootstrap
2a4cbe27 10578
a2592b1b 10579
a90ef4bf
JM
10580.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
10581.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
10582maybe-all-stageprofile-gcc:
10583maybe-clean-stageprofile-gcc:
10584@if gcc-bootstrap
10585maybe-all-stageprofile-gcc: all-stageprofile-gcc
10586all-stageprofile: all-stageprofile-gcc
10587TARGET-stageprofile-gcc = $(TARGET-gcc)
10588all-stageprofile-gcc: configure-stageprofile-gcc
10589 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10590 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 10591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10592 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10593 $(HOST_EXPORTS) \
a90ef4bf
JM
10594 $(POSTSTAGE1_HOST_EXPORTS) \
10595 cd $(HOST_SUBDIR)/gcc && \
10596 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10597 CFLAGS="$(STAGEprofile_CFLAGS)" \
10598 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10599 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10600 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10601 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10602 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10603 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10604 TFLAGS="$(STAGEprofile_TFLAGS)" \
10605 $(TARGET-stageprofile-gcc)
2a4cbe27 10606
a90ef4bf
JM
10607maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
10608clean-stageprofile: clean-stageprofile-gcc
10609clean-stageprofile-gcc:
10610 @if [ $(current_stage) = stageprofile ]; then \
10611 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10612 else \
10613 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
10614 $(MAKE) stageprofile-start; \
10615 fi; \
10616 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10617 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10618@endif gcc-bootstrap
2a4cbe27 10619
a7254363 10620
a90ef4bf
JM
10621.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
10622.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
10623maybe-all-stagefeedback-gcc:
10624maybe-clean-stagefeedback-gcc:
4f0ef2d8 10625@if gcc-bootstrap
a90ef4bf
JM
10626maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
10627all-stagefeedback: all-stagefeedback-gcc
10628TARGET-stagefeedback-gcc = $(TARGET-gcc)
10629all-stagefeedback-gcc: configure-stagefeedback-gcc
10630 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10631 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10633 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10634 $(HOST_EXPORTS) \
10635 $(POSTSTAGE1_HOST_EXPORTS) \
10636 cd $(HOST_SUBDIR)/gcc && \
10637 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10638 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10639 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10640 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10641 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10642 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10643 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10644 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10645 TFLAGS="$(STAGEfeedback_TFLAGS)" \
10646 $(TARGET-stagefeedback-gcc)
d545f33b 10647
a90ef4bf
JM
10648maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10649clean-stagefeedback: clean-stagefeedback-gcc
10650clean-stagefeedback-gcc:
10651 @if [ $(current_stage) = stagefeedback ]; then \
10652 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10653 else \
10654 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10655 $(MAKE) stagefeedback-start; \
10656 fi; \
10657 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10658 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10659@endif gcc-bootstrap
4fa63067 10660
a7254363 10661
d545f33b
PB
10662
10663
4fa63067 10664
a90ef4bf
JM
10665.PHONY: check-gcc maybe-check-gcc
10666maybe-check-gcc:
10667@if gcc
10668maybe-check-gcc: check-gcc
10669
10670check-gcc:
0aed8855 10671 @: $(MAKE); $(unstage)
4fa63067
NN
10672 @r=`${PWD_COMMAND}`; export r; \
10673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 10674 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 10675 (cd $(HOST_SUBDIR)/gcc && \
f91ca6bc 10676 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 10677
a90ef4bf 10678@endif gcc
4fa63067 10679
a90ef4bf
JM
10680.PHONY: install-gcc maybe-install-gcc
10681maybe-install-gcc:
10682@if gcc
10683maybe-install-gcc: install-gcc
4fa63067 10684
a90ef4bf 10685install-gcc: installdirs
0aed8855 10686 @: $(MAKE); $(unstage)
4fa63067
NN
10687 @r=`${PWD_COMMAND}`; export r; \
10688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10689 $(HOST_EXPORTS) \
a90ef4bf
JM
10690 (cd $(HOST_SUBDIR)/gcc && \
10691 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10692
a90ef4bf 10693@endif gcc
4fa63067 10694
a90ef4bf
JM
10695.PHONY: install-strip-gcc maybe-install-strip-gcc
10696maybe-install-strip-gcc:
10697@if gcc
10698maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10699
a90ef4bf 10700install-strip-gcc: installdirs
9b980aa1
RW
10701 @: $(MAKE); $(unstage)
10702 @r=`${PWD_COMMAND}`; export r; \
10703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10704 $(HOST_EXPORTS) \
a90ef4bf
JM
10705 (cd $(HOST_SUBDIR)/gcc && \
10706 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10707
a90ef4bf 10708@endif gcc
9b980aa1 10709
56a8fe78 10710# Other targets (info, dvi, pdf, etc.)
4fa63067 10711
a90ef4bf
JM
10712.PHONY: maybe-info-gcc info-gcc
10713maybe-info-gcc:
10714@if gcc
10715maybe-info-gcc: info-gcc
4fa63067 10716
a90ef4bf
JM
10717info-gcc: \
10718 configure-gcc
10719 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10720 r=`${PWD_COMMAND}`; export r; \
10721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10722 $(HOST_EXPORTS) \
a90ef4bf 10723 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10725 done; \
22121df0 10726 echo "Doing info in gcc"; \
a90ef4bf 10727 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10730 "RANLIB=$${RANLIB}" \
0c24b341 10731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10732 info) \
2a4cbe27
NN
10733 || exit 1
10734
a90ef4bf 10735@endif gcc
2a4cbe27 10736
a90ef4bf
JM
10737.PHONY: maybe-dvi-gcc dvi-gcc
10738maybe-dvi-gcc:
10739@if gcc
10740maybe-dvi-gcc: dvi-gcc
2a4cbe27 10741
a90ef4bf
JM
10742dvi-gcc: \
10743 configure-gcc
10744 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10745 r=`${PWD_COMMAND}`; export r; \
10746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10747 $(HOST_EXPORTS) \
a90ef4bf 10748 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10750 done; \
22121df0 10751 echo "Doing dvi in gcc"; \
a90ef4bf 10752 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10755 "RANLIB=$${RANLIB}" \
0c24b341 10756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10757 dvi) \
2a4cbe27
NN
10758 || exit 1
10759
a90ef4bf 10760@endif gcc
2a4cbe27 10761
a90ef4bf
JM
10762.PHONY: maybe-pdf-gcc pdf-gcc
10763maybe-pdf-gcc:
10764@if gcc
10765maybe-pdf-gcc: pdf-gcc
56a8fe78 10766
a90ef4bf
JM
10767pdf-gcc: \
10768 configure-gcc
10769 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10770 r=`${PWD_COMMAND}`; export r; \
10771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10772 $(HOST_EXPORTS) \
a90ef4bf 10773 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10775 done; \
22121df0 10776 echo "Doing pdf in gcc"; \
a90ef4bf 10777 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
10778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10780 "RANLIB=$${RANLIB}" \
0c24b341 10781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10782 pdf) \
10783 || exit 1
10784
a90ef4bf 10785@endif gcc
56a8fe78 10786
a90ef4bf
JM
10787.PHONY: maybe-html-gcc html-gcc
10788maybe-html-gcc:
10789@if gcc
10790maybe-html-gcc: html-gcc
6d389afc 10791
a90ef4bf
JM
10792html-gcc: \
10793 configure-gcc
10794 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10795 r=`${PWD_COMMAND}`; export r; \
10796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10797 $(HOST_EXPORTS) \
a90ef4bf 10798 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10800 done; \
22121df0 10801 echo "Doing html in gcc"; \
a90ef4bf 10802 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10805 "RANLIB=$${RANLIB}" \
0c24b341 10806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10807 html) \
10808 || exit 1
10809
a90ef4bf 10810@endif gcc
6d389afc 10811
a90ef4bf
JM
10812.PHONY: maybe-TAGS-gcc TAGS-gcc
10813maybe-TAGS-gcc:
10814@if gcc
10815maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10816
a90ef4bf
JM
10817TAGS-gcc: \
10818 configure-gcc
10819 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10820 r=`${PWD_COMMAND}`; export r; \
10821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10822 $(HOST_EXPORTS) \
a90ef4bf 10823 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10825 done; \
22121df0 10826 echo "Doing TAGS in gcc"; \
a90ef4bf 10827 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10830 "RANLIB=$${RANLIB}" \
0c24b341 10831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10832 TAGS) \
2a4cbe27
NN
10833 || exit 1
10834
a90ef4bf 10835@endif gcc
2a4cbe27 10836
a90ef4bf
JM
10837.PHONY: maybe-install-info-gcc install-info-gcc
10838maybe-install-info-gcc:
10839@if gcc
10840maybe-install-info-gcc: install-info-gcc
2a4cbe27 10841
a90ef4bf
JM
10842install-info-gcc: \
10843 configure-gcc \
10844 info-gcc
10845 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10846 r=`${PWD_COMMAND}`; export r; \
10847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10848 $(HOST_EXPORTS) \
a90ef4bf 10849 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10851 done; \
22121df0 10852 echo "Doing install-info in gcc"; \
a90ef4bf 10853 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10856 "RANLIB=$${RANLIB}" \
0c24b341 10857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10858 install-info) \
2a4cbe27
NN
10859 || exit 1
10860
a90ef4bf 10861@endif gcc
2a4cbe27 10862
a90ef4bf
JM
10863.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10864maybe-install-pdf-gcc:
10865@if gcc
10866maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 10867
a90ef4bf
JM
10868install-pdf-gcc: \
10869 configure-gcc \
10870 pdf-gcc
10871 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
10872 r=`${PWD_COMMAND}`; export r; \
10873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10874 $(HOST_EXPORTS) \
a90ef4bf 10875 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
10876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10877 done; \
22121df0 10878 echo "Doing install-pdf in gcc"; \
a90ef4bf 10879 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
10880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10882 "RANLIB=$${RANLIB}" \
0c24b341 10883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10884 install-pdf) \
10885 || exit 1
10886
a90ef4bf 10887@endif gcc
a3ca38d2 10888
a90ef4bf
JM
10889.PHONY: maybe-install-html-gcc install-html-gcc
10890maybe-install-html-gcc:
10891@if gcc
10892maybe-install-html-gcc: install-html-gcc
108a6f8e 10893
a90ef4bf
JM
10894install-html-gcc: \
10895 configure-gcc \
10896 html-gcc
10897 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
10898 r=`${PWD_COMMAND}`; export r; \
10899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10900 $(HOST_EXPORTS) \
a90ef4bf 10901 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
10902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10903 done; \
22121df0 10904 echo "Doing install-html in gcc"; \
a90ef4bf 10905 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
10906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10908 "RANLIB=$${RANLIB}" \
0c24b341 10909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10910 install-html) \
10911 || exit 1
10912
a90ef4bf 10913@endif gcc
108a6f8e 10914
a90ef4bf
JM
10915.PHONY: maybe-installcheck-gcc installcheck-gcc
10916maybe-installcheck-gcc:
10917@if gcc
10918maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 10919
a90ef4bf
JM
10920installcheck-gcc: \
10921 configure-gcc
10922 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10923 r=`${PWD_COMMAND}`; export r; \
10924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10925 $(HOST_EXPORTS) \
a90ef4bf 10926 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10928 done; \
22121df0 10929 echo "Doing installcheck in gcc"; \
a90ef4bf 10930 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10933 "RANLIB=$${RANLIB}" \
0c24b341 10934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10935 installcheck) \
2a4cbe27
NN
10936 || exit 1
10937
a90ef4bf 10938@endif gcc
2a4cbe27 10939
a90ef4bf
JM
10940.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
10941maybe-mostlyclean-gcc:
10942@if gcc
10943maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 10944
a90ef4bf
JM
10945mostlyclean-gcc:
10946 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10947 r=`${PWD_COMMAND}`; export r; \
10948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10949 $(HOST_EXPORTS) \
a90ef4bf 10950 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10952 done; \
22121df0 10953 echo "Doing mostlyclean in gcc"; \
a90ef4bf 10954 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10957 "RANLIB=$${RANLIB}" \
0c24b341 10958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10959 mostlyclean) \
2a4cbe27
NN
10960 || exit 1
10961
a90ef4bf 10962@endif gcc
2a4cbe27 10963
a90ef4bf
JM
10964.PHONY: maybe-clean-gcc clean-gcc
10965maybe-clean-gcc:
10966@if gcc
10967maybe-clean-gcc: clean-gcc
2a4cbe27 10968
a90ef4bf
JM
10969clean-gcc:
10970 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10971 r=`${PWD_COMMAND}`; export r; \
10972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10973 $(HOST_EXPORTS) \
a90ef4bf 10974 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10976 done; \
22121df0 10977 echo "Doing clean in gcc"; \
a90ef4bf 10978 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10981 "RANLIB=$${RANLIB}" \
0c24b341 10982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10983 clean) \
2a4cbe27
NN
10984 || exit 1
10985
a90ef4bf 10986@endif gcc
2a4cbe27 10987
a90ef4bf
JM
10988.PHONY: maybe-distclean-gcc distclean-gcc
10989maybe-distclean-gcc:
10990@if gcc
10991maybe-distclean-gcc: distclean-gcc
2a4cbe27 10992
a90ef4bf
JM
10993distclean-gcc:
10994 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10995 r=`${PWD_COMMAND}`; export r; \
10996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10997 $(HOST_EXPORTS) \
a90ef4bf 10998 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11000 done; \
22121df0 11001 echo "Doing distclean in gcc"; \
a90ef4bf 11002 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11005 "RANLIB=$${RANLIB}" \
0c24b341 11006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11007 distclean) \
2a4cbe27
NN
11008 || exit 1
11009
a90ef4bf 11010@endif gcc
2a4cbe27 11011
a90ef4bf
JM
11012.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
11013maybe-maintainer-clean-gcc:
11014@if gcc
11015maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 11016
a90ef4bf
JM
11017maintainer-clean-gcc:
11018 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11019 r=`${PWD_COMMAND}`; export r; \
11020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11021 $(HOST_EXPORTS) \
a90ef4bf 11022 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11024 done; \
22121df0 11025 echo "Doing maintainer-clean in gcc"; \
a90ef4bf 11026 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11029 "RANLIB=$${RANLIB}" \
0c24b341 11030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11031 maintainer-clean) \
2a4cbe27
NN
11032 || exit 1
11033
a90ef4bf 11034@endif gcc
2a4cbe27 11035
2a4cbe27 11036
a7254363 11037
a90ef4bf
JM
11038.PHONY: configure-gmp maybe-configure-gmp
11039maybe-configure-gmp:
4f0ef2d8 11040@if gcc-bootstrap
a90ef4bf 11041configure-gmp: stage_current
4f0ef2d8 11042@endif gcc-bootstrap
a90ef4bf
JM
11043@if gmp
11044maybe-configure-gmp: configure-gmp
11045configure-gmp:
c52c6897 11046 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11048 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
22121df0 11049 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
1f53ca9a 11050 $(HOST_EXPORTS) \
a90ef4bf
JM
11051 echo Configuring in $(HOST_SUBDIR)/gmp; \
11052 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 11053 case $(srcdir) in \
b00612cc 11054 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11055 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 11056 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11057 esac; \
1b6c0831
L
11058 module_srcdir=gmp; \
11059 $(SHELL) \
11060 $$s/$$module_srcdir/configure \
11061 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11062 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11063 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 11064 || exit 1
a90ef4bf 11065@endif gmp
a7254363 11066
d545f33b
PB
11067
11068
a90ef4bf
JM
11069.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
11070maybe-configure-stage1-gmp:
11071@if gmp-bootstrap
11072maybe-configure-stage1-gmp: configure-stage1-gmp
11073configure-stage1-gmp:
11074 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11075 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
11076 @r=`${PWD_COMMAND}`; export r; \
11077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11078 TFLAGS="$(STAGE1_TFLAGS)"; \
11079 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11080 $(HOST_EXPORTS) \
11081 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11082 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11083 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11084 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp; \
11085 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11086 cd $(HOST_SUBDIR)/gmp || exit 1; \
11087 case $(srcdir) in \
11088 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11089 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11090 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11091 esac; \
1b6c0831
L
11092 module_srcdir=gmp; \
11093 $(SHELL) $$s/$$module_srcdir/configure \
11094 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11095 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11096 --target=none-${host_vendor}-${host_os} \
11097 \
a90ef4bf 11098 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 11099 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11100@endif gmp-bootstrap
4fa63067 11101
a90ef4bf
JM
11102.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
11103maybe-configure-stage2-gmp:
11104@if gmp-bootstrap
11105maybe-configure-stage2-gmp: configure-stage2-gmp
11106configure-stage2-gmp:
11107 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11108 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11109 @r=`${PWD_COMMAND}`; export r; \
11110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11111 TFLAGS="$(STAGE2_TFLAGS)"; \
11112 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11113 $(HOST_EXPORTS) \
11114 $(POSTSTAGE1_HOST_EXPORTS) \
11115 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11116 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11117 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11118 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp; \
11119 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11120 cd $(HOST_SUBDIR)/gmp || exit 1; \
11121 case $(srcdir) in \
11122 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11123 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11124 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11125 esac; \
1b6c0831
L
11126 module_srcdir=gmp; \
11127 $(SHELL) $$s/$$module_srcdir/configure \
11128 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11129 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11130 --target=none-${host_vendor}-${host_os} \
22121df0 11131 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11132 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 11133 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11134@endif gmp-bootstrap
4fa63067 11135
a90ef4bf
JM
11136.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
11137maybe-configure-stage3-gmp:
11138@if gmp-bootstrap
11139maybe-configure-stage3-gmp: configure-stage3-gmp
11140configure-stage3-gmp:
11141 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11142 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 11143 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11145 TFLAGS="$(STAGE3_TFLAGS)"; \
11146 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 11147 $(HOST_EXPORTS) \
a90ef4bf
JM
11148 $(POSTSTAGE1_HOST_EXPORTS) \
11149 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11150 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11151 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11152 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp; \
11153 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11154 cd $(HOST_SUBDIR)/gmp || exit 1; \
11155 case $(srcdir) in \
11156 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11157 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11158 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11159 esac; \
1b6c0831
L
11160 module_srcdir=gmp; \
11161 $(SHELL) $$s/$$module_srcdir/configure \
11162 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11163 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11164 --target=none-${host_vendor}-${host_os} \
22121df0 11165 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11166 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 11167 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11168@endif gmp-bootstrap
2a4cbe27 11169
a90ef4bf
JM
11170.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
11171maybe-configure-stage4-gmp:
11172@if gmp-bootstrap
11173maybe-configure-stage4-gmp: configure-stage4-gmp
11174configure-stage4-gmp:
11175 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11176 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11177 @r=`${PWD_COMMAND}`; export r; \
11178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11179 TFLAGS="$(STAGE4_TFLAGS)"; \
11180 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11181 $(HOST_EXPORTS) \
11182 $(POSTSTAGE1_HOST_EXPORTS) \
11183 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11184 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11185 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11186 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp; \
11187 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11188 cd $(HOST_SUBDIR)/gmp || exit 1; \
11189 case $(srcdir) in \
11190 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11191 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11192 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11193 esac; \
1b6c0831
L
11194 module_srcdir=gmp; \
11195 $(SHELL) $$s/$$module_srcdir/configure \
11196 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11197 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11198 --target=none-${host_vendor}-${host_os} \
22121df0 11199 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11200 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 11201 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11202@endif gmp-bootstrap
2a4cbe27 11203
a90ef4bf
JM
11204.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
11205maybe-configure-stageprofile-gmp:
11206@if gmp-bootstrap
11207maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
11208configure-stageprofile-gmp:
11209 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11210 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11211 @r=`${PWD_COMMAND}`; export r; \
11212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11213 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11214 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11215 $(HOST_EXPORTS) \
11216 $(POSTSTAGE1_HOST_EXPORTS) \
11217 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11218 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11219 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11220 echo Configuring stage profile in $(HOST_SUBDIR)/gmp; \
11221 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11222 cd $(HOST_SUBDIR)/gmp || exit 1; \
11223 case $(srcdir) in \
11224 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11225 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11226 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11227 esac; \
1b6c0831
L
11228 module_srcdir=gmp; \
11229 $(SHELL) $$s/$$module_srcdir/configure \
11230 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11231 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11232 --target=none-${host_vendor}-${host_os} \
22121df0 11233 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11234 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 11235 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11236@endif gmp-bootstrap
9b980aa1 11237
a90ef4bf
JM
11238.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
11239maybe-configure-stagefeedback-gmp:
11240@if gmp-bootstrap
11241maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
11242configure-stagefeedback-gmp:
11243 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11244 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
11245 @r=`${PWD_COMMAND}`; export r; \
11246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11247 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11248 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 11249 $(HOST_EXPORTS) \
a90ef4bf
JM
11250 $(POSTSTAGE1_HOST_EXPORTS) \
11251 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11252 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11253 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11254 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp; \
11255 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11256 cd $(HOST_SUBDIR)/gmp || exit 1; \
11257 case $(srcdir) in \
11258 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11259 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11260 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11261 esac; \
1b6c0831
L
11262 module_srcdir=gmp; \
11263 $(SHELL) $$s/$$module_srcdir/configure \
11264 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11265 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11266 --target=none-${host_vendor}-${host_os} \
22121df0 11267 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11268 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 11269 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11270@endif gmp-bootstrap
9b980aa1 11271
9b980aa1 11272
2a4cbe27 11273
4fa63067 11274
a90ef4bf
JM
11275
11276.PHONY: all-gmp maybe-all-gmp
11277maybe-all-gmp:
11278@if gcc-bootstrap
11279all-gmp: stage_current
11280@endif gcc-bootstrap
11281@if gmp
11282TARGET-gmp=all
11283maybe-all-gmp: all-gmp
11284all-gmp: configure-gmp
11285 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11287 $(HOST_EXPORTS) \
11288 (cd $(HOST_SUBDIR)/gmp && \
b3676d82 11289 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11290 $(TARGET-gmp))
11291@endif gmp
2a4cbe27
NN
11292
11293
2a4cbe27 11294
a90ef4bf
JM
11295.PHONY: all-stage1-gmp maybe-all-stage1-gmp
11296.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
11297maybe-all-stage1-gmp:
11298maybe-clean-stage1-gmp:
11299@if gmp-bootstrap
11300maybe-all-stage1-gmp: all-stage1-gmp
11301all-stage1: all-stage1-gmp
11302TARGET-stage1-gmp = $(TARGET-gmp)
11303all-stage1-gmp: configure-stage1-gmp
11304 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11305 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11307 TFLAGS="$(STAGE1_TFLAGS)"; \
11308 $(HOST_EXPORTS) \
11309 cd $(HOST_SUBDIR)/gmp && \
11310 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11311 CFLAGS="$(STAGE1_CFLAGS)" \
11312 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11313 LIBCFLAGS="$(LIBCFLAGS)" \
11314 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11315 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11316 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
11317 $(EXTRA_HOST_FLAGS) \
11318 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11319 TFLAGS="$(STAGE1_TFLAGS)" \
11320 $(TARGET-stage1-gmp)
2a4cbe27 11321
a90ef4bf
JM
11322maybe-clean-stage1-gmp: clean-stage1-gmp
11323clean-stage1: clean-stage1-gmp
11324clean-stage1-gmp:
11325 @if [ $(current_stage) = stage1 ]; then \
11326 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11327 else \
11328 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
11329 $(MAKE) stage1-start; \
11330 fi; \
11331 cd $(HOST_SUBDIR)/gmp && \
11332 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 11333 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11334@endif gmp-bootstrap
2a4cbe27 11335
56a8fe78 11336
a90ef4bf
JM
11337.PHONY: all-stage2-gmp maybe-all-stage2-gmp
11338.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
11339maybe-all-stage2-gmp:
11340maybe-clean-stage2-gmp:
11341@if gmp-bootstrap
11342maybe-all-stage2-gmp: all-stage2-gmp
11343all-stage2: all-stage2-gmp
11344TARGET-stage2-gmp = $(TARGET-gmp)
11345all-stage2-gmp: configure-stage2-gmp
11346 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11347 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11349 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 11350 $(HOST_EXPORTS) \
a90ef4bf
JM
11351 $(POSTSTAGE1_HOST_EXPORTS) \
11352 cd $(HOST_SUBDIR)/gmp && \
11353 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11354 CFLAGS="$(STAGE2_CFLAGS)" \
11355 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11356 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11357 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11358 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11359 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11360 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11361 TFLAGS="$(STAGE2_TFLAGS)" \
11362 $(TARGET-stage2-gmp)
56a8fe78 11363
a90ef4bf
JM
11364maybe-clean-stage2-gmp: clean-stage2-gmp
11365clean-stage2: clean-stage2-gmp
11366clean-stage2-gmp:
11367 @if [ $(current_stage) = stage2 ]; then \
11368 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11369 else \
11370 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
11371 $(MAKE) stage2-start; \
11372 fi; \
11373 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11374 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11375@endif gmp-bootstrap
56a8fe78 11376
6d389afc 11377
a90ef4bf
JM
11378.PHONY: all-stage3-gmp maybe-all-stage3-gmp
11379.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
11380maybe-all-stage3-gmp:
11381maybe-clean-stage3-gmp:
11382@if gmp-bootstrap
11383maybe-all-stage3-gmp: all-stage3-gmp
11384all-stage3: all-stage3-gmp
11385TARGET-stage3-gmp = $(TARGET-gmp)
11386all-stage3-gmp: configure-stage3-gmp
11387 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11388 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11390 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 11391 $(HOST_EXPORTS) \
a90ef4bf
JM
11392 $(POSTSTAGE1_HOST_EXPORTS) \
11393 cd $(HOST_SUBDIR)/gmp && \
11394 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11395 CFLAGS="$(STAGE3_CFLAGS)" \
11396 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11397 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11398 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11399 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11400 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11401 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11402 TFLAGS="$(STAGE3_TFLAGS)" \
11403 $(TARGET-stage3-gmp)
6d389afc 11404
a90ef4bf
JM
11405maybe-clean-stage3-gmp: clean-stage3-gmp
11406clean-stage3: clean-stage3-gmp
11407clean-stage3-gmp:
11408 @if [ $(current_stage) = stage3 ]; then \
11409 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11410 else \
11411 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
11412 $(MAKE) stage3-start; \
11413 fi; \
11414 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11415 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11416@endif gmp-bootstrap
6d389afc 11417
2a4cbe27 11418
a90ef4bf
JM
11419.PHONY: all-stage4-gmp maybe-all-stage4-gmp
11420.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
11421maybe-all-stage4-gmp:
11422maybe-clean-stage4-gmp:
11423@if gmp-bootstrap
11424maybe-all-stage4-gmp: all-stage4-gmp
11425all-stage4: all-stage4-gmp
11426TARGET-stage4-gmp = $(TARGET-gmp)
11427all-stage4-gmp: configure-stage4-gmp
11428 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11429 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11431 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11432 $(HOST_EXPORTS) \
a90ef4bf
JM
11433 $(POSTSTAGE1_HOST_EXPORTS) \
11434 cd $(HOST_SUBDIR)/gmp && \
11435 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11436 CFLAGS="$(STAGE4_CFLAGS)" \
11437 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11438 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11439 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11440 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11441 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11442 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11443 TFLAGS="$(STAGE4_TFLAGS)" \
11444 $(TARGET-stage4-gmp)
2a4cbe27 11445
a90ef4bf
JM
11446maybe-clean-stage4-gmp: clean-stage4-gmp
11447clean-stage4: clean-stage4-gmp
11448clean-stage4-gmp:
11449 @if [ $(current_stage) = stage4 ]; then \
11450 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11451 else \
11452 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
11453 $(MAKE) stage4-start; \
11454 fi; \
11455 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11456 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11457@endif gmp-bootstrap
2a4cbe27 11458
2a4cbe27 11459
a90ef4bf
JM
11460.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
11461.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
11462maybe-all-stageprofile-gmp:
11463maybe-clean-stageprofile-gmp:
11464@if gmp-bootstrap
11465maybe-all-stageprofile-gmp: all-stageprofile-gmp
11466all-stageprofile: all-stageprofile-gmp
11467TARGET-stageprofile-gmp = $(TARGET-gmp)
11468all-stageprofile-gmp: configure-stageprofile-gmp
11469 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11470 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11472 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11473 $(HOST_EXPORTS) \
a90ef4bf
JM
11474 $(POSTSTAGE1_HOST_EXPORTS) \
11475 cd $(HOST_SUBDIR)/gmp && \
11476 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11477 CFLAGS="$(STAGEprofile_CFLAGS)" \
11478 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11479 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11480 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11481 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11482 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11483 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11484 TFLAGS="$(STAGEprofile_TFLAGS)" \
11485 $(TARGET-stageprofile-gmp)
2a4cbe27 11486
a90ef4bf
JM
11487maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
11488clean-stageprofile: clean-stageprofile-gmp
11489clean-stageprofile-gmp:
11490 @if [ $(current_stage) = stageprofile ]; then \
11491 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11492 else \
11493 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
11494 $(MAKE) stageprofile-start; \
11495 fi; \
11496 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11497 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11498@endif gmp-bootstrap
2a4cbe27 11499
a7254363 11500
a90ef4bf
JM
11501.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
11502.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
11503maybe-all-stagefeedback-gmp:
11504maybe-clean-stagefeedback-gmp:
11505@if gmp-bootstrap
11506maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
11507all-stagefeedback: all-stagefeedback-gmp
11508TARGET-stagefeedback-gmp = $(TARGET-gmp)
11509all-stagefeedback-gmp: configure-stagefeedback-gmp
11510 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11511 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11513 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11514 $(HOST_EXPORTS) \
11515 $(POSTSTAGE1_HOST_EXPORTS) \
11516 cd $(HOST_SUBDIR)/gmp && \
11517 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11518 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11519 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11520 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11521 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11522 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11523 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11524 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11525 TFLAGS="$(STAGEfeedback_TFLAGS)" \
11526 $(TARGET-stagefeedback-gmp)
d545f33b 11527
a90ef4bf
JM
11528maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
11529clean-stagefeedback: clean-stagefeedback-gmp
11530clean-stagefeedback-gmp:
11531 @if [ $(current_stage) = stagefeedback ]; then \
11532 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11533 else \
11534 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
11535 $(MAKE) stagefeedback-start; \
11536 fi; \
11537 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11538 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11539@endif gmp-bootstrap
d545f33b 11540
4fa63067 11541
a7254363 11542
d545f33b
PB
11543
11544
a90ef4bf
JM
11545.PHONY: check-gmp maybe-check-gmp
11546maybe-check-gmp:
11547@if gmp
11548maybe-check-gmp: check-gmp
4fa63067 11549
a90ef4bf 11550check-gmp:
0aed8855 11551 @: $(MAKE); $(unstage)
4fa63067
NN
11552 @r=`${PWD_COMMAND}`; export r; \
11553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 11554 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 11555 (cd $(HOST_SUBDIR)/gmp && \
f91ca6bc 11556 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 11557
a90ef4bf 11558@endif gmp
2a4cbe27 11559
a90ef4bf
JM
11560.PHONY: install-gmp maybe-install-gmp
11561maybe-install-gmp:
11562@if gmp
11563maybe-install-gmp: install-gmp
2a4cbe27 11564
a90ef4bf 11565install-gmp:
2a4cbe27 11566
a90ef4bf 11567@endif gmp
2a4cbe27 11568
a90ef4bf
JM
11569.PHONY: install-strip-gmp maybe-install-strip-gmp
11570maybe-install-strip-gmp:
11571@if gmp
11572maybe-install-strip-gmp: install-strip-gmp
9b980aa1 11573
a90ef4bf 11574install-strip-gmp:
9b980aa1 11575
a90ef4bf 11576@endif gmp
9b980aa1 11577
56a8fe78 11578# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11579
a90ef4bf
JM
11580.PHONY: maybe-info-gmp info-gmp
11581maybe-info-gmp:
11582@if gmp
11583maybe-info-gmp: info-gmp
4fa63067 11584
a90ef4bf
JM
11585info-gmp: \
11586 configure-gmp
11587 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11588 r=`${PWD_COMMAND}`; export r; \
11589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11590 $(HOST_EXPORTS) \
b813574b 11591 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11593 done; \
22121df0 11594 echo "Doing info in gmp"; \
a90ef4bf 11595 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11598 "RANLIB=$${RANLIB}" \
0c24b341 11599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11600 info) \
2a4cbe27
NN
11601 || exit 1
11602
a90ef4bf 11603@endif gmp
2a4cbe27 11604
a90ef4bf
JM
11605.PHONY: maybe-dvi-gmp dvi-gmp
11606maybe-dvi-gmp:
11607@if gmp
11608maybe-dvi-gmp: dvi-gmp
2a4cbe27 11609
a90ef4bf
JM
11610dvi-gmp: \
11611 configure-gmp
11612 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11613 r=`${PWD_COMMAND}`; export r; \
11614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11615 $(HOST_EXPORTS) \
b813574b 11616 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11618 done; \
22121df0 11619 echo "Doing dvi in gmp"; \
a90ef4bf 11620 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11623 "RANLIB=$${RANLIB}" \
0c24b341 11624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11625 dvi) \
2a4cbe27
NN
11626 || exit 1
11627
a90ef4bf 11628@endif gmp
2a4cbe27 11629
a90ef4bf
JM
11630.PHONY: maybe-pdf-gmp pdf-gmp
11631maybe-pdf-gmp:
11632@if gmp
11633maybe-pdf-gmp: pdf-gmp
56a8fe78 11634
a90ef4bf
JM
11635pdf-gmp: \
11636 configure-gmp
11637 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11638 r=`${PWD_COMMAND}`; export r; \
11639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11640 $(HOST_EXPORTS) \
11641 for flag in $(EXTRA_HOST_FLAGS) ; do \
11642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11643 done; \
22121df0 11644 echo "Doing pdf in gmp"; \
a90ef4bf 11645 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11648 "RANLIB=$${RANLIB}" \
0c24b341 11649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11650 pdf) \
11651 || exit 1
11652
a90ef4bf 11653@endif gmp
56a8fe78 11654
a90ef4bf
JM
11655.PHONY: maybe-html-gmp html-gmp
11656maybe-html-gmp:
11657@if gmp
11658maybe-html-gmp: html-gmp
6d389afc 11659
a90ef4bf
JM
11660html-gmp: \
11661 configure-gmp
11662 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11663 r=`${PWD_COMMAND}`; export r; \
11664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
11665 $(HOST_EXPORTS) \
11666 for flag in $(EXTRA_HOST_FLAGS) ; do \
11667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11668 done; \
22121df0 11669 echo "Doing html in gmp"; \
a90ef4bf 11670 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11673 "RANLIB=$${RANLIB}" \
0c24b341 11674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11675 html) \
11676 || exit 1
11677
a90ef4bf 11678@endif gmp
6d389afc 11679
a90ef4bf
JM
11680.PHONY: maybe-TAGS-gmp TAGS-gmp
11681maybe-TAGS-gmp:
11682@if gmp
11683maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11684
a90ef4bf
JM
11685TAGS-gmp: \
11686 configure-gmp
11687 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11688 r=`${PWD_COMMAND}`; export r; \
11689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11690 $(HOST_EXPORTS) \
b813574b 11691 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11693 done; \
22121df0 11694 echo "Doing TAGS in gmp"; \
a90ef4bf 11695 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11698 "RANLIB=$${RANLIB}" \
0c24b341 11699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11700 TAGS) \
2a4cbe27
NN
11701 || exit 1
11702
a90ef4bf 11703@endif gmp
2a4cbe27 11704
a90ef4bf
JM
11705.PHONY: maybe-install-info-gmp install-info-gmp
11706maybe-install-info-gmp:
11707@if gmp
11708maybe-install-info-gmp: install-info-gmp
2a4cbe27 11709
a90ef4bf
JM
11710install-info-gmp: \
11711 configure-gmp \
11712 info-gmp
11713 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11714 r=`${PWD_COMMAND}`; export r; \
11715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11716 $(HOST_EXPORTS) \
b813574b 11717 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11719 done; \
22121df0 11720 echo "Doing install-info in gmp"; \
a90ef4bf 11721 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11724 "RANLIB=$${RANLIB}" \
0c24b341 11725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11726 install-info) \
2a4cbe27
NN
11727 || exit 1
11728
a90ef4bf 11729@endif gmp
2a4cbe27 11730
a90ef4bf
JM
11731.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11732maybe-install-pdf-gmp:
11733@if gmp
11734maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11735
a90ef4bf
JM
11736install-pdf-gmp: \
11737 configure-gmp \
11738 pdf-gmp
11739 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11740 r=`${PWD_COMMAND}`; export r; \
11741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11742 $(HOST_EXPORTS) \
11743 for flag in $(EXTRA_HOST_FLAGS) ; do \
11744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11745 done; \
22121df0 11746 echo "Doing install-pdf in gmp"; \
a90ef4bf 11747 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11750 "RANLIB=$${RANLIB}" \
0c24b341 11751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11752 install-pdf) \
11753 || exit 1
11754
a90ef4bf 11755@endif gmp
a3ca38d2 11756
a90ef4bf
JM
11757.PHONY: maybe-install-html-gmp install-html-gmp
11758maybe-install-html-gmp:
11759@if gmp
11760maybe-install-html-gmp: install-html-gmp
108a6f8e 11761
a90ef4bf
JM
11762install-html-gmp: \
11763 configure-gmp \
11764 html-gmp
11765 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11766 r=`${PWD_COMMAND}`; export r; \
11767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11768 $(HOST_EXPORTS) \
11769 for flag in $(EXTRA_HOST_FLAGS) ; do \
11770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11771 done; \
22121df0 11772 echo "Doing install-html in gmp"; \
a90ef4bf 11773 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
11774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11776 "RANLIB=$${RANLIB}" \
0c24b341 11777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11778 install-html) \
11779 || exit 1
11780
a90ef4bf 11781@endif gmp
108a6f8e 11782
a90ef4bf
JM
11783.PHONY: maybe-installcheck-gmp installcheck-gmp
11784maybe-installcheck-gmp:
11785@if gmp
11786maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11787
a90ef4bf
JM
11788installcheck-gmp: \
11789 configure-gmp
11790 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11791 r=`${PWD_COMMAND}`; export r; \
11792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11793 $(HOST_EXPORTS) \
b813574b 11794 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11796 done; \
22121df0 11797 echo "Doing installcheck in gmp"; \
a90ef4bf 11798 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11801 "RANLIB=$${RANLIB}" \
0c24b341 11802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11803 installcheck) \
2a4cbe27
NN
11804 || exit 1
11805
a90ef4bf 11806@endif gmp
2a4cbe27 11807
a90ef4bf
JM
11808.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11809maybe-mostlyclean-gmp:
11810@if gmp
11811maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11812
a90ef4bf
JM
11813mostlyclean-gmp:
11814 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11815 r=`${PWD_COMMAND}`; export r; \
11816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11817 $(HOST_EXPORTS) \
b813574b 11818 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11820 done; \
22121df0 11821 echo "Doing mostlyclean in gmp"; \
a90ef4bf 11822 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11825 "RANLIB=$${RANLIB}" \
0c24b341 11826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11827 mostlyclean) \
2a4cbe27
NN
11828 || exit 1
11829
a90ef4bf 11830@endif gmp
2a4cbe27 11831
a90ef4bf
JM
11832.PHONY: maybe-clean-gmp clean-gmp
11833maybe-clean-gmp:
11834@if gmp
11835maybe-clean-gmp: clean-gmp
2a4cbe27 11836
a90ef4bf
JM
11837clean-gmp:
11838 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11839 r=`${PWD_COMMAND}`; export r; \
11840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11841 $(HOST_EXPORTS) \
b813574b 11842 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11844 done; \
22121df0 11845 echo "Doing clean in gmp"; \
a90ef4bf 11846 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11849 "RANLIB=$${RANLIB}" \
0c24b341 11850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11851 clean) \
2a4cbe27
NN
11852 || exit 1
11853
a90ef4bf 11854@endif gmp
2a4cbe27 11855
a90ef4bf
JM
11856.PHONY: maybe-distclean-gmp distclean-gmp
11857maybe-distclean-gmp:
11858@if gmp
11859maybe-distclean-gmp: distclean-gmp
2a4cbe27 11860
a90ef4bf
JM
11861distclean-gmp:
11862 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11863 r=`${PWD_COMMAND}`; export r; \
11864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11865 $(HOST_EXPORTS) \
b813574b 11866 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11868 done; \
22121df0 11869 echo "Doing distclean in gmp"; \
a90ef4bf 11870 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11873 "RANLIB=$${RANLIB}" \
0c24b341 11874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11875 distclean) \
2a4cbe27
NN
11876 || exit 1
11877
a90ef4bf 11878@endif gmp
2a4cbe27 11879
a90ef4bf
JM
11880.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11881maybe-maintainer-clean-gmp:
11882@if gmp
11883maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 11884
a90ef4bf
JM
11885maintainer-clean-gmp:
11886 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11887 r=`${PWD_COMMAND}`; export r; \
11888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11889 $(HOST_EXPORTS) \
b813574b 11890 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11892 done; \
22121df0 11893 echo "Doing maintainer-clean in gmp"; \
a90ef4bf 11894 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11897 "RANLIB=$${RANLIB}" \
0c24b341 11898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11899 maintainer-clean) \
2a4cbe27
NN
11900 || exit 1
11901
a90ef4bf 11902@endif gmp
2a4cbe27 11903
2a4cbe27 11904
a7254363 11905
a90ef4bf
JM
11906.PHONY: configure-mpfr maybe-configure-mpfr
11907maybe-configure-mpfr:
4f0ef2d8 11908@if gcc-bootstrap
a90ef4bf 11909configure-mpfr: stage_current
4f0ef2d8 11910@endif gcc-bootstrap
a90ef4bf
JM
11911@if mpfr
11912maybe-configure-mpfr: configure-mpfr
11913configure-mpfr:
11914 @r=`${PWD_COMMAND}`; export r; \
11915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11916 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
22121df0 11917 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
1f53ca9a 11918 $(HOST_EXPORTS) \
a90ef4bf
JM
11919 echo Configuring in $(HOST_SUBDIR)/mpfr; \
11920 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 11921 case $(srcdir) in \
b00612cc 11922 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11923 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 11924 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11925 esac; \
1b6c0831
L
11926 module_srcdir=mpfr; \
11927 $(SHELL) \
11928 $$s/$$module_srcdir/configure \
11929 --srcdir=$${topdir}/$$module_srcdir \
4b900473 11930 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11931 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 11932 || exit 1
a90ef4bf 11933@endif mpfr
d545f33b
PB
11934
11935
2a4cbe27 11936
a90ef4bf
JM
11937.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
11938maybe-configure-stage1-mpfr:
11939@if mpfr-bootstrap
11940maybe-configure-stage1-mpfr: configure-stage1-mpfr
11941configure-stage1-mpfr:
11942 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11943 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11944 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11946 TFLAGS="$(STAGE1_TFLAGS)"; \
11947 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11948 $(HOST_EXPORTS) \
a90ef4bf
JM
11949 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11950 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11951 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11952 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr; \
11953 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
11954 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11955 case $(srcdir) in \
11956 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11957 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11958 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11959 esac; \
1b6c0831
L
11960 module_srcdir=mpfr; \
11961 $(SHELL) $$s/$$module_srcdir/configure \
11962 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11963 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
11964 --target=${target_alias} \
11965 \
a90ef4bf
JM
11966 $(STAGE1_CONFIGURE_FLAGS) \
11967 --disable-shared @extra_mpfr_configure_flags@
11968@endif mpfr-bootstrap
2a4cbe27 11969
a90ef4bf
JM
11970.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
11971maybe-configure-stage2-mpfr:
11972@if mpfr-bootstrap
11973maybe-configure-stage2-mpfr: configure-stage2-mpfr
11974configure-stage2-mpfr:
11975 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11976 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11977 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11979 TFLAGS="$(STAGE2_TFLAGS)"; \
11980 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11981 $(HOST_EXPORTS) \
a90ef4bf
JM
11982 $(POSTSTAGE1_HOST_EXPORTS) \
11983 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11984 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11985 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11986 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr; \
11987 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
11988 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11989 case $(srcdir) in \
11990 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11991 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11992 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11993 esac; \
1b6c0831
L
11994 module_srcdir=mpfr; \
11995 $(SHELL) $$s/$$module_srcdir/configure \
11996 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11997 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11998 --target=${target_alias} \
22121df0 11999 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12000 $(STAGE2_CONFIGURE_FLAGS) \
12001 --disable-shared @extra_mpfr_configure_flags@
12002@endif mpfr-bootstrap
9b980aa1 12003
a90ef4bf
JM
12004.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
12005maybe-configure-stage3-mpfr:
12006@if mpfr-bootstrap
12007maybe-configure-stage3-mpfr: configure-stage3-mpfr
12008configure-stage3-mpfr:
12009 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12010 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
12011 @r=`${PWD_COMMAND}`; export r; \
12012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12013 TFLAGS="$(STAGE3_TFLAGS)"; \
12014 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 12015 $(HOST_EXPORTS) \
a90ef4bf
JM
12016 $(POSTSTAGE1_HOST_EXPORTS) \
12017 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12018 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12019 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12020 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr; \
12021 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12022 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12023 case $(srcdir) in \
12024 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12025 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12026 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12027 esac; \
1b6c0831
L
12028 module_srcdir=mpfr; \
12029 $(SHELL) $$s/$$module_srcdir/configure \
12030 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12031 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12032 --target=${target_alias} \
22121df0 12033 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12034 $(STAGE3_CONFIGURE_FLAGS) \
12035 --disable-shared @extra_mpfr_configure_flags@
12036@endif mpfr-bootstrap
2a4cbe27 12037
a90ef4bf
JM
12038.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
12039maybe-configure-stage4-mpfr:
12040@if mpfr-bootstrap
12041maybe-configure-stage4-mpfr: configure-stage4-mpfr
12042configure-stage4-mpfr:
12043 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12044 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12045 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12047 TFLAGS="$(STAGE4_TFLAGS)"; \
12048 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12049 $(HOST_EXPORTS) \
a90ef4bf
JM
12050 $(POSTSTAGE1_HOST_EXPORTS) \
12051 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12052 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12053 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12054 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr; \
12055 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12056 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12057 case $(srcdir) in \
12058 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12059 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12060 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12061 esac; \
1b6c0831
L
12062 module_srcdir=mpfr; \
12063 $(SHELL) $$s/$$module_srcdir/configure \
12064 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12065 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12066 --target=${target_alias} \
22121df0 12067 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12068 $(STAGE4_CONFIGURE_FLAGS) \
12069 --disable-shared @extra_mpfr_configure_flags@
12070@endif mpfr-bootstrap
2a4cbe27 12071
a90ef4bf
JM
12072.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
12073maybe-configure-stageprofile-mpfr:
12074@if mpfr-bootstrap
12075maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
12076configure-stageprofile-mpfr:
12077 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12078 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12079 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12081 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12082 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12083 $(HOST_EXPORTS) \
a90ef4bf
JM
12084 $(POSTSTAGE1_HOST_EXPORTS) \
12085 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12086 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12087 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12088 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr; \
12089 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12090 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12091 case $(srcdir) in \
12092 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12093 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12094 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12095 esac; \
1b6c0831
L
12096 module_srcdir=mpfr; \
12097 $(SHELL) $$s/$$module_srcdir/configure \
12098 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12099 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12100 --target=${target_alias} \
22121df0 12101 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12102 $(STAGEprofile_CONFIGURE_FLAGS) \
12103 --disable-shared @extra_mpfr_configure_flags@
12104@endif mpfr-bootstrap
56a8fe78 12105
a90ef4bf
JM
12106.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
12107maybe-configure-stagefeedback-mpfr:
12108@if mpfr-bootstrap
12109maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
12110configure-stagefeedback-mpfr:
12111 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12112 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12113 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 12114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12115 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12116 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 12117 $(HOST_EXPORTS) \
a90ef4bf
JM
12118 $(POSTSTAGE1_HOST_EXPORTS) \
12119 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12120 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12121 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12122 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr; \
12123 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12124 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12125 case $(srcdir) in \
12126 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12127 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12128 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12129 esac; \
1b6c0831
L
12130 module_srcdir=mpfr; \
12131 $(SHELL) $$s/$$module_srcdir/configure \
12132 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12133 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12134 --target=${target_alias} \
22121df0 12135 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12136 $(STAGEfeedback_CONFIGURE_FLAGS) \
12137 --disable-shared @extra_mpfr_configure_flags@
12138@endif mpfr-bootstrap
56a8fe78 12139
6d389afc 12140
6d389afc 12141
6d389afc 12142
2a4cbe27 12143
a90ef4bf
JM
12144.PHONY: all-mpfr maybe-all-mpfr
12145maybe-all-mpfr:
12146@if gcc-bootstrap
12147all-mpfr: stage_current
12148@endif gcc-bootstrap
12149@if mpfr
12150TARGET-mpfr=all
12151maybe-all-mpfr: all-mpfr
12152all-mpfr: configure-mpfr
12153 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12155 $(HOST_EXPORTS) \
12156 (cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12157 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
12158 $(TARGET-mpfr))
12159@endif mpfr
2a4cbe27
NN
12160
12161
2a4cbe27 12162
a90ef4bf
JM
12163.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
12164.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
12165maybe-all-stage1-mpfr:
12166maybe-clean-stage1-mpfr:
12167@if mpfr-bootstrap
12168maybe-all-stage1-mpfr: all-stage1-mpfr
12169all-stage1: all-stage1-mpfr
12170TARGET-stage1-mpfr = $(TARGET-mpfr)
12171all-stage1-mpfr: configure-stage1-mpfr
12172 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12173 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12175 TFLAGS="$(STAGE1_TFLAGS)"; \
12176 $(HOST_EXPORTS) \
12177 cd $(HOST_SUBDIR)/mpfr && \
12178 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12179 CFLAGS="$(STAGE1_CFLAGS)" \
12180 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12181 LIBCFLAGS="$(LIBCFLAGS)" \
12182 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12183 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12184 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
12185 $(EXTRA_HOST_FLAGS) \
12186 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
12187 TFLAGS="$(STAGE1_TFLAGS)" \
12188 $(TARGET-stage1-mpfr)
2a4cbe27 12189
a90ef4bf
JM
12190maybe-clean-stage1-mpfr: clean-stage1-mpfr
12191clean-stage1: clean-stage1-mpfr
12192clean-stage1-mpfr:
12193 @if [ $(current_stage) = stage1 ]; then \
12194 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12195 else \
12196 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
12197 $(MAKE) stage1-start; \
12198 fi; \
12199 cd $(HOST_SUBDIR)/mpfr && \
12200 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 12201 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12202@endif mpfr-bootstrap
2a4cbe27 12203
a3ca38d2 12204
a90ef4bf
JM
12205.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
12206.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
12207maybe-all-stage2-mpfr:
12208maybe-clean-stage2-mpfr:
12209@if mpfr-bootstrap
12210maybe-all-stage2-mpfr: all-stage2-mpfr
12211all-stage2: all-stage2-mpfr
12212TARGET-stage2-mpfr = $(TARGET-mpfr)
12213all-stage2-mpfr: configure-stage2-mpfr
12214 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12215 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 12216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12217 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 12218 $(HOST_EXPORTS) \
a90ef4bf
JM
12219 $(POSTSTAGE1_HOST_EXPORTS) \
12220 cd $(HOST_SUBDIR)/mpfr && \
12221 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12222 CFLAGS="$(STAGE2_CFLAGS)" \
12223 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12224 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12225 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12226 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12227 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12228 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12229 TFLAGS="$(STAGE2_TFLAGS)" \
12230 $(TARGET-stage2-mpfr)
a3ca38d2 12231
a90ef4bf
JM
12232maybe-clean-stage2-mpfr: clean-stage2-mpfr
12233clean-stage2: clean-stage2-mpfr
12234clean-stage2-mpfr:
12235 @if [ $(current_stage) = stage2 ]; then \
12236 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12237 else \
12238 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
12239 $(MAKE) stage2-start; \
12240 fi; \
12241 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12242 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12243@endif mpfr-bootstrap
a3ca38d2 12244
108a6f8e 12245
a90ef4bf
JM
12246.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
12247.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
12248maybe-all-stage3-mpfr:
12249maybe-clean-stage3-mpfr:
12250@if mpfr-bootstrap
12251maybe-all-stage3-mpfr: all-stage3-mpfr
12252all-stage3: all-stage3-mpfr
12253TARGET-stage3-mpfr = $(TARGET-mpfr)
12254all-stage3-mpfr: configure-stage3-mpfr
12255 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12256 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 12257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12258 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 12259 $(HOST_EXPORTS) \
a90ef4bf
JM
12260 $(POSTSTAGE1_HOST_EXPORTS) \
12261 cd $(HOST_SUBDIR)/mpfr && \
12262 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12263 CFLAGS="$(STAGE3_CFLAGS)" \
12264 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12265 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12266 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12267 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12268 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12269 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12270 TFLAGS="$(STAGE3_TFLAGS)" \
12271 $(TARGET-stage3-mpfr)
108a6f8e 12272
a90ef4bf
JM
12273maybe-clean-stage3-mpfr: clean-stage3-mpfr
12274clean-stage3: clean-stage3-mpfr
12275clean-stage3-mpfr:
12276 @if [ $(current_stage) = stage3 ]; then \
12277 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12278 else \
12279 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
12280 $(MAKE) stage3-start; \
12281 fi; \
12282 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12283 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12284@endif mpfr-bootstrap
108a6f8e 12285
2a4cbe27 12286
a90ef4bf
JM
12287.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
12288.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
12289maybe-all-stage4-mpfr:
12290maybe-clean-stage4-mpfr:
12291@if mpfr-bootstrap
12292maybe-all-stage4-mpfr: all-stage4-mpfr
12293all-stage4: all-stage4-mpfr
12294TARGET-stage4-mpfr = $(TARGET-mpfr)
12295all-stage4-mpfr: configure-stage4-mpfr
12296 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12297 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12299 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 12300 $(HOST_EXPORTS) \
a90ef4bf
JM
12301 $(POSTSTAGE1_HOST_EXPORTS) \
12302 cd $(HOST_SUBDIR)/mpfr && \
12303 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12304 CFLAGS="$(STAGE4_CFLAGS)" \
12305 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12306 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12307 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12308 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12309 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12310 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12311 TFLAGS="$(STAGE4_TFLAGS)" \
12312 $(TARGET-stage4-mpfr)
2a4cbe27 12313
a90ef4bf
JM
12314maybe-clean-stage4-mpfr: clean-stage4-mpfr
12315clean-stage4: clean-stage4-mpfr
12316clean-stage4-mpfr:
12317 @if [ $(current_stage) = stage4 ]; then \
12318 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12319 else \
12320 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
12321 $(MAKE) stage4-start; \
12322 fi; \
12323 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12324 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12325@endif mpfr-bootstrap
2a4cbe27 12326
2a4cbe27 12327
a90ef4bf
JM
12328.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
12329.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
12330maybe-all-stageprofile-mpfr:
12331maybe-clean-stageprofile-mpfr:
12332@if mpfr-bootstrap
12333maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
12334all-stageprofile: all-stageprofile-mpfr
12335TARGET-stageprofile-mpfr = $(TARGET-mpfr)
12336all-stageprofile-mpfr: configure-stageprofile-mpfr
12337 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12338 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12340 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12341 $(HOST_EXPORTS) \
a90ef4bf
JM
12342 $(POSTSTAGE1_HOST_EXPORTS) \
12343 cd $(HOST_SUBDIR)/mpfr && \
12344 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12345 CFLAGS="$(STAGEprofile_CFLAGS)" \
12346 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12347 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12348 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12349 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12350 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12351 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12352 TFLAGS="$(STAGEprofile_TFLAGS)" \
12353 $(TARGET-stageprofile-mpfr)
2a4cbe27 12354
a90ef4bf
JM
12355maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
12356clean-stageprofile: clean-stageprofile-mpfr
12357clean-stageprofile-mpfr:
12358 @if [ $(current_stage) = stageprofile ]; then \
12359 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12360 else \
12361 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
12362 $(MAKE) stageprofile-start; \
12363 fi; \
12364 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12365 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12366@endif mpfr-bootstrap
2a4cbe27 12367
a7254363 12368
a90ef4bf
JM
12369.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
12370.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
12371maybe-all-stagefeedback-mpfr:
12372maybe-clean-stagefeedback-mpfr:
12373@if mpfr-bootstrap
12374maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
12375all-stagefeedback: all-stagefeedback-mpfr
12376TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
12377all-stagefeedback-mpfr: configure-stagefeedback-mpfr
12378 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12379 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12381 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12382 $(HOST_EXPORTS) \
12383 $(POSTSTAGE1_HOST_EXPORTS) \
12384 cd $(HOST_SUBDIR)/mpfr && \
12385 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12386 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12387 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12388 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12389 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12390 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12391 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12392 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12393 TFLAGS="$(STAGEfeedback_TFLAGS)" \
12394 $(TARGET-stagefeedback-mpfr)
d545f33b 12395
a90ef4bf
JM
12396maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
12397clean-stagefeedback: clean-stagefeedback-mpfr
12398clean-stagefeedback-mpfr:
12399 @if [ $(current_stage) = stagefeedback ]; then \
12400 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12401 else \
12402 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
12403 $(MAKE) stagefeedback-start; \
12404 fi; \
12405 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12406 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12407@endif mpfr-bootstrap
d545f33b 12408
2a4cbe27 12409
a7254363 12410
d545f33b
PB
12411
12412
a90ef4bf
JM
12413.PHONY: check-mpfr maybe-check-mpfr
12414maybe-check-mpfr:
12415@if mpfr
12416maybe-check-mpfr: check-mpfr
2a4cbe27 12417
a90ef4bf 12418check-mpfr:
0aed8855 12419 @: $(MAKE); $(unstage)
4fa63067 12420 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 12422 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 12423 (cd $(HOST_SUBDIR)/mpfr && \
f91ca6bc 12424 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 12425
a90ef4bf 12426@endif mpfr
2a4cbe27 12427
a90ef4bf
JM
12428.PHONY: install-mpfr maybe-install-mpfr
12429maybe-install-mpfr:
12430@if mpfr
12431maybe-install-mpfr: install-mpfr
2a4cbe27 12432
a90ef4bf 12433install-mpfr:
4fa63067 12434
a90ef4bf 12435@endif mpfr
4fa63067 12436
a90ef4bf
JM
12437.PHONY: install-strip-mpfr maybe-install-strip-mpfr
12438maybe-install-strip-mpfr:
12439@if mpfr
12440maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 12441
a90ef4bf 12442install-strip-mpfr:
9b980aa1 12443
a90ef4bf 12444@endif mpfr
9b980aa1 12445
56a8fe78 12446# Other targets (info, dvi, pdf, etc.)
4fa63067 12447
a90ef4bf
JM
12448.PHONY: maybe-info-mpfr info-mpfr
12449maybe-info-mpfr:
12450@if mpfr
12451maybe-info-mpfr: info-mpfr
4fa63067 12452
a90ef4bf
JM
12453info-mpfr: \
12454 configure-mpfr
12455 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12456 r=`${PWD_COMMAND}`; export r; \
12457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12458 $(HOST_EXPORTS) \
b813574b 12459 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12461 done; \
22121df0 12462 echo "Doing info in mpfr"; \
a90ef4bf 12463 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12466 "RANLIB=$${RANLIB}" \
0c24b341 12467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12468 info) \
2a4cbe27
NN
12469 || exit 1
12470
a90ef4bf 12471@endif mpfr
2a4cbe27 12472
a90ef4bf
JM
12473.PHONY: maybe-dvi-mpfr dvi-mpfr
12474maybe-dvi-mpfr:
12475@if mpfr
12476maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 12477
a90ef4bf
JM
12478dvi-mpfr: \
12479 configure-mpfr
12480 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12481 r=`${PWD_COMMAND}`; export r; \
12482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12483 $(HOST_EXPORTS) \
b813574b 12484 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12486 done; \
22121df0 12487 echo "Doing dvi in mpfr"; \
a90ef4bf 12488 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12491 "RANLIB=$${RANLIB}" \
0c24b341 12492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12493 dvi) \
2a4cbe27
NN
12494 || exit 1
12495
a90ef4bf 12496@endif mpfr
2a4cbe27 12497
a90ef4bf
JM
12498.PHONY: maybe-pdf-mpfr pdf-mpfr
12499maybe-pdf-mpfr:
12500@if mpfr
12501maybe-pdf-mpfr: pdf-mpfr
56a8fe78 12502
a90ef4bf
JM
12503pdf-mpfr: \
12504 configure-mpfr
12505 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
12506 r=`${PWD_COMMAND}`; export r; \
12507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12508 $(HOST_EXPORTS) \
12509 for flag in $(EXTRA_HOST_FLAGS) ; do \
12510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12511 done; \
22121df0 12512 echo "Doing pdf in mpfr"; \
a90ef4bf 12513 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
12514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12516 "RANLIB=$${RANLIB}" \
0c24b341 12517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12518 pdf) \
12519 || exit 1
12520
a90ef4bf 12521@endif mpfr
56a8fe78 12522
a90ef4bf
JM
12523.PHONY: maybe-html-mpfr html-mpfr
12524maybe-html-mpfr:
12525@if mpfr
12526maybe-html-mpfr: html-mpfr
6d389afc 12527
a90ef4bf
JM
12528html-mpfr: \
12529 configure-mpfr
12530 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
12531 r=`${PWD_COMMAND}`; export r; \
12532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
12533 $(HOST_EXPORTS) \
12534 for flag in $(EXTRA_HOST_FLAGS) ; do \
12535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12536 done; \
22121df0 12537 echo "Doing html in mpfr"; \
a90ef4bf 12538 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
12539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12541 "RANLIB=$${RANLIB}" \
0c24b341 12542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12543 html) \
12544 || exit 1
12545
a90ef4bf 12546@endif mpfr
6d389afc 12547
a90ef4bf
JM
12548.PHONY: maybe-TAGS-mpfr TAGS-mpfr
12549maybe-TAGS-mpfr:
12550@if mpfr
12551maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 12552
a90ef4bf
JM
12553TAGS-mpfr: \
12554 configure-mpfr
12555 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12556 r=`${PWD_COMMAND}`; export r; \
12557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12558 $(HOST_EXPORTS) \
b813574b 12559 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12561 done; \
22121df0 12562 echo "Doing TAGS in mpfr"; \
a90ef4bf 12563 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12566 "RANLIB=$${RANLIB}" \
0c24b341 12567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12568 TAGS) \
2a4cbe27
NN
12569 || exit 1
12570
a90ef4bf 12571@endif mpfr
2a4cbe27 12572
a90ef4bf
JM
12573.PHONY: maybe-install-info-mpfr install-info-mpfr
12574maybe-install-info-mpfr:
12575@if mpfr
12576maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 12577
a90ef4bf
JM
12578install-info-mpfr: \
12579 configure-mpfr \
12580 info-mpfr
12581 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12582 r=`${PWD_COMMAND}`; export r; \
12583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12584 $(HOST_EXPORTS) \
b813574b 12585 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12587 done; \
22121df0 12588 echo "Doing install-info in mpfr"; \
a90ef4bf 12589 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12592 "RANLIB=$${RANLIB}" \
0c24b341 12593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12594 install-info) \
2a4cbe27
NN
12595 || exit 1
12596
a90ef4bf 12597@endif mpfr
2a4cbe27 12598
a90ef4bf
JM
12599.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
12600maybe-install-pdf-mpfr:
12601@if mpfr
12602maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 12603
a90ef4bf
JM
12604install-pdf-mpfr: \
12605 configure-mpfr \
12606 pdf-mpfr
12607 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
12608 r=`${PWD_COMMAND}`; export r; \
12609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12610 $(HOST_EXPORTS) \
12611 for flag in $(EXTRA_HOST_FLAGS) ; do \
12612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12613 done; \
22121df0 12614 echo "Doing install-pdf in mpfr"; \
a90ef4bf 12615 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
12616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12618 "RANLIB=$${RANLIB}" \
0c24b341 12619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12620 install-pdf) \
12621 || exit 1
12622
a90ef4bf 12623@endif mpfr
a3ca38d2 12624
a90ef4bf
JM
12625.PHONY: maybe-install-html-mpfr install-html-mpfr
12626maybe-install-html-mpfr:
12627@if mpfr
12628maybe-install-html-mpfr: install-html-mpfr
108a6f8e 12629
a90ef4bf
JM
12630install-html-mpfr: \
12631 configure-mpfr \
12632 html-mpfr
12633 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
12634 r=`${PWD_COMMAND}`; export r; \
12635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12636 $(HOST_EXPORTS) \
12637 for flag in $(EXTRA_HOST_FLAGS) ; do \
12638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12639 done; \
22121df0 12640 echo "Doing install-html in mpfr"; \
a90ef4bf 12641 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
12642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12644 "RANLIB=$${RANLIB}" \
0c24b341 12645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12646 install-html) \
12647 || exit 1
12648
a90ef4bf 12649@endif mpfr
108a6f8e 12650
a90ef4bf
JM
12651.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12652maybe-installcheck-mpfr:
12653@if mpfr
12654maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12655
a90ef4bf
JM
12656installcheck-mpfr: \
12657 configure-mpfr
12658 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12659 r=`${PWD_COMMAND}`; export r; \
12660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12661 $(HOST_EXPORTS) \
b813574b 12662 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12664 done; \
22121df0 12665 echo "Doing installcheck in mpfr"; \
a90ef4bf 12666 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12669 "RANLIB=$${RANLIB}" \
0c24b341 12670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12671 installcheck) \
2a4cbe27
NN
12672 || exit 1
12673
a90ef4bf 12674@endif mpfr
2a4cbe27 12675
a90ef4bf
JM
12676.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12677maybe-mostlyclean-mpfr:
12678@if mpfr
12679maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12680
a90ef4bf
JM
12681mostlyclean-mpfr:
12682 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12683 r=`${PWD_COMMAND}`; export r; \
12684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12685 $(HOST_EXPORTS) \
b813574b 12686 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12688 done; \
22121df0 12689 echo "Doing mostlyclean in mpfr"; \
a90ef4bf 12690 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12693 "RANLIB=$${RANLIB}" \
0c24b341 12694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12695 mostlyclean) \
2a4cbe27
NN
12696 || exit 1
12697
a90ef4bf 12698@endif mpfr
2a4cbe27 12699
a90ef4bf
JM
12700.PHONY: maybe-clean-mpfr clean-mpfr
12701maybe-clean-mpfr:
12702@if mpfr
12703maybe-clean-mpfr: clean-mpfr
2a4cbe27 12704
a90ef4bf
JM
12705clean-mpfr:
12706 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12707 r=`${PWD_COMMAND}`; export r; \
12708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12709 $(HOST_EXPORTS) \
b813574b 12710 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12712 done; \
22121df0 12713 echo "Doing clean in mpfr"; \
a90ef4bf 12714 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12717 "RANLIB=$${RANLIB}" \
0c24b341 12718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12719 clean) \
2a4cbe27
NN
12720 || exit 1
12721
a90ef4bf 12722@endif mpfr
2a4cbe27 12723
a90ef4bf
JM
12724.PHONY: maybe-distclean-mpfr distclean-mpfr
12725maybe-distclean-mpfr:
12726@if mpfr
12727maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12728
a90ef4bf
JM
12729distclean-mpfr:
12730 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12731 r=`${PWD_COMMAND}`; export r; \
12732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12733 $(HOST_EXPORTS) \
b813574b 12734 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12736 done; \
22121df0 12737 echo "Doing distclean in mpfr"; \
a90ef4bf 12738 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12741 "RANLIB=$${RANLIB}" \
0c24b341 12742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12743 distclean) \
2a4cbe27
NN
12744 || exit 1
12745
a90ef4bf 12746@endif mpfr
2a4cbe27 12747
a90ef4bf
JM
12748.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12749maybe-maintainer-clean-mpfr:
12750@if mpfr
12751maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12752
a90ef4bf
JM
12753maintainer-clean-mpfr:
12754 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12755 r=`${PWD_COMMAND}`; export r; \
12756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12757 $(HOST_EXPORTS) \
b813574b 12758 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12760 done; \
22121df0 12761 echo "Doing maintainer-clean in mpfr"; \
a90ef4bf 12762 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12765 "RANLIB=$${RANLIB}" \
0c24b341 12766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12767 maintainer-clean) \
2a4cbe27
NN
12768 || exit 1
12769
a90ef4bf 12770@endif mpfr
2a4cbe27 12771
2a4cbe27 12772
a7254363 12773
a90ef4bf
JM
12774.PHONY: configure-mpc maybe-configure-mpc
12775maybe-configure-mpc:
4f0ef2d8 12776@if gcc-bootstrap
a90ef4bf 12777configure-mpc: stage_current
4f0ef2d8 12778@endif gcc-bootstrap
a90ef4bf
JM
12779@if mpc
12780maybe-configure-mpc: configure-mpc
12781configure-mpc:
c52c6897 12782 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12784 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
22121df0 12785 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
1f53ca9a 12786 $(HOST_EXPORTS) \
a90ef4bf
JM
12787 echo Configuring in $(HOST_SUBDIR)/mpc; \
12788 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12789 case $(srcdir) in \
b00612cc 12790 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12791 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12792 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12793 esac; \
1b6c0831
L
12794 module_srcdir=mpc; \
12795 $(SHELL) \
12796 $$s/$$module_srcdir/configure \
12797 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12798 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12799 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12800 || exit 1
a90ef4bf 12801@endif mpc
d545f33b
PB
12802
12803
d3ed111c 12804
a90ef4bf
JM
12805.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12806maybe-configure-stage1-mpc:
12807@if mpc-bootstrap
12808maybe-configure-stage1-mpc: configure-stage1-mpc
12809configure-stage1-mpc:
12810 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12811 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12812 @r=`${PWD_COMMAND}`; export r; \
12813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12814 TFLAGS="$(STAGE1_TFLAGS)"; \
12815 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12816 $(HOST_EXPORTS) \
a90ef4bf
JM
12817 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12818 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12819 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12820 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc; \
12821 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12822 cd $(HOST_SUBDIR)/mpc || exit 1; \
12823 case $(srcdir) in \
12824 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12825 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12826 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12827 esac; \
1b6c0831
L
12828 module_srcdir=mpc; \
12829 $(SHELL) $$s/$$module_srcdir/configure \
12830 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12831 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12832 --target=${target_alias} \
12833 \
a90ef4bf
JM
12834 $(STAGE1_CONFIGURE_FLAGS) \
12835 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12836@endif mpc-bootstrap
d3ed111c 12837
a90ef4bf
JM
12838.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12839maybe-configure-stage2-mpc:
12840@if mpc-bootstrap
12841maybe-configure-stage2-mpc: configure-stage2-mpc
12842configure-stage2-mpc:
12843 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12844 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12845 @r=`${PWD_COMMAND}`; export r; \
12846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12847 TFLAGS="$(STAGE2_TFLAGS)"; \
12848 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12849 $(HOST_EXPORTS) \
a90ef4bf
JM
12850 $(POSTSTAGE1_HOST_EXPORTS) \
12851 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12852 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12853 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12854 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc; \
12855 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12856 cd $(HOST_SUBDIR)/mpc || exit 1; \
12857 case $(srcdir) in \
12858 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12859 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12860 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12861 esac; \
1b6c0831
L
12862 module_srcdir=mpc; \
12863 $(SHELL) $$s/$$module_srcdir/configure \
12864 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12865 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12866 --target=${target_alias} \
22121df0 12867 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12868 $(STAGE2_CONFIGURE_FLAGS) \
12869 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12870@endif mpc-bootstrap
9b980aa1 12871
a90ef4bf
JM
12872.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12873maybe-configure-stage3-mpc:
12874@if mpc-bootstrap
12875maybe-configure-stage3-mpc: configure-stage3-mpc
12876configure-stage3-mpc:
12877 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12878 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
12879 @r=`${PWD_COMMAND}`; export r; \
12880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12881 TFLAGS="$(STAGE3_TFLAGS)"; \
12882 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 12883 $(HOST_EXPORTS) \
a90ef4bf
JM
12884 $(POSTSTAGE1_HOST_EXPORTS) \
12885 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12886 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12887 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12888 echo Configuring stage 3 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 12900 --target=${target_alias} \
22121df0 12901 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12902 $(STAGE3_CONFIGURE_FLAGS) \
12903 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12904@endif mpc-bootstrap
d3ed111c 12905
a90ef4bf
JM
12906.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
12907maybe-configure-stage4-mpc:
12908@if mpc-bootstrap
12909maybe-configure-stage4-mpc: configure-stage4-mpc
12910configure-stage4-mpc:
12911 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12912 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12913 @r=`${PWD_COMMAND}`; export r; \
12914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12915 TFLAGS="$(STAGE4_TFLAGS)"; \
12916 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12917 $(HOST_EXPORTS) \
12918 $(POSTSTAGE1_HOST_EXPORTS) \
12919 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12920 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12921 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12922 echo Configuring stage 4 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
JM
12936 $(STAGE4_CONFIGURE_FLAGS) \
12937 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12938@endif mpc-bootstrap
12939
12940.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
12941maybe-configure-stageprofile-mpc:
12942@if mpc-bootstrap
12943maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
12944configure-stageprofile-mpc:
12945 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12946 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12947 @r=`${PWD_COMMAND}`; export r; \
12948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12949 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12950 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12951 $(HOST_EXPORTS) \
12952 $(POSTSTAGE1_HOST_EXPORTS) \
12953 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12954 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12955 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12956 echo Configuring stage profile 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
JM
12970 $(STAGEprofile_CONFIGURE_FLAGS) \
12971 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12972@endif mpc-bootstrap
12973
12974.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
12975maybe-configure-stagefeedback-mpc:
12976@if mpc-bootstrap
12977maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
12978configure-stagefeedback-mpc:
12979 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12980 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12981 @r=`${PWD_COMMAND}`; export r; \
12982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12983 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12984 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12985 $(HOST_EXPORTS) \
12986 $(POSTSTAGE1_HOST_EXPORTS) \
12987 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12988 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12989 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12990 echo Configuring stage feedback 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
JM
13004 $(STAGEfeedback_CONFIGURE_FLAGS) \
13005 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
13006@endif mpc-bootstrap
13007
13008
13009
13010
13011
13012.PHONY: all-mpc maybe-all-mpc
13013maybe-all-mpc:
13014@if gcc-bootstrap
13015all-mpc: stage_current
13016@endif gcc-bootstrap
13017@if mpc
13018TARGET-mpc=all
13019maybe-all-mpc: all-mpc
13020all-mpc: configure-mpc
13021 @r=`${PWD_COMMAND}`; export r; \
13022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13023 $(HOST_EXPORTS) \
13024 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 13025 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13026 $(TARGET-mpc))
13027@endif mpc
13028
13029
13030
13031.PHONY: all-stage1-mpc maybe-all-stage1-mpc
13032.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
13033maybe-all-stage1-mpc:
13034maybe-clean-stage1-mpc:
13035@if mpc-bootstrap
13036maybe-all-stage1-mpc: all-stage1-mpc
13037all-stage1: all-stage1-mpc
13038TARGET-stage1-mpc = $(TARGET-mpc)
13039all-stage1-mpc: configure-stage1-mpc
13040 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13041 @r=`${PWD_COMMAND}`; export r; \
13042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13043 TFLAGS="$(STAGE1_TFLAGS)"; \
13044 $(HOST_EXPORTS) \
13045 cd $(HOST_SUBDIR)/mpc && \
13046 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13047 CFLAGS="$(STAGE1_CFLAGS)" \
13048 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13049 LIBCFLAGS="$(LIBCFLAGS)" \
13050 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13051 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13052 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13053 $(EXTRA_HOST_FLAGS) \
13054 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13055 TFLAGS="$(STAGE1_TFLAGS)" \
13056 $(TARGET-stage1-mpc)
13057
13058maybe-clean-stage1-mpc: clean-stage1-mpc
13059clean-stage1: clean-stage1-mpc
13060clean-stage1-mpc:
13061 @if [ $(current_stage) = stage1 ]; then \
13062 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13063 else \
13064 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
13065 $(MAKE) stage1-start; \
13066 fi; \
13067 cd $(HOST_SUBDIR)/mpc && \
13068 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13069 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13070@endif mpc-bootstrap
13071
13072
13073.PHONY: all-stage2-mpc maybe-all-stage2-mpc
13074.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
13075maybe-all-stage2-mpc:
13076maybe-clean-stage2-mpc:
13077@if mpc-bootstrap
13078maybe-all-stage2-mpc: all-stage2-mpc
13079all-stage2: all-stage2-mpc
13080TARGET-stage2-mpc = $(TARGET-mpc)
13081all-stage2-mpc: configure-stage2-mpc
13082 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13083 @r=`${PWD_COMMAND}`; export r; \
13084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13085 TFLAGS="$(STAGE2_TFLAGS)"; \
13086 $(HOST_EXPORTS) \
13087 $(POSTSTAGE1_HOST_EXPORTS) \
13088 cd $(HOST_SUBDIR)/mpc && \
13089 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13090 CFLAGS="$(STAGE2_CFLAGS)" \
13091 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13092 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13093 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13094 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13095 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13096 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13097 TFLAGS="$(STAGE2_TFLAGS)" \
13098 $(TARGET-stage2-mpc)
13099
13100maybe-clean-stage2-mpc: clean-stage2-mpc
13101clean-stage2: clean-stage2-mpc
13102clean-stage2-mpc:
13103 @if [ $(current_stage) = stage2 ]; then \
13104 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13105 else \
13106 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
13107 $(MAKE) stage2-start; \
13108 fi; \
13109 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13110 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13111@endif mpc-bootstrap
13112
13113
13114.PHONY: all-stage3-mpc maybe-all-stage3-mpc
13115.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
13116maybe-all-stage3-mpc:
13117maybe-clean-stage3-mpc:
13118@if mpc-bootstrap
13119maybe-all-stage3-mpc: all-stage3-mpc
13120all-stage3: all-stage3-mpc
13121TARGET-stage3-mpc = $(TARGET-mpc)
13122all-stage3-mpc: configure-stage3-mpc
13123 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13124 @r=`${PWD_COMMAND}`; export r; \
13125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13126 TFLAGS="$(STAGE3_TFLAGS)"; \
13127 $(HOST_EXPORTS) \
13128 $(POSTSTAGE1_HOST_EXPORTS) \
13129 cd $(HOST_SUBDIR)/mpc && \
13130 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13131 CFLAGS="$(STAGE3_CFLAGS)" \
13132 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13133 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13134 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13135 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13136 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13137 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13138 TFLAGS="$(STAGE3_TFLAGS)" \
13139 $(TARGET-stage3-mpc)
13140
13141maybe-clean-stage3-mpc: clean-stage3-mpc
13142clean-stage3: clean-stage3-mpc
13143clean-stage3-mpc:
13144 @if [ $(current_stage) = stage3 ]; then \
13145 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13146 else \
13147 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
13148 $(MAKE) stage3-start; \
13149 fi; \
13150 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13151 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13152@endif mpc-bootstrap
13153
13154
13155.PHONY: all-stage4-mpc maybe-all-stage4-mpc
13156.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
13157maybe-all-stage4-mpc:
13158maybe-clean-stage4-mpc:
13159@if mpc-bootstrap
13160maybe-all-stage4-mpc: all-stage4-mpc
13161all-stage4: all-stage4-mpc
13162TARGET-stage4-mpc = $(TARGET-mpc)
13163all-stage4-mpc: configure-stage4-mpc
13164 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13165 @r=`${PWD_COMMAND}`; export r; \
13166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13167 TFLAGS="$(STAGE4_TFLAGS)"; \
13168 $(HOST_EXPORTS) \
13169 $(POSTSTAGE1_HOST_EXPORTS) \
13170 cd $(HOST_SUBDIR)/mpc && \
13171 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13172 CFLAGS="$(STAGE4_CFLAGS)" \
13173 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13174 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13175 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13176 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13177 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13178 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13179 TFLAGS="$(STAGE4_TFLAGS)" \
13180 $(TARGET-stage4-mpc)
13181
13182maybe-clean-stage4-mpc: clean-stage4-mpc
13183clean-stage4: clean-stage4-mpc
13184clean-stage4-mpc:
13185 @if [ $(current_stage) = stage4 ]; then \
13186 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13187 else \
13188 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
13189 $(MAKE) stage4-start; \
13190 fi; \
13191 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13192 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13193@endif mpc-bootstrap
13194
13195
13196.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
13197.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
13198maybe-all-stageprofile-mpc:
13199maybe-clean-stageprofile-mpc:
13200@if mpc-bootstrap
13201maybe-all-stageprofile-mpc: all-stageprofile-mpc
13202all-stageprofile: all-stageprofile-mpc
13203TARGET-stageprofile-mpc = $(TARGET-mpc)
13204all-stageprofile-mpc: configure-stageprofile-mpc
13205 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13206 @r=`${PWD_COMMAND}`; export r; \
13207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13208 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13209 $(HOST_EXPORTS) \
13210 $(POSTSTAGE1_HOST_EXPORTS) \
13211 cd $(HOST_SUBDIR)/mpc && \
13212 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13213 CFLAGS="$(STAGEprofile_CFLAGS)" \
13214 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13215 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13216 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13217 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13218 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13219 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13220 TFLAGS="$(STAGEprofile_TFLAGS)" \
13221 $(TARGET-stageprofile-mpc)
13222
13223maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
13224clean-stageprofile: clean-stageprofile-mpc
13225clean-stageprofile-mpc:
13226 @if [ $(current_stage) = stageprofile ]; then \
13227 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13228 else \
13229 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
13230 $(MAKE) stageprofile-start; \
13231 fi; \
13232 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13233 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13234@endif mpc-bootstrap
13235
13236
13237.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
13238.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
13239maybe-all-stagefeedback-mpc:
13240maybe-clean-stagefeedback-mpc:
13241@if mpc-bootstrap
13242maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
13243all-stagefeedback: all-stagefeedback-mpc
13244TARGET-stagefeedback-mpc = $(TARGET-mpc)
13245all-stagefeedback-mpc: configure-stagefeedback-mpc
13246 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13247 @r=`${PWD_COMMAND}`; export r; \
13248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13249 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13250 $(HOST_EXPORTS) \
13251 $(POSTSTAGE1_HOST_EXPORTS) \
13252 cd $(HOST_SUBDIR)/mpc && \
13253 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13254 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13255 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13256 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13257 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13258 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13259 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13260 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13261 TFLAGS="$(STAGEfeedback_TFLAGS)" \
13262 $(TARGET-stagefeedback-mpc)
13263
13264maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
13265clean-stagefeedback: clean-stagefeedback-mpc
13266clean-stagefeedback-mpc:
13267 @if [ $(current_stage) = stagefeedback ]; then \
13268 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13269 else \
13270 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
13271 $(MAKE) stagefeedback-start; \
13272 fi; \
13273 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13274 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13275@endif mpc-bootstrap
13276
13277
13278
13279
13280
13281.PHONY: check-mpc maybe-check-mpc
13282maybe-check-mpc:
13283@if mpc
13284maybe-check-mpc: check-mpc
13285
13286check-mpc:
13287 @: $(MAKE); $(unstage)
13288 @r=`${PWD_COMMAND}`; export r; \
13289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 13290 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 13291 (cd $(HOST_SUBDIR)/mpc && \
f91ca6bc 13292 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf
JM
13293
13294@endif mpc
13295
13296.PHONY: install-mpc maybe-install-mpc
13297maybe-install-mpc:
13298@if mpc
13299maybe-install-mpc: install-mpc
13300
13301install-mpc:
13302
13303@endif mpc
13304
13305.PHONY: install-strip-mpc maybe-install-strip-mpc
13306maybe-install-strip-mpc:
13307@if mpc
13308maybe-install-strip-mpc: install-strip-mpc
13309
13310install-strip-mpc:
13311
13312@endif mpc
13313
13314# Other targets (info, dvi, pdf, etc.)
13315
13316.PHONY: maybe-info-mpc info-mpc
13317maybe-info-mpc:
13318@if mpc
13319maybe-info-mpc: info-mpc
13320
13321info-mpc: \
13322 configure-mpc
13323 @[ -f ./mpc/Makefile ] || exit 0; \
13324 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
13325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13326 $(HOST_EXPORTS) \
13327 for flag in $(EXTRA_HOST_FLAGS) ; do \
13328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13329 done; \
22121df0 13330 echo "Doing info in mpc"; \
a90ef4bf 13331 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13334 "RANLIB=$${RANLIB}" \
0c24b341 13335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13336 info) \
13337 || exit 1
d3ed111c 13338
a90ef4bf 13339@endif mpc
d3ed111c 13340
a90ef4bf
JM
13341.PHONY: maybe-dvi-mpc dvi-mpc
13342maybe-dvi-mpc:
13343@if mpc
13344maybe-dvi-mpc: dvi-mpc
d3ed111c 13345
a90ef4bf
JM
13346dvi-mpc: \
13347 configure-mpc
13348 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13349 r=`${PWD_COMMAND}`; export r; \
13350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13351 $(HOST_EXPORTS) \
13352 for flag in $(EXTRA_HOST_FLAGS) ; do \
13353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13354 done; \
22121df0 13355 echo "Doing dvi in mpc"; \
a90ef4bf 13356 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13359 "RANLIB=$${RANLIB}" \
0c24b341 13360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13361 dvi) \
13362 || exit 1
d3ed111c 13363
a90ef4bf 13364@endif mpc
d3ed111c 13365
a90ef4bf
JM
13366.PHONY: maybe-pdf-mpc pdf-mpc
13367maybe-pdf-mpc:
13368@if mpc
13369maybe-pdf-mpc: pdf-mpc
56a8fe78 13370
a90ef4bf
JM
13371pdf-mpc: \
13372 configure-mpc
13373 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13374 r=`${PWD_COMMAND}`; export r; \
13375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13376 $(HOST_EXPORTS) \
13377 for flag in $(EXTRA_HOST_FLAGS) ; do \
13378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13379 done; \
22121df0 13380 echo "Doing pdf in mpc"; \
a90ef4bf 13381 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13384 "RANLIB=$${RANLIB}" \
0c24b341 13385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13386 pdf) \
13387 || exit 1
56a8fe78 13388
a90ef4bf 13389@endif mpc
56a8fe78 13390
a90ef4bf
JM
13391.PHONY: maybe-html-mpc html-mpc
13392maybe-html-mpc:
13393@if mpc
13394maybe-html-mpc: html-mpc
6d389afc 13395
a90ef4bf
JM
13396html-mpc: \
13397 configure-mpc
13398 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
13399 r=`${PWD_COMMAND}`; export r; \
13400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
13401 $(HOST_EXPORTS) \
13402 for flag in $(EXTRA_HOST_FLAGS) ; do \
13403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13404 done; \
22121df0 13405 echo "Doing html in mpc"; \
a90ef4bf 13406 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
13407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13409 "RANLIB=$${RANLIB}" \
0c24b341 13410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13411 html) \
13412 || exit 1
13413
a90ef4bf 13414@endif mpc
d3ed111c 13415
a90ef4bf
JM
13416.PHONY: maybe-TAGS-mpc TAGS-mpc
13417maybe-TAGS-mpc:
13418@if mpc
13419maybe-TAGS-mpc: TAGS-mpc
d3ed111c 13420
a90ef4bf
JM
13421TAGS-mpc: \
13422 configure-mpc
13423 @[ -f ./mpc/Makefile ] || exit 0; \
13424 r=`${PWD_COMMAND}`; export r; \
13425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
13426 $(HOST_EXPORTS) \
13427 for flag in $(EXTRA_HOST_FLAGS) ; do \
13428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13429 done; \
22121df0 13430 echo "Doing TAGS in mpc"; \
a90ef4bf
JM
13431 (cd $(HOST_SUBDIR)/mpc && \
13432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13434 "RANLIB=$${RANLIB}" \
13435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
13436 TAGS) \
13437 || exit 1
13438
13439@endif mpc
13440
13441.PHONY: maybe-install-info-mpc install-info-mpc
13442maybe-install-info-mpc:
13443@if mpc
13444maybe-install-info-mpc: install-info-mpc
13445
13446install-info-mpc: \
13447 configure-mpc \
13448 info-mpc
13449 @[ -f ./mpc/Makefile ] || exit 0; \
13450 r=`${PWD_COMMAND}`; export r; \
13451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13452 $(HOST_EXPORTS) \
13453 for flag in $(EXTRA_HOST_FLAGS) ; do \
13454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13455 done; \
22121df0 13456 echo "Doing install-info in mpc"; \
a90ef4bf 13457 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13460 "RANLIB=$${RANLIB}" \
0c24b341 13461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13462 install-info) \
13463 || exit 1
d3ed111c 13464
a90ef4bf 13465@endif mpc
d3ed111c 13466
a90ef4bf
JM
13467.PHONY: maybe-install-pdf-mpc install-pdf-mpc
13468maybe-install-pdf-mpc:
13469@if mpc
13470maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 13471
a90ef4bf
JM
13472install-pdf-mpc: \
13473 configure-mpc \
13474 pdf-mpc
13475 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13476 r=`${PWD_COMMAND}`; export r; \
13477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13478 $(HOST_EXPORTS) \
13479 for flag in $(EXTRA_HOST_FLAGS) ; do \
13480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13481 done; \
22121df0 13482 echo "Doing install-pdf in mpc"; \
a90ef4bf 13483 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13486 "RANLIB=$${RANLIB}" \
0c24b341 13487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13488 install-pdf) \
13489 || exit 1
a3ca38d2 13490
a90ef4bf 13491@endif mpc
a3ca38d2 13492
a90ef4bf
JM
13493.PHONY: maybe-install-html-mpc install-html-mpc
13494maybe-install-html-mpc:
13495@if mpc
13496maybe-install-html-mpc: install-html-mpc
108a6f8e 13497
a90ef4bf
JM
13498install-html-mpc: \
13499 configure-mpc \
13500 html-mpc
13501 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
13502 r=`${PWD_COMMAND}`; export r; \
13503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13504 $(HOST_EXPORTS) \
13505 for flag in $(EXTRA_HOST_FLAGS) ; do \
13506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13507 done; \
22121df0 13508 echo "Doing install-html in mpc"; \
a90ef4bf 13509 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
13510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13512 "RANLIB=$${RANLIB}" \
0c24b341 13513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13514 install-html) \
13515 || exit 1
13516
a90ef4bf 13517@endif mpc
108a6f8e 13518
a90ef4bf
JM
13519.PHONY: maybe-installcheck-mpc installcheck-mpc
13520maybe-installcheck-mpc:
13521@if mpc
13522maybe-installcheck-mpc: installcheck-mpc
d3ed111c 13523
a90ef4bf
JM
13524installcheck-mpc: \
13525 configure-mpc
13526 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13527 r=`${PWD_COMMAND}`; export r; \
13528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13529 $(HOST_EXPORTS) \
13530 for flag in $(EXTRA_HOST_FLAGS) ; do \
13531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13532 done; \
22121df0 13533 echo "Doing installcheck in mpc"; \
a90ef4bf 13534 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13537 "RANLIB=$${RANLIB}" \
0c24b341 13538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13539 installcheck) \
13540 || exit 1
d3ed111c 13541
a90ef4bf 13542@endif mpc
d3ed111c 13543
a90ef4bf
JM
13544.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
13545maybe-mostlyclean-mpc:
13546@if mpc
13547maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 13548
a90ef4bf
JM
13549mostlyclean-mpc:
13550 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13551 r=`${PWD_COMMAND}`; export r; \
13552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13553 $(HOST_EXPORTS) \
13554 for flag in $(EXTRA_HOST_FLAGS) ; do \
13555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13556 done; \
22121df0 13557 echo "Doing mostlyclean in mpc"; \
a90ef4bf 13558 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13561 "RANLIB=$${RANLIB}" \
0c24b341 13562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13563 mostlyclean) \
13564 || exit 1
13565
a90ef4bf 13566@endif mpc
d3ed111c 13567
a90ef4bf
JM
13568.PHONY: maybe-clean-mpc clean-mpc
13569maybe-clean-mpc:
13570@if mpc
13571maybe-clean-mpc: clean-mpc
d3ed111c 13572
a90ef4bf
JM
13573clean-mpc:
13574 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13575 r=`${PWD_COMMAND}`; export r; \
13576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13577 $(HOST_EXPORTS) \
13578 for flag in $(EXTRA_HOST_FLAGS) ; do \
13579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13580 done; \
22121df0 13581 echo "Doing clean in mpc"; \
a90ef4bf 13582 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13585 "RANLIB=$${RANLIB}" \
0c24b341 13586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13587 clean) \
13588 || exit 1
13589
a90ef4bf 13590@endif mpc
d3ed111c 13591
a90ef4bf
JM
13592.PHONY: maybe-distclean-mpc distclean-mpc
13593maybe-distclean-mpc:
13594@if mpc
13595maybe-distclean-mpc: distclean-mpc
d3ed111c 13596
a90ef4bf
JM
13597distclean-mpc:
13598 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13599 r=`${PWD_COMMAND}`; export r; \
13600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13601 $(HOST_EXPORTS) \
13602 for flag in $(EXTRA_HOST_FLAGS) ; do \
13603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13604 done; \
22121df0 13605 echo "Doing distclean in mpc"; \
a90ef4bf 13606 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13609 "RANLIB=$${RANLIB}" \
0c24b341 13610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13611 distclean) \
13612 || exit 1
13613
a90ef4bf 13614@endif mpc
d3ed111c 13615
a90ef4bf
JM
13616.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
13617maybe-maintainer-clean-mpc:
13618@if mpc
13619maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 13620
a90ef4bf
JM
13621maintainer-clean-mpc:
13622 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13623 r=`${PWD_COMMAND}`; export r; \
13624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13625 $(HOST_EXPORTS) \
13626 for flag in $(EXTRA_HOST_FLAGS) ; do \
13627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13628 done; \
22121df0 13629 echo "Doing maintainer-clean in mpc"; \
a90ef4bf 13630 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13633 "RANLIB=$${RANLIB}" \
0c24b341 13634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13635 maintainer-clean) \
13636 || exit 1
13637
a90ef4bf 13638@endif mpc
d3ed111c
GK
13639
13640
a7254363 13641
7ec59b9e
L
13642.PHONY: configure-isl maybe-configure-isl
13643maybe-configure-isl:
4f0ef2d8 13644@if gcc-bootstrap
7ec59b9e 13645configure-isl: stage_current
4f0ef2d8 13646@endif gcc-bootstrap
7ec59b9e
L
13647@if isl
13648maybe-configure-isl: configure-isl
13649configure-isl:
c52c6897 13650 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e 13652 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
22121df0 13653 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
1f53ca9a 13654 $(HOST_EXPORTS) \
7ec59b9e
L
13655 echo Configuring in $(HOST_SUBDIR)/isl; \
13656 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13657 case $(srcdir) in \
b00612cc 13658 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13659 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13660 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13661 esac; \
1b6c0831
L
13662 module_srcdir=isl; \
13663 $(SHELL) \
13664 $$s/$$module_srcdir/configure \
13665 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13666 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13667 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13668 || exit 1
7ec59b9e 13669@endif isl
4fa63067 13670
a7254363
PB
13671
13672
7ec59b9e
L
13673.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13674maybe-configure-stage1-isl:
13675@if isl-bootstrap
13676maybe-configure-stage1-isl: configure-stage1-isl
13677configure-stage1-isl:
a90ef4bf 13678 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13679 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13680 @r=`${PWD_COMMAND}`; export r; \
13681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13682 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13683 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13684 $(HOST_EXPORTS) \
13685 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13686 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13687 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
13688 echo Configuring stage 1 in $(HOST_SUBDIR)/isl; \
13689 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13690 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13691 case $(srcdir) in \
13692 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13693 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13694 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13695 esac; \
1b6c0831
L
13696 module_srcdir=isl; \
13697 $(SHELL) $$s/$$module_srcdir/configure \
13698 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13699 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13700 --target=${target_alias} \
13701 \
a90ef4bf 13702 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13703 --disable-shared @extra_isl_gmp_configure_flags@
13704@endif isl-bootstrap
13705
13706.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13707maybe-configure-stage2-isl:
13708@if isl-bootstrap
13709maybe-configure-stage2-isl: configure-stage2-isl
13710configure-stage2-isl:
a90ef4bf 13711 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13712 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13713 @r=`${PWD_COMMAND}`; export r; \
13714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13715 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13716 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13717 $(HOST_EXPORTS) \
13718 $(POSTSTAGE1_HOST_EXPORTS) \
13719 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13720 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13721 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13722 echo Configuring stage 2 in $(HOST_SUBDIR)/isl; \
13723 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13724 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13725 case $(srcdir) in \
13726 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13727 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13728 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13729 esac; \
1b6c0831
L
13730 module_srcdir=isl; \
13731 $(SHELL) $$s/$$module_srcdir/configure \
13732 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13733 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13734 --target=${target_alias} \
22121df0 13735 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13736 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13737 --disable-shared @extra_isl_gmp_configure_flags@
13738@endif isl-bootstrap
13739
13740.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13741maybe-configure-stage3-isl:
13742@if isl-bootstrap
13743maybe-configure-stage3-isl: configure-stage3-isl
13744configure-stage3-isl:
a90ef4bf 13745 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13746 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13747 @r=`${PWD_COMMAND}`; export r; \
13748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13749 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13750 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13751 $(HOST_EXPORTS) \
13752 $(POSTSTAGE1_HOST_EXPORTS) \
13753 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13754 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13755 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13756 echo Configuring stage 3 in $(HOST_SUBDIR)/isl; \
13757 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13758 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13759 case $(srcdir) in \
13760 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13761 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13762 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13763 esac; \
1b6c0831
L
13764 module_srcdir=isl; \
13765 $(SHELL) $$s/$$module_srcdir/configure \
13766 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13767 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13768 --target=${target_alias} \
22121df0 13769 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13770 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13771 --disable-shared @extra_isl_gmp_configure_flags@
13772@endif isl-bootstrap
13773
13774.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13775maybe-configure-stage4-isl:
13776@if isl-bootstrap
13777maybe-configure-stage4-isl: configure-stage4-isl
13778configure-stage4-isl:
a90ef4bf 13779 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13780 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13781 @r=`${PWD_COMMAND}`; export r; \
13782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13783 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13784 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13785 $(HOST_EXPORTS) \
13786 $(POSTSTAGE1_HOST_EXPORTS) \
13787 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13788 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13789 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13790 echo Configuring stage 4 in $(HOST_SUBDIR)/isl; \
13791 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13792 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13793 case $(srcdir) in \
13794 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13795 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13796 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13797 esac; \
1b6c0831
L
13798 module_srcdir=isl; \
13799 $(SHELL) $$s/$$module_srcdir/configure \
13800 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13801 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13802 --target=${target_alias} \
22121df0 13803 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13804 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13805 --disable-shared @extra_isl_gmp_configure_flags@
13806@endif isl-bootstrap
13807
13808.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13809maybe-configure-stageprofile-isl:
13810@if isl-bootstrap
13811maybe-configure-stageprofile-isl: configure-stageprofile-isl
13812configure-stageprofile-isl:
a90ef4bf 13813 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13814 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13815 @r=`${PWD_COMMAND}`; export r; \
13816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13817 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13818 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13819 $(HOST_EXPORTS) \
13820 $(POSTSTAGE1_HOST_EXPORTS) \
13821 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13822 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13823 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13824 echo Configuring stage profile in $(HOST_SUBDIR)/isl; \
13825 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13826 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13827 case $(srcdir) in \
13828 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13829 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13830 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13831 esac; \
1b6c0831
L
13832 module_srcdir=isl; \
13833 $(SHELL) $$s/$$module_srcdir/configure \
13834 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13835 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13836 --target=${target_alias} \
22121df0 13837 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13838 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
13839 --disable-shared @extra_isl_gmp_configure_flags@
13840@endif isl-bootstrap
13841
13842.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
13843maybe-configure-stagefeedback-isl:
13844@if isl-bootstrap
13845maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
13846configure-stagefeedback-isl:
a90ef4bf 13847 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 13848 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13849 @r=`${PWD_COMMAND}`; export r; \
13850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13851 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 13852 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13853 $(HOST_EXPORTS) \
13854 $(POSTSTAGE1_HOST_EXPORTS) \
13855 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13856 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13857 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13858 echo Configuring stage feedback in $(HOST_SUBDIR)/isl; \
13859 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13860 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13861 case $(srcdir) in \
13862 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13863 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13864 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13865 esac; \
1b6c0831
L
13866 module_srcdir=isl; \
13867 $(SHELL) $$s/$$module_srcdir/configure \
13868 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13869 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13870 --target=${target_alias} \
22121df0 13871 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13872 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
13873 --disable-shared @extra_isl_gmp_configure_flags@
13874@endif isl-bootstrap
d545f33b 13875
4fa63067 13876
4fa63067
NN
13877
13878
4fa63067 13879
7ec59b9e
L
13880.PHONY: all-isl maybe-all-isl
13881maybe-all-isl:
a90ef4bf 13882@if gcc-bootstrap
7ec59b9e 13883all-isl: stage_current
a90ef4bf 13884@endif gcc-bootstrap
7ec59b9e
L
13885@if isl
13886TARGET-isl=all
13887maybe-all-isl: all-isl
13888all-isl: configure-isl
4fa63067
NN
13889 @r=`${PWD_COMMAND}`; export r; \
13890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13891 $(HOST_EXPORTS) \
7ec59b9e 13892 (cd $(HOST_SUBDIR)/isl && \
b3676d82 13893 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
13894 $(TARGET-isl))
13895@endif isl
13896
13897
13898
13899.PHONY: all-stage1-isl maybe-all-stage1-isl
13900.PHONY: clean-stage1-isl maybe-clean-stage1-isl
13901maybe-all-stage1-isl:
13902maybe-clean-stage1-isl:
13903@if isl-bootstrap
13904maybe-all-stage1-isl: all-stage1-isl
13905all-stage1: all-stage1-isl
13906TARGET-stage1-isl = $(TARGET-isl)
13907all-stage1-isl: configure-stage1-isl
a90ef4bf 13908 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
13909 @r=`${PWD_COMMAND}`; export r; \
13910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13911 TFLAGS="$(STAGE1_TFLAGS)"; \
13912 $(HOST_EXPORTS) \
7ec59b9e 13913 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13914 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13915 CFLAGS="$(STAGE1_CFLAGS)" \
13916 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13917 LIBCFLAGS="$(LIBCFLAGS)" \
13918 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13919 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13920 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13921 $(EXTRA_HOST_FLAGS) \
13922 $(STAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13923 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 13924 $(TARGET-stage1-isl)
9b980aa1 13925
7ec59b9e
L
13926maybe-clean-stage1-isl: clean-stage1-isl
13927clean-stage1: clean-stage1-isl
13928clean-stage1-isl:
a90ef4bf 13929 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 13930 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13931 else \
7ec59b9e 13932 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13933 $(MAKE) stage1-start; \
13934 fi; \
7ec59b9e 13935 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 13936 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13937 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13938@endif isl-bootstrap
13939
13940
13941.PHONY: all-stage2-isl maybe-all-stage2-isl
13942.PHONY: clean-stage2-isl maybe-clean-stage2-isl
13943maybe-all-stage2-isl:
13944maybe-clean-stage2-isl:
13945@if isl-bootstrap
13946maybe-all-stage2-isl: all-stage2-isl
13947all-stage2: all-stage2-isl
13948TARGET-stage2-isl = $(TARGET-isl)
13949all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
13950 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13951 @r=`${PWD_COMMAND}`; export r; \
13952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13953 TFLAGS="$(STAGE2_TFLAGS)"; \
13954 $(HOST_EXPORTS) \
13955 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13956 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13957 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13958 CFLAGS="$(STAGE2_CFLAGS)" \
13959 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13960 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13961 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13962 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13963 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 13964 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13965 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 13966 $(TARGET-stage2-isl)
a90ef4bf 13967
7ec59b9e
L
13968maybe-clean-stage2-isl: clean-stage2-isl
13969clean-stage2: clean-stage2-isl
13970clean-stage2-isl:
a90ef4bf 13971 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 13972 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13973 else \
7ec59b9e 13974 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13975 $(MAKE) stage2-start; \
13976 fi; \
7ec59b9e 13977 cd $(HOST_SUBDIR)/isl && \
b3676d82 13978 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13979@endif isl-bootstrap
13980
13981
13982.PHONY: all-stage3-isl maybe-all-stage3-isl
13983.PHONY: clean-stage3-isl maybe-clean-stage3-isl
13984maybe-all-stage3-isl:
13985maybe-clean-stage3-isl:
13986@if isl-bootstrap
13987maybe-all-stage3-isl: all-stage3-isl
13988all-stage3: all-stage3-isl
13989TARGET-stage3-isl = $(TARGET-isl)
13990all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
13991 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13992 @r=`${PWD_COMMAND}`; export r; \
13993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13994 TFLAGS="$(STAGE3_TFLAGS)"; \
13995 $(HOST_EXPORTS) \
13996 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13997 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13998 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13999 CFLAGS="$(STAGE3_CFLAGS)" \
14000 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
14001 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14002 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14003 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14004 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14005 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14006 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 14007 $(TARGET-stage3-isl)
a90ef4bf 14008
7ec59b9e
L
14009maybe-clean-stage3-isl: clean-stage3-isl
14010clean-stage3: clean-stage3-isl
14011clean-stage3-isl:
a90ef4bf 14012 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 14013 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14014 else \
7ec59b9e 14015 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14016 $(MAKE) stage3-start; \
14017 fi; \
7ec59b9e 14018 cd $(HOST_SUBDIR)/isl && \
b3676d82 14019 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14020@endif isl-bootstrap
14021
14022
14023.PHONY: all-stage4-isl maybe-all-stage4-isl
14024.PHONY: clean-stage4-isl maybe-clean-stage4-isl
14025maybe-all-stage4-isl:
14026maybe-clean-stage4-isl:
14027@if isl-bootstrap
14028maybe-all-stage4-isl: all-stage4-isl
14029all-stage4: all-stage4-isl
14030TARGET-stage4-isl = $(TARGET-isl)
14031all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
14032 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14033 @r=`${PWD_COMMAND}`; export r; \
14034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14035 TFLAGS="$(STAGE4_TFLAGS)"; \
14036 $(HOST_EXPORTS) \
14037 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14038 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14039 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14040 CFLAGS="$(STAGE4_CFLAGS)" \
14041 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14042 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14043 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14044 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14045 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14046 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14047 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 14048 $(TARGET-stage4-isl)
a90ef4bf 14049
7ec59b9e
L
14050maybe-clean-stage4-isl: clean-stage4-isl
14051clean-stage4: clean-stage4-isl
14052clean-stage4-isl:
a90ef4bf 14053 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 14054 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14055 else \
7ec59b9e 14056 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14057 $(MAKE) stage4-start; \
14058 fi; \
7ec59b9e 14059 cd $(HOST_SUBDIR)/isl && \
b3676d82 14060 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14061@endif isl-bootstrap
14062
14063
14064.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
14065.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
14066maybe-all-stageprofile-isl:
14067maybe-clean-stageprofile-isl:
14068@if isl-bootstrap
14069maybe-all-stageprofile-isl: all-stageprofile-isl
14070all-stageprofile: all-stageprofile-isl
14071TARGET-stageprofile-isl = $(TARGET-isl)
14072all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
14073 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14074 @r=`${PWD_COMMAND}`; export r; \
14075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14076 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14077 $(HOST_EXPORTS) \
14078 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14079 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14080 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14081 CFLAGS="$(STAGEprofile_CFLAGS)" \
14082 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14083 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14084 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14085 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14086 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14087 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14088 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 14089 $(TARGET-stageprofile-isl)
a90ef4bf 14090
7ec59b9e
L
14091maybe-clean-stageprofile-isl: clean-stageprofile-isl
14092clean-stageprofile: clean-stageprofile-isl
14093clean-stageprofile-isl:
a90ef4bf 14094 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 14095 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14096 else \
7ec59b9e 14097 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14098 $(MAKE) stageprofile-start; \
14099 fi; \
7ec59b9e 14100 cd $(HOST_SUBDIR)/isl && \
b3676d82 14101 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14102@endif isl-bootstrap
14103
14104
14105.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
14106.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
14107maybe-all-stagefeedback-isl:
14108maybe-clean-stagefeedback-isl:
14109@if isl-bootstrap
14110maybe-all-stagefeedback-isl: all-stagefeedback-isl
14111all-stagefeedback: all-stagefeedback-isl
14112TARGET-stagefeedback-isl = $(TARGET-isl)
14113all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
14114 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
14115 @r=`${PWD_COMMAND}`; export r; \
14116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14117 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14118 $(HOST_EXPORTS) \
14119 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14120 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14121 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14122 CFLAGS="$(STAGEfeedback_CFLAGS)" \
14123 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14124 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14125 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14126 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14127 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14128 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14129 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 14130 $(TARGET-stagefeedback-isl)
a90ef4bf 14131
7ec59b9e
L
14132maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
14133clean-stagefeedback: clean-stagefeedback-isl
14134clean-stagefeedback-isl:
a90ef4bf 14135 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 14136 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14137 else \
7ec59b9e 14138 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14139 $(MAKE) stagefeedback-start; \
14140 fi; \
7ec59b9e 14141 cd $(HOST_SUBDIR)/isl && \
b3676d82 14142 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 14143@endif isl-bootstrap
a90ef4bf
JM
14144
14145
14146
14147
14148
7ec59b9e
L
14149.PHONY: check-isl maybe-check-isl
14150maybe-check-isl:
14151@if isl
14152maybe-check-isl: check-isl
a90ef4bf 14153
7ec59b9e 14154check-isl:
0aed8855 14155 @: $(MAKE); $(unstage)
a90ef4bf
JM
14156 @r=`${PWD_COMMAND}`; export r; \
14157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 14158 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
7ec59b9e 14159 (cd $(HOST_SUBDIR)/isl && \
f91ca6bc 14160 $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf 14161
7ec59b9e 14162@endif isl
a90ef4bf 14163
7ec59b9e
L
14164.PHONY: install-isl maybe-install-isl
14165maybe-install-isl:
14166@if isl
14167maybe-install-isl: install-isl
a90ef4bf 14168
7ec59b9e 14169install-isl:
a90ef4bf 14170
7ec59b9e 14171@endif isl
a90ef4bf 14172
7ec59b9e
L
14173.PHONY: install-strip-isl maybe-install-strip-isl
14174maybe-install-strip-isl:
14175@if isl
14176maybe-install-strip-isl: install-strip-isl
a90ef4bf 14177
7ec59b9e 14178install-strip-isl:
a90ef4bf 14179
7ec59b9e 14180@endif isl
a90ef4bf
JM
14181
14182# Other targets (info, dvi, pdf, etc.)
14183
7ec59b9e
L
14184.PHONY: maybe-info-isl info-isl
14185maybe-info-isl:
14186@if isl
14187maybe-info-isl: info-isl
a90ef4bf 14188
7ec59b9e
L
14189info-isl: \
14190 configure-isl
14191 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14192 r=`${PWD_COMMAND}`; export r; \
14193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14194 $(HOST_EXPORTS) \
7ec59b9e 14195 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14197 done; \
22121df0 14198 echo "Doing info in isl"; \
7ec59b9e 14199 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14202 "RANLIB=$${RANLIB}" \
0c24b341 14203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14204 info) \
2a4cbe27
NN
14205 || exit 1
14206
7ec59b9e 14207@endif isl
2a4cbe27 14208
7ec59b9e
L
14209.PHONY: maybe-dvi-isl dvi-isl
14210maybe-dvi-isl:
14211@if isl
14212maybe-dvi-isl: dvi-isl
2a4cbe27 14213
7ec59b9e
L
14214dvi-isl: \
14215 configure-isl
14216 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14217 r=`${PWD_COMMAND}`; export r; \
14218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14219 $(HOST_EXPORTS) \
7ec59b9e 14220 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14222 done; \
22121df0 14223 echo "Doing dvi in isl"; \
7ec59b9e 14224 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14227 "RANLIB=$${RANLIB}" \
0c24b341 14228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14229 dvi) \
2a4cbe27
NN
14230 || exit 1
14231
7ec59b9e 14232@endif isl
2a4cbe27 14233
7ec59b9e
L
14234.PHONY: maybe-pdf-isl pdf-isl
14235maybe-pdf-isl:
14236@if isl
14237maybe-pdf-isl: pdf-isl
56a8fe78 14238
7ec59b9e
L
14239pdf-isl: \
14240 configure-isl
14241 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
14242 r=`${PWD_COMMAND}`; export r; \
14243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14244 $(HOST_EXPORTS) \
7ec59b9e 14245 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
14246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14247 done; \
22121df0 14248 echo "Doing pdf in isl"; \
7ec59b9e 14249 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
14250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14252 "RANLIB=$${RANLIB}" \
0c24b341 14253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14254 pdf) \
14255 || exit 1
14256
7ec59b9e 14257@endif isl
56a8fe78 14258
7ec59b9e
L
14259.PHONY: maybe-html-isl html-isl
14260maybe-html-isl:
14261@if isl
14262maybe-html-isl: html-isl
6d389afc 14263
7ec59b9e
L
14264html-isl: \
14265 configure-isl
14266 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
14267 r=`${PWD_COMMAND}`; export r; \
14268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14269 $(HOST_EXPORTS) \
7ec59b9e 14270 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
14271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14272 done; \
22121df0 14273 echo "Doing html in isl"; \
7ec59b9e 14274 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
14275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14277 "RANLIB=$${RANLIB}" \
0c24b341 14278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14279 html) \
14280 || exit 1
14281
7ec59b9e 14282@endif isl
6d389afc 14283
7ec59b9e
L
14284.PHONY: maybe-TAGS-isl TAGS-isl
14285maybe-TAGS-isl:
14286@if isl
14287maybe-TAGS-isl: TAGS-isl
2a4cbe27 14288
7ec59b9e
L
14289TAGS-isl: \
14290 configure-isl
14291 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14292 r=`${PWD_COMMAND}`; export r; \
14293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14294 $(HOST_EXPORTS) \
7ec59b9e 14295 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14297 done; \
22121df0 14298 echo "Doing TAGS in isl"; \
7ec59b9e 14299 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14302 "RANLIB=$${RANLIB}" \
0c24b341 14303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14304 TAGS) \
2a4cbe27
NN
14305 || exit 1
14306
7ec59b9e 14307@endif isl
2a4cbe27 14308
7ec59b9e
L
14309.PHONY: maybe-install-info-isl install-info-isl
14310maybe-install-info-isl:
14311@if isl
14312maybe-install-info-isl: install-info-isl
2a4cbe27 14313
7ec59b9e
L
14314install-info-isl: \
14315 configure-isl \
14316 info-isl
14317 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14318 r=`${PWD_COMMAND}`; export r; \
14319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14320 $(HOST_EXPORTS) \
7ec59b9e 14321 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14323 done; \
22121df0 14324 echo "Doing install-info in isl"; \
7ec59b9e 14325 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14328 "RANLIB=$${RANLIB}" \
0c24b341 14329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14330 install-info) \
2a4cbe27
NN
14331 || exit 1
14332
7ec59b9e 14333@endif isl
2a4cbe27 14334
7ec59b9e
L
14335.PHONY: maybe-install-pdf-isl install-pdf-isl
14336maybe-install-pdf-isl:
14337@if isl
14338maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 14339
7ec59b9e
L
14340install-pdf-isl: \
14341 configure-isl \
14342 pdf-isl
14343 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
14344 r=`${PWD_COMMAND}`; export r; \
14345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14346 $(HOST_EXPORTS) \
7ec59b9e 14347 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
14348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14349 done; \
22121df0 14350 echo "Doing install-pdf in isl"; \
7ec59b9e 14351 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
14352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14354 "RANLIB=$${RANLIB}" \
0c24b341 14355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14356 install-pdf) \
14357 || exit 1
14358
7ec59b9e 14359@endif isl
a3ca38d2 14360
7ec59b9e
L
14361.PHONY: maybe-install-html-isl install-html-isl
14362maybe-install-html-isl:
14363@if isl
14364maybe-install-html-isl: install-html-isl
108a6f8e 14365
7ec59b9e
L
14366install-html-isl: \
14367 configure-isl \
14368 html-isl
14369 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
14370 r=`${PWD_COMMAND}`; export r; \
14371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14372 $(HOST_EXPORTS) \
7ec59b9e 14373 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
14374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14375 done; \
22121df0 14376 echo "Doing install-html in isl"; \
7ec59b9e 14377 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
14378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14380 "RANLIB=$${RANLIB}" \
0c24b341 14381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14382 install-html) \
14383 || exit 1
14384
7ec59b9e 14385@endif isl
108a6f8e 14386
7ec59b9e
L
14387.PHONY: maybe-installcheck-isl installcheck-isl
14388maybe-installcheck-isl:
14389@if isl
14390maybe-installcheck-isl: installcheck-isl
2a4cbe27 14391
7ec59b9e
L
14392installcheck-isl: \
14393 configure-isl
14394 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14395 r=`${PWD_COMMAND}`; export r; \
14396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14397 $(HOST_EXPORTS) \
7ec59b9e 14398 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14400 done; \
22121df0 14401 echo "Doing installcheck in isl"; \
7ec59b9e 14402 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14405 "RANLIB=$${RANLIB}" \
0c24b341 14406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14407 installcheck) \
2a4cbe27
NN
14408 || exit 1
14409
7ec59b9e 14410@endif isl
2a4cbe27 14411
7ec59b9e
L
14412.PHONY: maybe-mostlyclean-isl mostlyclean-isl
14413maybe-mostlyclean-isl:
14414@if isl
14415maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 14416
7ec59b9e
L
14417mostlyclean-isl:
14418 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14419 r=`${PWD_COMMAND}`; export r; \
14420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14421 $(HOST_EXPORTS) \
7ec59b9e 14422 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14424 done; \
22121df0 14425 echo "Doing mostlyclean in isl"; \
7ec59b9e 14426 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14429 "RANLIB=$${RANLIB}" \
0c24b341 14430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14431 mostlyclean) \
2a4cbe27
NN
14432 || exit 1
14433
7ec59b9e 14434@endif isl
2a4cbe27 14435
7ec59b9e
L
14436.PHONY: maybe-clean-isl clean-isl
14437maybe-clean-isl:
14438@if isl
14439maybe-clean-isl: clean-isl
2a4cbe27 14440
7ec59b9e
L
14441clean-isl:
14442 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14443 r=`${PWD_COMMAND}`; export r; \
14444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14445 $(HOST_EXPORTS) \
7ec59b9e 14446 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14448 done; \
22121df0 14449 echo "Doing clean in isl"; \
7ec59b9e 14450 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14453 "RANLIB=$${RANLIB}" \
0c24b341 14454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14455 clean) \
2a4cbe27
NN
14456 || exit 1
14457
7ec59b9e 14458@endif isl
2a4cbe27 14459
7ec59b9e
L
14460.PHONY: maybe-distclean-isl distclean-isl
14461maybe-distclean-isl:
14462@if isl
14463maybe-distclean-isl: distclean-isl
2a4cbe27 14464
7ec59b9e
L
14465distclean-isl:
14466 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14467 r=`${PWD_COMMAND}`; export r; \
14468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14469 $(HOST_EXPORTS) \
7ec59b9e 14470 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14472 done; \
22121df0 14473 echo "Doing distclean in isl"; \
7ec59b9e 14474 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14477 "RANLIB=$${RANLIB}" \
0c24b341 14478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14479 distclean) \
2a4cbe27
NN
14480 || exit 1
14481
7ec59b9e 14482@endif isl
2a4cbe27 14483
7ec59b9e
L
14484.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
14485maybe-maintainer-clean-isl:
14486@if isl
14487maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 14488
7ec59b9e
L
14489maintainer-clean-isl:
14490 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14491 r=`${PWD_COMMAND}`; export r; \
14492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14493 $(HOST_EXPORTS) \
7ec59b9e 14494 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14496 done; \
22121df0 14497 echo "Doing maintainer-clean in isl"; \
7ec59b9e 14498 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14501 "RANLIB=$${RANLIB}" \
0c24b341 14502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14503 maintainer-clean) \
2a4cbe27
NN
14504 || exit 1
14505
7ec59b9e 14506@endif isl
2a4cbe27 14507
2a4cbe27 14508
a7254363 14509
a90ef4bf
JM
14510.PHONY: configure-libelf maybe-configure-libelf
14511maybe-configure-libelf:
c52c6897 14512@if gcc-bootstrap
a90ef4bf 14513configure-libelf: stage_current
c52c6897 14514@endif gcc-bootstrap
a90ef4bf
JM
14515@if libelf
14516maybe-configure-libelf: configure-libelf
14517configure-libelf:
c52c6897
PB
14518 @r=`${PWD_COMMAND}`; export r; \
14519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14520 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
22121df0 14521 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
1f53ca9a 14522 $(HOST_EXPORTS) \
a90ef4bf
JM
14523 echo Configuring in $(HOST_SUBDIR)/libelf; \
14524 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14525 case $(srcdir) in \
b00612cc 14526 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14527 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14528 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14529 esac; \
1b6c0831
L
14530 module_srcdir=libelf; \
14531 $(SHELL) \
14532 $$s/$$module_srcdir/configure \
14533 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14534 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14535 --target=${target_alias} --disable-shared \
4fa63067 14536 || exit 1
a90ef4bf 14537@endif libelf
4fa63067 14538
a7254363
PB
14539
14540
a90ef4bf
JM
14541.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14542maybe-configure-stage1-libelf:
14543@if libelf-bootstrap
14544maybe-configure-stage1-libelf: configure-stage1-libelf
14545configure-stage1-libelf:
c52c6897 14546 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14547 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14548 @r=`${PWD_COMMAND}`; export r; \
14549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14550 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14551 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14552 $(HOST_EXPORTS) \
8ee82aff 14553 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14554 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14555 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
14556 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf; \
14557 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14558 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14559 case $(srcdir) in \
14560 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14561 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14562 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14563 esac; \
1b6c0831
L
14564 module_srcdir=libelf; \
14565 $(SHELL) $$s/$$module_srcdir/configure \
14566 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14567 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14568 --target=${target_alias} \
14569 \
a90ef4bf
JM
14570 $(STAGE1_CONFIGURE_FLAGS) \
14571 --disable-shared
14572@endif libelf-bootstrap
d545f33b 14573
a90ef4bf
JM
14574.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14575maybe-configure-stage2-libelf:
14576@if libelf-bootstrap
14577maybe-configure-stage2-libelf: configure-stage2-libelf
14578configure-stage2-libelf:
c52c6897 14579 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14580 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14581 @r=`${PWD_COMMAND}`; export r; \
14582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14583 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14584 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14585 $(HOST_EXPORTS) \
1b05fbbd 14586 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14587 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14588 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14589 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14590 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf; \
14591 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14592 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14593 case $(srcdir) in \
14594 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14595 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14596 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14597 esac; \
1b6c0831
L
14598 module_srcdir=libelf; \
14599 $(SHELL) $$s/$$module_srcdir/configure \
14600 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14601 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14602 --target=${target_alias} \
22121df0 14603 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14604 $(STAGE2_CONFIGURE_FLAGS) \
14605 --disable-shared
14606@endif libelf-bootstrap
8520c408 14607
a90ef4bf
JM
14608.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14609maybe-configure-stage3-libelf:
14610@if libelf-bootstrap
14611maybe-configure-stage3-libelf: configure-stage3-libelf
14612configure-stage3-libelf:
c52c6897 14613 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14614 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14615 @r=`${PWD_COMMAND}`; export r; \
14616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14617 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14618 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14619 $(HOST_EXPORTS) \
1b05fbbd 14620 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14621 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14622 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14623 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14624 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf; \
14625 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14626 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14627 case $(srcdir) in \
14628 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14629 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14630 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14631 esac; \
1b6c0831
L
14632 module_srcdir=libelf; \
14633 $(SHELL) $$s/$$module_srcdir/configure \
14634 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14635 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14636 --target=${target_alias} \
22121df0 14637 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14638 $(STAGE3_CONFIGURE_FLAGS) \
14639 --disable-shared
14640@endif libelf-bootstrap
8520c408 14641
a90ef4bf
JM
14642.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14643maybe-configure-stage4-libelf:
14644@if libelf-bootstrap
14645maybe-configure-stage4-libelf: configure-stage4-libelf
14646configure-stage4-libelf:
c52c6897 14647 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14648 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14649 @r=`${PWD_COMMAND}`; export r; \
14650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14651 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14652 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14653 $(HOST_EXPORTS) \
1b05fbbd 14654 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14655 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14656 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14657 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14658 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf; \
14659 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14660 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14661 case $(srcdir) in \
14662 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14663 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14664 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14665 esac; \
1b6c0831
L
14666 module_srcdir=libelf; \
14667 $(SHELL) $$s/$$module_srcdir/configure \
14668 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14669 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14670 --target=${target_alias} \
22121df0 14671 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14672 $(STAGE4_CONFIGURE_FLAGS) \
14673 --disable-shared
14674@endif libelf-bootstrap
d545f33b 14675
a90ef4bf
JM
14676.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14677maybe-configure-stageprofile-libelf:
14678@if libelf-bootstrap
14679maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14680configure-stageprofile-libelf:
c52c6897 14681 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14682 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14683 @r=`${PWD_COMMAND}`; export r; \
14684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14685 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14686 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14687 $(HOST_EXPORTS) \
1b05fbbd
AO
14688 $(POSTSTAGE1_HOST_EXPORTS) \
14689 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14690 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14691 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14692 echo Configuring stage profile in $(HOST_SUBDIR)/libelf; \
14693 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14694 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14695 case $(srcdir) in \
14696 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14697 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14698 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14699 esac; \
1b6c0831
L
14700 module_srcdir=libelf; \
14701 $(SHELL) $$s/$$module_srcdir/configure \
14702 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14703 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14704 --target=${target_alias} \
22121df0 14705 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14706 $(STAGEprofile_CONFIGURE_FLAGS) \
14707 --disable-shared
14708@endif libelf-bootstrap
d545f33b 14709
a90ef4bf
JM
14710.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14711maybe-configure-stagefeedback-libelf:
14712@if libelf-bootstrap
14713maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14714configure-stagefeedback-libelf:
c52c6897 14715 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14716 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14717 @r=`${PWD_COMMAND}`; export r; \
14718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14719 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14720 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14721 $(HOST_EXPORTS) \
1b05fbbd
AO
14722 $(POSTSTAGE1_HOST_EXPORTS) \
14723 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14724 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14725 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14726 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf; \
14727 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14728 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14729 case $(srcdir) in \
14730 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14731 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14732 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14733 esac; \
1b6c0831
L
14734 module_srcdir=libelf; \
14735 $(SHELL) $$s/$$module_srcdir/configure \
14736 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14737 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14738 --target=${target_alias} \
22121df0 14739 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14740 $(STAGEfeedback_CONFIGURE_FLAGS) \
14741 --disable-shared
14742@endif libelf-bootstrap
d545f33b
PB
14743
14744
14745
14746
14747
a90ef4bf
JM
14748.PHONY: all-libelf maybe-all-libelf
14749maybe-all-libelf:
4f0ef2d8 14750@if gcc-bootstrap
a90ef4bf 14751all-libelf: stage_current
4f0ef2d8 14752@endif gcc-bootstrap
a90ef4bf
JM
14753@if libelf
14754TARGET-libelf=all
14755maybe-all-libelf: all-libelf
14756all-libelf: configure-libelf
c52c6897 14757 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14759 $(HOST_EXPORTS) \
a90ef4bf 14760 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14761 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14762 $(TARGET-libelf))
14763@endif libelf
4fa63067 14764
a7254363 14765
d545f33b 14766
a90ef4bf
JM
14767.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14768.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14769maybe-all-stage1-libelf:
14770maybe-clean-stage1-libelf:
14771@if libelf-bootstrap
14772maybe-all-stage1-libelf: all-stage1-libelf
14773all-stage1: all-stage1-libelf
14774TARGET-stage1-libelf = $(TARGET-libelf)
14775all-stage1-libelf: configure-stage1-libelf
c52c6897 14776 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14777 @r=`${PWD_COMMAND}`; export r; \
14778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14779 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 14780 $(HOST_EXPORTS) \
a90ef4bf 14781 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14782 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14783 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14784 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14785 LIBCFLAGS="$(LIBCFLAGS)" \
14786 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14787 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14788 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14789 $(EXTRA_HOST_FLAGS) \
14790 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 14791 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14792 $(TARGET-stage1-libelf)
d545f33b 14793
a90ef4bf
JM
14794maybe-clean-stage1-libelf: clean-stage1-libelf
14795clean-stage1: clean-stage1-libelf
14796clean-stage1-libelf:
9dbaa842 14797 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14798 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14799 else \
a90ef4bf 14800 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14801 $(MAKE) stage1-start; \
14802 fi; \
a90ef4bf 14803 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14804 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14805 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14806@endif libelf-bootstrap
d545f33b
PB
14807
14808
a90ef4bf
JM
14809.PHONY: all-stage2-libelf maybe-all-stage2-libelf
14810.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
14811maybe-all-stage2-libelf:
14812maybe-clean-stage2-libelf:
14813@if libelf-bootstrap
14814maybe-all-stage2-libelf: all-stage2-libelf
14815all-stage2: all-stage2-libelf
14816TARGET-stage2-libelf = $(TARGET-libelf)
14817all-stage2-libelf: configure-stage2-libelf
c52c6897 14818 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14819 @r=`${PWD_COMMAND}`; export r; \
14820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14821 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 14822 $(HOST_EXPORTS) \
1f53ca9a 14823 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14824 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14825 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14826 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 14827 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
14828 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14829 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14830 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14831 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14832 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14833 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14834 $(TARGET-stage2-libelf)
d545f33b 14835
a90ef4bf
JM
14836maybe-clean-stage2-libelf: clean-stage2-libelf
14837clean-stage2: clean-stage2-libelf
14838clean-stage2-libelf:
9dbaa842 14839 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 14840 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14841 else \
a90ef4bf 14842 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14843 $(MAKE) stage2-start; \
14844 fi; \
a90ef4bf 14845 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14846 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14847@endif libelf-bootstrap
d545f33b
PB
14848
14849
a90ef4bf
JM
14850.PHONY: all-stage3-libelf maybe-all-stage3-libelf
14851.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
14852maybe-all-stage3-libelf:
14853maybe-clean-stage3-libelf:
14854@if libelf-bootstrap
14855maybe-all-stage3-libelf: all-stage3-libelf
14856all-stage3: all-stage3-libelf
14857TARGET-stage3-libelf = $(TARGET-libelf)
14858all-stage3-libelf: configure-stage3-libelf
c52c6897 14859 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
14860 @r=`${PWD_COMMAND}`; export r; \
14861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14862 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 14863 $(HOST_EXPORTS) \
1f53ca9a 14864 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14865 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14866 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14867 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 14868 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
14869 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14870 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14871 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14872 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14873 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14874 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14875 $(TARGET-stage3-libelf)
d545f33b 14876
a90ef4bf
JM
14877maybe-clean-stage3-libelf: clean-stage3-libelf
14878clean-stage3: clean-stage3-libelf
14879clean-stage3-libelf:
9dbaa842 14880 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 14881 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14882 else \
a90ef4bf 14883 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14884 $(MAKE) stage3-start; \
14885 fi; \
a90ef4bf 14886 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14887 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14888@endif libelf-bootstrap
d545f33b
PB
14889
14890
a90ef4bf
JM
14891.PHONY: all-stage4-libelf maybe-all-stage4-libelf
14892.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
14893maybe-all-stage4-libelf:
14894maybe-clean-stage4-libelf:
14895@if libelf-bootstrap
14896maybe-all-stage4-libelf: all-stage4-libelf
14897all-stage4: all-stage4-libelf
14898TARGET-stage4-libelf = $(TARGET-libelf)
14899all-stage4-libelf: configure-stage4-libelf
c52c6897 14900 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
14901 @r=`${PWD_COMMAND}`; export r; \
14902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14903 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 14904 $(HOST_EXPORTS) \
1f53ca9a 14905 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14906 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14907 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14908 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 14909 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 14910 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
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) \
1b05fbbd 14915 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 14916 $(TARGET-stage4-libelf)
d545f33b 14917
a90ef4bf
JM
14918maybe-clean-stage4-libelf: clean-stage4-libelf
14919clean-stage4: clean-stage4-libelf
14920clean-stage4-libelf:
9dbaa842 14921 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 14922 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14923 else \
a90ef4bf 14924 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14925 $(MAKE) stage4-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-stageprofile-libelf maybe-all-stageprofile-libelf
14933.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
14934maybe-all-stageprofile-libelf:
14935maybe-clean-stageprofile-libelf:
14936@if libelf-bootstrap
14937maybe-all-stageprofile-libelf: all-stageprofile-libelf
14938all-stageprofile: all-stageprofile-libelf
14939TARGET-stageprofile-libelf = $(TARGET-libelf)
14940all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 14941 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
14942 @r=`${PWD_COMMAND}`; export r; \
14943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14944 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 14945 $(HOST_EXPORTS) \
1f53ca9a 14946 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14947 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14948 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14949 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 14950 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
14951 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14952 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14953 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14954 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14955 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14956 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 14957 $(TARGET-stageprofile-libelf)
d545f33b 14958
a90ef4bf
JM
14959maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
14960clean-stageprofile: clean-stageprofile-libelf
14961clean-stageprofile-libelf:
9dbaa842 14962 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 14963 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14964 else \
a90ef4bf 14965 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14966 $(MAKE) stageprofile-start; \
14967 fi; \
a90ef4bf 14968 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14969 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14970@endif libelf-bootstrap
d545f33b
PB
14971
14972
a90ef4bf
JM
14973.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
14974.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
14975maybe-all-stagefeedback-libelf:
14976maybe-clean-stagefeedback-libelf:
14977@if libelf-bootstrap
14978maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
14979all-stagefeedback: all-stagefeedback-libelf
14980TARGET-stagefeedback-libelf = $(TARGET-libelf)
14981all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 14982 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
14983 @r=`${PWD_COMMAND}`; export r; \
14984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14985 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 14986 $(HOST_EXPORTS) \
1f53ca9a 14987 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14988 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14989 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14990 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 14991 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
14992 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14993 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14994 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14995 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14996 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14997 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 14998 $(TARGET-stagefeedback-libelf)
d545f33b 14999
a90ef4bf
JM
15000maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
15001clean-stagefeedback: clean-stagefeedback-libelf
15002clean-stagefeedback-libelf:
9dbaa842 15003 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 15004 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15005 else \
a90ef4bf 15006 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15007 $(MAKE) stagefeedback-start; \
15008 fi; \
a90ef4bf 15009 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15010 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15011@endif libelf-bootstrap
d545f33b
PB
15012
15013
15014
15015
15016
a90ef4bf
JM
15017.PHONY: check-libelf maybe-check-libelf
15018maybe-check-libelf:
15019@if libelf
15020maybe-check-libelf: check-libelf
4fa63067 15021
a90ef4bf 15022check-libelf:
0aed8855 15023 @: $(MAKE); $(unstage)
4fa63067
NN
15024 @r=`${PWD_COMMAND}`; export r; \
15025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15026 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15027 (cd $(HOST_SUBDIR)/libelf && \
f91ca6bc 15028 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15029
a90ef4bf 15030@endif libelf
4fa63067 15031
a90ef4bf
JM
15032.PHONY: install-libelf maybe-install-libelf
15033maybe-install-libelf:
15034@if libelf
15035maybe-install-libelf: install-libelf
4fa63067 15036
a90ef4bf 15037install-libelf:
4fa63067 15038
a90ef4bf 15039@endif libelf
4fa63067 15040
a90ef4bf
JM
15041.PHONY: install-strip-libelf maybe-install-strip-libelf
15042maybe-install-strip-libelf:
15043@if libelf
15044maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15045
a90ef4bf 15046install-strip-libelf:
9b980aa1 15047
a90ef4bf 15048@endif libelf
9b980aa1 15049
56a8fe78 15050# Other targets (info, dvi, pdf, etc.)
4fa63067 15051
a90ef4bf
JM
15052.PHONY: maybe-info-libelf info-libelf
15053maybe-info-libelf:
15054@if libelf
15055maybe-info-libelf: info-libelf
4fa63067 15056
a90ef4bf
JM
15057info-libelf: \
15058 configure-libelf
15059 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15060 r=`${PWD_COMMAND}`; export r; \
15061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15062 $(HOST_EXPORTS) \
a90ef4bf 15063 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15065 done; \
22121df0 15066 echo "Doing info in libelf"; \
a90ef4bf 15067 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15070 "RANLIB=$${RANLIB}" \
0c24b341 15071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15072 info) \
2a4cbe27
NN
15073 || exit 1
15074
a90ef4bf 15075@endif libelf
2a4cbe27 15076
a90ef4bf
JM
15077.PHONY: maybe-dvi-libelf dvi-libelf
15078maybe-dvi-libelf:
15079@if libelf
15080maybe-dvi-libelf: dvi-libelf
2a4cbe27 15081
a90ef4bf
JM
15082dvi-libelf: \
15083 configure-libelf
15084 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15085 r=`${PWD_COMMAND}`; export r; \
15086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15087 $(HOST_EXPORTS) \
a90ef4bf 15088 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15090 done; \
22121df0 15091 echo "Doing dvi in libelf"; \
a90ef4bf 15092 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15095 "RANLIB=$${RANLIB}" \
0c24b341 15096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15097 dvi) \
2a4cbe27
NN
15098 || exit 1
15099
a90ef4bf 15100@endif libelf
2a4cbe27 15101
a90ef4bf
JM
15102.PHONY: maybe-pdf-libelf pdf-libelf
15103maybe-pdf-libelf:
15104@if libelf
15105maybe-pdf-libelf: pdf-libelf
56a8fe78 15106
a90ef4bf
JM
15107pdf-libelf: \
15108 configure-libelf
15109 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15110 r=`${PWD_COMMAND}`; export r; \
15111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15112 $(HOST_EXPORTS) \
a90ef4bf 15113 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15115 done; \
22121df0 15116 echo "Doing pdf in libelf"; \
a90ef4bf 15117 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15120 "RANLIB=$${RANLIB}" \
0c24b341 15121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15122 pdf) \
15123 || exit 1
15124
a90ef4bf 15125@endif libelf
56a8fe78 15126
a90ef4bf
JM
15127.PHONY: maybe-html-libelf html-libelf
15128maybe-html-libelf:
15129@if libelf
15130maybe-html-libelf: html-libelf
6d389afc 15131
a90ef4bf
JM
15132html-libelf: \
15133 configure-libelf
15134 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15135 r=`${PWD_COMMAND}`; export r; \
15136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15137 $(HOST_EXPORTS) \
a90ef4bf 15138 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15140 done; \
22121df0 15141 echo "Doing html in libelf"; \
a90ef4bf 15142 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15145 "RANLIB=$${RANLIB}" \
0c24b341 15146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15147 html) \
15148 || exit 1
15149
a90ef4bf 15150@endif libelf
6d389afc 15151
a90ef4bf
JM
15152.PHONY: maybe-TAGS-libelf TAGS-libelf
15153maybe-TAGS-libelf:
15154@if libelf
15155maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15156
a90ef4bf
JM
15157TAGS-libelf: \
15158 configure-libelf
15159 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15160 r=`${PWD_COMMAND}`; export r; \
15161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15162 $(HOST_EXPORTS) \
a90ef4bf 15163 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15165 done; \
22121df0 15166 echo "Doing TAGS in libelf"; \
a90ef4bf 15167 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15170 "RANLIB=$${RANLIB}" \
0c24b341 15171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15172 TAGS) \
2a4cbe27
NN
15173 || exit 1
15174
a90ef4bf 15175@endif libelf
2a4cbe27 15176
a90ef4bf
JM
15177.PHONY: maybe-install-info-libelf install-info-libelf
15178maybe-install-info-libelf:
15179@if libelf
15180maybe-install-info-libelf: install-info-libelf
a2592b1b 15181
a90ef4bf
JM
15182install-info-libelf: \
15183 configure-libelf \
15184 info-libelf
15185 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15186 r=`${PWD_COMMAND}`; export r; \
15187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15188 $(HOST_EXPORTS) \
a90ef4bf 15189 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15191 done; \
22121df0 15192 echo "Doing install-info in libelf"; \
a90ef4bf 15193 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15196 "RANLIB=$${RANLIB}" \
0c24b341 15197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15198 install-info) \
a2592b1b
DD
15199 || exit 1
15200
a90ef4bf 15201@endif libelf
a2592b1b 15202
a90ef4bf
JM
15203.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15204maybe-install-pdf-libelf:
15205@if libelf
15206maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15207
a90ef4bf
JM
15208install-pdf-libelf: \
15209 configure-libelf \
15210 pdf-libelf
15211 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15212 r=`${PWD_COMMAND}`; export r; \
15213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15214 $(HOST_EXPORTS) \
a90ef4bf 15215 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15217 done; \
22121df0 15218 echo "Doing install-pdf in libelf"; \
a90ef4bf 15219 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15222 "RANLIB=$${RANLIB}" \
0c24b341 15223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15224 install-pdf) \
15225 || exit 1
15226
a90ef4bf 15227@endif libelf
a3ca38d2 15228
a90ef4bf
JM
15229.PHONY: maybe-install-html-libelf install-html-libelf
15230maybe-install-html-libelf:
15231@if libelf
15232maybe-install-html-libelf: install-html-libelf
108a6f8e 15233
a90ef4bf
JM
15234install-html-libelf: \
15235 configure-libelf \
15236 html-libelf
15237 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15238 r=`${PWD_COMMAND}`; export r; \
15239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15240 $(HOST_EXPORTS) \
a90ef4bf 15241 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15243 done; \
22121df0 15244 echo "Doing install-html in libelf"; \
a90ef4bf 15245 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
15246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15248 "RANLIB=$${RANLIB}" \
0c24b341 15249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15250 install-html) \
15251 || exit 1
15252
a90ef4bf 15253@endif libelf
108a6f8e 15254
a90ef4bf
JM
15255.PHONY: maybe-installcheck-libelf installcheck-libelf
15256maybe-installcheck-libelf:
15257@if libelf
15258maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15259
a90ef4bf
JM
15260installcheck-libelf: \
15261 configure-libelf
15262 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15263 r=`${PWD_COMMAND}`; export r; \
15264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15265 $(HOST_EXPORTS) \
a90ef4bf 15266 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15268 done; \
22121df0 15269 echo "Doing installcheck in libelf"; \
a90ef4bf 15270 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15273 "RANLIB=$${RANLIB}" \
0c24b341 15274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15275 installcheck) \
4fa63067 15276 || exit 1
2a4cbe27 15277
a90ef4bf 15278@endif libelf
4fa63067 15279
a90ef4bf
JM
15280.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15281maybe-mostlyclean-libelf:
15282@if libelf
15283maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15284
a90ef4bf
JM
15285mostlyclean-libelf:
15286 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15287 r=`${PWD_COMMAND}`; export r; \
15288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15289 $(HOST_EXPORTS) \
a90ef4bf 15290 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15292 done; \
22121df0 15293 echo "Doing mostlyclean in libelf"; \
a90ef4bf 15294 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15297 "RANLIB=$${RANLIB}" \
0c24b341 15298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15299 mostlyclean) \
2a4cbe27
NN
15300 || exit 1
15301
a90ef4bf 15302@endif libelf
2a4cbe27 15303
a90ef4bf
JM
15304.PHONY: maybe-clean-libelf clean-libelf
15305maybe-clean-libelf:
15306@if libelf
15307maybe-clean-libelf: clean-libelf
2a4cbe27 15308
a90ef4bf
JM
15309clean-libelf:
15310 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15311 r=`${PWD_COMMAND}`; export r; \
15312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15313 $(HOST_EXPORTS) \
a90ef4bf 15314 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15316 done; \
22121df0 15317 echo "Doing clean in libelf"; \
a90ef4bf 15318 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15321 "RANLIB=$${RANLIB}" \
0c24b341 15322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15323 clean) \
2a4cbe27
NN
15324 || exit 1
15325
a90ef4bf 15326@endif libelf
2a4cbe27 15327
a90ef4bf
JM
15328.PHONY: maybe-distclean-libelf distclean-libelf
15329maybe-distclean-libelf:
15330@if libelf
15331maybe-distclean-libelf: distclean-libelf
2a4cbe27 15332
a90ef4bf
JM
15333distclean-libelf:
15334 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15335 r=`${PWD_COMMAND}`; export r; \
15336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15337 $(HOST_EXPORTS) \
a90ef4bf 15338 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15340 done; \
22121df0 15341 echo "Doing distclean in libelf"; \
a90ef4bf 15342 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15345 "RANLIB=$${RANLIB}" \
0c24b341 15346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15347 distclean) \
2a4cbe27
NN
15348 || exit 1
15349
a90ef4bf 15350@endif libelf
2a4cbe27 15351
a90ef4bf
JM
15352.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15353maybe-maintainer-clean-libelf:
15354@if libelf
15355maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15356
a90ef4bf
JM
15357maintainer-clean-libelf:
15358 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15359 r=`${PWD_COMMAND}`; export r; \
15360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15361 $(HOST_EXPORTS) \
a90ef4bf 15362 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15364 done; \
22121df0 15365 echo "Doing maintainer-clean in libelf"; \
a90ef4bf 15366 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15369 "RANLIB=$${RANLIB}" \
0c24b341 15370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15371 maintainer-clean) \
2a4cbe27
NN
15372 || exit 1
15373
a90ef4bf 15374@endif libelf
2a4cbe27 15375
2a4cbe27 15376
a7254363 15377
a90ef4bf
JM
15378.PHONY: configure-gold maybe-configure-gold
15379maybe-configure-gold:
4f0ef2d8 15380@if gcc-bootstrap
a90ef4bf 15381configure-gold: stage_current
4f0ef2d8 15382@endif gcc-bootstrap
a90ef4bf
JM
15383@if gold
15384maybe-configure-gold: configure-gold
15385configure-gold:
c52c6897 15386 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15388 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22121df0 15389 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
1f53ca9a 15390 $(HOST_EXPORTS) \
a90ef4bf
JM
15391 echo Configuring in $(HOST_SUBDIR)/gold; \
15392 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15393 case $(srcdir) in \
b00612cc 15394 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15395 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15396 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15397 esac; \
1b6c0831
L
15398 module_srcdir=gold; \
15399 $(SHELL) \
15400 $$s/$$module_srcdir/configure \
15401 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15402 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15403 --target=${target_alias} \
4fa63067 15404 || exit 1
a90ef4bf 15405@endif gold
a7254363 15406
d545f33b
PB
15407
15408
a90ef4bf
JM
15409.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15410maybe-configure-stage1-gold:
15411@if gold-bootstrap
15412maybe-configure-stage1-gold: configure-stage1-gold
15413configure-stage1-gold:
15414 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15415 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15416 @r=`${PWD_COMMAND}`; export r; \
15417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15418 TFLAGS="$(STAGE1_TFLAGS)"; \
15419 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15420 $(HOST_EXPORTS) \
15421 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15422 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15423 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
15424 echo Configuring stage 1 in $(HOST_SUBDIR)/gold; \
15425 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15426 cd $(HOST_SUBDIR)/gold || exit 1; \
15427 case $(srcdir) in \
15428 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15429 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15430 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15431 esac; \
1b6c0831
L
15432 module_srcdir=gold; \
15433 $(SHELL) $$s/$$module_srcdir/configure \
15434 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15435 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15436 --target=${target_alias} \
15437 \
a90ef4bf
JM
15438 $(STAGE1_CONFIGURE_FLAGS)
15439@endif gold-bootstrap
4fa63067 15440
a90ef4bf
JM
15441.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15442maybe-configure-stage2-gold:
15443@if gold-bootstrap
15444maybe-configure-stage2-gold: configure-stage2-gold
15445configure-stage2-gold:
15446 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15447 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15448 @r=`${PWD_COMMAND}`; export r; \
15449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15450 TFLAGS="$(STAGE2_TFLAGS)"; \
15451 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15452 $(HOST_EXPORTS) \
a90ef4bf
JM
15453 $(POSTSTAGE1_HOST_EXPORTS) \
15454 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15455 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15456 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15457 echo Configuring stage 2 in $(HOST_SUBDIR)/gold; \
15458 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15459 cd $(HOST_SUBDIR)/gold || exit 1; \
15460 case $(srcdir) in \
15461 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15462 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15463 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15464 esac; \
1b6c0831
L
15465 module_srcdir=gold; \
15466 $(SHELL) $$s/$$module_srcdir/configure \
15467 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15468 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15469 --target=${target_alias} \
22121df0 15470 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15471 $(STAGE2_CONFIGURE_FLAGS)
15472@endif gold-bootstrap
4fa63067 15473
a90ef4bf
JM
15474.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15475maybe-configure-stage3-gold:
15476@if gold-bootstrap
15477maybe-configure-stage3-gold: configure-stage3-gold
15478configure-stage3-gold:
15479 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15480 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15481 @r=`${PWD_COMMAND}`; export r; \
15482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15483 TFLAGS="$(STAGE3_TFLAGS)"; \
15484 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15485 $(HOST_EXPORTS) \
a90ef4bf
JM
15486 $(POSTSTAGE1_HOST_EXPORTS) \
15487 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15488 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15489 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15490 echo Configuring stage 3 in $(HOST_SUBDIR)/gold; \
15491 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15492 cd $(HOST_SUBDIR)/gold || exit 1; \
15493 case $(srcdir) in \
15494 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15495 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15496 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15497 esac; \
1b6c0831
L
15498 module_srcdir=gold; \
15499 $(SHELL) $$s/$$module_srcdir/configure \
15500 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15501 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15502 --target=${target_alias} \
22121df0 15503 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15504 $(STAGE3_CONFIGURE_FLAGS)
15505@endif gold-bootstrap
9b980aa1 15506
a90ef4bf
JM
15507.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15508maybe-configure-stage4-gold:
15509@if gold-bootstrap
15510maybe-configure-stage4-gold: configure-stage4-gold
15511configure-stage4-gold:
15512 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15513 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15514 @r=`${PWD_COMMAND}`; export r; \
15515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15516 TFLAGS="$(STAGE4_TFLAGS)"; \
15517 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15518 $(HOST_EXPORTS) \
a90ef4bf
JM
15519 $(POSTSTAGE1_HOST_EXPORTS) \
15520 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15521 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15522 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15523 echo Configuring stage 4 in $(HOST_SUBDIR)/gold; \
15524 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15525 cd $(HOST_SUBDIR)/gold || exit 1; \
15526 case $(srcdir) in \
15527 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15528 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15529 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15530 esac; \
1b6c0831
L
15531 module_srcdir=gold; \
15532 $(SHELL) $$s/$$module_srcdir/configure \
15533 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15534 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15535 --target=${target_alias} \
22121df0 15536 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15537 $(STAGE4_CONFIGURE_FLAGS)
15538@endif gold-bootstrap
4fa63067 15539
a90ef4bf
JM
15540.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15541maybe-configure-stageprofile-gold:
15542@if gold-bootstrap
15543maybe-configure-stageprofile-gold: configure-stageprofile-gold
15544configure-stageprofile-gold:
15545 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15546 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15547 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15549 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15550 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15551 $(HOST_EXPORTS) \
a90ef4bf
JM
15552 $(POSTSTAGE1_HOST_EXPORTS) \
15553 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15554 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15555 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15556 echo Configuring stage profile in $(HOST_SUBDIR)/gold; \
15557 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15558 cd $(HOST_SUBDIR)/gold || exit 1; \
15559 case $(srcdir) in \
15560 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15561 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15562 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15563 esac; \
1b6c0831
L
15564 module_srcdir=gold; \
15565 $(SHELL) $$s/$$module_srcdir/configure \
15566 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15567 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15568 --target=${target_alias} \
22121df0 15569 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15570 $(STAGEprofile_CONFIGURE_FLAGS)
15571@endif gold-bootstrap
2a4cbe27 15572
a90ef4bf
JM
15573.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15574maybe-configure-stagefeedback-gold:
15575@if gold-bootstrap
15576maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15577configure-stagefeedback-gold:
15578 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15579 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15580 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15582 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15583 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15584 $(HOST_EXPORTS) \
a90ef4bf
JM
15585 $(POSTSTAGE1_HOST_EXPORTS) \
15586 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15587 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15588 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15589 echo Configuring stage feedback in $(HOST_SUBDIR)/gold; \
15590 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15591 cd $(HOST_SUBDIR)/gold || exit 1; \
15592 case $(srcdir) in \
15593 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15594 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15595 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15596 esac; \
1b6c0831
L
15597 module_srcdir=gold; \
15598 $(SHELL) $$s/$$module_srcdir/configure \
15599 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15600 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15601 --target=${target_alias} \
22121df0 15602 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15603 $(STAGEfeedback_CONFIGURE_FLAGS)
15604@endif gold-bootstrap
2a4cbe27 15605
56a8fe78 15606
56a8fe78 15607
56a8fe78 15608
6d389afc 15609
a90ef4bf
JM
15610.PHONY: all-gold maybe-all-gold
15611maybe-all-gold:
15612@if gcc-bootstrap
15613all-gold: stage_current
15614@endif gcc-bootstrap
15615@if gold
15616TARGET-gold=all
15617maybe-all-gold: all-gold
15618all-gold: configure-gold
15619 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15621 $(HOST_EXPORTS) \
15622 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15623 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15624 $(TARGET-gold))
15625@endif gold
6d389afc 15626
6d389afc 15627
2a4cbe27 15628
a90ef4bf
JM
15629.PHONY: all-stage1-gold maybe-all-stage1-gold
15630.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15631maybe-all-stage1-gold:
15632maybe-clean-stage1-gold:
15633@if gold-bootstrap
15634maybe-all-stage1-gold: all-stage1-gold
15635all-stage1: all-stage1-gold
15636TARGET-stage1-gold = $(TARGET-gold)
15637all-stage1-gold: configure-stage1-gold
15638 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15639 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15641 TFLAGS="$(STAGE1_TFLAGS)"; \
15642 $(HOST_EXPORTS) \
15643 cd $(HOST_SUBDIR)/gold && \
15644 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15645 CFLAGS="$(STAGE1_CFLAGS)" \
15646 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15647 LIBCFLAGS="$(LIBCFLAGS)" \
15648 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15649 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15650 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15651 $(EXTRA_HOST_FLAGS) \
15652 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15653 TFLAGS="$(STAGE1_TFLAGS)" \
15654 $(TARGET-stage1-gold)
2a4cbe27 15655
a90ef4bf
JM
15656maybe-clean-stage1-gold: clean-stage1-gold
15657clean-stage1: clean-stage1-gold
15658clean-stage1-gold:
15659 @if [ $(current_stage) = stage1 ]; then \
15660 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15661 else \
15662 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15663 $(MAKE) stage1-start; \
15664 fi; \
15665 cd $(HOST_SUBDIR)/gold && \
15666 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15667 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15668@endif gold-bootstrap
2a4cbe27 15669
2a4cbe27 15670
a90ef4bf
JM
15671.PHONY: all-stage2-gold maybe-all-stage2-gold
15672.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15673maybe-all-stage2-gold:
15674maybe-clean-stage2-gold:
15675@if gold-bootstrap
15676maybe-all-stage2-gold: all-stage2-gold
15677all-stage2: all-stage2-gold
15678TARGET-stage2-gold = $(TARGET-gold)
15679all-stage2-gold: configure-stage2-gold
15680 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15681 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15683 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15684 $(HOST_EXPORTS) \
a90ef4bf
JM
15685 $(POSTSTAGE1_HOST_EXPORTS) \
15686 cd $(HOST_SUBDIR)/gold && \
15687 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15688 CFLAGS="$(STAGE2_CFLAGS)" \
15689 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15690 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15691 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15692 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15693 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15694 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15695 TFLAGS="$(STAGE2_TFLAGS)" \
15696 $(TARGET-stage2-gold)
2a4cbe27 15697
a90ef4bf
JM
15698maybe-clean-stage2-gold: clean-stage2-gold
15699clean-stage2: clean-stage2-gold
15700clean-stage2-gold:
15701 @if [ $(current_stage) = stage2 ]; then \
15702 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15703 else \
15704 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15705 $(MAKE) stage2-start; \
15706 fi; \
15707 cd $(HOST_SUBDIR)/gold && \
b3676d82 15708 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15709@endif gold-bootstrap
2a4cbe27 15710
a3ca38d2 15711
a90ef4bf
JM
15712.PHONY: all-stage3-gold maybe-all-stage3-gold
15713.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15714maybe-all-stage3-gold:
15715maybe-clean-stage3-gold:
15716@if gold-bootstrap
15717maybe-all-stage3-gold: all-stage3-gold
15718all-stage3: all-stage3-gold
15719TARGET-stage3-gold = $(TARGET-gold)
15720all-stage3-gold: configure-stage3-gold
15721 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15722 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15724 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15725 $(HOST_EXPORTS) \
a90ef4bf
JM
15726 $(POSTSTAGE1_HOST_EXPORTS) \
15727 cd $(HOST_SUBDIR)/gold && \
15728 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15729 CFLAGS="$(STAGE3_CFLAGS)" \
15730 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15731 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15732 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15733 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15734 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15735 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15736 TFLAGS="$(STAGE3_TFLAGS)" \
15737 $(TARGET-stage3-gold)
2a4cbe27 15738
a90ef4bf
JM
15739maybe-clean-stage3-gold: clean-stage3-gold
15740clean-stage3: clean-stage3-gold
15741clean-stage3-gold:
15742 @if [ $(current_stage) = stage3 ]; then \
15743 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15744 else \
15745 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15746 $(MAKE) stage3-start; \
15747 fi; \
15748 cd $(HOST_SUBDIR)/gold && \
b3676d82 15749 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15750@endif gold-bootstrap
2a4cbe27 15751
2a4cbe27 15752
a90ef4bf
JM
15753.PHONY: all-stage4-gold maybe-all-stage4-gold
15754.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15755maybe-all-stage4-gold:
15756maybe-clean-stage4-gold:
15757@if gold-bootstrap
15758maybe-all-stage4-gold: all-stage4-gold
15759all-stage4: all-stage4-gold
15760TARGET-stage4-gold = $(TARGET-gold)
15761all-stage4-gold: configure-stage4-gold
15762 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15763 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15765 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15766 $(HOST_EXPORTS) \
a90ef4bf
JM
15767 $(POSTSTAGE1_HOST_EXPORTS) \
15768 cd $(HOST_SUBDIR)/gold && \
15769 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15770 CFLAGS="$(STAGE4_CFLAGS)" \
15771 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15772 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15773 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15774 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15775 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15776 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15777 TFLAGS="$(STAGE4_TFLAGS)" \
15778 $(TARGET-stage4-gold)
2a4cbe27 15779
a90ef4bf
JM
15780maybe-clean-stage4-gold: clean-stage4-gold
15781clean-stage4: clean-stage4-gold
15782clean-stage4-gold:
15783 @if [ $(current_stage) = stage4 ]; then \
15784 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15785 else \
15786 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
15787 $(MAKE) stage4-start; \
15788 fi; \
15789 cd $(HOST_SUBDIR)/gold && \
b3676d82 15790 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15791@endif gold-bootstrap
2a4cbe27 15792
2a4cbe27 15793
a90ef4bf
JM
15794.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
15795.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
15796maybe-all-stageprofile-gold:
15797maybe-clean-stageprofile-gold:
15798@if gold-bootstrap
15799maybe-all-stageprofile-gold: all-stageprofile-gold
15800all-stageprofile: all-stageprofile-gold
15801TARGET-stageprofile-gold = $(TARGET-gold)
15802all-stageprofile-gold: configure-stageprofile-gold
15803 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15804 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15806 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 15807 $(HOST_EXPORTS) \
a90ef4bf
JM
15808 $(POSTSTAGE1_HOST_EXPORTS) \
15809 cd $(HOST_SUBDIR)/gold && \
15810 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15811 CFLAGS="$(STAGEprofile_CFLAGS)" \
15812 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
15813 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15814 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15815 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15816 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15817 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15818 TFLAGS="$(STAGEprofile_TFLAGS)" \
15819 $(TARGET-stageprofile-gold)
2a4cbe27 15820
a90ef4bf
JM
15821maybe-clean-stageprofile-gold: clean-stageprofile-gold
15822clean-stageprofile: clean-stageprofile-gold
15823clean-stageprofile-gold:
15824 @if [ $(current_stage) = stageprofile ]; then \
15825 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15826 else \
15827 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
15828 $(MAKE) stageprofile-start; \
15829 fi; \
15830 cd $(HOST_SUBDIR)/gold && \
b3676d82 15831 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15832@endif gold-bootstrap
2a4cbe27 15833
a7254363 15834
a90ef4bf
JM
15835.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
15836.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
15837maybe-all-stagefeedback-gold:
15838maybe-clean-stagefeedback-gold:
15839@if gold-bootstrap
15840maybe-all-stagefeedback-gold: all-stagefeedback-gold
15841all-stagefeedback: all-stagefeedback-gold
15842TARGET-stagefeedback-gold = $(TARGET-gold)
15843all-stagefeedback-gold: configure-stagefeedback-gold
15844 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 15845 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15847 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15848 $(HOST_EXPORTS) \
15849 $(POSTSTAGE1_HOST_EXPORTS) \
15850 cd $(HOST_SUBDIR)/gold && \
15851 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15852 CFLAGS="$(STAGEfeedback_CFLAGS)" \
15853 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
15854 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15855 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15856 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15857 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15858 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15859 TFLAGS="$(STAGEfeedback_TFLAGS)" \
15860 $(TARGET-stagefeedback-gold)
d545f33b 15861
a90ef4bf
JM
15862maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
15863clean-stagefeedback: clean-stagefeedback-gold
15864clean-stagefeedback-gold:
15865 @if [ $(current_stage) = stagefeedback ]; then \
15866 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15867 else \
15868 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
15869 $(MAKE) stagefeedback-start; \
15870 fi; \
15871 cd $(HOST_SUBDIR)/gold && \
b3676d82 15872 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15873@endif gold-bootstrap
d545f33b 15874
4fa63067 15875
a7254363 15876
d545f33b
PB
15877
15878
a90ef4bf
JM
15879.PHONY: check-gold maybe-check-gold
15880maybe-check-gold:
15881@if gold
15882maybe-check-gold: check-gold
4fa63067 15883
a90ef4bf 15884check-gold:
0aed8855 15885 @: $(MAKE); $(unstage)
4fa63067
NN
15886 @r=`${PWD_COMMAND}`; export r; \
15887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15888 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15889 (cd $(HOST_SUBDIR)/gold && \
f91ca6bc 15890 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15891
a90ef4bf 15892@endif gold
4fa63067 15893
a90ef4bf
JM
15894.PHONY: install-gold maybe-install-gold
15895maybe-install-gold:
15896@if gold
15897maybe-install-gold: install-gold
4fa63067 15898
a90ef4bf 15899install-gold: installdirs
0aed8855 15900 @: $(MAKE); $(unstage)
4fa63067
NN
15901 @r=`${PWD_COMMAND}`; export r; \
15902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15903 $(HOST_EXPORTS) \
a90ef4bf 15904 (cd $(HOST_SUBDIR)/gold && \
2da12f12 15905 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 15906
a90ef4bf 15907@endif gold
4fa63067 15908
a90ef4bf
JM
15909.PHONY: install-strip-gold maybe-install-strip-gold
15910maybe-install-strip-gold:
15911@if gold
15912maybe-install-strip-gold: install-strip-gold
9b980aa1 15913
a90ef4bf 15914install-strip-gold: installdirs
9b980aa1
RW
15915 @: $(MAKE); $(unstage)
15916 @r=`${PWD_COMMAND}`; export r; \
15917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15918 $(HOST_EXPORTS) \
a90ef4bf 15919 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
15920 $(MAKE) $(FLAGS_TO_PASS) install-strip)
15921
a90ef4bf 15922@endif gold
9b980aa1 15923
56a8fe78 15924# Other targets (info, dvi, pdf, etc.)
4fa63067 15925
a90ef4bf
JM
15926.PHONY: maybe-info-gold info-gold
15927maybe-info-gold:
15928@if gold
15929maybe-info-gold: info-gold
4fa63067 15930
a90ef4bf
JM
15931info-gold: \
15932 configure-gold
15933 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
15934 r=`${PWD_COMMAND}`; export r; \
15935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15936 $(HOST_EXPORTS) \
b813574b 15937 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15939 done; \
22121df0 15940 echo "Doing info in gold"; \
a90ef4bf 15941 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
15942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15944 "RANLIB=$${RANLIB}" \
0c24b341 15945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15946 info) \
2a4cbe27
NN
15947 || exit 1
15948
a90ef4bf 15949@endif gold
2a4cbe27 15950
a90ef4bf
JM
15951.PHONY: maybe-dvi-gold dvi-gold
15952maybe-dvi-gold:
15953@if gold
15954maybe-dvi-gold: dvi-gold
2a4cbe27 15955
a90ef4bf
JM
15956dvi-gold: \
15957 configure-gold
15958 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
15959 r=`${PWD_COMMAND}`; export r; \
15960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15961 $(HOST_EXPORTS) \
b813574b 15962 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15964 done; \
22121df0 15965 echo "Doing dvi in gold"; \
a90ef4bf 15966 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
15967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15969 "RANLIB=$${RANLIB}" \
0c24b341 15970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15971 dvi) \
2a4cbe27
NN
15972 || exit 1
15973
a90ef4bf 15974@endif gold
2a4cbe27 15975
a90ef4bf
JM
15976.PHONY: maybe-pdf-gold pdf-gold
15977maybe-pdf-gold:
15978@if gold
15979maybe-pdf-gold: pdf-gold
56a8fe78 15980
a90ef4bf
JM
15981pdf-gold: \
15982 configure-gold
15983 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
15984 r=`${PWD_COMMAND}`; export r; \
15985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15986 $(HOST_EXPORTS) \
15987 for flag in $(EXTRA_HOST_FLAGS) ; do \
15988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15989 done; \
22121df0 15990 echo "Doing pdf in gold"; \
a90ef4bf 15991 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
15992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15994 "RANLIB=$${RANLIB}" \
0c24b341 15995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15996 pdf) \
15997 || exit 1
15998
a90ef4bf 15999@endif gold
56a8fe78 16000
a90ef4bf
JM
16001.PHONY: maybe-html-gold html-gold
16002maybe-html-gold:
16003@if gold
16004maybe-html-gold: html-gold
6d389afc 16005
a90ef4bf
JM
16006html-gold: \
16007 configure-gold
16008 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
16009 r=`${PWD_COMMAND}`; export r; \
16010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16011 $(HOST_EXPORTS) \
16012 for flag in $(EXTRA_HOST_FLAGS) ; do \
16013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16014 done; \
22121df0 16015 echo "Doing html in gold"; \
a90ef4bf 16016 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16019 "RANLIB=$${RANLIB}" \
0c24b341 16020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16021 html) \
16022 || exit 1
16023
a90ef4bf 16024@endif gold
6d389afc 16025
a90ef4bf
JM
16026.PHONY: maybe-TAGS-gold TAGS-gold
16027maybe-TAGS-gold:
16028@if gold
16029maybe-TAGS-gold: TAGS-gold
2a4cbe27 16030
a90ef4bf
JM
16031TAGS-gold: \
16032 configure-gold
16033 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16034 r=`${PWD_COMMAND}`; export r; \
16035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16036 $(HOST_EXPORTS) \
b813574b 16037 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16039 done; \
22121df0 16040 echo "Doing TAGS in gold"; \
a90ef4bf 16041 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16044 "RANLIB=$${RANLIB}" \
0c24b341 16045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16046 TAGS) \
2a4cbe27
NN
16047 || exit 1
16048
a90ef4bf 16049@endif gold
2a4cbe27 16050
a90ef4bf
JM
16051.PHONY: maybe-install-info-gold install-info-gold
16052maybe-install-info-gold:
16053@if gold
16054maybe-install-info-gold: install-info-gold
b813574b 16055
a90ef4bf
JM
16056install-info-gold: \
16057 configure-gold \
16058 info-gold
16059 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16060 r=`${PWD_COMMAND}`; export r; \
16061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16062 $(HOST_EXPORTS) \
b813574b 16063 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16065 done; \
22121df0 16066 echo "Doing install-info in gold"; \
a90ef4bf 16067 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16070 "RANLIB=$${RANLIB}" \
0c24b341 16071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16072 install-info) \
2a4cbe27
NN
16073 || exit 1
16074
a90ef4bf 16075@endif gold
2a4cbe27 16076
a90ef4bf
JM
16077.PHONY: maybe-install-pdf-gold install-pdf-gold
16078maybe-install-pdf-gold:
16079@if gold
16080maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16081
a90ef4bf
JM
16082install-pdf-gold: \
16083 configure-gold \
16084 pdf-gold
16085 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16086 r=`${PWD_COMMAND}`; export r; \
16087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16088 $(HOST_EXPORTS) \
16089 for flag in $(EXTRA_HOST_FLAGS) ; do \
16090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16091 done; \
22121df0 16092 echo "Doing install-pdf in gold"; \
a90ef4bf 16093 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16096 "RANLIB=$${RANLIB}" \
0c24b341 16097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16098 install-pdf) \
16099 || exit 1
16100
a90ef4bf 16101@endif gold
a3ca38d2 16102
a90ef4bf
JM
16103.PHONY: maybe-install-html-gold install-html-gold
16104maybe-install-html-gold:
16105@if gold
16106maybe-install-html-gold: install-html-gold
108a6f8e 16107
a90ef4bf
JM
16108install-html-gold: \
16109 configure-gold \
16110 html-gold
16111 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16112 r=`${PWD_COMMAND}`; export r; \
16113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16114 $(HOST_EXPORTS) \
16115 for flag in $(EXTRA_HOST_FLAGS) ; do \
16116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16117 done; \
22121df0 16118 echo "Doing install-html in gold"; \
a90ef4bf 16119 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
16120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16122 "RANLIB=$${RANLIB}" \
0c24b341 16123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16124 install-html) \
16125 || exit 1
16126
a90ef4bf 16127@endif gold
108a6f8e 16128
a90ef4bf
JM
16129.PHONY: maybe-installcheck-gold installcheck-gold
16130maybe-installcheck-gold:
16131@if gold
16132maybe-installcheck-gold: installcheck-gold
2a4cbe27 16133
a90ef4bf
JM
16134installcheck-gold: \
16135 configure-gold
16136 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16137 r=`${PWD_COMMAND}`; export r; \
16138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16139 $(HOST_EXPORTS) \
b813574b 16140 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16142 done; \
22121df0 16143 echo "Doing installcheck in gold"; \
a90ef4bf 16144 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16147 "RANLIB=$${RANLIB}" \
0c24b341 16148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16149 installcheck) \
2a4cbe27
NN
16150 || exit 1
16151
a90ef4bf 16152@endif gold
2a4cbe27 16153
a90ef4bf
JM
16154.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16155maybe-mostlyclean-gold:
16156@if gold
16157maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16158
a90ef4bf
JM
16159mostlyclean-gold:
16160 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16161 r=`${PWD_COMMAND}`; export r; \
16162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16163 $(HOST_EXPORTS) \
b813574b 16164 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16166 done; \
22121df0 16167 echo "Doing mostlyclean in gold"; \
a90ef4bf 16168 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16171 "RANLIB=$${RANLIB}" \
0c24b341 16172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16173 mostlyclean) \
2a4cbe27
NN
16174 || exit 1
16175
a90ef4bf 16176@endif gold
2a4cbe27 16177
a90ef4bf
JM
16178.PHONY: maybe-clean-gold clean-gold
16179maybe-clean-gold:
16180@if gold
16181maybe-clean-gold: clean-gold
2a4cbe27 16182
a90ef4bf
JM
16183clean-gold:
16184 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16185 r=`${PWD_COMMAND}`; export r; \
16186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16187 $(HOST_EXPORTS) \
b813574b 16188 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16190 done; \
22121df0 16191 echo "Doing clean in gold"; \
a90ef4bf 16192 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16195 "RANLIB=$${RANLIB}" \
0c24b341 16196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16197 clean) \
2a4cbe27
NN
16198 || exit 1
16199
a90ef4bf 16200@endif gold
2a4cbe27 16201
a90ef4bf
JM
16202.PHONY: maybe-distclean-gold distclean-gold
16203maybe-distclean-gold:
16204@if gold
16205maybe-distclean-gold: distclean-gold
2a4cbe27 16206
a90ef4bf
JM
16207distclean-gold:
16208 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16209 r=`${PWD_COMMAND}`; export r; \
16210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16211 $(HOST_EXPORTS) \
b813574b 16212 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16214 done; \
22121df0 16215 echo "Doing distclean in gold"; \
a90ef4bf 16216 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16219 "RANLIB=$${RANLIB}" \
0c24b341 16220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16221 distclean) \
2a4cbe27
NN
16222 || exit 1
16223
a90ef4bf 16224@endif gold
2a4cbe27 16225
a90ef4bf
JM
16226.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16227maybe-maintainer-clean-gold:
16228@if gold
16229maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16230
a90ef4bf
JM
16231maintainer-clean-gold:
16232 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16233 r=`${PWD_COMMAND}`; export r; \
16234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16235 $(HOST_EXPORTS) \
b813574b 16236 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16238 done; \
22121df0 16239 echo "Doing maintainer-clean in gold"; \
a90ef4bf 16240 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16243 "RANLIB=$${RANLIB}" \
0c24b341 16244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16245 maintainer-clean) \
4fa63067
NN
16246 || exit 1
16247
a90ef4bf 16248@endif gold
4fa63067
NN
16249
16250
a7254363 16251
a90ef4bf
JM
16252.PHONY: configure-gprof maybe-configure-gprof
16253maybe-configure-gprof:
4b900473 16254@if gcc-bootstrap
a90ef4bf 16255configure-gprof: stage_current
4b900473 16256@endif gcc-bootstrap
a90ef4bf
JM
16257@if gprof
16258maybe-configure-gprof: configure-gprof
16259configure-gprof:
16260 @: $(MAKE); $(unstage)
4b900473
PB
16261 @r=`${PWD_COMMAND}`; export r; \
16262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16263 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
22121df0 16264 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof; \
1f53ca9a 16265 $(HOST_EXPORTS) \
a90ef4bf
JM
16266 echo Configuring in $(HOST_SUBDIR)/gprof; \
16267 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16268 case $(srcdir) in \
16269 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16270 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16271 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16272 esac; \
1b6c0831
L
16273 module_srcdir=gprof; \
16274 $(SHELL) \
16275 $$s/$$module_srcdir/configure \
16276 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16277 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16278 --target=${target_alias} \
4b900473 16279 || exit 1
a90ef4bf 16280@endif gprof
4b900473
PB
16281
16282
16283
4b900473 16284
a90ef4bf
JM
16285
16286.PHONY: all-gprof maybe-all-gprof
16287maybe-all-gprof:
16288@if gcc-bootstrap
16289all-gprof: stage_current
16290@endif gcc-bootstrap
16291@if gprof
16292TARGET-gprof=all
16293maybe-all-gprof: all-gprof
16294all-gprof: configure-gprof
16295 @: $(MAKE); $(unstage)
4b900473
PB
16296 @r=`${PWD_COMMAND}`; export r; \
16297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16298 $(HOST_EXPORTS) \
a90ef4bf 16299 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16300 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16301 $(TARGET-gprof))
16302@endif gprof
4b900473
PB
16303
16304
4b900473 16305
4b900473 16306
a90ef4bf
JM
16307.PHONY: check-gprof maybe-check-gprof
16308maybe-check-gprof:
16309@if gprof
16310maybe-check-gprof: check-gprof
4b900473 16311
a90ef4bf
JM
16312check-gprof:
16313 @: $(MAKE); $(unstage)
4b900473
PB
16314 @r=`${PWD_COMMAND}`; export r; \
16315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16316 $(HOST_EXPORTS) \
a90ef4bf
JM
16317 (cd $(HOST_SUBDIR)/gprof && \
16318 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16319
a90ef4bf 16320@endif gprof
4b900473 16321
a90ef4bf
JM
16322.PHONY: install-gprof maybe-install-gprof
16323maybe-install-gprof:
16324@if gprof
16325maybe-install-gprof: install-gprof
4b900473 16326
a90ef4bf
JM
16327install-gprof: installdirs
16328 @: $(MAKE); $(unstage)
4b900473
PB
16329 @r=`${PWD_COMMAND}`; export r; \
16330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16331 $(HOST_EXPORTS) \
a90ef4bf
JM
16332 (cd $(HOST_SUBDIR)/gprof && \
16333 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16334
a90ef4bf 16335@endif gprof
4b900473 16336
a90ef4bf
JM
16337.PHONY: install-strip-gprof maybe-install-strip-gprof
16338maybe-install-strip-gprof:
16339@if gprof
16340maybe-install-strip-gprof: install-strip-gprof
4b900473 16341
a90ef4bf 16342install-strip-gprof: installdirs
4b900473
PB
16343 @: $(MAKE); $(unstage)
16344 @r=`${PWD_COMMAND}`; export r; \
16345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16346 $(HOST_EXPORTS) \
a90ef4bf
JM
16347 (cd $(HOST_SUBDIR)/gprof && \
16348 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16349
a90ef4bf 16350@endif gprof
9b980aa1 16351
4b900473
PB
16352# Other targets (info, dvi, pdf, etc.)
16353
a90ef4bf
JM
16354.PHONY: maybe-info-gprof info-gprof
16355maybe-info-gprof:
16356@if gprof
16357maybe-info-gprof: info-gprof
4b900473 16358
a90ef4bf
JM
16359info-gprof: \
16360 configure-gprof
16361 @: $(MAKE); $(unstage)
16362 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16363 r=`${PWD_COMMAND}`; export r; \
16364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16365 $(HOST_EXPORTS) \
16366 for flag in $(EXTRA_HOST_FLAGS) ; do \
16367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16368 done; \
22121df0 16369 echo "Doing info in gprof"; \
a90ef4bf 16370 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16373 "RANLIB=$${RANLIB}" \
0c24b341 16374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16375 info) \
16376 || exit 1
16377
a90ef4bf 16378@endif gprof
4b900473 16379
a90ef4bf
JM
16380.PHONY: maybe-dvi-gprof dvi-gprof
16381maybe-dvi-gprof:
16382@if gprof
16383maybe-dvi-gprof: dvi-gprof
4b900473 16384
a90ef4bf
JM
16385dvi-gprof: \
16386 configure-gprof
16387 @: $(MAKE); $(unstage)
16388 @[ -f ./gprof/Makefile ] || exit 0; \
16389 r=`${PWD_COMMAND}`; export r; \
16390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16391 $(HOST_EXPORTS) \
4b900473
PB
16392 for flag in $(EXTRA_HOST_FLAGS) ; do \
16393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16394 done; \
22121df0 16395 echo "Doing dvi in gprof"; \
a90ef4bf 16396 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16399 "RANLIB=$${RANLIB}" \
0c24b341 16400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16401 dvi) \
16402 || exit 1
16403
a90ef4bf 16404@endif gprof
4b900473 16405
a90ef4bf
JM
16406.PHONY: maybe-pdf-gprof pdf-gprof
16407maybe-pdf-gprof:
16408@if gprof
16409maybe-pdf-gprof: pdf-gprof
4b900473 16410
a90ef4bf
JM
16411pdf-gprof: \
16412 configure-gprof
16413 @: $(MAKE); $(unstage)
16414 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16415 r=`${PWD_COMMAND}`; export r; \
16416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16417 $(HOST_EXPORTS) \
16418 for flag in $(EXTRA_HOST_FLAGS) ; do \
16419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16420 done; \
22121df0 16421 echo "Doing pdf in gprof"; \
a90ef4bf 16422 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16425 "RANLIB=$${RANLIB}" \
0c24b341 16426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16427 pdf) \
16428 || exit 1
16429
a90ef4bf 16430@endif gprof
4b900473 16431
a90ef4bf
JM
16432.PHONY: maybe-html-gprof html-gprof
16433maybe-html-gprof:
16434@if gprof
16435maybe-html-gprof: html-gprof
4b900473 16436
a90ef4bf
JM
16437html-gprof: \
16438 configure-gprof
16439 @: $(MAKE); $(unstage)
16440 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16441 r=`${PWD_COMMAND}`; export r; \
16442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16443 $(HOST_EXPORTS) \
16444 for flag in $(EXTRA_HOST_FLAGS) ; do \
16445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16446 done; \
22121df0 16447 echo "Doing html in gprof"; \
a90ef4bf 16448 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16451 "RANLIB=$${RANLIB}" \
0c24b341 16452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16453 html) \
16454 || exit 1
16455
a90ef4bf 16456@endif gprof
4b900473 16457
a90ef4bf
JM
16458.PHONY: maybe-TAGS-gprof TAGS-gprof
16459maybe-TAGS-gprof:
16460@if gprof
16461maybe-TAGS-gprof: TAGS-gprof
4b900473 16462
a90ef4bf
JM
16463TAGS-gprof: \
16464 configure-gprof
16465 @: $(MAKE); $(unstage)
16466 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16467 r=`${PWD_COMMAND}`; export r; \
16468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16469 $(HOST_EXPORTS) \
16470 for flag in $(EXTRA_HOST_FLAGS) ; do \
16471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16472 done; \
22121df0 16473 echo "Doing TAGS in gprof"; \
a90ef4bf 16474 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16477 "RANLIB=$${RANLIB}" \
0c24b341 16478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16479 TAGS) \
16480 || exit 1
16481
a90ef4bf 16482@endif gprof
4b900473 16483
a90ef4bf
JM
16484.PHONY: maybe-install-info-gprof install-info-gprof
16485maybe-install-info-gprof:
16486@if gprof
16487maybe-install-info-gprof: install-info-gprof
4b900473 16488
a90ef4bf
JM
16489install-info-gprof: \
16490 configure-gprof \
16491 info-gprof
16492 @: $(MAKE); $(unstage)
16493 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16494 r=`${PWD_COMMAND}`; export r; \
16495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16496 $(HOST_EXPORTS) \
16497 for flag in $(EXTRA_HOST_FLAGS) ; do \
16498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16499 done; \
22121df0 16500 echo "Doing install-info in gprof"; \
a90ef4bf 16501 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16504 "RANLIB=$${RANLIB}" \
0c24b341 16505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16506 install-info) \
16507 || exit 1
16508
a90ef4bf 16509@endif gprof
4b900473 16510
a90ef4bf
JM
16511.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16512maybe-install-pdf-gprof:
16513@if gprof
16514maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16515
a90ef4bf
JM
16516install-pdf-gprof: \
16517 configure-gprof \
16518 pdf-gprof
16519 @: $(MAKE); $(unstage)
16520 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16521 r=`${PWD_COMMAND}`; export r; \
16522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16523 $(HOST_EXPORTS) \
16524 for flag in $(EXTRA_HOST_FLAGS) ; do \
16525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16526 done; \
22121df0 16527 echo "Doing install-pdf in gprof"; \
a90ef4bf 16528 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16531 "RANLIB=$${RANLIB}" \
0c24b341 16532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16533 install-pdf) \
16534 || exit 1
16535
a90ef4bf 16536@endif gprof
a3ca38d2 16537
a90ef4bf
JM
16538.PHONY: maybe-install-html-gprof install-html-gprof
16539maybe-install-html-gprof:
16540@if gprof
16541maybe-install-html-gprof: install-html-gprof
4b900473 16542
a90ef4bf
JM
16543install-html-gprof: \
16544 configure-gprof \
16545 html-gprof
16546 @: $(MAKE); $(unstage)
16547 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16548 r=`${PWD_COMMAND}`; export r; \
16549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16550 $(HOST_EXPORTS) \
16551 for flag in $(EXTRA_HOST_FLAGS) ; do \
16552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16553 done; \
22121df0 16554 echo "Doing install-html in gprof"; \
a90ef4bf 16555 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16558 "RANLIB=$${RANLIB}" \
0c24b341 16559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16560 install-html) \
16561 || exit 1
16562
a90ef4bf 16563@endif gprof
4b900473 16564
a90ef4bf
JM
16565.PHONY: maybe-installcheck-gprof installcheck-gprof
16566maybe-installcheck-gprof:
16567@if gprof
16568maybe-installcheck-gprof: installcheck-gprof
4b900473 16569
a90ef4bf
JM
16570installcheck-gprof: \
16571 configure-gprof
16572 @: $(MAKE); $(unstage)
16573 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16574 r=`${PWD_COMMAND}`; export r; \
16575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16576 $(HOST_EXPORTS) \
16577 for flag in $(EXTRA_HOST_FLAGS) ; do \
16578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16579 done; \
22121df0 16580 echo "Doing installcheck in gprof"; \
a90ef4bf 16581 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16584 "RANLIB=$${RANLIB}" \
16585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16586 installcheck) \
16587 || exit 1
16588
a90ef4bf 16589@endif gprof
e28c595f 16590
a90ef4bf
JM
16591.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16592maybe-mostlyclean-gprof:
16593@if gprof
16594maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16595
a90ef4bf
JM
16596mostlyclean-gprof:
16597 @: $(MAKE); $(unstage)
16598 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16599 r=`${PWD_COMMAND}`; export r; \
16600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16601 $(HOST_EXPORTS) \
16602 for flag in $(EXTRA_HOST_FLAGS) ; do \
16603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16604 done; \
22121df0 16605 echo "Doing mostlyclean in gprof"; \
a90ef4bf 16606 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16609 "RANLIB=$${RANLIB}" \
16610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16611 mostlyclean) \
16612 || exit 1
16613
a90ef4bf 16614@endif gprof
e28c595f 16615
a90ef4bf
JM
16616.PHONY: maybe-clean-gprof clean-gprof
16617maybe-clean-gprof:
16618@if gprof
16619maybe-clean-gprof: clean-gprof
e28c595f 16620
a90ef4bf
JM
16621clean-gprof:
16622 @: $(MAKE); $(unstage)
16623 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16624 r=`${PWD_COMMAND}`; export r; \
16625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16626 $(HOST_EXPORTS) \
16627 for flag in $(EXTRA_HOST_FLAGS) ; do \
16628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16629 done; \
22121df0 16630 echo "Doing clean in gprof"; \
a90ef4bf 16631 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16634 "RANLIB=$${RANLIB}" \
16635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16636 clean) \
16637 || exit 1
16638
a90ef4bf 16639@endif gprof
e28c595f 16640
a90ef4bf
JM
16641.PHONY: maybe-distclean-gprof distclean-gprof
16642maybe-distclean-gprof:
16643@if gprof
16644maybe-distclean-gprof: distclean-gprof
e28c595f 16645
a90ef4bf
JM
16646distclean-gprof:
16647 @: $(MAKE); $(unstage)
16648 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16649 r=`${PWD_COMMAND}`; export r; \
16650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16651 $(HOST_EXPORTS) \
16652 for flag in $(EXTRA_HOST_FLAGS) ; do \
16653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16654 done; \
22121df0 16655 echo "Doing distclean in gprof"; \
a90ef4bf 16656 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16659 "RANLIB=$${RANLIB}" \
16660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16661 distclean) \
16662 || exit 1
16663
a90ef4bf 16664@endif gprof
e28c595f 16665
a90ef4bf
JM
16666.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16667maybe-maintainer-clean-gprof:
16668@if gprof
16669maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16670
a90ef4bf
JM
16671maintainer-clean-gprof:
16672 @: $(MAKE); $(unstage)
16673 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16674 r=`${PWD_COMMAND}`; export r; \
16675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16676 $(HOST_EXPORTS) \
16677 for flag in $(EXTRA_HOST_FLAGS) ; do \
16678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16679 done; \
22121df0 16680 echo "Doing maintainer-clean in gprof"; \
a90ef4bf 16681 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16684 "RANLIB=$${RANLIB}" \
16685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16686 maintainer-clean) \
16687 || exit 1
16688
a90ef4bf 16689@endif gprof
e28c595f
JM
16690
16691
16692
a90ef4bf
JM
16693.PHONY: configure-intl maybe-configure-intl
16694maybe-configure-intl:
e28c595f 16695@if gcc-bootstrap
a90ef4bf 16696configure-intl: stage_current
e28c595f 16697@endif gcc-bootstrap
a90ef4bf
JM
16698@if intl
16699maybe-configure-intl: configure-intl
16700configure-intl:
e28c595f
JM
16701 @r=`${PWD_COMMAND}`; export r; \
16702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16703 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
22121df0 16704 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
1f53ca9a 16705 $(HOST_EXPORTS) \
a90ef4bf
JM
16706 echo Configuring in $(HOST_SUBDIR)/intl; \
16707 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16708 case $(srcdir) in \
16709 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16710 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16711 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16712 esac; \
1b6c0831
L
16713 module_srcdir=intl; \
16714 $(SHELL) \
16715 $$s/$$module_srcdir/configure \
16716 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16717 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16718 --target=${target_alias} \
e28c595f 16719 || exit 1
a90ef4bf 16720@endif intl
e28c595f
JM
16721
16722
16723
a90ef4bf
JM
16724.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16725maybe-configure-stage1-intl:
16726@if intl-bootstrap
16727maybe-configure-stage1-intl: configure-stage1-intl
16728configure-stage1-intl:
e28c595f 16729 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16730 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16731 @r=`${PWD_COMMAND}`; export r; \
16732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16733 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16734 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16735 $(HOST_EXPORTS) \
e28c595f 16736 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16737 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16738 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
16739 echo Configuring stage 1 in $(HOST_SUBDIR)/intl; \
16740 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16741 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16742 case $(srcdir) in \
16743 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16744 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16745 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16746 esac; \
1b6c0831
L
16747 module_srcdir=intl; \
16748 $(SHELL) $$s/$$module_srcdir/configure \
16749 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16750 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16751 --target=${target_alias} \
16752 \
a90ef4bf
JM
16753 $(STAGE1_CONFIGURE_FLAGS)
16754@endif intl-bootstrap
e28c595f 16755
a90ef4bf
JM
16756.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16757maybe-configure-stage2-intl:
16758@if intl-bootstrap
16759maybe-configure-stage2-intl: configure-stage2-intl
16760configure-stage2-intl:
e28c595f 16761 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16762 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16763 @r=`${PWD_COMMAND}`; export r; \
16764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16765 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16766 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16767 $(HOST_EXPORTS) \
1b05fbbd 16768 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16769 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16770 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16771 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16772 echo Configuring stage 2 in $(HOST_SUBDIR)/intl; \
16773 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16774 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16775 case $(srcdir) in \
16776 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16777 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16778 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16779 esac; \
1b6c0831
L
16780 module_srcdir=intl; \
16781 $(SHELL) $$s/$$module_srcdir/configure \
16782 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16783 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16784 --target=${target_alias} \
22121df0 16785 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16786 $(STAGE2_CONFIGURE_FLAGS)
16787@endif intl-bootstrap
e28c595f 16788
a90ef4bf
JM
16789.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16790maybe-configure-stage3-intl:
16791@if intl-bootstrap
16792maybe-configure-stage3-intl: configure-stage3-intl
16793configure-stage3-intl:
e28c595f 16794 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 16795 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16796 @r=`${PWD_COMMAND}`; export r; \
16797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16798 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 16799 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16800 $(HOST_EXPORTS) \
1b05fbbd 16801 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16802 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16803 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16804 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16805 echo Configuring stage 3 in $(HOST_SUBDIR)/intl; \
16806 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16807 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16808 case $(srcdir) in \
16809 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16810 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16811 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16812 esac; \
1b6c0831
L
16813 module_srcdir=intl; \
16814 $(SHELL) $$s/$$module_srcdir/configure \
16815 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16816 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16817 --target=${target_alias} \
22121df0 16818 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16819 $(STAGE3_CONFIGURE_FLAGS)
16820@endif intl-bootstrap
e28c595f 16821
a90ef4bf
JM
16822.PHONY: configure-stage4-intl maybe-configure-stage4-intl
16823maybe-configure-stage4-intl:
16824@if intl-bootstrap
16825maybe-configure-stage4-intl: configure-stage4-intl
16826configure-stage4-intl:
e28c595f 16827 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 16828 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16829 @r=`${PWD_COMMAND}`; export r; \
16830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16831 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 16832 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16833 $(HOST_EXPORTS) \
1b05fbbd 16834 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16835 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16836 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16837 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16838 echo Configuring stage 4 in $(HOST_SUBDIR)/intl; \
16839 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16840 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16841 case $(srcdir) in \
16842 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16843 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16844 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16845 esac; \
1b6c0831
L
16846 module_srcdir=intl; \
16847 $(SHELL) $$s/$$module_srcdir/configure \
16848 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16849 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16850 --target=${target_alias} \
22121df0 16851 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16852 $(STAGE4_CONFIGURE_FLAGS)
16853@endif intl-bootstrap
e28c595f 16854
a90ef4bf
JM
16855.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
16856maybe-configure-stageprofile-intl:
16857@if intl-bootstrap
16858maybe-configure-stageprofile-intl: configure-stageprofile-intl
16859configure-stageprofile-intl:
e28c595f 16860 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 16861 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16862 @r=`${PWD_COMMAND}`; export r; \
16863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16864 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 16865 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16866 $(HOST_EXPORTS) \
1b05fbbd
AO
16867 $(POSTSTAGE1_HOST_EXPORTS) \
16868 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16869 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
16870 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16871 echo Configuring stage profile in $(HOST_SUBDIR)/intl; \
16872 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16873 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16874 case $(srcdir) in \
16875 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16876 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16877 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16878 esac; \
1b6c0831
L
16879 module_srcdir=intl; \
16880 $(SHELL) $$s/$$module_srcdir/configure \
16881 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16882 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16883 --target=${target_alias} \
22121df0 16884 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16885 $(STAGEprofile_CONFIGURE_FLAGS)
16886@endif intl-bootstrap
e28c595f 16887
a90ef4bf
JM
16888.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
16889maybe-configure-stagefeedback-intl:
16890@if intl-bootstrap
16891maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
16892configure-stagefeedback-intl:
e28c595f 16893 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 16894 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16895 @r=`${PWD_COMMAND}`; export r; \
16896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16897 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 16898 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16899 $(HOST_EXPORTS) \
1b05fbbd
AO
16900 $(POSTSTAGE1_HOST_EXPORTS) \
16901 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16902 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
16903 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16904 echo Configuring stage feedback in $(HOST_SUBDIR)/intl; \
16905 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16906 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16907 case $(srcdir) in \
16908 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16909 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16910 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16911 esac; \
1b6c0831
L
16912 module_srcdir=intl; \
16913 $(SHELL) $$s/$$module_srcdir/configure \
16914 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16915 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16916 --target=${target_alias} \
22121df0 16917 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16918 $(STAGEfeedback_CONFIGURE_FLAGS)
16919@endif intl-bootstrap
e28c595f
JM
16920
16921
16922
16923
16924
a90ef4bf
JM
16925.PHONY: all-intl maybe-all-intl
16926maybe-all-intl:
e28c595f 16927@if gcc-bootstrap
a90ef4bf 16928all-intl: stage_current
e28c595f 16929@endif gcc-bootstrap
a90ef4bf
JM
16930@if intl
16931TARGET-intl=all
16932maybe-all-intl: all-intl
16933all-intl: configure-intl
e28c595f
JM
16934 @r=`${PWD_COMMAND}`; export r; \
16935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16936 $(HOST_EXPORTS) \
a90ef4bf 16937 (cd $(HOST_SUBDIR)/intl && \
b3676d82 16938 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16939 $(TARGET-intl))
16940@endif intl
e28c595f
JM
16941
16942
16943
a90ef4bf
JM
16944.PHONY: all-stage1-intl maybe-all-stage1-intl
16945.PHONY: clean-stage1-intl maybe-clean-stage1-intl
16946maybe-all-stage1-intl:
16947maybe-clean-stage1-intl:
16948@if intl-bootstrap
16949maybe-all-stage1-intl: all-stage1-intl
16950all-stage1: all-stage1-intl
16951TARGET-stage1-intl = $(TARGET-intl)
16952all-stage1-intl: configure-stage1-intl
e28c595f
JM
16953 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
16954 @r=`${PWD_COMMAND}`; export r; \
16955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16956 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 16957 $(HOST_EXPORTS) \
a90ef4bf 16958 cd $(HOST_SUBDIR)/intl && \
e28c595f 16959 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 16960 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 16961 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
16962 LIBCFLAGS="$(LIBCFLAGS)" \
16963 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16964 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16965 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
16966 $(EXTRA_HOST_FLAGS) \
16967 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 16968 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 16969 $(TARGET-stage1-intl)
e28c595f 16970
a90ef4bf
JM
16971maybe-clean-stage1-intl: clean-stage1-intl
16972clean-stage1: clean-stage1-intl
16973clean-stage1-intl:
e28c595f 16974 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 16975 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 16976 else \
a90ef4bf 16977 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
16978 $(MAKE) stage1-start; \
16979 fi; \
a90ef4bf 16980 cd $(HOST_SUBDIR)/intl && \
e28c595f 16981 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 16982 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 16983@endif intl-bootstrap
e28c595f
JM
16984
16985
a90ef4bf
JM
16986.PHONY: all-stage2-intl maybe-all-stage2-intl
16987.PHONY: clean-stage2-intl maybe-clean-stage2-intl
16988maybe-all-stage2-intl:
16989maybe-clean-stage2-intl:
16990@if intl-bootstrap
16991maybe-all-stage2-intl: all-stage2-intl
16992all-stage2: all-stage2-intl
16993TARGET-stage2-intl = $(TARGET-intl)
16994all-stage2-intl: configure-stage2-intl
e28c595f
JM
16995 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
16996 @r=`${PWD_COMMAND}`; export r; \
16997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16998 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 16999 $(HOST_EXPORTS) \
1f53ca9a 17000 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17001 cd $(HOST_SUBDIR)/intl && \
e28c595f 17002 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17003 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 17004 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17005 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17006 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17007 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17008 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17009 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17010 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17011 $(TARGET-stage2-intl)
e28c595f 17012
a90ef4bf
JM
17013maybe-clean-stage2-intl: clean-stage2-intl
17014clean-stage2: clean-stage2-intl
17015clean-stage2-intl:
e28c595f 17016 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17017 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17018 else \
a90ef4bf 17019 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17020 $(MAKE) stage2-start; \
17021 fi; \
a90ef4bf 17022 cd $(HOST_SUBDIR)/intl && \
b3676d82 17023 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17024@endif intl-bootstrap
e28c595f
JM
17025
17026
a90ef4bf
JM
17027.PHONY: all-stage3-intl maybe-all-stage3-intl
17028.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17029maybe-all-stage3-intl:
17030maybe-clean-stage3-intl:
17031@if intl-bootstrap
17032maybe-all-stage3-intl: all-stage3-intl
17033all-stage3: all-stage3-intl
17034TARGET-stage3-intl = $(TARGET-intl)
17035all-stage3-intl: configure-stage3-intl
e28c595f
JM
17036 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17037 @r=`${PWD_COMMAND}`; export r; \
17038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17039 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17040 $(HOST_EXPORTS) \
1f53ca9a 17041 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17042 cd $(HOST_SUBDIR)/intl && \
e28c595f 17043 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17044 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17045 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17046 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17047 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17048 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17049 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17050 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17051 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17052 $(TARGET-stage3-intl)
e28c595f 17053
a90ef4bf
JM
17054maybe-clean-stage3-intl: clean-stage3-intl
17055clean-stage3: clean-stage3-intl
17056clean-stage3-intl:
e28c595f 17057 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17058 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17059 else \
a90ef4bf 17060 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17061 $(MAKE) stage3-start; \
17062 fi; \
a90ef4bf 17063 cd $(HOST_SUBDIR)/intl && \
b3676d82 17064 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17065@endif intl-bootstrap
e28c595f
JM
17066
17067
a90ef4bf
JM
17068.PHONY: all-stage4-intl maybe-all-stage4-intl
17069.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17070maybe-all-stage4-intl:
17071maybe-clean-stage4-intl:
17072@if intl-bootstrap
17073maybe-all-stage4-intl: all-stage4-intl
17074all-stage4: all-stage4-intl
17075TARGET-stage4-intl = $(TARGET-intl)
17076all-stage4-intl: configure-stage4-intl
e28c595f
JM
17077 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17078 @r=`${PWD_COMMAND}`; export r; \
17079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17080 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17081 $(HOST_EXPORTS) \
1f53ca9a 17082 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17083 cd $(HOST_SUBDIR)/intl && \
e28c595f 17084 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17085 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17086 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17087 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17088 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17089 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17090 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17091 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17092 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17093 $(TARGET-stage4-intl)
e28c595f 17094
a90ef4bf
JM
17095maybe-clean-stage4-intl: clean-stage4-intl
17096clean-stage4: clean-stage4-intl
17097clean-stage4-intl:
e28c595f 17098 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17099 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17100 else \
a90ef4bf 17101 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17102 $(MAKE) stage4-start; \
17103 fi; \
a90ef4bf 17104 cd $(HOST_SUBDIR)/intl && \
b3676d82 17105 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17106@endif intl-bootstrap
e28c595f
JM
17107
17108
a90ef4bf
JM
17109.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17110.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17111maybe-all-stageprofile-intl:
17112maybe-clean-stageprofile-intl:
17113@if intl-bootstrap
17114maybe-all-stageprofile-intl: all-stageprofile-intl
17115all-stageprofile: all-stageprofile-intl
17116TARGET-stageprofile-intl = $(TARGET-intl)
17117all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17118 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17119 @r=`${PWD_COMMAND}`; export r; \
17120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17121 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17122 $(HOST_EXPORTS) \
1f53ca9a 17123 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17124 cd $(HOST_SUBDIR)/intl && \
e28c595f 17125 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17126 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17127 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17128 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17129 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17130 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17131 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17132 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17133 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17134 $(TARGET-stageprofile-intl)
e28c595f 17135
a90ef4bf
JM
17136maybe-clean-stageprofile-intl: clean-stageprofile-intl
17137clean-stageprofile: clean-stageprofile-intl
17138clean-stageprofile-intl:
e28c595f 17139 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17140 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17141 else \
a90ef4bf 17142 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17143 $(MAKE) stageprofile-start; \
17144 fi; \
a90ef4bf 17145 cd $(HOST_SUBDIR)/intl && \
b3676d82 17146 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17147@endif intl-bootstrap
e28c595f
JM
17148
17149
a90ef4bf
JM
17150.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17151.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17152maybe-all-stagefeedback-intl:
17153maybe-clean-stagefeedback-intl:
17154@if intl-bootstrap
17155maybe-all-stagefeedback-intl: all-stagefeedback-intl
17156all-stagefeedback: all-stagefeedback-intl
17157TARGET-stagefeedback-intl = $(TARGET-intl)
17158all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17159 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17160 @r=`${PWD_COMMAND}`; export r; \
17161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17162 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17163 $(HOST_EXPORTS) \
1f53ca9a 17164 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17165 cd $(HOST_SUBDIR)/intl && \
e28c595f 17166 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17167 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17168 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17169 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17170 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17171 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17172 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17173 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17174 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17175 $(TARGET-stagefeedback-intl)
e28c595f 17176
a90ef4bf
JM
17177maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17178clean-stagefeedback: clean-stagefeedback-intl
17179clean-stagefeedback-intl:
e28c595f 17180 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17181 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17182 else \
a90ef4bf 17183 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17184 $(MAKE) stagefeedback-start; \
17185 fi; \
a90ef4bf 17186 cd $(HOST_SUBDIR)/intl && \
b3676d82 17187 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17188@endif intl-bootstrap
e28c595f
JM
17189
17190
17191
17192
17193
a90ef4bf
JM
17194.PHONY: check-intl maybe-check-intl
17195maybe-check-intl:
17196@if intl
17197maybe-check-intl: check-intl
e28c595f 17198
a90ef4bf 17199check-intl:
e28c595f
JM
17200 @: $(MAKE); $(unstage)
17201 @r=`${PWD_COMMAND}`; export r; \
17202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17203 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 17204 (cd $(HOST_SUBDIR)/intl && \
f91ca6bc 17205 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 17206
a90ef4bf 17207@endif intl
e28c595f 17208
a90ef4bf
JM
17209.PHONY: install-intl maybe-install-intl
17210maybe-install-intl:
17211@if intl
17212maybe-install-intl: install-intl
e28c595f 17213
a90ef4bf
JM
17214install-intl: installdirs
17215 @: $(MAKE); $(unstage)
17216 @r=`${PWD_COMMAND}`; export r; \
17217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17218 $(HOST_EXPORTS) \
17219 (cd $(HOST_SUBDIR)/intl && \
17220 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17221
a90ef4bf 17222@endif intl
e28c595f 17223
a90ef4bf
JM
17224.PHONY: install-strip-intl maybe-install-strip-intl
17225maybe-install-strip-intl:
17226@if intl
17227maybe-install-strip-intl: install-strip-intl
9b980aa1 17228
a90ef4bf
JM
17229install-strip-intl: installdirs
17230 @: $(MAKE); $(unstage)
17231 @r=`${PWD_COMMAND}`; export r; \
17232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17233 $(HOST_EXPORTS) \
17234 (cd $(HOST_SUBDIR)/intl && \
17235 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17236
a90ef4bf 17237@endif intl
9b980aa1 17238
e28c595f
JM
17239# Other targets (info, dvi, pdf, etc.)
17240
a90ef4bf
JM
17241.PHONY: maybe-info-intl info-intl
17242maybe-info-intl:
17243@if intl
17244maybe-info-intl: info-intl
e28c595f 17245
a90ef4bf
JM
17246info-intl: \
17247 configure-intl
17248 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17249 r=`${PWD_COMMAND}`; export r; \
17250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17251 $(HOST_EXPORTS) \
17252 for flag in $(EXTRA_HOST_FLAGS) ; do \
17253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17254 done; \
22121df0 17255 echo "Doing info in intl"; \
a90ef4bf 17256 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17259 "RANLIB=$${RANLIB}" \
17260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17261 info) \
17262 || exit 1
17263
a90ef4bf 17264@endif intl
e28c595f 17265
a90ef4bf
JM
17266.PHONY: maybe-dvi-intl dvi-intl
17267maybe-dvi-intl:
17268@if intl
17269maybe-dvi-intl: dvi-intl
e28c595f 17270
a90ef4bf
JM
17271dvi-intl: \
17272 configure-intl
17273 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17274 r=`${PWD_COMMAND}`; export r; \
17275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17276 $(HOST_EXPORTS) \
17277 for flag in $(EXTRA_HOST_FLAGS) ; do \
17278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17279 done; \
22121df0 17280 echo "Doing dvi in intl"; \
a90ef4bf 17281 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17284 "RANLIB=$${RANLIB}" \
17285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17286 dvi) \
17287 || exit 1
17288
a90ef4bf 17289@endif intl
e28c595f 17290
a90ef4bf
JM
17291.PHONY: maybe-pdf-intl pdf-intl
17292maybe-pdf-intl:
17293@if intl
17294maybe-pdf-intl: pdf-intl
e28c595f 17295
a90ef4bf
JM
17296pdf-intl: \
17297 configure-intl
17298 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17299 r=`${PWD_COMMAND}`; export r; \
17300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17301 $(HOST_EXPORTS) \
17302 for flag in $(EXTRA_HOST_FLAGS) ; do \
17303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17304 done; \
22121df0 17305 echo "Doing pdf in intl"; \
a90ef4bf 17306 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17309 "RANLIB=$${RANLIB}" \
17310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17311 pdf) \
17312 || exit 1
17313
a90ef4bf 17314@endif intl
e28c595f 17315
a90ef4bf
JM
17316.PHONY: maybe-html-intl html-intl
17317maybe-html-intl:
17318@if intl
17319maybe-html-intl: html-intl
e28c595f 17320
a90ef4bf
JM
17321html-intl: \
17322 configure-intl
17323 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17324 r=`${PWD_COMMAND}`; export r; \
17325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17326 $(HOST_EXPORTS) \
17327 for flag in $(EXTRA_HOST_FLAGS) ; do \
17328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17329 done; \
22121df0 17330 echo "Doing html in intl"; \
a90ef4bf 17331 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17334 "RANLIB=$${RANLIB}" \
17335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17336 html) \
17337 || exit 1
17338
a90ef4bf 17339@endif intl
e28c595f 17340
a90ef4bf
JM
17341.PHONY: maybe-TAGS-intl TAGS-intl
17342maybe-TAGS-intl:
17343@if intl
17344maybe-TAGS-intl: TAGS-intl
e28c595f 17345
a90ef4bf
JM
17346TAGS-intl: \
17347 configure-intl
17348 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17349 r=`${PWD_COMMAND}`; export r; \
17350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17351 $(HOST_EXPORTS) \
17352 for flag in $(EXTRA_HOST_FLAGS) ; do \
17353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17354 done; \
22121df0 17355 echo "Doing TAGS in intl"; \
a90ef4bf 17356 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17359 "RANLIB=$${RANLIB}" \
17360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17361 TAGS) \
17362 || exit 1
17363
a90ef4bf 17364@endif intl
e28c595f 17365
a90ef4bf
JM
17366.PHONY: maybe-install-info-intl install-info-intl
17367maybe-install-info-intl:
17368@if intl
17369maybe-install-info-intl: install-info-intl
e28c595f 17370
a90ef4bf
JM
17371install-info-intl: \
17372 configure-intl \
17373 info-intl
17374 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17375 r=`${PWD_COMMAND}`; export r; \
17376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17377 $(HOST_EXPORTS) \
17378 for flag in $(EXTRA_HOST_FLAGS) ; do \
17379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17380 done; \
22121df0 17381 echo "Doing install-info in intl"; \
a90ef4bf 17382 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17385 "RANLIB=$${RANLIB}" \
17386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17387 install-info) \
17388 || exit 1
17389
a90ef4bf 17390@endif intl
e28c595f 17391
a90ef4bf
JM
17392.PHONY: maybe-install-pdf-intl install-pdf-intl
17393maybe-install-pdf-intl:
17394@if intl
17395maybe-install-pdf-intl: install-pdf-intl
e28c595f 17396
a90ef4bf
JM
17397install-pdf-intl: \
17398 configure-intl \
17399 pdf-intl
17400 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17401 r=`${PWD_COMMAND}`; export r; \
17402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17403 $(HOST_EXPORTS) \
17404 for flag in $(EXTRA_HOST_FLAGS) ; do \
17405 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17406 done; \
22121df0 17407 echo "Doing install-pdf in intl"; \
a90ef4bf 17408 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17411 "RANLIB=$${RANLIB}" \
17412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17413 install-pdf) \
17414 || exit 1
17415
a90ef4bf 17416@endif intl
e28c595f 17417
a90ef4bf
JM
17418.PHONY: maybe-install-html-intl install-html-intl
17419maybe-install-html-intl:
17420@if intl
17421maybe-install-html-intl: install-html-intl
e28c595f 17422
a90ef4bf
JM
17423install-html-intl: \
17424 configure-intl \
17425 html-intl
17426 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17427 r=`${PWD_COMMAND}`; export r; \
17428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17429 $(HOST_EXPORTS) \
17430 for flag in $(EXTRA_HOST_FLAGS) ; do \
17431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17432 done; \
22121df0 17433 echo "Doing install-html in intl"; \
a90ef4bf 17434 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17435 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17436 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17437 "RANLIB=$${RANLIB}" \
17438 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17439 install-html) \
17440 || exit 1
17441
a90ef4bf 17442@endif intl
e28c595f 17443
a90ef4bf
JM
17444.PHONY: maybe-installcheck-intl installcheck-intl
17445maybe-installcheck-intl:
17446@if intl
17447maybe-installcheck-intl: installcheck-intl
e28c595f 17448
a90ef4bf
JM
17449installcheck-intl: \
17450 configure-intl
17451 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17452 r=`${PWD_COMMAND}`; export r; \
17453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17454 $(HOST_EXPORTS) \
17455 for flag in $(EXTRA_HOST_FLAGS) ; do \
17456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17457 done; \
22121df0 17458 echo "Doing installcheck in intl"; \
a90ef4bf 17459 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17462 "RANLIB=$${RANLIB}" \
17463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17464 installcheck) \
17465 || exit 1
17466
a90ef4bf 17467@endif intl
e28c595f 17468
a90ef4bf
JM
17469.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17470maybe-mostlyclean-intl:
17471@if intl
17472maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17473
a90ef4bf
JM
17474mostlyclean-intl:
17475 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17476 r=`${PWD_COMMAND}`; export r; \
17477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17478 $(HOST_EXPORTS) \
17479 for flag in $(EXTRA_HOST_FLAGS) ; do \
17480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17481 done; \
22121df0 17482 echo "Doing mostlyclean in intl"; \
a90ef4bf 17483 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17486 "RANLIB=$${RANLIB}" \
17487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17488 mostlyclean) \
17489 || exit 1
17490
a90ef4bf 17491@endif intl
e28c595f 17492
a90ef4bf
JM
17493.PHONY: maybe-clean-intl clean-intl
17494maybe-clean-intl:
17495@if intl
17496maybe-clean-intl: clean-intl
e28c595f 17497
a90ef4bf
JM
17498clean-intl:
17499 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17500 r=`${PWD_COMMAND}`; export r; \
17501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17502 $(HOST_EXPORTS) \
17503 for flag in $(EXTRA_HOST_FLAGS) ; do \
17504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17505 done; \
22121df0 17506 echo "Doing clean in intl"; \
a90ef4bf 17507 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17510 "RANLIB=$${RANLIB}" \
17511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17512 clean) \
17513 || exit 1
17514
a90ef4bf 17515@endif intl
e28c595f 17516
a90ef4bf
JM
17517.PHONY: maybe-distclean-intl distclean-intl
17518maybe-distclean-intl:
17519@if intl
17520maybe-distclean-intl: distclean-intl
e28c595f 17521
a90ef4bf
JM
17522distclean-intl:
17523 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17524 r=`${PWD_COMMAND}`; export r; \
17525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17526 $(HOST_EXPORTS) \
17527 for flag in $(EXTRA_HOST_FLAGS) ; do \
17528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17529 done; \
22121df0 17530 echo "Doing distclean in intl"; \
a90ef4bf 17531 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17534 "RANLIB=$${RANLIB}" \
17535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17536 distclean) \
17537 || exit 1
17538
a90ef4bf 17539@endif intl
e28c595f 17540
a90ef4bf
JM
17541.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17542maybe-maintainer-clean-intl:
17543@if intl
17544maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17545
a90ef4bf
JM
17546maintainer-clean-intl:
17547 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17548 r=`${PWD_COMMAND}`; export r; \
17549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17550 $(HOST_EXPORTS) \
17551 for flag in $(EXTRA_HOST_FLAGS) ; do \
17552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17553 done; \
22121df0 17554 echo "Doing maintainer-clean in intl"; \
a90ef4bf 17555 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17558 "RANLIB=$${RANLIB}" \
17559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17560 maintainer-clean) \
17561 || exit 1
17562
a90ef4bf 17563@endif intl
e28c595f
JM
17564
17565
17566
a90ef4bf
JM
17567.PHONY: configure-tcl maybe-configure-tcl
17568maybe-configure-tcl:
e8a5fa9c 17569@if gcc-bootstrap
a90ef4bf 17570configure-tcl: stage_current
e8a5fa9c 17571@endif gcc-bootstrap
a90ef4bf
JM
17572@if tcl
17573maybe-configure-tcl: configure-tcl
17574configure-tcl:
17575 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17576 @r=`${PWD_COMMAND}`; export r; \
17577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 17578 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
22121df0 17579 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl; \
1f53ca9a 17580 $(HOST_EXPORTS) \
a90ef4bf
JM
17581 echo Configuring in $(HOST_SUBDIR)/tcl; \
17582 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17583 case $(srcdir) in \
17584 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17585 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17586 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17587 esac; \
1b6c0831
L
17588 module_srcdir=tcl; \
17589 $(SHELL) \
17590 $$s/$$module_srcdir/configure \
17591 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 17592 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17593 --target=${target_alias} \
e8a5fa9c 17594 || exit 1
a90ef4bf 17595@endif tcl
e8a5fa9c
RW
17596
17597
17598
e8a5fa9c 17599
e8a5fa9c 17600
a90ef4bf
JM
17601.PHONY: all-tcl maybe-all-tcl
17602maybe-all-tcl:
17603@if gcc-bootstrap
17604all-tcl: stage_current
17605@endif gcc-bootstrap
17606@if tcl
17607TARGET-tcl=all
17608maybe-all-tcl: all-tcl
17609all-tcl: configure-tcl
17610 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17611 @r=`${PWD_COMMAND}`; export r; \
17612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17613 $(HOST_EXPORTS) \
17614 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17615 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17616 $(TARGET-tcl))
17617@endif tcl
e8a5fa9c 17618
a90ef4bf
JM
17619
17620
17621
17622.PHONY: check-tcl maybe-check-tcl
17623maybe-check-tcl:
17624@if tcl
17625maybe-check-tcl: check-tcl
17626
17627check-tcl:
17628 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17629 @r=`${PWD_COMMAND}`; export r; \
17630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17631 $(HOST_EXPORTS) \
a90ef4bf
JM
17632 (cd $(HOST_SUBDIR)/tcl && \
17633 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17634
a90ef4bf
JM
17635@endif tcl
17636
17637.PHONY: install-tcl maybe-install-tcl
17638maybe-install-tcl:
17639@if tcl
17640maybe-install-tcl: install-tcl
17641
17642install-tcl: installdirs
17643 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17644 @r=`${PWD_COMMAND}`; export r; \
17645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17646 $(HOST_EXPORTS) \
a90ef4bf
JM
17647 (cd $(HOST_SUBDIR)/tcl && \
17648 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17649
a90ef4bf
JM
17650@endif tcl
17651
17652.PHONY: install-strip-tcl maybe-install-strip-tcl
17653maybe-install-strip-tcl:
17654@if tcl
17655maybe-install-strip-tcl: install-strip-tcl
17656
17657install-strip-tcl: installdirs
17658 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17659 @r=`${PWD_COMMAND}`; export r; \
17660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17661 $(HOST_EXPORTS) \
a90ef4bf
JM
17662 (cd $(HOST_SUBDIR)/tcl && \
17663 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17664
a90ef4bf 17665@endif tcl
e8a5fa9c 17666
a90ef4bf 17667# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17668
a90ef4bf
JM
17669.PHONY: maybe-info-tcl info-tcl
17670maybe-info-tcl:
17671@if tcl
17672maybe-info-tcl: info-tcl
e8a5fa9c 17673
a90ef4bf
JM
17674info-tcl: \
17675 configure-tcl
17676 @: $(MAKE); $(unstage)
17677 @[ -f ./tcl/Makefile ] || exit 0; \
17678 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17680 $(HOST_EXPORTS) \
17681 for flag in $(EXTRA_HOST_FLAGS) ; do \
17682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17683 done; \
22121df0 17684 echo "Doing info in tcl"; \
a90ef4bf
JM
17685 (cd $(HOST_SUBDIR)/tcl && \
17686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17688 "RANLIB=$${RANLIB}" \
17689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17690 info) \
17691 || exit 1
e8a5fa9c 17692
a90ef4bf 17693@endif tcl
e8a5fa9c 17694
a90ef4bf
JM
17695.PHONY: maybe-dvi-tcl dvi-tcl
17696maybe-dvi-tcl:
17697@if tcl
17698maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17699
a90ef4bf
JM
17700dvi-tcl: \
17701 configure-tcl
17702 @: $(MAKE); $(unstage)
17703 @[ -f ./tcl/Makefile ] || exit 0; \
17704 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17706 $(HOST_EXPORTS) \
17707 for flag in $(EXTRA_HOST_FLAGS) ; do \
17708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17709 done; \
22121df0 17710 echo "Doing dvi in tcl"; \
a90ef4bf
JM
17711 (cd $(HOST_SUBDIR)/tcl && \
17712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17714 "RANLIB=$${RANLIB}" \
17715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17716 dvi) \
17717 || exit 1
e8a5fa9c 17718
a90ef4bf 17719@endif tcl
e8a5fa9c 17720
a90ef4bf
JM
17721.PHONY: maybe-pdf-tcl pdf-tcl
17722maybe-pdf-tcl:
17723@if tcl
17724maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17725
a90ef4bf
JM
17726pdf-tcl: \
17727 configure-tcl
17728 @: $(MAKE); $(unstage)
17729 @[ -f ./tcl/Makefile ] || exit 0; \
17730 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17732 $(HOST_EXPORTS) \
a90ef4bf
JM
17733 for flag in $(EXTRA_HOST_FLAGS) ; do \
17734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17735 done; \
22121df0 17736 echo "Doing pdf in tcl"; \
a90ef4bf
JM
17737 (cd $(HOST_SUBDIR)/tcl && \
17738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17740 "RANLIB=$${RANLIB}" \
17741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17742 pdf) \
17743 || exit 1
e8a5fa9c 17744
a90ef4bf 17745@endif tcl
e8a5fa9c 17746
a90ef4bf
JM
17747.PHONY: maybe-html-tcl html-tcl
17748maybe-html-tcl:
17749@if tcl
17750maybe-html-tcl: html-tcl
e8a5fa9c 17751
a90ef4bf
JM
17752html-tcl: \
17753 configure-tcl
17754 @: $(MAKE); $(unstage)
17755 @[ -f ./tcl/Makefile ] || exit 0; \
17756 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17758 $(HOST_EXPORTS) \
a90ef4bf
JM
17759 for flag in $(EXTRA_HOST_FLAGS) ; do \
17760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17761 done; \
22121df0 17762 echo "Doing html in tcl"; \
a90ef4bf
JM
17763 (cd $(HOST_SUBDIR)/tcl && \
17764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17766 "RANLIB=$${RANLIB}" \
17767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17768 html) \
17769 || exit 1
e8a5fa9c 17770
a90ef4bf 17771@endif tcl
e8a5fa9c 17772
a90ef4bf
JM
17773.PHONY: maybe-TAGS-tcl TAGS-tcl
17774maybe-TAGS-tcl:
17775@if tcl
17776maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17777
a90ef4bf
JM
17778TAGS-tcl: \
17779 configure-tcl
17780 @: $(MAKE); $(unstage)
17781 @[ -f ./tcl/Makefile ] || exit 0; \
17782 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17784 $(HOST_EXPORTS) \
a90ef4bf
JM
17785 for flag in $(EXTRA_HOST_FLAGS) ; do \
17786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17787 done; \
22121df0 17788 echo "Doing TAGS in tcl"; \
a90ef4bf
JM
17789 (cd $(HOST_SUBDIR)/tcl && \
17790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17792 "RANLIB=$${RANLIB}" \
17793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17794 TAGS) \
17795 || exit 1
e8a5fa9c 17796
a90ef4bf 17797@endif tcl
e8a5fa9c 17798
a90ef4bf
JM
17799.PHONY: maybe-install-info-tcl install-info-tcl
17800maybe-install-info-tcl:
17801@if tcl
17802maybe-install-info-tcl: install-info-tcl
e8a5fa9c 17803
a90ef4bf
JM
17804install-info-tcl: \
17805 configure-tcl \
17806 info-tcl
e8a5fa9c 17807 @: $(MAKE); $(unstage)
a90ef4bf 17808 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17809 r=`${PWD_COMMAND}`; export r; \
17810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17811 $(HOST_EXPORTS) \
17812 for flag in $(EXTRA_HOST_FLAGS) ; do \
17813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17814 done; \
22121df0 17815 echo "Doing install-info in tcl"; \
a90ef4bf 17816 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17819 "RANLIB=$${RANLIB}" \
17820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17821 install-info) \
e8a5fa9c
RW
17822 || exit 1
17823
a90ef4bf 17824@endif tcl
e8a5fa9c 17825
a90ef4bf
JM
17826.PHONY: maybe-install-pdf-tcl install-pdf-tcl
17827maybe-install-pdf-tcl:
17828@if tcl
17829maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 17830
a90ef4bf
JM
17831install-pdf-tcl: \
17832 configure-tcl \
17833 pdf-tcl
17834 @: $(MAKE); $(unstage)
17835 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17836 r=`${PWD_COMMAND}`; export r; \
17837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17838 $(HOST_EXPORTS) \
17839 for flag in $(EXTRA_HOST_FLAGS) ; do \
17840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17841 done; \
22121df0 17842 echo "Doing install-pdf in tcl"; \
a90ef4bf 17843 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17846 "RANLIB=$${RANLIB}" \
17847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17848 install-pdf) \
e8a5fa9c
RW
17849 || exit 1
17850
a90ef4bf 17851@endif tcl
e8a5fa9c 17852
a90ef4bf
JM
17853.PHONY: maybe-install-html-tcl install-html-tcl
17854maybe-install-html-tcl:
17855@if tcl
17856maybe-install-html-tcl: install-html-tcl
e8a5fa9c 17857
a90ef4bf
JM
17858install-html-tcl: \
17859 configure-tcl \
17860 html-tcl
17861 @: $(MAKE); $(unstage)
17862 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17863 r=`${PWD_COMMAND}`; export r; \
17864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17865 $(HOST_EXPORTS) \
17866 for flag in $(EXTRA_HOST_FLAGS) ; do \
17867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17868 done; \
22121df0 17869 echo "Doing install-html in tcl"; \
a90ef4bf 17870 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17873 "RANLIB=$${RANLIB}" \
17874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17875 install-html) \
e8a5fa9c
RW
17876 || exit 1
17877
a90ef4bf 17878@endif tcl
e8a5fa9c 17879
a90ef4bf
JM
17880.PHONY: maybe-installcheck-tcl installcheck-tcl
17881maybe-installcheck-tcl:
17882@if tcl
17883maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 17884
a90ef4bf
JM
17885installcheck-tcl: \
17886 configure-tcl
17887 @: $(MAKE); $(unstage)
17888 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17889 r=`${PWD_COMMAND}`; export r; \
17890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17891 $(HOST_EXPORTS) \
17892 for flag in $(EXTRA_HOST_FLAGS) ; do \
17893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17894 done; \
22121df0 17895 echo "Doing installcheck in tcl"; \
a90ef4bf 17896 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17899 "RANLIB=$${RANLIB}" \
17900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17901 installcheck) \
e8a5fa9c
RW
17902 || exit 1
17903
a90ef4bf 17904@endif tcl
e8a5fa9c 17905
a90ef4bf
JM
17906.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
17907maybe-mostlyclean-tcl:
17908@if tcl
17909maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 17910
a90ef4bf
JM
17911# tcl doesn't support mostlyclean.
17912mostlyclean-tcl:
17913
17914@endif tcl
17915
17916.PHONY: maybe-clean-tcl clean-tcl
17917maybe-clean-tcl:
17918@if tcl
17919maybe-clean-tcl: clean-tcl
17920
17921clean-tcl:
17922 @: $(MAKE); $(unstage)
17923 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17924 r=`${PWD_COMMAND}`; export r; \
17925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17926 $(HOST_EXPORTS) \
17927 for flag in $(EXTRA_HOST_FLAGS) ; do \
17928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17929 done; \
22121df0 17930 echo "Doing clean in tcl"; \
a90ef4bf 17931 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17934 "RANLIB=$${RANLIB}" \
17935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17936 clean) \
e8a5fa9c
RW
17937 || exit 1
17938
a90ef4bf 17939@endif tcl
e8a5fa9c 17940
a90ef4bf
JM
17941.PHONY: maybe-distclean-tcl distclean-tcl
17942maybe-distclean-tcl:
17943@if tcl
17944maybe-distclean-tcl: distclean-tcl
e8a5fa9c 17945
a90ef4bf
JM
17946distclean-tcl:
17947 @: $(MAKE); $(unstage)
17948 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17949 r=`${PWD_COMMAND}`; export r; \
17950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17951 $(HOST_EXPORTS) \
17952 for flag in $(EXTRA_HOST_FLAGS) ; do \
17953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17954 done; \
22121df0 17955 echo "Doing distclean in tcl"; \
a90ef4bf 17956 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17959 "RANLIB=$${RANLIB}" \
17960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17961 distclean) \
e8a5fa9c
RW
17962 || exit 1
17963
a90ef4bf 17964@endif tcl
e8a5fa9c 17965
a90ef4bf
JM
17966.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
17967maybe-maintainer-clean-tcl:
17968@if tcl
17969maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 17970
a90ef4bf
JM
17971maintainer-clean-tcl:
17972 @: $(MAKE); $(unstage)
17973 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17974 r=`${PWD_COMMAND}`; export r; \
17975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17976 $(HOST_EXPORTS) \
17977 for flag in $(EXTRA_HOST_FLAGS) ; do \
17978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17979 done; \
22121df0 17980 echo "Doing maintainer-clean in tcl"; \
a90ef4bf 17981 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17984 "RANLIB=$${RANLIB}" \
17985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17986 maintainer-clean) \
e8a5fa9c
RW
17987 || exit 1
17988
a90ef4bf 17989@endif tcl
e8a5fa9c 17990
e8a5fa9c 17991
a90ef4bf
JM
17992
17993.PHONY: configure-itcl maybe-configure-itcl
17994maybe-configure-itcl:
17995@if gcc-bootstrap
17996configure-itcl: stage_current
17997@endif gcc-bootstrap
17998@if itcl
17999maybe-configure-itcl: configure-itcl
18000configure-itcl:
18001 @: $(MAKE); $(unstage)
18002 @r=`${PWD_COMMAND}`; export r; \
18003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18004 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
22121df0 18005 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl; \
a90ef4bf
JM
18006 $(HOST_EXPORTS) \
18007 echo Configuring in $(HOST_SUBDIR)/itcl; \
18008 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18009 case $(srcdir) in \
18010 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18011 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18012 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18013 esac; \
1b6c0831
L
18014 module_srcdir=itcl; \
18015 $(SHELL) \
18016 $$s/$$module_srcdir/configure \
18017 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18018 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18019 --target=${target_alias} \
a90ef4bf
JM
18020 || exit 1
18021@endif itcl
18022
18023
18024
18025
18026
18027.PHONY: all-itcl maybe-all-itcl
18028maybe-all-itcl:
18029@if gcc-bootstrap
18030all-itcl: stage_current
18031@endif gcc-bootstrap
18032@if itcl
18033TARGET-itcl=all
18034maybe-all-itcl: all-itcl
18035all-itcl: configure-itcl
18036 @: $(MAKE); $(unstage)
18037 @r=`${PWD_COMMAND}`; export r; \
18038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18039 $(HOST_EXPORTS) \
18040 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18041 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18042 $(TARGET-itcl))
18043@endif itcl
18044
18045
18046
18047
18048.PHONY: check-itcl maybe-check-itcl
18049maybe-check-itcl:
18050@if itcl
18051maybe-check-itcl: check-itcl
18052
18053check-itcl:
18054 @: $(MAKE); $(unstage)
18055 @r=`${PWD_COMMAND}`; export r; \
18056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18057 $(HOST_EXPORTS) \
a90ef4bf
JM
18058 (cd $(HOST_SUBDIR)/itcl && \
18059 $(MAKE) $(FLAGS_TO_PASS) check)
18060
18061@endif itcl
18062
18063.PHONY: install-itcl maybe-install-itcl
18064maybe-install-itcl:
18065@if itcl
18066maybe-install-itcl: install-itcl
18067
18068install-itcl: installdirs
18069 @: $(MAKE); $(unstage)
18070 @r=`${PWD_COMMAND}`; export r; \
18071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18072 $(HOST_EXPORTS) \
18073 (cd $(HOST_SUBDIR)/itcl && \
18074 $(MAKE) $(FLAGS_TO_PASS) install)
18075
18076@endif itcl
18077
18078.PHONY: install-strip-itcl maybe-install-strip-itcl
18079maybe-install-strip-itcl:
18080@if itcl
18081maybe-install-strip-itcl: install-strip-itcl
18082
18083install-strip-itcl: installdirs
18084 @: $(MAKE); $(unstage)
18085 @r=`${PWD_COMMAND}`; export r; \
18086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18087 $(HOST_EXPORTS) \
18088 (cd $(HOST_SUBDIR)/itcl && \
18089 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18090
18091@endif itcl
18092
18093# Other targets (info, dvi, pdf, etc.)
18094
18095.PHONY: maybe-info-itcl info-itcl
18096maybe-info-itcl:
18097@if itcl
18098maybe-info-itcl: info-itcl
18099
18100info-itcl: \
18101 configure-itcl
18102 @: $(MAKE); $(unstage)
18103 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18104 r=`${PWD_COMMAND}`; export r; \
18105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18106 $(HOST_EXPORTS) \
18107 for flag in $(EXTRA_HOST_FLAGS) ; do \
18108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18109 done; \
22121df0 18110 echo "Doing info in itcl"; \
a90ef4bf 18111 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18114 "RANLIB=$${RANLIB}" \
18115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18116 info) \
e8a5fa9c
RW
18117 || exit 1
18118
a90ef4bf 18119@endif itcl
e8a5fa9c 18120
a90ef4bf
JM
18121.PHONY: maybe-dvi-itcl dvi-itcl
18122maybe-dvi-itcl:
18123@if itcl
18124maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18125
a90ef4bf
JM
18126dvi-itcl: \
18127 configure-itcl
18128 @: $(MAKE); $(unstage)
18129 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18130 r=`${PWD_COMMAND}`; export r; \
18131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18132 $(HOST_EXPORTS) \
18133 for flag in $(EXTRA_HOST_FLAGS) ; do \
18134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18135 done; \
22121df0 18136 echo "Doing dvi in itcl"; \
a90ef4bf 18137 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18140 "RANLIB=$${RANLIB}" \
18141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18142 dvi) \
e8a5fa9c
RW
18143 || exit 1
18144
a90ef4bf 18145@endif itcl
e8a5fa9c 18146
a90ef4bf
JM
18147.PHONY: maybe-pdf-itcl pdf-itcl
18148maybe-pdf-itcl:
18149@if itcl
18150maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18151
a90ef4bf
JM
18152pdf-itcl: \
18153 configure-itcl
18154 @: $(MAKE); $(unstage)
18155 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18156 r=`${PWD_COMMAND}`; export r; \
18157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18158 $(HOST_EXPORTS) \
18159 for flag in $(EXTRA_HOST_FLAGS) ; do \
18160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18161 done; \
22121df0 18162 echo "Doing pdf in itcl"; \
a90ef4bf 18163 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18166 "RANLIB=$${RANLIB}" \
18167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18168 pdf) \
e8a5fa9c
RW
18169 || exit 1
18170
a90ef4bf 18171@endif itcl
e8a5fa9c 18172
a90ef4bf
JM
18173.PHONY: maybe-html-itcl html-itcl
18174maybe-html-itcl:
18175@if itcl
18176maybe-html-itcl: html-itcl
e8a5fa9c 18177
a90ef4bf
JM
18178html-itcl: \
18179 configure-itcl
18180 @: $(MAKE); $(unstage)
18181 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18182 r=`${PWD_COMMAND}`; export r; \
18183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18184 $(HOST_EXPORTS) \
18185 for flag in $(EXTRA_HOST_FLAGS) ; do \
18186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18187 done; \
22121df0 18188 echo "Doing html in itcl"; \
a90ef4bf 18189 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18192 "RANLIB=$${RANLIB}" \
18193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18194 html) \
e8a5fa9c
RW
18195 || exit 1
18196
a90ef4bf 18197@endif itcl
e8a5fa9c 18198
a90ef4bf
JM
18199.PHONY: maybe-TAGS-itcl TAGS-itcl
18200maybe-TAGS-itcl:
18201@if itcl
18202maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18203
a90ef4bf
JM
18204TAGS-itcl: \
18205 configure-itcl
18206 @: $(MAKE); $(unstage)
18207 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18208 r=`${PWD_COMMAND}`; export r; \
18209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18210 $(HOST_EXPORTS) \
18211 for flag in $(EXTRA_HOST_FLAGS) ; do \
18212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18213 done; \
22121df0 18214 echo "Doing TAGS in itcl"; \
a90ef4bf
JM
18215 (cd $(HOST_SUBDIR)/itcl && \
18216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18218 "RANLIB=$${RANLIB}" \
18219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18220 TAGS) \
18221 || exit 1
18222
18223@endif itcl
18224
18225.PHONY: maybe-install-info-itcl install-info-itcl
18226maybe-install-info-itcl:
18227@if itcl
18228maybe-install-info-itcl: install-info-itcl
18229
18230install-info-itcl: \
18231 configure-itcl \
18232 info-itcl
18233 @: $(MAKE); $(unstage)
18234 @[ -f ./itcl/Makefile ] || exit 0; \
18235 r=`${PWD_COMMAND}`; export r; \
18236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18237 $(HOST_EXPORTS) \
18238 for flag in $(EXTRA_HOST_FLAGS) ; do \
18239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18240 done; \
22121df0 18241 echo "Doing install-info in itcl"; \
a90ef4bf
JM
18242 (cd $(HOST_SUBDIR)/itcl && \
18243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18245 "RANLIB=$${RANLIB}" \
18246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18247 install-info) \
18248 || exit 1
18249
18250@endif itcl
18251
18252.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18253maybe-install-pdf-itcl:
18254@if itcl
18255maybe-install-pdf-itcl: install-pdf-itcl
18256
18257install-pdf-itcl: \
18258 configure-itcl \
18259 pdf-itcl
18260 @: $(MAKE); $(unstage)
18261 @[ -f ./itcl/Makefile ] || exit 0; \
18262 r=`${PWD_COMMAND}`; export r; \
18263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18264 $(HOST_EXPORTS) \
18265 for flag in $(EXTRA_HOST_FLAGS) ; do \
18266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18267 done; \
22121df0 18268 echo "Doing install-pdf in itcl"; \
a90ef4bf
JM
18269 (cd $(HOST_SUBDIR)/itcl && \
18270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18272 "RANLIB=$${RANLIB}" \
18273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18274 install-pdf) \
18275 || exit 1
18276
18277@endif itcl
18278
18279.PHONY: maybe-install-html-itcl install-html-itcl
18280maybe-install-html-itcl:
18281@if itcl
18282maybe-install-html-itcl: install-html-itcl
18283
18284install-html-itcl: \
18285 configure-itcl \
18286 html-itcl
18287 @: $(MAKE); $(unstage)
18288 @[ -f ./itcl/Makefile ] || exit 0; \
18289 r=`${PWD_COMMAND}`; export r; \
18290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18291 $(HOST_EXPORTS) \
18292 for flag in $(EXTRA_HOST_FLAGS) ; do \
18293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18294 done; \
22121df0 18295 echo "Doing install-html in itcl"; \
a90ef4bf
JM
18296 (cd $(HOST_SUBDIR)/itcl && \
18297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18299 "RANLIB=$${RANLIB}" \
18300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18301 install-html) \
18302 || exit 1
18303
18304@endif itcl
18305
18306.PHONY: maybe-installcheck-itcl installcheck-itcl
18307maybe-installcheck-itcl:
18308@if itcl
18309maybe-installcheck-itcl: installcheck-itcl
18310
18311installcheck-itcl: \
18312 configure-itcl
18313 @: $(MAKE); $(unstage)
18314 @[ -f ./itcl/Makefile ] || exit 0; \
18315 r=`${PWD_COMMAND}`; export r; \
18316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18317 $(HOST_EXPORTS) \
18318 for flag in $(EXTRA_HOST_FLAGS) ; do \
18319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18320 done; \
22121df0 18321 echo "Doing installcheck in itcl"; \
a90ef4bf
JM
18322 (cd $(HOST_SUBDIR)/itcl && \
18323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18325 "RANLIB=$${RANLIB}" \
18326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18327 installcheck) \
18328 || exit 1
18329
18330@endif itcl
18331
18332.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18333maybe-mostlyclean-itcl:
18334@if itcl
18335maybe-mostlyclean-itcl: mostlyclean-itcl
18336
18337mostlyclean-itcl:
18338 @: $(MAKE); $(unstage)
18339 @[ -f ./itcl/Makefile ] || exit 0; \
18340 r=`${PWD_COMMAND}`; export r; \
18341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18342 $(HOST_EXPORTS) \
18343 for flag in $(EXTRA_HOST_FLAGS) ; do \
18344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18345 done; \
22121df0 18346 echo "Doing mostlyclean in itcl"; \
a90ef4bf
JM
18347 (cd $(HOST_SUBDIR)/itcl && \
18348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18350 "RANLIB=$${RANLIB}" \
18351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18352 mostlyclean) \
18353 || exit 1
18354
18355@endif itcl
18356
18357.PHONY: maybe-clean-itcl clean-itcl
18358maybe-clean-itcl:
18359@if itcl
18360maybe-clean-itcl: clean-itcl
18361
18362clean-itcl:
18363 @: $(MAKE); $(unstage)
18364 @[ -f ./itcl/Makefile ] || exit 0; \
18365 r=`${PWD_COMMAND}`; export r; \
18366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18367 $(HOST_EXPORTS) \
18368 for flag in $(EXTRA_HOST_FLAGS) ; do \
18369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18370 done; \
22121df0 18371 echo "Doing clean in itcl"; \
a90ef4bf
JM
18372 (cd $(HOST_SUBDIR)/itcl && \
18373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18375 "RANLIB=$${RANLIB}" \
18376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18377 clean) \
18378 || exit 1
18379
18380@endif itcl
18381
18382.PHONY: maybe-distclean-itcl distclean-itcl
18383maybe-distclean-itcl:
18384@if itcl
18385maybe-distclean-itcl: distclean-itcl
18386
18387distclean-itcl:
18388 @: $(MAKE); $(unstage)
18389 @[ -f ./itcl/Makefile ] || exit 0; \
18390 r=`${PWD_COMMAND}`; export r; \
18391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18392 $(HOST_EXPORTS) \
18393 for flag in $(EXTRA_HOST_FLAGS) ; do \
18394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18395 done; \
22121df0 18396 echo "Doing distclean in itcl"; \
a90ef4bf 18397 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18400 "RANLIB=$${RANLIB}" \
18401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18402 distclean) \
18403 || exit 1
18404
a90ef4bf 18405@endif itcl
e8a5fa9c 18406
a90ef4bf
JM
18407.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18408maybe-maintainer-clean-itcl:
18409@if itcl
18410maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18411
a90ef4bf
JM
18412maintainer-clean-itcl:
18413 @: $(MAKE); $(unstage)
18414 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18415 r=`${PWD_COMMAND}`; export r; \
18416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18417 $(HOST_EXPORTS) \
18418 for flag in $(EXTRA_HOST_FLAGS) ; do \
18419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18420 done; \
22121df0 18421 echo "Doing maintainer-clean in itcl"; \
a90ef4bf 18422 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18425 "RANLIB=$${RANLIB}" \
18426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18427 maintainer-clean) \
18428 || exit 1
18429
a90ef4bf 18430@endif itcl
e8a5fa9c
RW
18431
18432
18433
a90ef4bf
JM
18434.PHONY: configure-ld maybe-configure-ld
18435maybe-configure-ld:
e28c595f 18436@if gcc-bootstrap
a90ef4bf 18437configure-ld: stage_current
e28c595f 18438@endif gcc-bootstrap
a90ef4bf
JM
18439@if ld
18440maybe-configure-ld: configure-ld
18441configure-ld:
e28c595f
JM
18442 @r=`${PWD_COMMAND}`; export r; \
18443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18444 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
22121df0 18445 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
1f53ca9a 18446 $(HOST_EXPORTS) \
a90ef4bf
JM
18447 echo Configuring in $(HOST_SUBDIR)/ld; \
18448 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18449 case $(srcdir) in \
18450 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18451 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18452 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18453 esac; \
1b6c0831
L
18454 module_srcdir=ld; \
18455 $(SHELL) \
18456 $$s/$$module_srcdir/configure \
18457 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18458 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18459 --target=${target_alias} \
e28c595f 18460 || exit 1
a90ef4bf 18461@endif ld
e28c595f
JM
18462
18463
18464
a90ef4bf
JM
18465.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18466maybe-configure-stage1-ld:
18467@if ld-bootstrap
18468maybe-configure-stage1-ld: configure-stage1-ld
18469configure-stage1-ld:
e28c595f 18470 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18471 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18472 @r=`${PWD_COMMAND}`; export r; \
18473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18474 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18475 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18476 $(HOST_EXPORTS) \
e28c595f 18477 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18478 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18479 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
18480 echo Configuring stage 1 in $(HOST_SUBDIR)/ld; \
18481 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18482 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18483 case $(srcdir) in \
18484 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18485 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18486 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18487 esac; \
1b6c0831
L
18488 module_srcdir=ld; \
18489 $(SHELL) $$s/$$module_srcdir/configure \
18490 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18491 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18492 --target=${target_alias} \
18493 \
a90ef4bf
JM
18494 $(STAGE1_CONFIGURE_FLAGS)
18495@endif ld-bootstrap
e28c595f 18496
a90ef4bf
JM
18497.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18498maybe-configure-stage2-ld:
18499@if ld-bootstrap
18500maybe-configure-stage2-ld: configure-stage2-ld
18501configure-stage2-ld:
e28c595f 18502 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18503 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18504 @r=`${PWD_COMMAND}`; export r; \
18505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18506 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18507 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18508 $(HOST_EXPORTS) \
1b05fbbd 18509 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18510 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18511 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18512 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18513 echo Configuring stage 2 in $(HOST_SUBDIR)/ld; \
18514 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18515 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18516 case $(srcdir) in \
18517 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18518 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18519 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18520 esac; \
1b6c0831
L
18521 module_srcdir=ld; \
18522 $(SHELL) $$s/$$module_srcdir/configure \
18523 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18524 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18525 --target=${target_alias} \
22121df0 18526 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18527 $(STAGE2_CONFIGURE_FLAGS)
18528@endif ld-bootstrap
e28c595f 18529
a90ef4bf
JM
18530.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18531maybe-configure-stage3-ld:
18532@if ld-bootstrap
18533maybe-configure-stage3-ld: configure-stage3-ld
18534configure-stage3-ld:
e28c595f 18535 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18536 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18537 @r=`${PWD_COMMAND}`; export r; \
18538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18539 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18540 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18541 $(HOST_EXPORTS) \
1b05fbbd 18542 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18543 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18544 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18545 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18546 echo Configuring stage 3 in $(HOST_SUBDIR)/ld; \
18547 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18548 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18549 case $(srcdir) in \
18550 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18551 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18552 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18553 esac; \
1b6c0831
L
18554 module_srcdir=ld; \
18555 $(SHELL) $$s/$$module_srcdir/configure \
18556 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18557 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18558 --target=${target_alias} \
22121df0 18559 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18560 $(STAGE3_CONFIGURE_FLAGS)
18561@endif ld-bootstrap
e28c595f 18562
a90ef4bf
JM
18563.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18564maybe-configure-stage4-ld:
18565@if ld-bootstrap
18566maybe-configure-stage4-ld: configure-stage4-ld
18567configure-stage4-ld:
e28c595f 18568 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-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="$(STAGE4_TFLAGS)"; \
a90ef4bf 18573 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18574 $(HOST_EXPORTS) \
1b05fbbd 18575 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18576 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18577 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18578 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18579 echo Configuring stage 4 in $(HOST_SUBDIR)/ld; \
18580 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18581 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18582 case $(srcdir) in \
18583 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18584 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18585 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18586 esac; \
1b6c0831
L
18587 module_srcdir=ld; \
18588 $(SHELL) $$s/$$module_srcdir/configure \
18589 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18590 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18591 --target=${target_alias} \
22121df0 18592 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18593 $(STAGE4_CONFIGURE_FLAGS)
18594@endif ld-bootstrap
e28c595f 18595
a90ef4bf
JM
18596.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18597maybe-configure-stageprofile-ld:
18598@if ld-bootstrap
18599maybe-configure-stageprofile-ld: configure-stageprofile-ld
18600configure-stageprofile-ld:
e28c595f 18601 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18602 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18603 @r=`${PWD_COMMAND}`; export r; \
18604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18605 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18606 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18607 $(HOST_EXPORTS) \
1b05fbbd
AO
18608 $(POSTSTAGE1_HOST_EXPORTS) \
18609 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18610 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18611 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18612 echo Configuring stage profile in $(HOST_SUBDIR)/ld; \
18613 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18614 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18615 case $(srcdir) in \
18616 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18617 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18618 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18619 esac; \
1b6c0831
L
18620 module_srcdir=ld; \
18621 $(SHELL) $$s/$$module_srcdir/configure \
18622 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18623 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18624 --target=${target_alias} \
22121df0 18625 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18626 $(STAGEprofile_CONFIGURE_FLAGS)
18627@endif ld-bootstrap
e28c595f 18628
a90ef4bf
JM
18629.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18630maybe-configure-stagefeedback-ld:
18631@if ld-bootstrap
18632maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18633configure-stagefeedback-ld:
e28c595f 18634 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18635 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18636 @r=`${PWD_COMMAND}`; export r; \
18637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18638 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18639 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18640 $(HOST_EXPORTS) \
1b05fbbd
AO
18641 $(POSTSTAGE1_HOST_EXPORTS) \
18642 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18643 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18644 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18645 echo Configuring stage feedback in $(HOST_SUBDIR)/ld; \
18646 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18647 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18648 case $(srcdir) in \
18649 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18650 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18651 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18652 esac; \
1b6c0831
L
18653 module_srcdir=ld; \
18654 $(SHELL) $$s/$$module_srcdir/configure \
18655 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18656 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18657 --target=${target_alias} \
22121df0 18658 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18659 $(STAGEfeedback_CONFIGURE_FLAGS)
18660@endif ld-bootstrap
e28c595f
JM
18661
18662
18663
18664
18665
a90ef4bf
JM
18666.PHONY: all-ld maybe-all-ld
18667maybe-all-ld:
e28c595f 18668@if gcc-bootstrap
a90ef4bf 18669all-ld: stage_current
e28c595f 18670@endif gcc-bootstrap
a90ef4bf
JM
18671@if ld
18672TARGET-ld=all
18673maybe-all-ld: all-ld
18674all-ld: configure-ld
e28c595f
JM
18675 @r=`${PWD_COMMAND}`; export r; \
18676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18677 $(HOST_EXPORTS) \
a90ef4bf 18678 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18679 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18680 $(TARGET-ld))
18681@endif ld
e28c595f
JM
18682
18683
18684
a90ef4bf
JM
18685.PHONY: all-stage1-ld maybe-all-stage1-ld
18686.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18687maybe-all-stage1-ld:
18688maybe-clean-stage1-ld:
18689@if ld-bootstrap
18690maybe-all-stage1-ld: all-stage1-ld
18691all-stage1: all-stage1-ld
18692TARGET-stage1-ld = $(TARGET-ld)
18693all-stage1-ld: configure-stage1-ld
e28c595f
JM
18694 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18695 @r=`${PWD_COMMAND}`; export r; \
18696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18697 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18698 $(HOST_EXPORTS) \
a90ef4bf 18699 cd $(HOST_SUBDIR)/ld && \
e28c595f 18700 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18701 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18702 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18703 LIBCFLAGS="$(LIBCFLAGS)" \
18704 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18705 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18706 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18707 $(EXTRA_HOST_FLAGS) \
18708 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 18709 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18710 $(TARGET-stage1-ld)
e28c595f 18711
a90ef4bf
JM
18712maybe-clean-stage1-ld: clean-stage1-ld
18713clean-stage1: clean-stage1-ld
18714clean-stage1-ld:
e28c595f 18715 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18716 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18717 else \
a90ef4bf 18718 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18719 $(MAKE) stage1-start; \
18720 fi; \
a90ef4bf 18721 cd $(HOST_SUBDIR)/ld && \
e28c595f 18722 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18723 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18724@endif ld-bootstrap
e28c595f
JM
18725
18726
a90ef4bf
JM
18727.PHONY: all-stage2-ld maybe-all-stage2-ld
18728.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18729maybe-all-stage2-ld:
18730maybe-clean-stage2-ld:
18731@if ld-bootstrap
18732maybe-all-stage2-ld: all-stage2-ld
18733all-stage2: all-stage2-ld
18734TARGET-stage2-ld = $(TARGET-ld)
18735all-stage2-ld: configure-stage2-ld
e28c595f
JM
18736 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18737 @r=`${PWD_COMMAND}`; export r; \
18738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18739 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18740 $(HOST_EXPORTS) \
1f53ca9a 18741 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18742 cd $(HOST_SUBDIR)/ld && \
e28c595f 18743 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18744 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18745 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18746 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18747 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18748 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18749 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18750 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18751 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18752 $(TARGET-stage2-ld)
e28c595f 18753
a90ef4bf
JM
18754maybe-clean-stage2-ld: clean-stage2-ld
18755clean-stage2: clean-stage2-ld
18756clean-stage2-ld:
e28c595f 18757 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18758 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18759 else \
a90ef4bf 18760 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18761 $(MAKE) stage2-start; \
18762 fi; \
a90ef4bf 18763 cd $(HOST_SUBDIR)/ld && \
b3676d82 18764 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18765@endif ld-bootstrap
e28c595f
JM
18766
18767
a90ef4bf
JM
18768.PHONY: all-stage3-ld maybe-all-stage3-ld
18769.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18770maybe-all-stage3-ld:
18771maybe-clean-stage3-ld:
18772@if ld-bootstrap
18773maybe-all-stage3-ld: all-stage3-ld
18774all-stage3: all-stage3-ld
18775TARGET-stage3-ld = $(TARGET-ld)
18776all-stage3-ld: configure-stage3-ld
e28c595f
JM
18777 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18778 @r=`${PWD_COMMAND}`; export r; \
18779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18780 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18781 $(HOST_EXPORTS) \
1f53ca9a 18782 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18783 cd $(HOST_SUBDIR)/ld && \
e28c595f 18784 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18785 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18786 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18787 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18788 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18789 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18790 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18791 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18792 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18793 $(TARGET-stage3-ld)
e28c595f 18794
a90ef4bf
JM
18795maybe-clean-stage3-ld: clean-stage3-ld
18796clean-stage3: clean-stage3-ld
18797clean-stage3-ld:
e28c595f 18798 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 18799 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18800 else \
a90ef4bf 18801 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
18802 $(MAKE) stage3-start; \
18803 fi; \
a90ef4bf 18804 cd $(HOST_SUBDIR)/ld && \
b3676d82 18805 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18806@endif ld-bootstrap
e28c595f
JM
18807
18808
a90ef4bf
JM
18809.PHONY: all-stage4-ld maybe-all-stage4-ld
18810.PHONY: clean-stage4-ld maybe-clean-stage4-ld
18811maybe-all-stage4-ld:
18812maybe-clean-stage4-ld:
18813@if ld-bootstrap
18814maybe-all-stage4-ld: all-stage4-ld
18815all-stage4: all-stage4-ld
18816TARGET-stage4-ld = $(TARGET-ld)
18817all-stage4-ld: configure-stage4-ld
e28c595f
JM
18818 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18819 @r=`${PWD_COMMAND}`; export r; \
18820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18821 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 18822 $(HOST_EXPORTS) \
1f53ca9a 18823 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18824 cd $(HOST_SUBDIR)/ld && \
e28c595f 18825 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18826 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 18827 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 18828 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
18829 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18830 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18831 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18832 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18833 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 18834 $(TARGET-stage4-ld)
e28c595f 18835
a90ef4bf
JM
18836maybe-clean-stage4-ld: clean-stage4-ld
18837clean-stage4: clean-stage4-ld
18838clean-stage4-ld:
e28c595f 18839 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 18840 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18841 else \
a90ef4bf 18842 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
18843 $(MAKE) stage4-start; \
18844 fi; \
a90ef4bf 18845 cd $(HOST_SUBDIR)/ld && \
b3676d82 18846 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18847@endif ld-bootstrap
e28c595f
JM
18848
18849
a90ef4bf
JM
18850.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
18851.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
18852maybe-all-stageprofile-ld:
18853maybe-clean-stageprofile-ld:
18854@if ld-bootstrap
18855maybe-all-stageprofile-ld: all-stageprofile-ld
18856all-stageprofile: all-stageprofile-ld
18857TARGET-stageprofile-ld = $(TARGET-ld)
18858all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
18859 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18860 @r=`${PWD_COMMAND}`; export r; \
18861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18862 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 18863 $(HOST_EXPORTS) \
1f53ca9a 18864 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18865 cd $(HOST_SUBDIR)/ld && \
e28c595f 18866 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18867 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 18868 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
18869 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
18870 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18871 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18872 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18873 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18874 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 18875 $(TARGET-stageprofile-ld)
e28c595f 18876
a90ef4bf
JM
18877maybe-clean-stageprofile-ld: clean-stageprofile-ld
18878clean-stageprofile: clean-stageprofile-ld
18879clean-stageprofile-ld:
e28c595f 18880 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 18881 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18882 else \
a90ef4bf 18883 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
18884 $(MAKE) stageprofile-start; \
18885 fi; \
a90ef4bf 18886 cd $(HOST_SUBDIR)/ld && \
b3676d82 18887 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18888@endif ld-bootstrap
e28c595f
JM
18889
18890
a90ef4bf
JM
18891.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
18892.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
18893maybe-all-stagefeedback-ld:
18894maybe-clean-stagefeedback-ld:
18895@if ld-bootstrap
18896maybe-all-stagefeedback-ld: all-stagefeedback-ld
18897all-stagefeedback: all-stagefeedback-ld
18898TARGET-stagefeedback-ld = $(TARGET-ld)
18899all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
18900 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
18901 @r=`${PWD_COMMAND}`; export r; \
18902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18903 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 18904 $(HOST_EXPORTS) \
1f53ca9a 18905 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18906 cd $(HOST_SUBDIR)/ld && \
e28c595f 18907 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18908 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 18909 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
18910 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
18911 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18912 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18913 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18914 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18915 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 18916 $(TARGET-stagefeedback-ld)
e28c595f 18917
a90ef4bf
JM
18918maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
18919clean-stagefeedback: clean-stagefeedback-ld
18920clean-stagefeedback-ld:
e28c595f 18921 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 18922 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18923 else \
a90ef4bf 18924 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
18925 $(MAKE) stagefeedback-start; \
18926 fi; \
a90ef4bf 18927 cd $(HOST_SUBDIR)/ld && \
b3676d82 18928 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18929@endif ld-bootstrap
e28c595f
JM
18930
18931
18932
18933
18934
a90ef4bf
JM
18935.PHONY: check-ld maybe-check-ld
18936maybe-check-ld:
18937@if ld
18938maybe-check-ld: check-ld
e28c595f 18939
a90ef4bf 18940check-ld:
e28c595f
JM
18941 @: $(MAKE); $(unstage)
18942 @r=`${PWD_COMMAND}`; export r; \
18943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18944 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 18945 (cd $(HOST_SUBDIR)/ld && \
f91ca6bc 18946 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 18947
a90ef4bf 18948@endif ld
e28c595f 18949
a90ef4bf
JM
18950.PHONY: install-ld maybe-install-ld
18951maybe-install-ld:
18952@if ld
18953maybe-install-ld: install-ld
e28c595f 18954
a90ef4bf
JM
18955install-ld: installdirs
18956 @: $(MAKE); $(unstage)
18957 @r=`${PWD_COMMAND}`; export r; \
18958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18959 $(HOST_EXPORTS) \
18960 (cd $(HOST_SUBDIR)/ld && \
18961 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 18962
a90ef4bf 18963@endif ld
e28c595f 18964
a90ef4bf
JM
18965.PHONY: install-strip-ld maybe-install-strip-ld
18966maybe-install-strip-ld:
18967@if ld
18968maybe-install-strip-ld: install-strip-ld
9b980aa1 18969
a90ef4bf
JM
18970install-strip-ld: installdirs
18971 @: $(MAKE); $(unstage)
18972 @r=`${PWD_COMMAND}`; export r; \
18973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18974 $(HOST_EXPORTS) \
18975 (cd $(HOST_SUBDIR)/ld && \
18976 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 18977
a90ef4bf 18978@endif ld
9b980aa1 18979
e28c595f
JM
18980# Other targets (info, dvi, pdf, etc.)
18981
a90ef4bf
JM
18982.PHONY: maybe-info-ld info-ld
18983maybe-info-ld:
18984@if ld
18985maybe-info-ld: info-ld
e28c595f 18986
a90ef4bf
JM
18987info-ld: \
18988 configure-ld
18989 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
18990 r=`${PWD_COMMAND}`; export r; \
18991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18992 $(HOST_EXPORTS) \
18993 for flag in $(EXTRA_HOST_FLAGS) ; do \
18994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18995 done; \
22121df0 18996 echo "Doing info in ld"; \
a90ef4bf 18997 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
18998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19000 "RANLIB=$${RANLIB}" \
19001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19002 info) \
19003 || exit 1
19004
a90ef4bf 19005@endif ld
e28c595f 19006
a90ef4bf
JM
19007.PHONY: maybe-dvi-ld dvi-ld
19008maybe-dvi-ld:
19009@if ld
19010maybe-dvi-ld: dvi-ld
e28c595f 19011
a90ef4bf
JM
19012dvi-ld: \
19013 configure-ld
19014 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19015 r=`${PWD_COMMAND}`; export r; \
19016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19017 $(HOST_EXPORTS) \
19018 for flag in $(EXTRA_HOST_FLAGS) ; do \
19019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19020 done; \
22121df0 19021 echo "Doing dvi in ld"; \
a90ef4bf 19022 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19025 "RANLIB=$${RANLIB}" \
19026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19027 dvi) \
19028 || exit 1
19029
a90ef4bf 19030@endif ld
e28c595f 19031
a90ef4bf
JM
19032.PHONY: maybe-pdf-ld pdf-ld
19033maybe-pdf-ld:
19034@if ld
19035maybe-pdf-ld: pdf-ld
e28c595f 19036
a90ef4bf
JM
19037pdf-ld: \
19038 configure-ld
19039 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19040 r=`${PWD_COMMAND}`; export r; \
19041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19042 $(HOST_EXPORTS) \
19043 for flag in $(EXTRA_HOST_FLAGS) ; do \
19044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19045 done; \
22121df0 19046 echo "Doing pdf in ld"; \
a90ef4bf 19047 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19050 "RANLIB=$${RANLIB}" \
19051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19052 pdf) \
19053 || exit 1
19054
a90ef4bf 19055@endif ld
e28c595f 19056
a90ef4bf
JM
19057.PHONY: maybe-html-ld html-ld
19058maybe-html-ld:
19059@if ld
19060maybe-html-ld: html-ld
e28c595f 19061
a90ef4bf
JM
19062html-ld: \
19063 configure-ld
19064 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19065 r=`${PWD_COMMAND}`; export r; \
19066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19067 $(HOST_EXPORTS) \
19068 for flag in $(EXTRA_HOST_FLAGS) ; do \
19069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19070 done; \
22121df0 19071 echo "Doing html in ld"; \
a90ef4bf 19072 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19075 "RANLIB=$${RANLIB}" \
19076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19077 html) \
19078 || exit 1
19079
a90ef4bf 19080@endif ld
e28c595f 19081
a90ef4bf
JM
19082.PHONY: maybe-TAGS-ld TAGS-ld
19083maybe-TAGS-ld:
19084@if ld
19085maybe-TAGS-ld: TAGS-ld
e28c595f 19086
a90ef4bf
JM
19087TAGS-ld: \
19088 configure-ld
19089 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19090 r=`${PWD_COMMAND}`; export r; \
19091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19092 $(HOST_EXPORTS) \
19093 for flag in $(EXTRA_HOST_FLAGS) ; do \
19094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19095 done; \
22121df0 19096 echo "Doing TAGS in ld"; \
a90ef4bf 19097 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19100 "RANLIB=$${RANLIB}" \
19101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19102 TAGS) \
19103 || exit 1
19104
a90ef4bf 19105@endif ld
e28c595f 19106
a90ef4bf
JM
19107.PHONY: maybe-install-info-ld install-info-ld
19108maybe-install-info-ld:
19109@if ld
19110maybe-install-info-ld: install-info-ld
e28c595f 19111
a90ef4bf
JM
19112install-info-ld: \
19113 configure-ld \
19114 info-ld
19115 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19116 r=`${PWD_COMMAND}`; export r; \
19117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19118 $(HOST_EXPORTS) \
19119 for flag in $(EXTRA_HOST_FLAGS) ; do \
19120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19121 done; \
22121df0 19122 echo "Doing install-info in ld"; \
a90ef4bf 19123 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19126 "RANLIB=$${RANLIB}" \
19127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19128 install-info) \
19129 || exit 1
19130
a90ef4bf 19131@endif ld
e28c595f 19132
a90ef4bf
JM
19133.PHONY: maybe-install-pdf-ld install-pdf-ld
19134maybe-install-pdf-ld:
19135@if ld
19136maybe-install-pdf-ld: install-pdf-ld
e28c595f 19137
a90ef4bf
JM
19138install-pdf-ld: \
19139 configure-ld \
19140 pdf-ld
19141 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19142 r=`${PWD_COMMAND}`; export r; \
19143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19144 $(HOST_EXPORTS) \
19145 for flag in $(EXTRA_HOST_FLAGS) ; do \
19146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19147 done; \
22121df0 19148 echo "Doing install-pdf in ld"; \
a90ef4bf 19149 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19152 "RANLIB=$${RANLIB}" \
19153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19154 install-pdf) \
19155 || exit 1
19156
a90ef4bf 19157@endif ld
e28c595f 19158
a90ef4bf
JM
19159.PHONY: maybe-install-html-ld install-html-ld
19160maybe-install-html-ld:
19161@if ld
19162maybe-install-html-ld: install-html-ld
e28c595f 19163
a90ef4bf
JM
19164install-html-ld: \
19165 configure-ld \
19166 html-ld
19167 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19168 r=`${PWD_COMMAND}`; export r; \
19169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19170 $(HOST_EXPORTS) \
19171 for flag in $(EXTRA_HOST_FLAGS) ; do \
19172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19173 done; \
22121df0 19174 echo "Doing install-html in ld"; \
a90ef4bf 19175 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19178 "RANLIB=$${RANLIB}" \
19179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19180 install-html) \
19181 || exit 1
19182
a90ef4bf 19183@endif ld
e28c595f 19184
a90ef4bf
JM
19185.PHONY: maybe-installcheck-ld installcheck-ld
19186maybe-installcheck-ld:
19187@if ld
19188maybe-installcheck-ld: installcheck-ld
e28c595f 19189
a90ef4bf
JM
19190installcheck-ld: \
19191 configure-ld
19192 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19193 r=`${PWD_COMMAND}`; export r; \
19194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19195 $(HOST_EXPORTS) \
19196 for flag in $(EXTRA_HOST_FLAGS) ; do \
19197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19198 done; \
22121df0 19199 echo "Doing installcheck in ld"; \
a90ef4bf 19200 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19203 "RANLIB=$${RANLIB}" \
0c24b341 19204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19205 installcheck) \
19206 || exit 1
19207
a90ef4bf 19208@endif ld
4b900473 19209
a90ef4bf
JM
19210.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19211maybe-mostlyclean-ld:
19212@if ld
19213maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19214
a90ef4bf
JM
19215mostlyclean-ld:
19216 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19217 r=`${PWD_COMMAND}`; export r; \
19218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19219 $(HOST_EXPORTS) \
19220 for flag in $(EXTRA_HOST_FLAGS) ; do \
19221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19222 done; \
22121df0 19223 echo "Doing mostlyclean in ld"; \
a90ef4bf 19224 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19227 "RANLIB=$${RANLIB}" \
0c24b341 19228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19229 mostlyclean) \
19230 || exit 1
19231
a90ef4bf 19232@endif ld
4b900473 19233
a90ef4bf
JM
19234.PHONY: maybe-clean-ld clean-ld
19235maybe-clean-ld:
19236@if ld
19237maybe-clean-ld: clean-ld
4b900473 19238
a90ef4bf
JM
19239clean-ld:
19240 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19241 r=`${PWD_COMMAND}`; export r; \
19242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19243 $(HOST_EXPORTS) \
19244 for flag in $(EXTRA_HOST_FLAGS) ; do \
19245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19246 done; \
22121df0 19247 echo "Doing clean in ld"; \
a90ef4bf 19248 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19251 "RANLIB=$${RANLIB}" \
0c24b341 19252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19253 clean) \
19254 || exit 1
19255
a90ef4bf 19256@endif ld
4b900473 19257
a90ef4bf
JM
19258.PHONY: maybe-distclean-ld distclean-ld
19259maybe-distclean-ld:
19260@if ld
19261maybe-distclean-ld: distclean-ld
4b900473 19262
a90ef4bf
JM
19263distclean-ld:
19264 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19265 r=`${PWD_COMMAND}`; export r; \
19266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19267 $(HOST_EXPORTS) \
19268 for flag in $(EXTRA_HOST_FLAGS) ; do \
19269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19270 done; \
22121df0 19271 echo "Doing distclean in ld"; \
a90ef4bf 19272 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19275 "RANLIB=$${RANLIB}" \
0c24b341 19276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19277 distclean) \
19278 || exit 1
19279
a90ef4bf 19280@endif ld
4b900473 19281
a90ef4bf
JM
19282.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19283maybe-maintainer-clean-ld:
19284@if ld
19285maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19286
a90ef4bf
JM
19287maintainer-clean-ld:
19288 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19289 r=`${PWD_COMMAND}`; export r; \
19290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19291 $(HOST_EXPORTS) \
19292 for flag in $(EXTRA_HOST_FLAGS) ; do \
19293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19294 done; \
22121df0 19295 echo "Doing maintainer-clean in ld"; \
a90ef4bf 19296 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19299 "RANLIB=$${RANLIB}" \
0c24b341 19300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19301 maintainer-clean) \
19302 || exit 1
19303
a90ef4bf 19304@endif ld
4b900473
PB
19305
19306
19307
2bf680c4
ILT
19308.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19309maybe-configure-libbacktrace:
19310@if gcc-bootstrap
19311configure-libbacktrace: stage_current
19312@endif gcc-bootstrap
19313@if libbacktrace
19314maybe-configure-libbacktrace: configure-libbacktrace
19315configure-libbacktrace:
19316 @r=`${PWD_COMMAND}`; export r; \
19317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19318 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 19319 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19320 $(HOST_EXPORTS) \
19321 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19322 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19323 case $(srcdir) in \
19324 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19325 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19326 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19327 esac; \
1b6c0831
L
19328 module_srcdir=libbacktrace; \
19329 $(SHELL) \
19330 $$s/$$module_srcdir/configure \
19331 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19332 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19333 --target=${target_alias} \
2bf680c4
ILT
19334 || exit 1
19335@endif libbacktrace
19336
19337
19338
19339.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19340maybe-configure-stage1-libbacktrace:
19341@if libbacktrace-bootstrap
19342maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19343configure-stage1-libbacktrace:
19344 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19345 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19346 @r=`${PWD_COMMAND}`; export r; \
19347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19348 TFLAGS="$(STAGE1_TFLAGS)"; \
19349 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19350 $(HOST_EXPORTS) \
19351 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19352 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19353 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
19354 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace; \
19355 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19356 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19357 case $(srcdir) in \
19358 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19359 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19360 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19361 esac; \
1b6c0831
L
19362 module_srcdir=libbacktrace; \
19363 $(SHELL) $$s/$$module_srcdir/configure \
19364 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19365 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19366 --target=${target_alias} \
19367 \
2bf680c4
ILT
19368 $(STAGE1_CONFIGURE_FLAGS)
19369@endif libbacktrace-bootstrap
19370
19371.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19372maybe-configure-stage2-libbacktrace:
19373@if libbacktrace-bootstrap
19374maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19375configure-stage2-libbacktrace:
19376 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19377 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19378 @r=`${PWD_COMMAND}`; export r; \
19379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19380 TFLAGS="$(STAGE2_TFLAGS)"; \
19381 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19382 $(HOST_EXPORTS) \
19383 $(POSTSTAGE1_HOST_EXPORTS) \
19384 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19385 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19386 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19387 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace; \
19388 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19389 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19390 case $(srcdir) in \
19391 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19392 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19393 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19394 esac; \
1b6c0831
L
19395 module_srcdir=libbacktrace; \
19396 $(SHELL) $$s/$$module_srcdir/configure \
19397 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19398 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19399 --target=${target_alias} \
22121df0 19400 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19401 $(STAGE2_CONFIGURE_FLAGS)
19402@endif libbacktrace-bootstrap
19403
19404.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19405maybe-configure-stage3-libbacktrace:
19406@if libbacktrace-bootstrap
19407maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19408configure-stage3-libbacktrace:
19409 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19410 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19411 @r=`${PWD_COMMAND}`; export r; \
19412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19413 TFLAGS="$(STAGE3_TFLAGS)"; \
19414 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19415 $(HOST_EXPORTS) \
19416 $(POSTSTAGE1_HOST_EXPORTS) \
19417 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19418 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19419 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19420 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace; \
19421 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19422 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19423 case $(srcdir) in \
19424 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19425 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19426 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19427 esac; \
1b6c0831
L
19428 module_srcdir=libbacktrace; \
19429 $(SHELL) $$s/$$module_srcdir/configure \
19430 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19431 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19432 --target=${target_alias} \
22121df0 19433 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19434 $(STAGE3_CONFIGURE_FLAGS)
19435@endif libbacktrace-bootstrap
19436
19437.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19438maybe-configure-stage4-libbacktrace:
19439@if libbacktrace-bootstrap
19440maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19441configure-stage4-libbacktrace:
19442 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19443 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19444 @r=`${PWD_COMMAND}`; export r; \
19445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19446 TFLAGS="$(STAGE4_TFLAGS)"; \
19447 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19448 $(HOST_EXPORTS) \
19449 $(POSTSTAGE1_HOST_EXPORTS) \
19450 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19451 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19452 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19453 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace; \
19454 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19455 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19456 case $(srcdir) in \
19457 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19458 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19459 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19460 esac; \
1b6c0831
L
19461 module_srcdir=libbacktrace; \
19462 $(SHELL) $$s/$$module_srcdir/configure \
19463 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19464 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19465 --target=${target_alias} \
22121df0 19466 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19467 $(STAGE4_CONFIGURE_FLAGS)
19468@endif libbacktrace-bootstrap
19469
19470.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19471maybe-configure-stageprofile-libbacktrace:
19472@if libbacktrace-bootstrap
19473maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19474configure-stageprofile-libbacktrace:
19475 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19476 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19477 @r=`${PWD_COMMAND}`; export r; \
19478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19479 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19480 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19481 $(HOST_EXPORTS) \
19482 $(POSTSTAGE1_HOST_EXPORTS) \
19483 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19484 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19485 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19486 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace; \
19487 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19488 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19489 case $(srcdir) in \
19490 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19491 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19492 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19493 esac; \
1b6c0831
L
19494 module_srcdir=libbacktrace; \
19495 $(SHELL) $$s/$$module_srcdir/configure \
19496 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19497 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19498 --target=${target_alias} \
22121df0 19499 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19500 $(STAGEprofile_CONFIGURE_FLAGS)
19501@endif libbacktrace-bootstrap
19502
19503.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19504maybe-configure-stagefeedback-libbacktrace:
19505@if libbacktrace-bootstrap
19506maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19507configure-stagefeedback-libbacktrace:
19508 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19509 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19510 @r=`${PWD_COMMAND}`; export r; \
19511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19512 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19513 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19514 $(HOST_EXPORTS) \
19515 $(POSTSTAGE1_HOST_EXPORTS) \
19516 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19517 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19518 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19519 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace; \
19520 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19521 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19522 case $(srcdir) in \
19523 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19524 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19525 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19526 esac; \
1b6c0831
L
19527 module_srcdir=libbacktrace; \
19528 $(SHELL) $$s/$$module_srcdir/configure \
19529 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19530 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19531 --target=${target_alias} \
22121df0 19532 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19533 $(STAGEfeedback_CONFIGURE_FLAGS)
19534@endif libbacktrace-bootstrap
19535
19536
19537
19538
19539
19540.PHONY: all-libbacktrace maybe-all-libbacktrace
19541maybe-all-libbacktrace:
19542@if gcc-bootstrap
19543all-libbacktrace: stage_current
19544@endif gcc-bootstrap
19545@if libbacktrace
19546TARGET-libbacktrace=all
19547maybe-all-libbacktrace: all-libbacktrace
19548all-libbacktrace: configure-libbacktrace
19549 @r=`${PWD_COMMAND}`; export r; \
19550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19551 $(HOST_EXPORTS) \
19552 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19553 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19554 $(TARGET-libbacktrace))
19555@endif libbacktrace
19556
19557
19558
19559.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19560.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19561maybe-all-stage1-libbacktrace:
19562maybe-clean-stage1-libbacktrace:
19563@if libbacktrace-bootstrap
19564maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19565all-stage1: all-stage1-libbacktrace
19566TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19567all-stage1-libbacktrace: configure-stage1-libbacktrace
19568 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19569 @r=`${PWD_COMMAND}`; export r; \
19570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19571 TFLAGS="$(STAGE1_TFLAGS)"; \
19572 $(HOST_EXPORTS) \
19573 cd $(HOST_SUBDIR)/libbacktrace && \
19574 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19575 CFLAGS="$(STAGE1_CFLAGS)" \
19576 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19577 LIBCFLAGS="$(LIBCFLAGS)" \
19578 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19579 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19580 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19581 $(EXTRA_HOST_FLAGS) \
19582 $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19583 TFLAGS="$(STAGE1_TFLAGS)" \
19584 $(TARGET-stage1-libbacktrace)
19585
19586maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19587clean-stage1: clean-stage1-libbacktrace
19588clean-stage1-libbacktrace:
19589 @if [ $(current_stage) = stage1 ]; then \
19590 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19591 else \
19592 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19593 $(MAKE) stage1-start; \
19594 fi; \
19595 cd $(HOST_SUBDIR)/libbacktrace && \
19596 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19597 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19598@endif libbacktrace-bootstrap
19599
19600
19601.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19602.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19603maybe-all-stage2-libbacktrace:
19604maybe-clean-stage2-libbacktrace:
19605@if libbacktrace-bootstrap
19606maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19607all-stage2: all-stage2-libbacktrace
19608TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19609all-stage2-libbacktrace: configure-stage2-libbacktrace
19610 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19611 @r=`${PWD_COMMAND}`; export r; \
19612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19613 TFLAGS="$(STAGE2_TFLAGS)"; \
19614 $(HOST_EXPORTS) \
19615 $(POSTSTAGE1_HOST_EXPORTS) \
19616 cd $(HOST_SUBDIR)/libbacktrace && \
19617 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19618 CFLAGS="$(STAGE2_CFLAGS)" \
19619 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19620 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19621 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19622 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19623 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19624 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19625 TFLAGS="$(STAGE2_TFLAGS)" \
19626 $(TARGET-stage2-libbacktrace)
19627
19628maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19629clean-stage2: clean-stage2-libbacktrace
19630clean-stage2-libbacktrace:
19631 @if [ $(current_stage) = stage2 ]; then \
19632 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19633 else \
19634 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19635 $(MAKE) stage2-start; \
19636 fi; \
19637 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19638 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19639@endif libbacktrace-bootstrap
19640
19641
19642.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19643.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19644maybe-all-stage3-libbacktrace:
19645maybe-clean-stage3-libbacktrace:
19646@if libbacktrace-bootstrap
19647maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19648all-stage3: all-stage3-libbacktrace
19649TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19650all-stage3-libbacktrace: configure-stage3-libbacktrace
19651 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19652 @r=`${PWD_COMMAND}`; export r; \
19653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19654 TFLAGS="$(STAGE3_TFLAGS)"; \
19655 $(HOST_EXPORTS) \
19656 $(POSTSTAGE1_HOST_EXPORTS) \
19657 cd $(HOST_SUBDIR)/libbacktrace && \
19658 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19659 CFLAGS="$(STAGE3_CFLAGS)" \
19660 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19661 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19662 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19663 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19664 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19665 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19666 TFLAGS="$(STAGE3_TFLAGS)" \
19667 $(TARGET-stage3-libbacktrace)
19668
19669maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19670clean-stage3: clean-stage3-libbacktrace
19671clean-stage3-libbacktrace:
19672 @if [ $(current_stage) = stage3 ]; then \
19673 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19674 else \
19675 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19676 $(MAKE) stage3-start; \
19677 fi; \
19678 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19679 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19680@endif libbacktrace-bootstrap
19681
19682
19683.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19684.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19685maybe-all-stage4-libbacktrace:
19686maybe-clean-stage4-libbacktrace:
19687@if libbacktrace-bootstrap
19688maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19689all-stage4: all-stage4-libbacktrace
19690TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19691all-stage4-libbacktrace: configure-stage4-libbacktrace
19692 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19693 @r=`${PWD_COMMAND}`; export r; \
19694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19695 TFLAGS="$(STAGE4_TFLAGS)"; \
19696 $(HOST_EXPORTS) \
19697 $(POSTSTAGE1_HOST_EXPORTS) \
19698 cd $(HOST_SUBDIR)/libbacktrace && \
19699 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19700 CFLAGS="$(STAGE4_CFLAGS)" \
19701 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19702 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19703 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19704 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19705 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19706 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19707 TFLAGS="$(STAGE4_TFLAGS)" \
19708 $(TARGET-stage4-libbacktrace)
19709
19710maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19711clean-stage4: clean-stage4-libbacktrace
19712clean-stage4-libbacktrace:
19713 @if [ $(current_stage) = stage4 ]; then \
19714 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19715 else \
19716 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19717 $(MAKE) stage4-start; \
19718 fi; \
19719 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19720 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19721@endif libbacktrace-bootstrap
19722
19723
19724.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19725.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19726maybe-all-stageprofile-libbacktrace:
19727maybe-clean-stageprofile-libbacktrace:
19728@if libbacktrace-bootstrap
19729maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19730all-stageprofile: all-stageprofile-libbacktrace
19731TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19732all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19733 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19734 @r=`${PWD_COMMAND}`; export r; \
19735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19736 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19737 $(HOST_EXPORTS) \
19738 $(POSTSTAGE1_HOST_EXPORTS) \
19739 cd $(HOST_SUBDIR)/libbacktrace && \
19740 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19741 CFLAGS="$(STAGEprofile_CFLAGS)" \
19742 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19743 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19744 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19745 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19746 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19747 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19748 TFLAGS="$(STAGEprofile_TFLAGS)" \
19749 $(TARGET-stageprofile-libbacktrace)
19750
19751maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19752clean-stageprofile: clean-stageprofile-libbacktrace
19753clean-stageprofile-libbacktrace:
19754 @if [ $(current_stage) = stageprofile ]; then \
19755 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19756 else \
19757 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19758 $(MAKE) stageprofile-start; \
19759 fi; \
19760 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19761 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19762@endif libbacktrace-bootstrap
19763
19764
19765.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19766.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19767maybe-all-stagefeedback-libbacktrace:
19768maybe-clean-stagefeedback-libbacktrace:
19769@if libbacktrace-bootstrap
19770maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19771all-stagefeedback: all-stagefeedback-libbacktrace
19772TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19773all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19774 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19775 @r=`${PWD_COMMAND}`; export r; \
19776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19777 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19778 $(HOST_EXPORTS) \
19779 $(POSTSTAGE1_HOST_EXPORTS) \
19780 cd $(HOST_SUBDIR)/libbacktrace && \
19781 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19782 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19783 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19784 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19785 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19786 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19787 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19788 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19789 TFLAGS="$(STAGEfeedback_TFLAGS)" \
19790 $(TARGET-stagefeedback-libbacktrace)
19791
19792maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
19793clean-stagefeedback: clean-stagefeedback-libbacktrace
19794clean-stagefeedback-libbacktrace:
19795 @if [ $(current_stage) = stagefeedback ]; then \
19796 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19797 else \
19798 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
19799 $(MAKE) stagefeedback-start; \
19800 fi; \
19801 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19802 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19803@endif libbacktrace-bootstrap
19804
19805
19806
19807
19808
19809.PHONY: check-libbacktrace maybe-check-libbacktrace
19810maybe-check-libbacktrace:
19811@if libbacktrace
19812maybe-check-libbacktrace: check-libbacktrace
19813
19814check-libbacktrace:
19815 @: $(MAKE); $(unstage)
19816 @r=`${PWD_COMMAND}`; export r; \
19817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19818 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
2bf680c4 19819 (cd $(HOST_SUBDIR)/libbacktrace && \
f91ca6bc 19820 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2bf680c4
ILT
19821
19822@endif libbacktrace
19823
19824.PHONY: install-libbacktrace maybe-install-libbacktrace
19825maybe-install-libbacktrace:
19826@if libbacktrace
19827maybe-install-libbacktrace: install-libbacktrace
19828
19829install-libbacktrace: installdirs
19830 @: $(MAKE); $(unstage)
19831 @r=`${PWD_COMMAND}`; export r; \
19832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19833 $(HOST_EXPORTS) \
19834 (cd $(HOST_SUBDIR)/libbacktrace && \
19835 $(MAKE) $(FLAGS_TO_PASS) install)
19836
19837@endif libbacktrace
19838
19839.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
19840maybe-install-strip-libbacktrace:
19841@if libbacktrace
19842maybe-install-strip-libbacktrace: install-strip-libbacktrace
19843
19844install-strip-libbacktrace: installdirs
19845 @: $(MAKE); $(unstage)
19846 @r=`${PWD_COMMAND}`; export r; \
19847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19848 $(HOST_EXPORTS) \
19849 (cd $(HOST_SUBDIR)/libbacktrace && \
19850 $(MAKE) $(FLAGS_TO_PASS) install-strip)
19851
19852@endif libbacktrace
19853
19854# Other targets (info, dvi, pdf, etc.)
19855
19856.PHONY: maybe-info-libbacktrace info-libbacktrace
19857maybe-info-libbacktrace:
19858@if libbacktrace
19859maybe-info-libbacktrace: info-libbacktrace
19860
19861info-libbacktrace: \
19862 configure-libbacktrace
19863 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19864 r=`${PWD_COMMAND}`; export r; \
19865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19866 $(HOST_EXPORTS) \
19867 for flag in $(EXTRA_HOST_FLAGS) ; do \
19868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19869 done; \
22121df0 19870 echo "Doing info in libbacktrace"; \
2bf680c4
ILT
19871 (cd $(HOST_SUBDIR)/libbacktrace && \
19872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19874 "RANLIB=$${RANLIB}" \
19875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19876 info) \
19877 || exit 1
19878
19879@endif libbacktrace
19880
19881.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
19882maybe-dvi-libbacktrace:
19883@if libbacktrace
19884maybe-dvi-libbacktrace: dvi-libbacktrace
19885
19886dvi-libbacktrace: \
19887 configure-libbacktrace
19888 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19889 r=`${PWD_COMMAND}`; export r; \
19890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19891 $(HOST_EXPORTS) \
19892 for flag in $(EXTRA_HOST_FLAGS) ; do \
19893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19894 done; \
22121df0 19895 echo "Doing dvi in libbacktrace"; \
2bf680c4
ILT
19896 (cd $(HOST_SUBDIR)/libbacktrace && \
19897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19899 "RANLIB=$${RANLIB}" \
19900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19901 dvi) \
19902 || exit 1
19903
19904@endif libbacktrace
19905
19906.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
19907maybe-pdf-libbacktrace:
19908@if libbacktrace
19909maybe-pdf-libbacktrace: pdf-libbacktrace
19910
19911pdf-libbacktrace: \
19912 configure-libbacktrace
19913 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19914 r=`${PWD_COMMAND}`; export r; \
19915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19916 $(HOST_EXPORTS) \
19917 for flag in $(EXTRA_HOST_FLAGS) ; do \
19918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19919 done; \
22121df0 19920 echo "Doing pdf in libbacktrace"; \
2bf680c4
ILT
19921 (cd $(HOST_SUBDIR)/libbacktrace && \
19922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19924 "RANLIB=$${RANLIB}" \
19925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19926 pdf) \
19927 || exit 1
19928
19929@endif libbacktrace
19930
19931.PHONY: maybe-html-libbacktrace html-libbacktrace
19932maybe-html-libbacktrace:
19933@if libbacktrace
19934maybe-html-libbacktrace: html-libbacktrace
19935
19936html-libbacktrace: \
19937 configure-libbacktrace
19938 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19939 r=`${PWD_COMMAND}`; export r; \
19940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19941 $(HOST_EXPORTS) \
19942 for flag in $(EXTRA_HOST_FLAGS) ; do \
19943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19944 done; \
22121df0 19945 echo "Doing html in libbacktrace"; \
2bf680c4
ILT
19946 (cd $(HOST_SUBDIR)/libbacktrace && \
19947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19949 "RANLIB=$${RANLIB}" \
19950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19951 html) \
19952 || exit 1
19953
19954@endif libbacktrace
19955
19956.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
19957maybe-TAGS-libbacktrace:
19958@if libbacktrace
19959maybe-TAGS-libbacktrace: TAGS-libbacktrace
19960
19961TAGS-libbacktrace: \
19962 configure-libbacktrace
19963 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19964 r=`${PWD_COMMAND}`; export r; \
19965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19966 $(HOST_EXPORTS) \
19967 for flag in $(EXTRA_HOST_FLAGS) ; do \
19968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19969 done; \
22121df0 19970 echo "Doing TAGS in libbacktrace"; \
2bf680c4
ILT
19971 (cd $(HOST_SUBDIR)/libbacktrace && \
19972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19974 "RANLIB=$${RANLIB}" \
19975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19976 TAGS) \
19977 || exit 1
19978
19979@endif libbacktrace
19980
19981.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
19982maybe-install-info-libbacktrace:
19983@if libbacktrace
19984maybe-install-info-libbacktrace: install-info-libbacktrace
19985
19986install-info-libbacktrace: \
19987 configure-libbacktrace \
19988 info-libbacktrace
19989 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19990 r=`${PWD_COMMAND}`; export r; \
19991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19992 $(HOST_EXPORTS) \
19993 for flag in $(EXTRA_HOST_FLAGS) ; do \
19994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19995 done; \
22121df0 19996 echo "Doing install-info in libbacktrace"; \
2bf680c4
ILT
19997 (cd $(HOST_SUBDIR)/libbacktrace && \
19998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20000 "RANLIB=$${RANLIB}" \
20001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20002 install-info) \
20003 || exit 1
20004
20005@endif libbacktrace
20006
20007.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
20008maybe-install-pdf-libbacktrace:
20009@if libbacktrace
20010maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20011
20012install-pdf-libbacktrace: \
20013 configure-libbacktrace \
20014 pdf-libbacktrace
20015 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20016 r=`${PWD_COMMAND}`; export r; \
20017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20018 $(HOST_EXPORTS) \
20019 for flag in $(EXTRA_HOST_FLAGS) ; do \
20020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20021 done; \
22121df0 20022 echo "Doing install-pdf in libbacktrace"; \
2bf680c4
ILT
20023 (cd $(HOST_SUBDIR)/libbacktrace && \
20024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20026 "RANLIB=$${RANLIB}" \
20027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20028 install-pdf) \
20029 || exit 1
20030
20031@endif libbacktrace
20032
20033.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20034maybe-install-html-libbacktrace:
20035@if libbacktrace
20036maybe-install-html-libbacktrace: install-html-libbacktrace
20037
20038install-html-libbacktrace: \
20039 configure-libbacktrace \
20040 html-libbacktrace
20041 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20042 r=`${PWD_COMMAND}`; export r; \
20043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20044 $(HOST_EXPORTS) \
20045 for flag in $(EXTRA_HOST_FLAGS) ; do \
20046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20047 done; \
22121df0 20048 echo "Doing install-html in libbacktrace"; \
2bf680c4
ILT
20049 (cd $(HOST_SUBDIR)/libbacktrace && \
20050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20052 "RANLIB=$${RANLIB}" \
20053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20054 install-html) \
20055 || exit 1
20056
20057@endif libbacktrace
20058
20059.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20060maybe-installcheck-libbacktrace:
20061@if libbacktrace
20062maybe-installcheck-libbacktrace: installcheck-libbacktrace
20063
20064installcheck-libbacktrace: \
20065 configure-libbacktrace
20066 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20067 r=`${PWD_COMMAND}`; export r; \
20068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20069 $(HOST_EXPORTS) \
20070 for flag in $(EXTRA_HOST_FLAGS) ; do \
20071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20072 done; \
22121df0 20073 echo "Doing installcheck in libbacktrace"; \
2bf680c4
ILT
20074 (cd $(HOST_SUBDIR)/libbacktrace && \
20075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20077 "RANLIB=$${RANLIB}" \
20078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20079 installcheck) \
20080 || exit 1
20081
20082@endif libbacktrace
20083
20084.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20085maybe-mostlyclean-libbacktrace:
20086@if libbacktrace
20087maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20088
20089mostlyclean-libbacktrace:
20090 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20091 r=`${PWD_COMMAND}`; export r; \
20092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20093 $(HOST_EXPORTS) \
20094 for flag in $(EXTRA_HOST_FLAGS) ; do \
20095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20096 done; \
22121df0 20097 echo "Doing mostlyclean in libbacktrace"; \
2bf680c4
ILT
20098 (cd $(HOST_SUBDIR)/libbacktrace && \
20099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20101 "RANLIB=$${RANLIB}" \
20102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20103 mostlyclean) \
20104 || exit 1
20105
20106@endif libbacktrace
20107
20108.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20109maybe-clean-libbacktrace:
20110@if libbacktrace
20111maybe-clean-libbacktrace: clean-libbacktrace
20112
20113clean-libbacktrace:
20114 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20115 r=`${PWD_COMMAND}`; export r; \
20116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20117 $(HOST_EXPORTS) \
20118 for flag in $(EXTRA_HOST_FLAGS) ; do \
20119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20120 done; \
22121df0 20121 echo "Doing clean in libbacktrace"; \
2bf680c4
ILT
20122 (cd $(HOST_SUBDIR)/libbacktrace && \
20123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20125 "RANLIB=$${RANLIB}" \
20126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20127 clean) \
20128 || exit 1
20129
20130@endif libbacktrace
20131
20132.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20133maybe-distclean-libbacktrace:
20134@if libbacktrace
20135maybe-distclean-libbacktrace: distclean-libbacktrace
20136
20137distclean-libbacktrace:
20138 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20139 r=`${PWD_COMMAND}`; export r; \
20140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20141 $(HOST_EXPORTS) \
20142 for flag in $(EXTRA_HOST_FLAGS) ; do \
20143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20144 done; \
22121df0 20145 echo "Doing distclean in libbacktrace"; \
2bf680c4
ILT
20146 (cd $(HOST_SUBDIR)/libbacktrace && \
20147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20149 "RANLIB=$${RANLIB}" \
20150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20151 distclean) \
20152 || exit 1
20153
20154@endif libbacktrace
20155
20156.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20157maybe-maintainer-clean-libbacktrace:
20158@if libbacktrace
20159maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20160
20161maintainer-clean-libbacktrace:
20162 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20163 r=`${PWD_COMMAND}`; export r; \
20164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20165 $(HOST_EXPORTS) \
20166 for flag in $(EXTRA_HOST_FLAGS) ; do \
20167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20168 done; \
22121df0 20169 echo "Doing maintainer-clean in libbacktrace"; \
2bf680c4
ILT
20170 (cd $(HOST_SUBDIR)/libbacktrace && \
20171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20173 "RANLIB=$${RANLIB}" \
20174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20175 maintainer-clean) \
20176 || exit 1
20177
20178@endif libbacktrace
20179
20180
20181
a90ef4bf
JM
20182.PHONY: configure-libcpp maybe-configure-libcpp
20183maybe-configure-libcpp:
4b900473 20184@if gcc-bootstrap
a90ef4bf 20185configure-libcpp: stage_current
4b900473 20186@endif gcc-bootstrap
a90ef4bf
JM
20187@if libcpp
20188maybe-configure-libcpp: configure-libcpp
20189configure-libcpp:
4b900473
PB
20190 @r=`${PWD_COMMAND}`; export r; \
20191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 20192 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 20193 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf
JM
20194 $(HOST_EXPORTS) \
20195 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20196 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20197 case $(srcdir) in \
20198 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20199 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20200 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20201 esac; \
1b6c0831
L
20202 module_srcdir=libcpp; \
20203 $(SHELL) \
20204 $$s/$$module_srcdir/configure \
20205 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20206 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20207 --target=${target_alias} \
4b900473 20208 || exit 1
a90ef4bf 20209@endif libcpp
4b900473
PB
20210
20211
20212
a90ef4bf
JM
20213.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20214maybe-configure-stage1-libcpp:
20215@if libcpp-bootstrap
20216maybe-configure-stage1-libcpp: configure-stage1-libcpp
20217configure-stage1-libcpp:
4b900473 20218 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20219 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20220 @r=`${PWD_COMMAND}`; export r; \
20221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20222 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20223 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20224 $(HOST_EXPORTS) \
8ee82aff 20225 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20226 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20227 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
20228 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp; \
20229 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20230 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20231 case $(srcdir) in \
20232 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20233 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20234 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20235 esac; \
1b6c0831
L
20236 module_srcdir=libcpp; \
20237 $(SHELL) $$s/$$module_srcdir/configure \
20238 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20239 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20240 --target=${target_alias} \
20241 \
a90ef4bf
JM
20242 $(STAGE1_CONFIGURE_FLAGS)
20243@endif libcpp-bootstrap
e28c595f 20244
a90ef4bf
JM
20245.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20246maybe-configure-stage2-libcpp:
20247@if libcpp-bootstrap
20248maybe-configure-stage2-libcpp: configure-stage2-libcpp
20249configure-stage2-libcpp:
4b900473 20250 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20251 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20252 @r=`${PWD_COMMAND}`; export r; \
20253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20254 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20255 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20256 $(HOST_EXPORTS) \
1b05fbbd 20257 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20258 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20259 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20260 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20261 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp; \
20262 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20263 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20264 case $(srcdir) in \
20265 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20266 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20267 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20268 esac; \
1b6c0831
L
20269 module_srcdir=libcpp; \
20270 $(SHELL) $$s/$$module_srcdir/configure \
20271 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20272 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20273 --target=${target_alias} \
22121df0 20274 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20275 $(STAGE2_CONFIGURE_FLAGS)
20276@endif libcpp-bootstrap
e28c595f 20277
a90ef4bf
JM
20278.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20279maybe-configure-stage3-libcpp:
20280@if libcpp-bootstrap
20281maybe-configure-stage3-libcpp: configure-stage3-libcpp
20282configure-stage3-libcpp:
4b900473 20283 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20284 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20285 @r=`${PWD_COMMAND}`; export r; \
20286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20287 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20288 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20289 $(HOST_EXPORTS) \
1b05fbbd 20290 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20291 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20292 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20293 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20294 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp; \
20295 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20296 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20297 case $(srcdir) in \
20298 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20299 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20300 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20301 esac; \
1b6c0831
L
20302 module_srcdir=libcpp; \
20303 $(SHELL) $$s/$$module_srcdir/configure \
20304 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20305 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20306 --target=${target_alias} \
22121df0 20307 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20308 $(STAGE3_CONFIGURE_FLAGS)
20309@endif libcpp-bootstrap
e28c595f 20310
a90ef4bf
JM
20311.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20312maybe-configure-stage4-libcpp:
20313@if libcpp-bootstrap
20314maybe-configure-stage4-libcpp: configure-stage4-libcpp
20315configure-stage4-libcpp:
4b900473 20316 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20317 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20318 @r=`${PWD_COMMAND}`; export r; \
20319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20320 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20321 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20322 $(HOST_EXPORTS) \
1b05fbbd 20323 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20324 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20325 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20326 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20327 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp; \
20328 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20329 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20330 case $(srcdir) in \
20331 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20332 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20333 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20334 esac; \
1b6c0831
L
20335 module_srcdir=libcpp; \
20336 $(SHELL) $$s/$$module_srcdir/configure \
20337 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20338 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20339 --target=${target_alias} \
22121df0 20340 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20341 $(STAGE4_CONFIGURE_FLAGS)
20342@endif libcpp-bootstrap
e28c595f 20343
a90ef4bf
JM
20344.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20345maybe-configure-stageprofile-libcpp:
20346@if libcpp-bootstrap
20347maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20348configure-stageprofile-libcpp:
4b900473 20349 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20350 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20351 @r=`${PWD_COMMAND}`; export r; \
20352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20353 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20354 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20355 $(HOST_EXPORTS) \
1b05fbbd
AO
20356 $(POSTSTAGE1_HOST_EXPORTS) \
20357 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20358 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20359 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20360 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp; \
20361 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20362 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20363 case $(srcdir) in \
20364 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20365 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20366 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20367 esac; \
1b6c0831
L
20368 module_srcdir=libcpp; \
20369 $(SHELL) $$s/$$module_srcdir/configure \
20370 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20371 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20372 --target=${target_alias} \
22121df0 20373 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20374 $(STAGEprofile_CONFIGURE_FLAGS)
20375@endif libcpp-bootstrap
e28c595f 20376
a90ef4bf
JM
20377.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20378maybe-configure-stagefeedback-libcpp:
20379@if libcpp-bootstrap
20380maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20381configure-stagefeedback-libcpp:
4b900473 20382 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20383 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20384 @r=`${PWD_COMMAND}`; export r; \
20385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20386 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20387 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20388 $(HOST_EXPORTS) \
1b05fbbd
AO
20389 $(POSTSTAGE1_HOST_EXPORTS) \
20390 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20391 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20392 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20393 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp; \
20394 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20395 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20396 case $(srcdir) in \
20397 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20398 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20399 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20400 esac; \
1b6c0831
L
20401 module_srcdir=libcpp; \
20402 $(SHELL) $$s/$$module_srcdir/configure \
20403 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20404 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20405 --target=${target_alias} \
22121df0 20406 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20407 $(STAGEfeedback_CONFIGURE_FLAGS)
20408@endif libcpp-bootstrap
4b900473
PB
20409
20410
20411
20412
20413
a90ef4bf
JM
20414.PHONY: all-libcpp maybe-all-libcpp
20415maybe-all-libcpp:
4b900473 20416@if gcc-bootstrap
a90ef4bf 20417all-libcpp: stage_current
4b900473 20418@endif gcc-bootstrap
a90ef4bf
JM
20419@if libcpp
20420TARGET-libcpp=all
20421maybe-all-libcpp: all-libcpp
20422all-libcpp: configure-libcpp
4b900473
PB
20423 @r=`${PWD_COMMAND}`; export r; \
20424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20425 $(HOST_EXPORTS) \
20426 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20427 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20428 $(TARGET-libcpp))
20429@endif libcpp
4b900473
PB
20430
20431
20432
a90ef4bf
JM
20433.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20434.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20435maybe-all-stage1-libcpp:
20436maybe-clean-stage1-libcpp:
20437@if libcpp-bootstrap
20438maybe-all-stage1-libcpp: all-stage1-libcpp
20439all-stage1: all-stage1-libcpp
20440TARGET-stage1-libcpp = $(TARGET-libcpp)
20441all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20442 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20443 @r=`${PWD_COMMAND}`; export r; \
20444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20445 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20446 $(HOST_EXPORTS) \
20447 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20448 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20449 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20450 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20451 LIBCFLAGS="$(LIBCFLAGS)" \
20452 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20453 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20454 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20455 $(EXTRA_HOST_FLAGS) \
20456 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 20457 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20458 $(TARGET-stage1-libcpp)
4b900473 20459
a90ef4bf
JM
20460maybe-clean-stage1-libcpp: clean-stage1-libcpp
20461clean-stage1: clean-stage1-libcpp
20462clean-stage1-libcpp:
4b900473 20463 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20464 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20465 else \
a90ef4bf 20466 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20467 $(MAKE) stage1-start; \
20468 fi; \
a90ef4bf 20469 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20470 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20471 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20472@endif libcpp-bootstrap
e28c595f
JM
20473
20474
a90ef4bf
JM
20475.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20476.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20477maybe-all-stage2-libcpp:
20478maybe-clean-stage2-libcpp:
20479@if libcpp-bootstrap
20480maybe-all-stage2-libcpp: all-stage2-libcpp
20481all-stage2: all-stage2-libcpp
20482TARGET-stage2-libcpp = $(TARGET-libcpp)
20483all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20484 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20485 @r=`${PWD_COMMAND}`; export r; \
20486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20487 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20488 $(HOST_EXPORTS) \
a90ef4bf
JM
20489 $(POSTSTAGE1_HOST_EXPORTS) \
20490 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20491 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20492 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20493 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20494 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20495 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20496 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20497 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20498 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20499 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20500 $(TARGET-stage2-libcpp)
4b900473 20501
a90ef4bf
JM
20502maybe-clean-stage2-libcpp: clean-stage2-libcpp
20503clean-stage2: clean-stage2-libcpp
20504clean-stage2-libcpp:
4b900473 20505 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20506 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20507 else \
a90ef4bf 20508 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20509 $(MAKE) stage2-start; \
20510 fi; \
a90ef4bf 20511 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20512 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20513@endif libcpp-bootstrap
e28c595f
JM
20514
20515
a90ef4bf
JM
20516.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20517.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20518maybe-all-stage3-libcpp:
20519maybe-clean-stage3-libcpp:
20520@if libcpp-bootstrap
20521maybe-all-stage3-libcpp: all-stage3-libcpp
20522all-stage3: all-stage3-libcpp
20523TARGET-stage3-libcpp = $(TARGET-libcpp)
20524all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20525 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20526 @r=`${PWD_COMMAND}`; export r; \
20527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20528 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20529 $(HOST_EXPORTS) \
a90ef4bf
JM
20530 $(POSTSTAGE1_HOST_EXPORTS) \
20531 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20532 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20533 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20534 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20535 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20536 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20537 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20538 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20539 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20540 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20541 $(TARGET-stage3-libcpp)
4b900473 20542
a90ef4bf
JM
20543maybe-clean-stage3-libcpp: clean-stage3-libcpp
20544clean-stage3: clean-stage3-libcpp
20545clean-stage3-libcpp:
4b900473 20546 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20547 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20548 else \
a90ef4bf 20549 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20550 $(MAKE) stage3-start; \
20551 fi; \
a90ef4bf 20552 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20553 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20554@endif libcpp-bootstrap
e28c595f
JM
20555
20556
a90ef4bf
JM
20557.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20558.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20559maybe-all-stage4-libcpp:
20560maybe-clean-stage4-libcpp:
20561@if libcpp-bootstrap
20562maybe-all-stage4-libcpp: all-stage4-libcpp
20563all-stage4: all-stage4-libcpp
20564TARGET-stage4-libcpp = $(TARGET-libcpp)
20565all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20566 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20567 @r=`${PWD_COMMAND}`; export r; \
20568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20569 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20570 $(HOST_EXPORTS) \
a90ef4bf
JM
20571 $(POSTSTAGE1_HOST_EXPORTS) \
20572 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20573 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20574 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20575 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20576 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20577 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20578 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20579 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20580 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20581 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20582 $(TARGET-stage4-libcpp)
4b900473 20583
a90ef4bf
JM
20584maybe-clean-stage4-libcpp: clean-stage4-libcpp
20585clean-stage4: clean-stage4-libcpp
20586clean-stage4-libcpp:
4b900473 20587 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20588 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20589 else \
a90ef4bf 20590 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20591 $(MAKE) stage4-start; \
20592 fi; \
a90ef4bf 20593 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20594 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20595@endif libcpp-bootstrap
e28c595f
JM
20596
20597
a90ef4bf
JM
20598.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20599.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20600maybe-all-stageprofile-libcpp:
20601maybe-clean-stageprofile-libcpp:
20602@if libcpp-bootstrap
20603maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20604all-stageprofile: all-stageprofile-libcpp
20605TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20606all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20607 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20608 @r=`${PWD_COMMAND}`; export r; \
20609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20610 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20611 $(HOST_EXPORTS) \
a90ef4bf
JM
20612 $(POSTSTAGE1_HOST_EXPORTS) \
20613 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20614 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20615 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20616 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20617 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20618 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20619 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20620 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20621 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20622 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20623 $(TARGET-stageprofile-libcpp)
4b900473 20624
a90ef4bf
JM
20625maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20626clean-stageprofile: clean-stageprofile-libcpp
20627clean-stageprofile-libcpp:
4b900473 20628 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20629 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20630 else \
a90ef4bf 20631 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20632 $(MAKE) stageprofile-start; \
20633 fi; \
a90ef4bf 20634 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20635 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20636@endif libcpp-bootstrap
e28c595f
JM
20637
20638
a90ef4bf
JM
20639.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20640.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20641maybe-all-stagefeedback-libcpp:
20642maybe-clean-stagefeedback-libcpp:
20643@if libcpp-bootstrap
20644maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20645all-stagefeedback: all-stagefeedback-libcpp
20646TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20647all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20648 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20649 @r=`${PWD_COMMAND}`; export r; \
20650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20651 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20652 $(HOST_EXPORTS) \
a90ef4bf
JM
20653 $(POSTSTAGE1_HOST_EXPORTS) \
20654 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20655 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20656 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20657 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20658 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20659 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20660 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20661 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20662 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20663 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20664 $(TARGET-stagefeedback-libcpp)
4b900473 20665
a90ef4bf
JM
20666maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20667clean-stagefeedback: clean-stagefeedback-libcpp
20668clean-stagefeedback-libcpp:
4b900473 20669 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20670 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20671 else \
a90ef4bf 20672 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20673 $(MAKE) stagefeedback-start; \
20674 fi; \
a90ef4bf 20675 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20676 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20677@endif libcpp-bootstrap
4b900473
PB
20678
20679
20680
20681
20682
a90ef4bf
JM
20683.PHONY: check-libcpp maybe-check-libcpp
20684maybe-check-libcpp:
20685@if libcpp
20686maybe-check-libcpp: check-libcpp
4b900473 20687
a90ef4bf 20688check-libcpp:
4b900473
PB
20689 @: $(MAKE); $(unstage)
20690 @r=`${PWD_COMMAND}`; export r; \
20691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20692 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 20693 (cd $(HOST_SUBDIR)/libcpp && \
f91ca6bc 20694 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4b900473 20695
a90ef4bf 20696@endif libcpp
4b900473 20697
a90ef4bf
JM
20698.PHONY: install-libcpp maybe-install-libcpp
20699maybe-install-libcpp:
20700@if libcpp
20701maybe-install-libcpp: install-libcpp
4b900473 20702
a90ef4bf
JM
20703install-libcpp: installdirs
20704 @: $(MAKE); $(unstage)
20705 @r=`${PWD_COMMAND}`; export r; \
20706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20707 $(HOST_EXPORTS) \
20708 (cd $(HOST_SUBDIR)/libcpp && \
20709 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20710
a90ef4bf 20711@endif libcpp
4b900473 20712
a90ef4bf
JM
20713.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20714maybe-install-strip-libcpp:
20715@if libcpp
20716maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20717
a90ef4bf
JM
20718install-strip-libcpp: installdirs
20719 @: $(MAKE); $(unstage)
20720 @r=`${PWD_COMMAND}`; export r; \
20721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20722 $(HOST_EXPORTS) \
20723 (cd $(HOST_SUBDIR)/libcpp && \
20724 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20725
a90ef4bf 20726@endif libcpp
9b980aa1 20727
4b900473
PB
20728# Other targets (info, dvi, pdf, etc.)
20729
a90ef4bf
JM
20730.PHONY: maybe-info-libcpp info-libcpp
20731maybe-info-libcpp:
20732@if libcpp
20733maybe-info-libcpp: info-libcpp
4b900473 20734
a90ef4bf
JM
20735info-libcpp: \
20736 configure-libcpp
20737 @[ -f ./libcpp/Makefile ] || exit 0; \
20738 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20740 $(HOST_EXPORTS) \
a90ef4bf 20741 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20743 done; \
22121df0 20744 echo "Doing info in libcpp"; \
a90ef4bf 20745 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20748 "RANLIB=$${RANLIB}" \
0c24b341 20749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20750 info) \
20751 || exit 1
20752
a90ef4bf 20753@endif libcpp
4b900473 20754
a90ef4bf
JM
20755.PHONY: maybe-dvi-libcpp dvi-libcpp
20756maybe-dvi-libcpp:
20757@if libcpp
20758maybe-dvi-libcpp: dvi-libcpp
4b900473 20759
a90ef4bf
JM
20760dvi-libcpp: \
20761 configure-libcpp
20762 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20763 r=`${PWD_COMMAND}`; export r; \
20764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20765 $(HOST_EXPORTS) \
a90ef4bf 20766 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20768 done; \
22121df0 20769 echo "Doing dvi in libcpp"; \
a90ef4bf 20770 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20773 "RANLIB=$${RANLIB}" \
0c24b341 20774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20775 dvi) \
20776 || exit 1
20777
a90ef4bf 20778@endif libcpp
4b900473 20779
a90ef4bf
JM
20780.PHONY: maybe-pdf-libcpp pdf-libcpp
20781maybe-pdf-libcpp:
20782@if libcpp
20783maybe-pdf-libcpp: pdf-libcpp
4b900473 20784
a90ef4bf
JM
20785pdf-libcpp: \
20786 configure-libcpp
20787 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20788 r=`${PWD_COMMAND}`; export r; \
20789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20790 $(HOST_EXPORTS) \
a90ef4bf 20791 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20793 done; \
22121df0 20794 echo "Doing pdf in libcpp"; \
a90ef4bf 20795 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20798 "RANLIB=$${RANLIB}" \
0c24b341 20799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20800 pdf) \
20801 || exit 1
20802
a90ef4bf 20803@endif libcpp
4b900473 20804
a90ef4bf
JM
20805.PHONY: maybe-html-libcpp html-libcpp
20806maybe-html-libcpp:
20807@if libcpp
20808maybe-html-libcpp: html-libcpp
4b900473 20809
a90ef4bf
JM
20810html-libcpp: \
20811 configure-libcpp
20812 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20813 r=`${PWD_COMMAND}`; export r; \
20814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20815 $(HOST_EXPORTS) \
a90ef4bf 20816 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20818 done; \
22121df0 20819 echo "Doing html in libcpp"; \
a90ef4bf 20820 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20823 "RANLIB=$${RANLIB}" \
0c24b341 20824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20825 html) \
20826 || exit 1
20827
a90ef4bf 20828@endif libcpp
4b900473 20829
a90ef4bf
JM
20830.PHONY: maybe-TAGS-libcpp TAGS-libcpp
20831maybe-TAGS-libcpp:
20832@if libcpp
20833maybe-TAGS-libcpp: TAGS-libcpp
4b900473 20834
a90ef4bf
JM
20835TAGS-libcpp: \
20836 configure-libcpp
20837 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20838 r=`${PWD_COMMAND}`; export r; \
20839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20840 $(HOST_EXPORTS) \
a90ef4bf 20841 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20843 done; \
22121df0 20844 echo "Doing TAGS in libcpp"; \
a90ef4bf 20845 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20848 "RANLIB=$${RANLIB}" \
0c24b341 20849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20850 TAGS) \
20851 || exit 1
20852
a90ef4bf 20853@endif libcpp
4b900473 20854
a90ef4bf
JM
20855.PHONY: maybe-install-info-libcpp install-info-libcpp
20856maybe-install-info-libcpp:
20857@if libcpp
20858maybe-install-info-libcpp: install-info-libcpp
4b900473 20859
a90ef4bf
JM
20860install-info-libcpp: \
20861 configure-libcpp \
20862 info-libcpp
20863 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20864 r=`${PWD_COMMAND}`; export r; \
20865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20866 $(HOST_EXPORTS) \
a90ef4bf 20867 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20869 done; \
22121df0 20870 echo "Doing install-info in libcpp"; \
a90ef4bf 20871 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20874 "RANLIB=$${RANLIB}" \
0c24b341 20875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20876 install-info) \
20877 || exit 1
20878
a90ef4bf 20879@endif libcpp
4b900473 20880
a90ef4bf
JM
20881.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
20882maybe-install-pdf-libcpp:
20883@if libcpp
20884maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 20885
a90ef4bf
JM
20886install-pdf-libcpp: \
20887 configure-libcpp \
20888 pdf-libcpp
20889 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
20890 r=`${PWD_COMMAND}`; export r; \
20891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20892 $(HOST_EXPORTS) \
a90ef4bf 20893 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
20894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20895 done; \
22121df0 20896 echo "Doing install-pdf in libcpp"; \
a90ef4bf 20897 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
20898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20900 "RANLIB=$${RANLIB}" \
0c24b341 20901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
20902 install-pdf) \
20903 || exit 1
20904
a90ef4bf 20905@endif libcpp
a3ca38d2 20906
a90ef4bf
JM
20907.PHONY: maybe-install-html-libcpp install-html-libcpp
20908maybe-install-html-libcpp:
20909@if libcpp
20910maybe-install-html-libcpp: install-html-libcpp
4b900473 20911
a90ef4bf
JM
20912install-html-libcpp: \
20913 configure-libcpp \
20914 html-libcpp
20915 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20916 r=`${PWD_COMMAND}`; export r; \
20917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20918 $(HOST_EXPORTS) \
a90ef4bf 20919 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20921 done; \
22121df0 20922 echo "Doing install-html in libcpp"; \
a90ef4bf 20923 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20926 "RANLIB=$${RANLIB}" \
0c24b341 20927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20928 install-html) \
20929 || exit 1
20930
a90ef4bf 20931@endif libcpp
4b900473 20932
a90ef4bf
JM
20933.PHONY: maybe-installcheck-libcpp installcheck-libcpp
20934maybe-installcheck-libcpp:
20935@if libcpp
20936maybe-installcheck-libcpp: installcheck-libcpp
4b900473 20937
a90ef4bf
JM
20938installcheck-libcpp: \
20939 configure-libcpp
20940 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20941 r=`${PWD_COMMAND}`; export r; \
20942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20943 $(HOST_EXPORTS) \
a90ef4bf 20944 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20946 done; \
22121df0 20947 echo "Doing installcheck in libcpp"; \
a90ef4bf 20948 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20951 "RANLIB=$${RANLIB}" \
0c24b341 20952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20953 installcheck) \
20954 || exit 1
20955
a90ef4bf 20956@endif libcpp
4b900473 20957
a90ef4bf
JM
20958.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
20959maybe-mostlyclean-libcpp:
20960@if libcpp
20961maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 20962
a90ef4bf
JM
20963mostlyclean-libcpp:
20964 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20965 r=`${PWD_COMMAND}`; export r; \
20966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20967 $(HOST_EXPORTS) \
a90ef4bf 20968 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20970 done; \
22121df0 20971 echo "Doing mostlyclean in libcpp"; \
a90ef4bf 20972 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20975 "RANLIB=$${RANLIB}" \
0c24b341 20976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20977 mostlyclean) \
20978 || exit 1
20979
a90ef4bf 20980@endif libcpp
4b900473 20981
a90ef4bf
JM
20982.PHONY: maybe-clean-libcpp clean-libcpp
20983maybe-clean-libcpp:
20984@if libcpp
20985maybe-clean-libcpp: clean-libcpp
4b900473 20986
a90ef4bf
JM
20987clean-libcpp:
20988 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20989 r=`${PWD_COMMAND}`; export r; \
20990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20991 $(HOST_EXPORTS) \
a90ef4bf 20992 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20994 done; \
22121df0 20995 echo "Doing clean in libcpp"; \
a90ef4bf 20996 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20999 "RANLIB=$${RANLIB}" \
0c24b341 21000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21001 clean) \
21002 || exit 1
21003
a90ef4bf 21004@endif libcpp
4b900473 21005
a90ef4bf
JM
21006.PHONY: maybe-distclean-libcpp distclean-libcpp
21007maybe-distclean-libcpp:
21008@if libcpp
21009maybe-distclean-libcpp: distclean-libcpp
4b900473 21010
a90ef4bf
JM
21011distclean-libcpp:
21012 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21013 r=`${PWD_COMMAND}`; export r; \
21014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21015 $(HOST_EXPORTS) \
a90ef4bf 21016 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21018 done; \
22121df0 21019 echo "Doing distclean in libcpp"; \
a90ef4bf 21020 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21023 "RANLIB=$${RANLIB}" \
0c24b341 21024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21025 distclean) \
21026 || exit 1
21027
a90ef4bf 21028@endif libcpp
4b900473 21029
a90ef4bf
JM
21030.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21031maybe-maintainer-clean-libcpp:
21032@if libcpp
21033maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21034
a90ef4bf
JM
21035maintainer-clean-libcpp:
21036 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21037 r=`${PWD_COMMAND}`; export r; \
21038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21039 $(HOST_EXPORTS) \
a90ef4bf 21040 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21042 done; \
22121df0 21043 echo "Doing maintainer-clean in libcpp"; \
a90ef4bf 21044 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21047 "RANLIB=$${RANLIB}" \
0c24b341 21048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21049 maintainer-clean) \
21050 || exit 1
21051
a90ef4bf 21052@endif libcpp
4b900473
PB
21053
21054
21055
a90ef4bf
JM
21056.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21057maybe-configure-libdecnumber:
1f53ca9a 21058@if gcc-bootstrap
a90ef4bf 21059configure-libdecnumber: stage_current
1f53ca9a 21060@endif gcc-bootstrap
a90ef4bf
JM
21061@if libdecnumber
21062maybe-configure-libdecnumber: configure-libdecnumber
21063configure-libdecnumber:
1f53ca9a
AO
21064 @r=`${PWD_COMMAND}`; export r; \
21065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21066 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
22121df0 21067 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
1f53ca9a 21068 $(HOST_EXPORTS) \
a90ef4bf
JM
21069 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21070 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21071 case $(srcdir) in \
21072 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21073 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21074 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21075 esac; \
1b6c0831
L
21076 module_srcdir=libdecnumber; \
21077 $(SHELL) \
21078 $$s/$$module_srcdir/configure \
21079 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21080 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21081 --target=${target_alias} \
1f53ca9a 21082 || exit 1
a90ef4bf 21083@endif libdecnumber
1f53ca9a
AO
21084
21085
21086
a90ef4bf
JM
21087.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21088maybe-configure-stage1-libdecnumber:
21089@if libdecnumber-bootstrap
21090maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21091configure-stage1-libdecnumber:
1f53ca9a 21092 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21093 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21094 @r=`${PWD_COMMAND}`; export r; \
21095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21096 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21097 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21098 $(HOST_EXPORTS) \
21099 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21100 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21101 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
21102 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber; \
21103 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21104 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21105 case $(srcdir) in \
21106 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21107 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21108 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21109 esac; \
1b6c0831
L
21110 module_srcdir=libdecnumber; \
21111 $(SHELL) $$s/$$module_srcdir/configure \
21112 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21113 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21114 --target=${target_alias} \
21115 \
a90ef4bf
JM
21116 $(STAGE1_CONFIGURE_FLAGS)
21117@endif libdecnumber-bootstrap
1f53ca9a 21118
a90ef4bf
JM
21119.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21120maybe-configure-stage2-libdecnumber:
21121@if libdecnumber-bootstrap
21122maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21123configure-stage2-libdecnumber:
1f53ca9a 21124 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21125 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21126 @r=`${PWD_COMMAND}`; export r; \
21127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21128 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21129 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21130 $(HOST_EXPORTS) \
21131 $(POSTSTAGE1_HOST_EXPORTS) \
21132 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21133 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21134 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21135 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber; \
21136 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21137 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21138 case $(srcdir) in \
21139 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21140 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21141 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21142 esac; \
1b6c0831
L
21143 module_srcdir=libdecnumber; \
21144 $(SHELL) $$s/$$module_srcdir/configure \
21145 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21146 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21147 --target=${target_alias} \
22121df0 21148 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21149 $(STAGE2_CONFIGURE_FLAGS)
21150@endif libdecnumber-bootstrap
1f53ca9a 21151
a90ef4bf
JM
21152.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21153maybe-configure-stage3-libdecnumber:
21154@if libdecnumber-bootstrap
21155maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21156configure-stage3-libdecnumber:
1f53ca9a 21157 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21158 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21159 @r=`${PWD_COMMAND}`; export r; \
21160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21161 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21162 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21163 $(HOST_EXPORTS) \
21164 $(POSTSTAGE1_HOST_EXPORTS) \
21165 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21166 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21167 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21168 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber; \
21169 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21170 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21171 case $(srcdir) in \
21172 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21173 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21174 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21175 esac; \
1b6c0831
L
21176 module_srcdir=libdecnumber; \
21177 $(SHELL) $$s/$$module_srcdir/configure \
21178 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21179 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21180 --target=${target_alias} \
22121df0 21181 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21182 $(STAGE3_CONFIGURE_FLAGS)
21183@endif libdecnumber-bootstrap
1f53ca9a 21184
a90ef4bf
JM
21185.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21186maybe-configure-stage4-libdecnumber:
21187@if libdecnumber-bootstrap
21188maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21189configure-stage4-libdecnumber:
1f53ca9a 21190 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21191 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21192 @r=`${PWD_COMMAND}`; export r; \
21193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21194 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21195 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21196 $(HOST_EXPORTS) \
21197 $(POSTSTAGE1_HOST_EXPORTS) \
21198 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21199 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21200 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21201 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber; \
21202 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21203 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21204 case $(srcdir) in \
21205 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21206 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21207 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21208 esac; \
1b6c0831
L
21209 module_srcdir=libdecnumber; \
21210 $(SHELL) $$s/$$module_srcdir/configure \
21211 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21212 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21213 --target=${target_alias} \
22121df0 21214 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21215 $(STAGE4_CONFIGURE_FLAGS)
21216@endif libdecnumber-bootstrap
1f53ca9a 21217
a90ef4bf
JM
21218.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21219maybe-configure-stageprofile-libdecnumber:
21220@if libdecnumber-bootstrap
21221maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21222configure-stageprofile-libdecnumber:
1f53ca9a 21223 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21224 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21225 @r=`${PWD_COMMAND}`; export r; \
21226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21227 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21228 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21229 $(HOST_EXPORTS) \
21230 $(POSTSTAGE1_HOST_EXPORTS) \
21231 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21232 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21233 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21234 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber; \
21235 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21236 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21237 case $(srcdir) in \
21238 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21239 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21240 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21241 esac; \
1b6c0831
L
21242 module_srcdir=libdecnumber; \
21243 $(SHELL) $$s/$$module_srcdir/configure \
21244 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21245 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21246 --target=${target_alias} \
22121df0 21247 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21248 $(STAGEprofile_CONFIGURE_FLAGS)
21249@endif libdecnumber-bootstrap
1f53ca9a 21250
a90ef4bf
JM
21251.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21252maybe-configure-stagefeedback-libdecnumber:
21253@if libdecnumber-bootstrap
21254maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21255configure-stagefeedback-libdecnumber:
1f53ca9a 21256 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21257 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21258 @r=`${PWD_COMMAND}`; export r; \
21259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21260 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21261 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21262 $(HOST_EXPORTS) \
21263 $(POSTSTAGE1_HOST_EXPORTS) \
21264 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21265 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21266 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21267 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber; \
21268 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21269 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21270 case $(srcdir) in \
21271 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21272 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21273 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21274 esac; \
1b6c0831
L
21275 module_srcdir=libdecnumber; \
21276 $(SHELL) $$s/$$module_srcdir/configure \
21277 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21278 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21279 --target=${target_alias} \
22121df0 21280 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21281 $(STAGEfeedback_CONFIGURE_FLAGS)
21282@endif libdecnumber-bootstrap
1f53ca9a
AO
21283
21284
21285
21286
21287
a90ef4bf
JM
21288.PHONY: all-libdecnumber maybe-all-libdecnumber
21289maybe-all-libdecnumber:
1f53ca9a 21290@if gcc-bootstrap
a90ef4bf 21291all-libdecnumber: stage_current
1f53ca9a 21292@endif gcc-bootstrap
a90ef4bf
JM
21293@if libdecnumber
21294TARGET-libdecnumber=all
21295maybe-all-libdecnumber: all-libdecnumber
21296all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21297 @r=`${PWD_COMMAND}`; export r; \
21298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21299 $(HOST_EXPORTS) \
a90ef4bf 21300 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21301 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21302 $(TARGET-libdecnumber))
21303@endif libdecnumber
1f53ca9a
AO
21304
21305
21306
a90ef4bf
JM
21307.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21308.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21309maybe-all-stage1-libdecnumber:
21310maybe-clean-stage1-libdecnumber:
21311@if libdecnumber-bootstrap
21312maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21313all-stage1: all-stage1-libdecnumber
21314TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21315all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21316 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21317 @r=`${PWD_COMMAND}`; export r; \
21318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21319 TFLAGS="$(STAGE1_TFLAGS)"; \
21320 $(HOST_EXPORTS) \
a90ef4bf 21321 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21322 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21323 CFLAGS="$(STAGE1_CFLAGS)" \
21324 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21325 LIBCFLAGS="$(LIBCFLAGS)" \
21326 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21327 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21328 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21329 $(EXTRA_HOST_FLAGS) \
21330 $(STAGE1_FLAGS_TO_PASS) \
1f53ca9a 21331 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21332 $(TARGET-stage1-libdecnumber)
1f53ca9a 21333
a90ef4bf
JM
21334maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21335clean-stage1: clean-stage1-libdecnumber
21336clean-stage1-libdecnumber:
1f53ca9a 21337 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21338 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21339 else \
a90ef4bf 21340 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21341 $(MAKE) stage1-start; \
21342 fi; \
a90ef4bf 21343 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21344 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21345 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21346@endif libdecnumber-bootstrap
1f53ca9a
AO
21347
21348
a90ef4bf
JM
21349.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21350.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21351maybe-all-stage2-libdecnumber:
21352maybe-clean-stage2-libdecnumber:
21353@if libdecnumber-bootstrap
21354maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21355all-stage2: all-stage2-libdecnumber
21356TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21357all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21358 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21359 @r=`${PWD_COMMAND}`; export r; \
21360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21361 TFLAGS="$(STAGE2_TFLAGS)"; \
21362 $(HOST_EXPORTS) \
21363 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21364 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21365 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21366 CFLAGS="$(STAGE2_CFLAGS)" \
21367 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21368 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21369 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21370 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21371 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21372 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21373 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21374 $(TARGET-stage2-libdecnumber)
1f53ca9a 21375
a90ef4bf
JM
21376maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21377clean-stage2: clean-stage2-libdecnumber
21378clean-stage2-libdecnumber:
1f53ca9a 21379 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21380 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21381 else \
a90ef4bf 21382 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21383 $(MAKE) stage2-start; \
21384 fi; \
a90ef4bf 21385 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21386 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21387@endif libdecnumber-bootstrap
1f53ca9a
AO
21388
21389
a90ef4bf
JM
21390.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21391.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21392maybe-all-stage3-libdecnumber:
21393maybe-clean-stage3-libdecnumber:
21394@if libdecnumber-bootstrap
21395maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21396all-stage3: all-stage3-libdecnumber
21397TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21398all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21399 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21400 @r=`${PWD_COMMAND}`; export r; \
21401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21402 TFLAGS="$(STAGE3_TFLAGS)"; \
21403 $(HOST_EXPORTS) \
21404 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21405 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21406 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21407 CFLAGS="$(STAGE3_CFLAGS)" \
21408 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21409 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21410 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21411 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21412 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21413 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21414 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21415 $(TARGET-stage3-libdecnumber)
1f53ca9a 21416
a90ef4bf
JM
21417maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21418clean-stage3: clean-stage3-libdecnumber
21419clean-stage3-libdecnumber:
1f53ca9a 21420 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21421 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21422 else \
a90ef4bf 21423 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21424 $(MAKE) stage3-start; \
21425 fi; \
a90ef4bf 21426 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21427 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21428@endif libdecnumber-bootstrap
1f53ca9a
AO
21429
21430
a90ef4bf
JM
21431.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21432.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21433maybe-all-stage4-libdecnumber:
21434maybe-clean-stage4-libdecnumber:
21435@if libdecnumber-bootstrap
21436maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21437all-stage4: all-stage4-libdecnumber
21438TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21439all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21440 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21441 @r=`${PWD_COMMAND}`; export r; \
21442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21443 TFLAGS="$(STAGE4_TFLAGS)"; \
21444 $(HOST_EXPORTS) \
21445 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21446 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21447 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21448 CFLAGS="$(STAGE4_CFLAGS)" \
21449 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21450 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21451 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21452 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21453 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21454 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21455 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21456 $(TARGET-stage4-libdecnumber)
1f53ca9a 21457
a90ef4bf
JM
21458maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21459clean-stage4: clean-stage4-libdecnumber
21460clean-stage4-libdecnumber:
1f53ca9a 21461 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21462 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21463 else \
a90ef4bf 21464 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21465 $(MAKE) stage4-start; \
21466 fi; \
a90ef4bf 21467 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21468 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21469@endif libdecnumber-bootstrap
1f53ca9a
AO
21470
21471
a90ef4bf
JM
21472.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21473.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21474maybe-all-stageprofile-libdecnumber:
21475maybe-clean-stageprofile-libdecnumber:
21476@if libdecnumber-bootstrap
21477maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21478all-stageprofile: all-stageprofile-libdecnumber
21479TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21480all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21481 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21482 @r=`${PWD_COMMAND}`; export r; \
21483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21484 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21485 $(HOST_EXPORTS) \
21486 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21487 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21488 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21489 CFLAGS="$(STAGEprofile_CFLAGS)" \
21490 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21491 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21492 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21493 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21494 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21495 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21496 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21497 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21498
a90ef4bf
JM
21499maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21500clean-stageprofile: clean-stageprofile-libdecnumber
21501clean-stageprofile-libdecnumber:
1f53ca9a 21502 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21503 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21504 else \
a90ef4bf 21505 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21506 $(MAKE) stageprofile-start; \
21507 fi; \
a90ef4bf 21508 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21509 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21510@endif libdecnumber-bootstrap
1f53ca9a
AO
21511
21512
a90ef4bf
JM
21513.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21514.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21515maybe-all-stagefeedback-libdecnumber:
21516maybe-clean-stagefeedback-libdecnumber:
21517@if libdecnumber-bootstrap
21518maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21519all-stagefeedback: all-stagefeedback-libdecnumber
21520TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21521all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21522 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21523 @r=`${PWD_COMMAND}`; export r; \
21524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21525 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21526 $(HOST_EXPORTS) \
21527 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21528 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21529 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21530 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21531 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21532 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21533 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21534 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21535 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21536 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21537 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21538 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21539
a90ef4bf
JM
21540maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21541clean-stagefeedback: clean-stagefeedback-libdecnumber
21542clean-stagefeedback-libdecnumber:
1f53ca9a 21543 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21544 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21545 else \
a90ef4bf 21546 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21547 $(MAKE) stagefeedback-start; \
21548 fi; \
a90ef4bf 21549 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21550 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21551@endif libdecnumber-bootstrap
1f53ca9a
AO
21552
21553
21554
21555
21556
a90ef4bf
JM
21557.PHONY: check-libdecnumber maybe-check-libdecnumber
21558maybe-check-libdecnumber:
21559@if libdecnumber
21560maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21561
a90ef4bf 21562check-libdecnumber:
1f53ca9a
AO
21563 @: $(MAKE); $(unstage)
21564 @r=`${PWD_COMMAND}`; export r; \
21565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21566 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 21567 (cd $(HOST_SUBDIR)/libdecnumber && \
f91ca6bc 21568 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
1f53ca9a 21569
a90ef4bf 21570@endif libdecnumber
1f53ca9a 21571
a90ef4bf
JM
21572.PHONY: install-libdecnumber maybe-install-libdecnumber
21573maybe-install-libdecnumber:
21574@if libdecnumber
21575maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21576
a90ef4bf
JM
21577install-libdecnumber: installdirs
21578 @: $(MAKE); $(unstage)
21579 @r=`${PWD_COMMAND}`; export r; \
21580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21581 $(HOST_EXPORTS) \
21582 (cd $(HOST_SUBDIR)/libdecnumber && \
21583 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21584
a90ef4bf 21585@endif libdecnumber
1f53ca9a 21586
a90ef4bf
JM
21587.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21588maybe-install-strip-libdecnumber:
21589@if libdecnumber
21590maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21591
a90ef4bf
JM
21592install-strip-libdecnumber: installdirs
21593 @: $(MAKE); $(unstage)
21594 @r=`${PWD_COMMAND}`; export r; \
21595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21596 $(HOST_EXPORTS) \
21597 (cd $(HOST_SUBDIR)/libdecnumber && \
21598 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21599
a90ef4bf 21600@endif libdecnumber
9b980aa1 21601
1f53ca9a
AO
21602# Other targets (info, dvi, pdf, etc.)
21603
a90ef4bf
JM
21604.PHONY: maybe-info-libdecnumber info-libdecnumber
21605maybe-info-libdecnumber:
21606@if libdecnumber
21607maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21608
a90ef4bf
JM
21609info-libdecnumber: \
21610 configure-libdecnumber
21611 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21612 r=`${PWD_COMMAND}`; export r; \
21613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21614 $(HOST_EXPORTS) \
21615 for flag in $(EXTRA_HOST_FLAGS) ; do \
21616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21617 done; \
22121df0 21618 echo "Doing info in libdecnumber"; \
a90ef4bf 21619 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21622 "RANLIB=$${RANLIB}" \
21623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21624 info) \
21625 || exit 1
21626
a90ef4bf 21627@endif libdecnumber
1f53ca9a 21628
a90ef4bf
JM
21629.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21630maybe-dvi-libdecnumber:
21631@if libdecnumber
21632maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21633
a90ef4bf
JM
21634dvi-libdecnumber: \
21635 configure-libdecnumber
21636 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21637 r=`${PWD_COMMAND}`; export r; \
21638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21639 $(HOST_EXPORTS) \
21640 for flag in $(EXTRA_HOST_FLAGS) ; do \
21641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21642 done; \
22121df0 21643 echo "Doing dvi in libdecnumber"; \
a90ef4bf 21644 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21647 "RANLIB=$${RANLIB}" \
21648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21649 dvi) \
21650 || exit 1
21651
a90ef4bf 21652@endif libdecnumber
1f53ca9a 21653
a90ef4bf
JM
21654.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21655maybe-pdf-libdecnumber:
21656@if libdecnumber
21657maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21658
a90ef4bf
JM
21659pdf-libdecnumber: \
21660 configure-libdecnumber
21661 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21662 r=`${PWD_COMMAND}`; export r; \
21663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21664 $(HOST_EXPORTS) \
21665 for flag in $(EXTRA_HOST_FLAGS) ; do \
21666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21667 done; \
22121df0 21668 echo "Doing pdf in libdecnumber"; \
a90ef4bf 21669 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21672 "RANLIB=$${RANLIB}" \
21673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21674 pdf) \
21675 || exit 1
21676
a90ef4bf 21677@endif libdecnumber
1f53ca9a 21678
a90ef4bf
JM
21679.PHONY: maybe-html-libdecnumber html-libdecnumber
21680maybe-html-libdecnumber:
21681@if libdecnumber
21682maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21683
a90ef4bf
JM
21684html-libdecnumber: \
21685 configure-libdecnumber
21686 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21687 r=`${PWD_COMMAND}`; export r; \
21688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21689 $(HOST_EXPORTS) \
21690 for flag in $(EXTRA_HOST_FLAGS) ; do \
21691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21692 done; \
22121df0 21693 echo "Doing html in libdecnumber"; \
a90ef4bf 21694 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21697 "RANLIB=$${RANLIB}" \
21698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21699 html) \
21700 || exit 1
21701
a90ef4bf 21702@endif libdecnumber
1f53ca9a 21703
a90ef4bf
JM
21704.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21705maybe-TAGS-libdecnumber:
21706@if libdecnumber
21707maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21708
a90ef4bf
JM
21709TAGS-libdecnumber: \
21710 configure-libdecnumber
21711 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21712 r=`${PWD_COMMAND}`; export r; \
21713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21714 $(HOST_EXPORTS) \
21715 for flag in $(EXTRA_HOST_FLAGS) ; do \
21716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21717 done; \
22121df0 21718 echo "Doing TAGS in libdecnumber"; \
a90ef4bf 21719 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21722 "RANLIB=$${RANLIB}" \
21723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21724 TAGS) \
21725 || exit 1
21726
a90ef4bf 21727@endif libdecnumber
1f53ca9a 21728
a90ef4bf
JM
21729.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21730maybe-install-info-libdecnumber:
21731@if libdecnumber
21732maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21733
a90ef4bf
JM
21734install-info-libdecnumber: \
21735 configure-libdecnumber \
21736 info-libdecnumber
21737 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21738 r=`${PWD_COMMAND}`; export r; \
21739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21740 $(HOST_EXPORTS) \
21741 for flag in $(EXTRA_HOST_FLAGS) ; do \
21742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21743 done; \
22121df0 21744 echo "Doing install-info in libdecnumber"; \
a90ef4bf 21745 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21748 "RANLIB=$${RANLIB}" \
21749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21750 install-info) \
21751 || exit 1
21752
a90ef4bf 21753@endif libdecnumber
1f53ca9a 21754
a90ef4bf
JM
21755.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21756maybe-install-pdf-libdecnumber:
21757@if libdecnumber
21758maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21759
a90ef4bf
JM
21760install-pdf-libdecnumber: \
21761 configure-libdecnumber \
21762 pdf-libdecnumber
21763 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21764 r=`${PWD_COMMAND}`; export r; \
21765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21766 $(HOST_EXPORTS) \
21767 for flag in $(EXTRA_HOST_FLAGS) ; do \
21768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21769 done; \
22121df0 21770 echo "Doing install-pdf in libdecnumber"; \
a90ef4bf 21771 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21774 "RANLIB=$${RANLIB}" \
21775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21776 install-pdf) \
21777 || exit 1
21778
a90ef4bf 21779@endif libdecnumber
1f53ca9a 21780
a90ef4bf
JM
21781.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21782maybe-install-html-libdecnumber:
21783@if libdecnumber
21784maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 21785
a90ef4bf
JM
21786install-html-libdecnumber: \
21787 configure-libdecnumber \
21788 html-libdecnumber
21789 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21790 r=`${PWD_COMMAND}`; export r; \
21791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21792 $(HOST_EXPORTS) \
21793 for flag in $(EXTRA_HOST_FLAGS) ; do \
21794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21795 done; \
22121df0 21796 echo "Doing install-html in libdecnumber"; \
a90ef4bf 21797 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21800 "RANLIB=$${RANLIB}" \
21801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21802 install-html) \
21803 || exit 1
21804
a90ef4bf 21805@endif libdecnumber
1f53ca9a 21806
a90ef4bf
JM
21807.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
21808maybe-installcheck-libdecnumber:
21809@if libdecnumber
21810maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 21811
a90ef4bf
JM
21812installcheck-libdecnumber: \
21813 configure-libdecnumber
21814 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21815 r=`${PWD_COMMAND}`; export r; \
21816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21817 $(HOST_EXPORTS) \
21818 for flag in $(EXTRA_HOST_FLAGS) ; do \
21819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21820 done; \
22121df0 21821 echo "Doing installcheck in libdecnumber"; \
a90ef4bf 21822 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21825 "RANLIB=$${RANLIB}" \
21826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21827 installcheck) \
21828 || exit 1
21829
a90ef4bf 21830@endif libdecnumber
1f53ca9a 21831
a90ef4bf
JM
21832.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
21833maybe-mostlyclean-libdecnumber:
21834@if libdecnumber
21835maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 21836
a90ef4bf
JM
21837mostlyclean-libdecnumber:
21838 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21839 r=`${PWD_COMMAND}`; export r; \
21840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21841 $(HOST_EXPORTS) \
21842 for flag in $(EXTRA_HOST_FLAGS) ; do \
21843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21844 done; \
22121df0 21845 echo "Doing mostlyclean in libdecnumber"; \
a90ef4bf 21846 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21849 "RANLIB=$${RANLIB}" \
21850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21851 mostlyclean) \
21852 || exit 1
21853
a90ef4bf 21854@endif libdecnumber
1f53ca9a 21855
a90ef4bf
JM
21856.PHONY: maybe-clean-libdecnumber clean-libdecnumber
21857maybe-clean-libdecnumber:
21858@if libdecnumber
21859maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 21860
a90ef4bf
JM
21861clean-libdecnumber:
21862 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21863 r=`${PWD_COMMAND}`; export r; \
21864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21865 $(HOST_EXPORTS) \
21866 for flag in $(EXTRA_HOST_FLAGS) ; do \
21867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21868 done; \
22121df0 21869 echo "Doing clean in libdecnumber"; \
a90ef4bf 21870 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21873 "RANLIB=$${RANLIB}" \
21874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21875 clean) \
21876 || exit 1
21877
a90ef4bf 21878@endif libdecnumber
1f53ca9a 21879
a90ef4bf
JM
21880.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
21881maybe-distclean-libdecnumber:
21882@if libdecnumber
21883maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 21884
a90ef4bf
JM
21885distclean-libdecnumber:
21886 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21887 r=`${PWD_COMMAND}`; export r; \
21888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21889 $(HOST_EXPORTS) \
21890 for flag in $(EXTRA_HOST_FLAGS) ; do \
21891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21892 done; \
22121df0 21893 echo "Doing distclean in libdecnumber"; \
a90ef4bf 21894 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21897 "RANLIB=$${RANLIB}" \
21898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21899 distclean) \
21900 || exit 1
21901
a90ef4bf 21902@endif libdecnumber
1f53ca9a 21903
a90ef4bf
JM
21904.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
21905maybe-maintainer-clean-libdecnumber:
21906@if libdecnumber
21907maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 21908
a90ef4bf
JM
21909maintainer-clean-libdecnumber:
21910 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21911 r=`${PWD_COMMAND}`; export r; \
21912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21913 $(HOST_EXPORTS) \
21914 for flag in $(EXTRA_HOST_FLAGS) ; do \
21915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21916 done; \
22121df0 21917 echo "Doing maintainer-clean in libdecnumber"; \
a90ef4bf 21918 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21921 "RANLIB=$${RANLIB}" \
21922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21923 maintainer-clean) \
21924 || exit 1
21925
a90ef4bf 21926@endif libdecnumber
1f53ca9a
AO
21927
21928
21929
a90ef4bf
JM
21930.PHONY: configure-libgui maybe-configure-libgui
21931maybe-configure-libgui:
4f0ef2d8 21932@if gcc-bootstrap
a90ef4bf 21933configure-libgui: stage_current
4f0ef2d8 21934@endif gcc-bootstrap
a90ef4bf
JM
21935@if libgui
21936maybe-configure-libgui: configure-libgui
21937configure-libgui:
0aed8855 21938 @: $(MAKE); $(unstage)
c52c6897 21939 @r=`${PWD_COMMAND}`; export r; \
4fa63067 21940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21941 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
22121df0 21942 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui; \
1f53ca9a 21943 $(HOST_EXPORTS) \
a90ef4bf
JM
21944 echo Configuring in $(HOST_SUBDIR)/libgui; \
21945 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 21946 case $(srcdir) in \
b00612cc 21947 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21948 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 21949 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 21950 esac; \
1b6c0831
L
21951 module_srcdir=libgui; \
21952 $(SHELL) \
21953 $$s/$$module_srcdir/configure \
21954 --srcdir=$${topdir}/$$module_srcdir \
4b900473 21955 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21956 --target=${target_alias} \
2a4cbe27 21957 || exit 1
a90ef4bf 21958@endif libgui
2a4cbe27 21959
a7254363
PB
21960
21961
d545f33b
PB
21962
21963
a90ef4bf
JM
21964.PHONY: all-libgui maybe-all-libgui
21965maybe-all-libgui:
4f0ef2d8 21966@if gcc-bootstrap
a90ef4bf 21967all-libgui: stage_current
4f0ef2d8 21968@endif gcc-bootstrap
a90ef4bf
JM
21969@if libgui
21970TARGET-libgui=all
21971maybe-all-libgui: all-libgui
21972all-libgui: configure-libgui
0aed8855 21973 @: $(MAKE); $(unstage)
4fa63067
NN
21974 @r=`${PWD_COMMAND}`; export r; \
21975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 21976 $(HOST_EXPORTS) \
a90ef4bf 21977 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 21978 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21979 $(TARGET-libgui))
21980@endif libgui
2a4cbe27 21981
a7254363 21982
d545f33b
PB
21983
21984
a90ef4bf
JM
21985.PHONY: check-libgui maybe-check-libgui
21986maybe-check-libgui:
21987@if libgui
21988maybe-check-libgui: check-libgui
2a4cbe27 21989
a90ef4bf 21990check-libgui:
0aed8855 21991 @: $(MAKE); $(unstage)
4fa63067 21992 @r=`${PWD_COMMAND}`; export r; \
b40e3958 21993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21994 $(HOST_EXPORTS) \
a90ef4bf 21995 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 21996 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 21997
a90ef4bf 21998@endif libgui
2a4cbe27 21999
a90ef4bf
JM
22000.PHONY: install-libgui maybe-install-libgui
22001maybe-install-libgui:
22002@if libgui
22003maybe-install-libgui: install-libgui
2a4cbe27 22004
a90ef4bf 22005install-libgui: installdirs
0aed8855 22006 @: $(MAKE); $(unstage)
4fa63067 22007 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22009 $(HOST_EXPORTS) \
a90ef4bf 22010 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22011 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22012
a90ef4bf 22013@endif libgui
2a4cbe27 22014
a90ef4bf
JM
22015.PHONY: install-strip-libgui maybe-install-strip-libgui
22016maybe-install-strip-libgui:
22017@if libgui
22018maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22019
a90ef4bf 22020install-strip-libgui: installdirs
9b980aa1
RW
22021 @: $(MAKE); $(unstage)
22022 @r=`${PWD_COMMAND}`; export r; \
22023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22024 $(HOST_EXPORTS) \
a90ef4bf 22025 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22026 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22027
a90ef4bf 22028@endif libgui
9b980aa1 22029
56a8fe78 22030# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22031
a90ef4bf
JM
22032.PHONY: maybe-info-libgui info-libgui
22033maybe-info-libgui:
22034@if libgui
22035maybe-info-libgui: info-libgui
4fa63067 22036
a90ef4bf
JM
22037info-libgui: \
22038 configure-libgui
0aed8855 22039 @: $(MAKE); $(unstage)
a90ef4bf 22040 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22041 r=`${PWD_COMMAND}`; export r; \
22042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22043 $(HOST_EXPORTS) \
b813574b 22044 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22046 done; \
22121df0 22047 echo "Doing info in libgui"; \
a90ef4bf 22048 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22051 "RANLIB=$${RANLIB}" \
0c24b341 22052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22053 info) \
2a4cbe27
NN
22054 || exit 1
22055
a90ef4bf 22056@endif libgui
2a4cbe27 22057
a90ef4bf
JM
22058.PHONY: maybe-dvi-libgui dvi-libgui
22059maybe-dvi-libgui:
22060@if libgui
22061maybe-dvi-libgui: dvi-libgui
2a4cbe27 22062
a90ef4bf
JM
22063dvi-libgui: \
22064 configure-libgui
0aed8855 22065 @: $(MAKE); $(unstage)
a90ef4bf 22066 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22067 r=`${PWD_COMMAND}`; export r; \
22068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22069 $(HOST_EXPORTS) \
b813574b 22070 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22072 done; \
22121df0 22073 echo "Doing dvi in libgui"; \
a90ef4bf 22074 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22077 "RANLIB=$${RANLIB}" \
0c24b341 22078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22079 dvi) \
2a4cbe27
NN
22080 || exit 1
22081
a90ef4bf 22082@endif libgui
2a4cbe27 22083
a90ef4bf
JM
22084.PHONY: maybe-pdf-libgui pdf-libgui
22085maybe-pdf-libgui:
22086@if libgui
22087maybe-pdf-libgui: pdf-libgui
56a8fe78 22088
a90ef4bf
JM
22089pdf-libgui: \
22090 configure-libgui
56a8fe78 22091 @: $(MAKE); $(unstage)
a90ef4bf 22092 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22093 r=`${PWD_COMMAND}`; export r; \
22094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22095 $(HOST_EXPORTS) \
22096 for flag in $(EXTRA_HOST_FLAGS) ; do \
22097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22098 done; \
22121df0 22099 echo "Doing pdf in libgui"; \
a90ef4bf 22100 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22103 "RANLIB=$${RANLIB}" \
0c24b341 22104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22105 pdf) \
22106 || exit 1
22107
a90ef4bf 22108@endif libgui
56a8fe78 22109
a90ef4bf
JM
22110.PHONY: maybe-html-libgui html-libgui
22111maybe-html-libgui:
22112@if libgui
22113maybe-html-libgui: html-libgui
6d389afc 22114
a90ef4bf
JM
22115html-libgui: \
22116 configure-libgui
0aed8855 22117 @: $(MAKE); $(unstage)
a90ef4bf 22118 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22119 r=`${PWD_COMMAND}`; export r; \
22120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22121 $(HOST_EXPORTS) \
22122 for flag in $(EXTRA_HOST_FLAGS) ; do \
22123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22124 done; \
22121df0 22125 echo "Doing html in libgui"; \
a90ef4bf 22126 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22129 "RANLIB=$${RANLIB}" \
0c24b341 22130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22131 html) \
22132 || exit 1
22133
a90ef4bf 22134@endif libgui
6d389afc 22135
a90ef4bf
JM
22136.PHONY: maybe-TAGS-libgui TAGS-libgui
22137maybe-TAGS-libgui:
22138@if libgui
22139maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22140
a90ef4bf
JM
22141TAGS-libgui: \
22142 configure-libgui
0aed8855 22143 @: $(MAKE); $(unstage)
a90ef4bf 22144 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22145 r=`${PWD_COMMAND}`; export r; \
22146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22147 $(HOST_EXPORTS) \
b813574b 22148 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22150 done; \
22121df0 22151 echo "Doing TAGS in libgui"; \
a90ef4bf 22152 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22155 "RANLIB=$${RANLIB}" \
0c24b341 22156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22157 TAGS) \
2a4cbe27
NN
22158 || exit 1
22159
a90ef4bf 22160@endif libgui
2a4cbe27 22161
a90ef4bf
JM
22162.PHONY: maybe-install-info-libgui install-info-libgui
22163maybe-install-info-libgui:
22164@if libgui
22165maybe-install-info-libgui: install-info-libgui
2a4cbe27 22166
a90ef4bf
JM
22167install-info-libgui: \
22168 configure-libgui \
22169 info-libgui
0aed8855 22170 @: $(MAKE); $(unstage)
a90ef4bf 22171 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22172 r=`${PWD_COMMAND}`; export r; \
22173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22174 $(HOST_EXPORTS) \
b813574b 22175 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22177 done; \
22121df0 22178 echo "Doing install-info in libgui"; \
a90ef4bf 22179 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22182 "RANLIB=$${RANLIB}" \
0c24b341 22183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22184 install-info) \
2a4cbe27
NN
22185 || exit 1
22186
a90ef4bf 22187@endif libgui
2a4cbe27 22188
a90ef4bf
JM
22189.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22190maybe-install-pdf-libgui:
22191@if libgui
22192maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22193
a90ef4bf
JM
22194install-pdf-libgui: \
22195 configure-libgui \
22196 pdf-libgui
a3ca38d2 22197 @: $(MAKE); $(unstage)
a90ef4bf 22198 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22199 r=`${PWD_COMMAND}`; export r; \
22200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22201 $(HOST_EXPORTS) \
22202 for flag in $(EXTRA_HOST_FLAGS) ; do \
22203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22204 done; \
22121df0 22205 echo "Doing install-pdf in libgui"; \
a90ef4bf 22206 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22209 "RANLIB=$${RANLIB}" \
0c24b341 22210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22211 install-pdf) \
22212 || exit 1
22213
a90ef4bf 22214@endif libgui
a3ca38d2 22215
a90ef4bf
JM
22216.PHONY: maybe-install-html-libgui install-html-libgui
22217maybe-install-html-libgui:
22218@if libgui
22219maybe-install-html-libgui: install-html-libgui
108a6f8e 22220
a90ef4bf
JM
22221install-html-libgui: \
22222 configure-libgui \
22223 html-libgui
108a6f8e 22224 @: $(MAKE); $(unstage)
a90ef4bf 22225 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22226 r=`${PWD_COMMAND}`; export r; \
22227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22228 $(HOST_EXPORTS) \
22229 for flag in $(EXTRA_HOST_FLAGS) ; do \
22230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22231 done; \
22121df0 22232 echo "Doing install-html in libgui"; \
a90ef4bf 22233 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22236 "RANLIB=$${RANLIB}" \
0c24b341 22237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22238 install-html) \
22239 || exit 1
22240
a90ef4bf 22241@endif libgui
108a6f8e 22242
a90ef4bf
JM
22243.PHONY: maybe-installcheck-libgui installcheck-libgui
22244maybe-installcheck-libgui:
22245@if libgui
22246maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22247
a90ef4bf
JM
22248installcheck-libgui: \
22249 configure-libgui
0aed8855 22250 @: $(MAKE); $(unstage)
a90ef4bf 22251 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22252 r=`${PWD_COMMAND}`; export r; \
22253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22254 $(HOST_EXPORTS) \
b813574b 22255 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22257 done; \
22121df0 22258 echo "Doing installcheck in libgui"; \
a90ef4bf 22259 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22262 "RANLIB=$${RANLIB}" \
0c24b341 22263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22264 installcheck) \
2a4cbe27
NN
22265 || exit 1
22266
a90ef4bf 22267@endif libgui
2a4cbe27 22268
a90ef4bf
JM
22269.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22270maybe-mostlyclean-libgui:
22271@if libgui
22272maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22273
a90ef4bf 22274mostlyclean-libgui:
0aed8855 22275 @: $(MAKE); $(unstage)
a90ef4bf 22276 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22277 r=`${PWD_COMMAND}`; export r; \
22278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22279 $(HOST_EXPORTS) \
b813574b 22280 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22282 done; \
22121df0 22283 echo "Doing mostlyclean in libgui"; \
a90ef4bf 22284 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22287 "RANLIB=$${RANLIB}" \
0c24b341 22288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22289 mostlyclean) \
2a4cbe27
NN
22290 || exit 1
22291
a90ef4bf 22292@endif libgui
2a4cbe27 22293
a90ef4bf
JM
22294.PHONY: maybe-clean-libgui clean-libgui
22295maybe-clean-libgui:
22296@if libgui
22297maybe-clean-libgui: clean-libgui
2a4cbe27 22298
a90ef4bf 22299clean-libgui:
0aed8855 22300 @: $(MAKE); $(unstage)
a90ef4bf 22301 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22302 r=`${PWD_COMMAND}`; export r; \
22303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22304 $(HOST_EXPORTS) \
b813574b 22305 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22307 done; \
22121df0 22308 echo "Doing clean in libgui"; \
a90ef4bf 22309 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22312 "RANLIB=$${RANLIB}" \
0c24b341 22313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22314 clean) \
2a4cbe27
NN
22315 || exit 1
22316
a90ef4bf 22317@endif libgui
2a4cbe27 22318
a90ef4bf
JM
22319.PHONY: maybe-distclean-libgui distclean-libgui
22320maybe-distclean-libgui:
22321@if libgui
22322maybe-distclean-libgui: distclean-libgui
2a4cbe27 22323
a90ef4bf 22324distclean-libgui:
0aed8855 22325 @: $(MAKE); $(unstage)
a90ef4bf 22326 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22327 r=`${PWD_COMMAND}`; export r; \
22328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22329 $(HOST_EXPORTS) \
b813574b 22330 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22332 done; \
22121df0 22333 echo "Doing distclean in libgui"; \
a90ef4bf 22334 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22337 "RANLIB=$${RANLIB}" \
0c24b341 22338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22339 distclean) \
2a4cbe27
NN
22340 || exit 1
22341
a90ef4bf 22342@endif libgui
2a4cbe27 22343
a90ef4bf
JM
22344.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22345maybe-maintainer-clean-libgui:
22346@if libgui
22347maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22348
a90ef4bf 22349maintainer-clean-libgui:
0aed8855 22350 @: $(MAKE); $(unstage)
a90ef4bf 22351 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22352 r=`${PWD_COMMAND}`; export r; \
22353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22354 $(HOST_EXPORTS) \
b813574b 22355 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22357 done; \
22121df0 22358 echo "Doing maintainer-clean in libgui"; \
a90ef4bf 22359 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22362 "RANLIB=$${RANLIB}" \
0c24b341 22363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22364 maintainer-clean) \
2a4cbe27
NN
22365 || exit 1
22366
a90ef4bf 22367@endif libgui
2a4cbe27 22368
2a4cbe27 22369
a7254363 22370
a90ef4bf
JM
22371.PHONY: configure-libiberty maybe-configure-libiberty
22372maybe-configure-libiberty:
93f9b408 22373@if gcc-bootstrap
a90ef4bf 22374configure-libiberty: stage_current
93f9b408 22375@endif gcc-bootstrap
a90ef4bf
JM
22376@if libiberty
22377maybe-configure-libiberty: configure-libiberty
22378configure-libiberty:
93f9b408
ILT
22379 @r=`${PWD_COMMAND}`; export r; \
22380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22381 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 22382 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
1f53ca9a 22383 $(HOST_EXPORTS) \
a90ef4bf
JM
22384 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22385 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22386 case $(srcdir) in \
22387 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22388 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22389 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22390 esac; \
1b6c0831
L
22391 module_srcdir=libiberty; \
22392 $(SHELL) \
22393 $$s/$$module_srcdir/configure \
22394 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22395 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22396 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 22397 || exit 1
a90ef4bf 22398@endif libiberty
93f9b408
ILT
22399
22400
22401
a90ef4bf
JM
22402.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22403maybe-configure-stage1-libiberty:
22404@if libiberty-bootstrap
22405maybe-configure-stage1-libiberty: configure-stage1-libiberty
22406configure-stage1-libiberty:
93f9b408 22407 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22408 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22409 @r=`${PWD_COMMAND}`; export r; \
22410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22411 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22412 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22413 $(HOST_EXPORTS) \
93f9b408 22414 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22415 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22416 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
22417 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty; \
22418 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22419 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22420 case $(srcdir) in \
22421 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22422 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22423 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22424 esac; \
1b6c0831
L
22425 module_srcdir=libiberty; \
22426 $(SHELL) $$s/$$module_srcdir/configure \
22427 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22428 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22429 --target=${target_alias} \
22430 \
a90ef4bf
JM
22431 $(STAGE1_CONFIGURE_FLAGS) \
22432 @extra_host_libiberty_configure_flags@
22433@endif libiberty-bootstrap
93f9b408 22434
a90ef4bf
JM
22435.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22436maybe-configure-stage2-libiberty:
22437@if libiberty-bootstrap
22438maybe-configure-stage2-libiberty: configure-stage2-libiberty
22439configure-stage2-libiberty:
93f9b408 22440 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22441 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22442 @r=`${PWD_COMMAND}`; export r; \
22443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22444 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22445 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22446 $(HOST_EXPORTS) \
1b05fbbd 22447 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22448 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22449 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22450 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22451 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty; \
22452 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22453 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22454 case $(srcdir) in \
22455 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22456 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22457 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22458 esac; \
1b6c0831
L
22459 module_srcdir=libiberty; \
22460 $(SHELL) $$s/$$module_srcdir/configure \
22461 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22462 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22463 --target=${target_alias} \
22121df0 22464 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22465 $(STAGE2_CONFIGURE_FLAGS) \
22466 @extra_host_libiberty_configure_flags@
22467@endif libiberty-bootstrap
93f9b408 22468
a90ef4bf
JM
22469.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22470maybe-configure-stage3-libiberty:
22471@if libiberty-bootstrap
22472maybe-configure-stage3-libiberty: configure-stage3-libiberty
22473configure-stage3-libiberty:
93f9b408 22474 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22475 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22476 @r=`${PWD_COMMAND}`; export r; \
22477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22478 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22479 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22480 $(HOST_EXPORTS) \
1b05fbbd 22481 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22482 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22483 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22484 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22485 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty; \
22486 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22487 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22488 case $(srcdir) in \
22489 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22490 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22491 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22492 esac; \
1b6c0831
L
22493 module_srcdir=libiberty; \
22494 $(SHELL) $$s/$$module_srcdir/configure \
22495 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22496 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22497 --target=${target_alias} \
22121df0 22498 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22499 $(STAGE3_CONFIGURE_FLAGS) \
22500 @extra_host_libiberty_configure_flags@
22501@endif libiberty-bootstrap
93f9b408 22502
a90ef4bf
JM
22503.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22504maybe-configure-stage4-libiberty:
22505@if libiberty-bootstrap
22506maybe-configure-stage4-libiberty: configure-stage4-libiberty
22507configure-stage4-libiberty:
93f9b408 22508 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22509 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22510 @r=`${PWD_COMMAND}`; export r; \
22511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22512 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22513 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22514 $(HOST_EXPORTS) \
1b05fbbd 22515 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22516 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22517 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22518 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22519 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty; \
22520 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22521 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22522 case $(srcdir) in \
22523 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22524 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22525 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22526 esac; \
1b6c0831
L
22527 module_srcdir=libiberty; \
22528 $(SHELL) $$s/$$module_srcdir/configure \
22529 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22530 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22531 --target=${target_alias} \
22121df0 22532 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22533 $(STAGE4_CONFIGURE_FLAGS) \
22534 @extra_host_libiberty_configure_flags@
22535@endif libiberty-bootstrap
93f9b408 22536
a90ef4bf
JM
22537.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22538maybe-configure-stageprofile-libiberty:
22539@if libiberty-bootstrap
22540maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22541configure-stageprofile-libiberty:
93f9b408 22542 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22543 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22544 @r=`${PWD_COMMAND}`; export r; \
22545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22546 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22547 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22548 $(HOST_EXPORTS) \
1b05fbbd
AO
22549 $(POSTSTAGE1_HOST_EXPORTS) \
22550 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22551 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22552 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22553 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty; \
22554 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22555 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22556 case $(srcdir) in \
22557 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22558 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22559 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22560 esac; \
1b6c0831
L
22561 module_srcdir=libiberty; \
22562 $(SHELL) $$s/$$module_srcdir/configure \
22563 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22564 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22565 --target=${target_alias} \
22121df0 22566 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22567 $(STAGEprofile_CONFIGURE_FLAGS) \
22568 @extra_host_libiberty_configure_flags@
22569@endif libiberty-bootstrap
93f9b408 22570
a90ef4bf
JM
22571.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22572maybe-configure-stagefeedback-libiberty:
22573@if libiberty-bootstrap
22574maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22575configure-stagefeedback-libiberty:
93f9b408 22576 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22577 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22578 @r=`${PWD_COMMAND}`; export r; \
22579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22580 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22581 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22582 $(HOST_EXPORTS) \
1b05fbbd
AO
22583 $(POSTSTAGE1_HOST_EXPORTS) \
22584 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22585 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22586 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22587 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty; \
22588 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22589 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22590 case $(srcdir) in \
22591 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22592 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22593 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22594 esac; \
1b6c0831
L
22595 module_srcdir=libiberty; \
22596 $(SHELL) $$s/$$module_srcdir/configure \
22597 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22598 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22599 --target=${target_alias} \
22121df0 22600 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22601 $(STAGEfeedback_CONFIGURE_FLAGS) \
22602 @extra_host_libiberty_configure_flags@
22603@endif libiberty-bootstrap
93f9b408
ILT
22604
22605
22606
22607
22608
a90ef4bf
JM
22609.PHONY: all-libiberty maybe-all-libiberty
22610maybe-all-libiberty:
93f9b408 22611@if gcc-bootstrap
a90ef4bf 22612all-libiberty: stage_current
93f9b408 22613@endif gcc-bootstrap
a90ef4bf
JM
22614@if libiberty
22615TARGET-libiberty=all
22616maybe-all-libiberty: all-libiberty
22617all-libiberty: configure-libiberty
93f9b408
ILT
22618 @r=`${PWD_COMMAND}`; export r; \
22619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22620 $(HOST_EXPORTS) \
a90ef4bf 22621 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22622 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22623 $(TARGET-libiberty))
22624@endif libiberty
93f9b408
ILT
22625
22626
22627
a90ef4bf
JM
22628.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22629.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22630maybe-all-stage1-libiberty:
22631maybe-clean-stage1-libiberty:
22632@if libiberty-bootstrap
22633maybe-all-stage1-libiberty: all-stage1-libiberty
22634all-stage1: all-stage1-libiberty
22635TARGET-stage1-libiberty = $(TARGET-libiberty)
22636all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22637 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22638 @r=`${PWD_COMMAND}`; export r; \
22639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22640 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22641 $(HOST_EXPORTS) \
a90ef4bf 22642 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22643 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22644 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22645 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22646 LIBCFLAGS="$(LIBCFLAGS)" \
22647 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22648 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22649 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22650 $(EXTRA_HOST_FLAGS) \
22651 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 22652 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22653 $(TARGET-stage1-libiberty)
93f9b408 22654
a90ef4bf
JM
22655maybe-clean-stage1-libiberty: clean-stage1-libiberty
22656clean-stage1: clean-stage1-libiberty
22657clean-stage1-libiberty:
93f9b408 22658 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22659 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22660 else \
a90ef4bf 22661 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22662 $(MAKE) stage1-start; \
22663 fi; \
a90ef4bf 22664 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22665 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22666 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22667@endif libiberty-bootstrap
93f9b408
ILT
22668
22669
a90ef4bf
JM
22670.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22671.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22672maybe-all-stage2-libiberty:
22673maybe-clean-stage2-libiberty:
22674@if libiberty-bootstrap
22675maybe-all-stage2-libiberty: all-stage2-libiberty
22676all-stage2: all-stage2-libiberty
22677TARGET-stage2-libiberty = $(TARGET-libiberty)
22678all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22679 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22680 @r=`${PWD_COMMAND}`; export r; \
22681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22682 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22683 $(HOST_EXPORTS) \
1f53ca9a 22684 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22685 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22686 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22687 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22688 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22689 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22690 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22691 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22692 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22693 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22694 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22695 $(TARGET-stage2-libiberty)
93f9b408 22696
a90ef4bf
JM
22697maybe-clean-stage2-libiberty: clean-stage2-libiberty
22698clean-stage2: clean-stage2-libiberty
22699clean-stage2-libiberty:
93f9b408 22700 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22701 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22702 else \
a90ef4bf 22703 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22704 $(MAKE) stage2-start; \
22705 fi; \
a90ef4bf 22706 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22707 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22708@endif libiberty-bootstrap
93f9b408
ILT
22709
22710
a90ef4bf
JM
22711.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22712.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22713maybe-all-stage3-libiberty:
22714maybe-clean-stage3-libiberty:
22715@if libiberty-bootstrap
22716maybe-all-stage3-libiberty: all-stage3-libiberty
22717all-stage3: all-stage3-libiberty
22718TARGET-stage3-libiberty = $(TARGET-libiberty)
22719all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22720 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22721 @r=`${PWD_COMMAND}`; export r; \
22722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22723 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22724 $(HOST_EXPORTS) \
1f53ca9a 22725 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22726 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22727 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22728 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22729 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22730 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22731 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22732 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22733 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22734 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22735 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22736 $(TARGET-stage3-libiberty)
93f9b408 22737
a90ef4bf
JM
22738maybe-clean-stage3-libiberty: clean-stage3-libiberty
22739clean-stage3: clean-stage3-libiberty
22740clean-stage3-libiberty:
93f9b408 22741 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22742 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22743 else \
a90ef4bf 22744 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22745 $(MAKE) stage3-start; \
22746 fi; \
a90ef4bf 22747 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22748 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22749@endif libiberty-bootstrap
93f9b408
ILT
22750
22751
a90ef4bf
JM
22752.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22753.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22754maybe-all-stage4-libiberty:
22755maybe-clean-stage4-libiberty:
22756@if libiberty-bootstrap
22757maybe-all-stage4-libiberty: all-stage4-libiberty
22758all-stage4: all-stage4-libiberty
22759TARGET-stage4-libiberty = $(TARGET-libiberty)
22760all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22761 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22762 @r=`${PWD_COMMAND}`; export r; \
22763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22764 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22765 $(HOST_EXPORTS) \
1f53ca9a 22766 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22767 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22768 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22769 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22770 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22771 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22772 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22773 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22774 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22775 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22776 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22777 $(TARGET-stage4-libiberty)
93f9b408 22778
a90ef4bf
JM
22779maybe-clean-stage4-libiberty: clean-stage4-libiberty
22780clean-stage4: clean-stage4-libiberty
22781clean-stage4-libiberty:
93f9b408 22782 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22783 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22784 else \
a90ef4bf 22785 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22786 $(MAKE) stage4-start; \
22787 fi; \
a90ef4bf 22788 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22789 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22790@endif libiberty-bootstrap
93f9b408
ILT
22791
22792
a90ef4bf
JM
22793.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22794.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22795maybe-all-stageprofile-libiberty:
22796maybe-clean-stageprofile-libiberty:
22797@if libiberty-bootstrap
22798maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
22799all-stageprofile: all-stageprofile-libiberty
22800TARGET-stageprofile-libiberty = $(TARGET-libiberty)
22801all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
22802 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22803 @r=`${PWD_COMMAND}`; export r; \
22804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22805 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 22806 $(HOST_EXPORTS) \
1f53ca9a 22807 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22808 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22809 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22810 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 22811 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
22812 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22813 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22814 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22815 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22816 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22817 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 22818 $(TARGET-stageprofile-libiberty)
93f9b408 22819
a90ef4bf
JM
22820maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
22821clean-stageprofile: clean-stageprofile-libiberty
22822clean-stageprofile-libiberty:
93f9b408 22823 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 22824 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22825 else \
a90ef4bf 22826 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22827 $(MAKE) stageprofile-start; \
22828 fi; \
a90ef4bf 22829 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22830 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22831@endif libiberty-bootstrap
93f9b408
ILT
22832
22833
a90ef4bf
JM
22834.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
22835.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
22836maybe-all-stagefeedback-libiberty:
22837maybe-clean-stagefeedback-libiberty:
22838@if libiberty-bootstrap
22839maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
22840all-stagefeedback: all-stagefeedback-libiberty
22841TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
22842all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
22843 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22844 @r=`${PWD_COMMAND}`; export r; \
22845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22846 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 22847 $(HOST_EXPORTS) \
1f53ca9a 22848 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22849 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22850 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22851 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 22852 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
22853 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
22854 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22855 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22856 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22857 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22858 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 22859 $(TARGET-stagefeedback-libiberty)
93f9b408 22860
a90ef4bf
JM
22861maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
22862clean-stagefeedback: clean-stagefeedback-libiberty
22863clean-stagefeedback-libiberty:
93f9b408 22864 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 22865 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22866 else \
a90ef4bf 22867 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22868 $(MAKE) stagefeedback-start; \
22869 fi; \
a90ef4bf 22870 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22871 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22872@endif libiberty-bootstrap
93f9b408
ILT
22873
22874
22875
22876
22877
a90ef4bf
JM
22878.PHONY: check-libiberty maybe-check-libiberty
22879maybe-check-libiberty:
22880@if libiberty
22881maybe-check-libiberty: check-libiberty
93f9b408 22882
a90ef4bf 22883check-libiberty:
93f9b408
ILT
22884 @: $(MAKE); $(unstage)
22885 @r=`${PWD_COMMAND}`; export r; \
22886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22887 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 22888 (cd $(HOST_SUBDIR)/libiberty && \
f91ca6bc 22889 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
93f9b408 22890
a90ef4bf 22891@endif libiberty
93f9b408 22892
a90ef4bf
JM
22893.PHONY: install-libiberty maybe-install-libiberty
22894maybe-install-libiberty:
22895@if libiberty
22896maybe-install-libiberty: install-libiberty
93f9b408 22897
a90ef4bf 22898install-libiberty: installdirs
93f9b408
ILT
22899 @: $(MAKE); $(unstage)
22900 @r=`${PWD_COMMAND}`; export r; \
22901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22902 $(HOST_EXPORTS) \
a90ef4bf 22903 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22904 $(MAKE) $(FLAGS_TO_PASS) install)
22905
a90ef4bf 22906@endif libiberty
93f9b408 22907
a90ef4bf
JM
22908.PHONY: install-strip-libiberty maybe-install-strip-libiberty
22909maybe-install-strip-libiberty:
22910@if libiberty
22911maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 22912
a90ef4bf 22913install-strip-libiberty: installdirs
9b980aa1
RW
22914 @: $(MAKE); $(unstage)
22915 @r=`${PWD_COMMAND}`; export r; \
22916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22917 $(HOST_EXPORTS) \
a90ef4bf 22918 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
22919 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22920
a90ef4bf 22921@endif libiberty
9b980aa1 22922
93f9b408
ILT
22923# Other targets (info, dvi, pdf, etc.)
22924
a90ef4bf
JM
22925.PHONY: maybe-info-libiberty info-libiberty
22926maybe-info-libiberty:
22927@if libiberty
22928maybe-info-libiberty: info-libiberty
93f9b408 22929
a90ef4bf
JM
22930info-libiberty: \
22931 configure-libiberty
22932 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22933 r=`${PWD_COMMAND}`; export r; \
22934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22935 $(HOST_EXPORTS) \
22936 for flag in $(EXTRA_HOST_FLAGS) ; do \
22937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22938 done; \
22121df0 22939 echo "Doing info in libiberty"; \
a90ef4bf 22940 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22943 "RANLIB=$${RANLIB}" \
22944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22945 info) \
22946 || exit 1
22947
a90ef4bf 22948@endif libiberty
93f9b408 22949
a90ef4bf
JM
22950.PHONY: maybe-dvi-libiberty dvi-libiberty
22951maybe-dvi-libiberty:
22952@if libiberty
22953maybe-dvi-libiberty: dvi-libiberty
93f9b408 22954
a90ef4bf
JM
22955dvi-libiberty: \
22956 configure-libiberty
22957 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22958 r=`${PWD_COMMAND}`; export r; \
22959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22960 $(HOST_EXPORTS) \
22961 for flag in $(EXTRA_HOST_FLAGS) ; do \
22962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22963 done; \
22121df0 22964 echo "Doing dvi in libiberty"; \
a90ef4bf 22965 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22968 "RANLIB=$${RANLIB}" \
22969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22970 dvi) \
22971 || exit 1
22972
a90ef4bf 22973@endif libiberty
93f9b408 22974
a90ef4bf
JM
22975.PHONY: maybe-pdf-libiberty pdf-libiberty
22976maybe-pdf-libiberty:
22977@if libiberty
22978maybe-pdf-libiberty: pdf-libiberty
93f9b408 22979
a90ef4bf
JM
22980pdf-libiberty: \
22981 configure-libiberty
22982 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22983 r=`${PWD_COMMAND}`; export r; \
22984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22985 $(HOST_EXPORTS) \
22986 for flag in $(EXTRA_HOST_FLAGS) ; do \
22987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22988 done; \
22121df0 22989 echo "Doing pdf in libiberty"; \
a90ef4bf 22990 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22993 "RANLIB=$${RANLIB}" \
22994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22995 pdf) \
22996 || exit 1
22997
a90ef4bf 22998@endif libiberty
93f9b408 22999
a90ef4bf
JM
23000.PHONY: maybe-html-libiberty html-libiberty
23001maybe-html-libiberty:
23002@if libiberty
23003maybe-html-libiberty: html-libiberty
93f9b408 23004
a90ef4bf
JM
23005html-libiberty: \
23006 configure-libiberty
23007 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23008 r=`${PWD_COMMAND}`; export r; \
23009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23010 $(HOST_EXPORTS) \
23011 for flag in $(EXTRA_HOST_FLAGS) ; do \
23012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23013 done; \
22121df0 23014 echo "Doing html in libiberty"; \
a90ef4bf 23015 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23018 "RANLIB=$${RANLIB}" \
23019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23020 html) \
23021 || exit 1
23022
a90ef4bf 23023@endif libiberty
93f9b408 23024
a90ef4bf
JM
23025.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23026maybe-TAGS-libiberty:
23027@if libiberty
23028maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23029
a90ef4bf
JM
23030TAGS-libiberty: \
23031 configure-libiberty
23032 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23033 r=`${PWD_COMMAND}`; export r; \
23034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23035 $(HOST_EXPORTS) \
23036 for flag in $(EXTRA_HOST_FLAGS) ; do \
23037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23038 done; \
22121df0 23039 echo "Doing TAGS in libiberty"; \
a90ef4bf 23040 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23043 "RANLIB=$${RANLIB}" \
23044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23045 TAGS) \
23046 || exit 1
23047
a90ef4bf 23048@endif libiberty
93f9b408 23049
a90ef4bf
JM
23050.PHONY: maybe-install-info-libiberty install-info-libiberty
23051maybe-install-info-libiberty:
23052@if libiberty
23053maybe-install-info-libiberty: install-info-libiberty
93f9b408 23054
a90ef4bf
JM
23055install-info-libiberty: \
23056 configure-libiberty \
23057 info-libiberty
23058 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23059 r=`${PWD_COMMAND}`; export r; \
23060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23061 $(HOST_EXPORTS) \
23062 for flag in $(EXTRA_HOST_FLAGS) ; do \
23063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23064 done; \
22121df0 23065 echo "Doing install-info in libiberty"; \
a90ef4bf 23066 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23069 "RANLIB=$${RANLIB}" \
23070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23071 install-info) \
23072 || exit 1
23073
a90ef4bf 23074@endif libiberty
93f9b408 23075
a90ef4bf
JM
23076.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23077maybe-install-pdf-libiberty:
23078@if libiberty
23079maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23080
a90ef4bf
JM
23081install-pdf-libiberty: \
23082 configure-libiberty \
23083 pdf-libiberty
23084 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23085 r=`${PWD_COMMAND}`; export r; \
23086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23087 $(HOST_EXPORTS) \
23088 for flag in $(EXTRA_HOST_FLAGS) ; do \
23089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23090 done; \
22121df0 23091 echo "Doing install-pdf in libiberty"; \
a90ef4bf 23092 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23095 "RANLIB=$${RANLIB}" \
23096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23097 install-pdf) \
23098 || exit 1
23099
a90ef4bf 23100@endif libiberty
93f9b408 23101
a90ef4bf
JM
23102.PHONY: maybe-install-html-libiberty install-html-libiberty
23103maybe-install-html-libiberty:
23104@if libiberty
23105maybe-install-html-libiberty: install-html-libiberty
93f9b408 23106
a90ef4bf
JM
23107install-html-libiberty: \
23108 configure-libiberty \
23109 html-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 install-html 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 install-html) \
23124 || exit 1
23125
a90ef4bf 23126@endif libiberty
93f9b408 23127
a90ef4bf
JM
23128.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23129maybe-installcheck-libiberty:
23130@if libiberty
23131maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23132
a90ef4bf
JM
23133installcheck-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 installcheck 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 installcheck) \
23149 || exit 1
23150
a90ef4bf 23151@endif libiberty
93f9b408 23152
a90ef4bf
JM
23153.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23154maybe-mostlyclean-libiberty:
23155@if libiberty
23156maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23157
a90ef4bf
JM
23158mostlyclean-libiberty:
23159 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23160 r=`${PWD_COMMAND}`; export r; \
23161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23162 $(HOST_EXPORTS) \
23163 for flag in $(EXTRA_HOST_FLAGS) ; do \
23164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23165 done; \
22121df0 23166 echo "Doing mostlyclean in libiberty"; \
a90ef4bf 23167 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23170 "RANLIB=$${RANLIB}" \
23171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23172 mostlyclean) \
23173 || exit 1
23174
a90ef4bf 23175@endif libiberty
93f9b408 23176
a90ef4bf
JM
23177.PHONY: maybe-clean-libiberty clean-libiberty
23178maybe-clean-libiberty:
23179@if libiberty
23180maybe-clean-libiberty: clean-libiberty
93f9b408 23181
a90ef4bf
JM
23182clean-libiberty:
23183 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23184 r=`${PWD_COMMAND}`; export r; \
23185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23186 $(HOST_EXPORTS) \
23187 for flag in $(EXTRA_HOST_FLAGS) ; do \
23188 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23189 done; \
22121df0 23190 echo "Doing clean in libiberty"; \
a90ef4bf 23191 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23192 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23193 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23194 "RANLIB=$${RANLIB}" \
23195 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23196 clean) \
23197 || exit 1
23198
a90ef4bf 23199@endif libiberty
93f9b408 23200
a90ef4bf
JM
23201.PHONY: maybe-distclean-libiberty distclean-libiberty
23202maybe-distclean-libiberty:
23203@if libiberty
23204maybe-distclean-libiberty: distclean-libiberty
93f9b408 23205
a90ef4bf
JM
23206distclean-libiberty:
23207 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23208 r=`${PWD_COMMAND}`; export r; \
23209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23210 $(HOST_EXPORTS) \
23211 for flag in $(EXTRA_HOST_FLAGS) ; do \
23212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23213 done; \
22121df0 23214 echo "Doing distclean in libiberty"; \
a90ef4bf 23215 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23218 "RANLIB=$${RANLIB}" \
23219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23220 distclean) \
23221 || exit 1
23222
a90ef4bf 23223@endif libiberty
93f9b408 23224
a90ef4bf
JM
23225.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23226maybe-maintainer-clean-libiberty:
23227@if libiberty
23228maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23229
a90ef4bf
JM
23230maintainer-clean-libiberty:
23231 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23232 r=`${PWD_COMMAND}`; export r; \
23233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23234 $(HOST_EXPORTS) \
23235 for flag in $(EXTRA_HOST_FLAGS) ; do \
23236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23237 done; \
22121df0 23238 echo "Doing maintainer-clean in libiberty"; \
a90ef4bf 23239 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23242 "RANLIB=$${RANLIB}" \
23243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23244 maintainer-clean) \
23245 || exit 1
23246
a90ef4bf 23247@endif libiberty
93f9b408
ILT
23248
23249
23250
1b6c0831
L
23251.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
23252maybe-configure-libiberty-linker-plugin:
23253@if gcc-bootstrap
23254configure-libiberty-linker-plugin: stage_current
23255@endif gcc-bootstrap
23256@if libiberty-linker-plugin
23257maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
23258configure-libiberty-linker-plugin:
23259 @r=`${PWD_COMMAND}`; export r; \
23260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23261 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
22121df0 23262 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23263 $(HOST_EXPORTS) \
23264 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23265 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
23266 case $(srcdir) in \
23267 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23268 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23269 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23270 esac; \
23271 module_srcdir=libiberty; \
23272 $(SHELL) \
23273 $$s/$$module_srcdir/configure \
23274 --srcdir=$${topdir}/$$module_srcdir \
23275 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23276 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
23277 || exit 1
23278@endif libiberty-linker-plugin
23279
23280
23281
23282.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
23283maybe-configure-stage1-libiberty-linker-plugin:
23284@if libiberty-linker-plugin-bootstrap
23285maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23286configure-stage1-libiberty-linker-plugin:
23287 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23288 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23289 @r=`${PWD_COMMAND}`; export r; \
23290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23291 TFLAGS="$(STAGE1_TFLAGS)"; \
23292 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23293 $(HOST_EXPORTS) \
23294 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
23295 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
23296 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
23297 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23298 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23299 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23300 case $(srcdir) in \
23301 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23302 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23303 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23304 esac; \
23305 module_srcdir=libiberty; \
23306 $(SHELL) $$s/$$module_srcdir/configure \
23307 --srcdir=$${topdir}/$$module_srcdir \
23308 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23309 --target=${target_alias} \
23310 \
23311 $(STAGE1_CONFIGURE_FLAGS) \
23312 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23313@endif libiberty-linker-plugin-bootstrap
23314
23315.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
23316maybe-configure-stage2-libiberty-linker-plugin:
23317@if libiberty-linker-plugin-bootstrap
23318maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23319configure-stage2-libiberty-linker-plugin:
23320 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23321 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23322 @r=`${PWD_COMMAND}`; export r; \
23323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23324 TFLAGS="$(STAGE2_TFLAGS)"; \
23325 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23326 $(HOST_EXPORTS) \
23327 $(POSTSTAGE1_HOST_EXPORTS) \
23328 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
23329 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
23330 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23331 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23332 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23333 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23334 case $(srcdir) in \
23335 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23336 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23337 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23338 esac; \
23339 module_srcdir=libiberty; \
23340 $(SHELL) $$s/$$module_srcdir/configure \
23341 --srcdir=$${topdir}/$$module_srcdir \
23342 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23343 --target=${target_alias} \
22121df0 23344 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23345 $(STAGE2_CONFIGURE_FLAGS) \
23346 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23347@endif libiberty-linker-plugin-bootstrap
23348
23349.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
23350maybe-configure-stage3-libiberty-linker-plugin:
23351@if libiberty-linker-plugin-bootstrap
23352maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23353configure-stage3-libiberty-linker-plugin:
23354 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23355 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23356 @r=`${PWD_COMMAND}`; export r; \
23357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23358 TFLAGS="$(STAGE3_TFLAGS)"; \
23359 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23360 $(HOST_EXPORTS) \
23361 $(POSTSTAGE1_HOST_EXPORTS) \
23362 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
23363 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
23364 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23365 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23366 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23367 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23368 case $(srcdir) in \
23369 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23370 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23371 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23372 esac; \
23373 module_srcdir=libiberty; \
23374 $(SHELL) $$s/$$module_srcdir/configure \
23375 --srcdir=$${topdir}/$$module_srcdir \
23376 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23377 --target=${target_alias} \
22121df0 23378 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23379 $(STAGE3_CONFIGURE_FLAGS) \
23380 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23381@endif libiberty-linker-plugin-bootstrap
23382
23383.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
23384maybe-configure-stage4-libiberty-linker-plugin:
23385@if libiberty-linker-plugin-bootstrap
23386maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23387configure-stage4-libiberty-linker-plugin:
23388 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23389 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23390 @r=`${PWD_COMMAND}`; export r; \
23391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23392 TFLAGS="$(STAGE4_TFLAGS)"; \
23393 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23394 $(HOST_EXPORTS) \
23395 $(POSTSTAGE1_HOST_EXPORTS) \
23396 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
23397 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
23398 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23399 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23400 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23401 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23402 case $(srcdir) in \
23403 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23404 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23405 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23406 esac; \
23407 module_srcdir=libiberty; \
23408 $(SHELL) $$s/$$module_srcdir/configure \
23409 --srcdir=$${topdir}/$$module_srcdir \
23410 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23411 --target=${target_alias} \
22121df0 23412 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23413 $(STAGE4_CONFIGURE_FLAGS) \
23414 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23415@endif libiberty-linker-plugin-bootstrap
23416
23417.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
23418maybe-configure-stageprofile-libiberty-linker-plugin:
23419@if libiberty-linker-plugin-bootstrap
23420maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23421configure-stageprofile-libiberty-linker-plugin:
23422 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23423 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23424 @r=`${PWD_COMMAND}`; export r; \
23425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23426 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23427 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23428 $(HOST_EXPORTS) \
23429 $(POSTSTAGE1_HOST_EXPORTS) \
23430 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
23431 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
23432 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23433 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23434 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23435 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23436 case $(srcdir) in \
23437 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23438 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23439 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23440 esac; \
23441 module_srcdir=libiberty; \
23442 $(SHELL) $$s/$$module_srcdir/configure \
23443 --srcdir=$${topdir}/$$module_srcdir \
23444 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23445 --target=${target_alias} \
22121df0 23446 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23447 $(STAGEprofile_CONFIGURE_FLAGS) \
23448 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23449@endif libiberty-linker-plugin-bootstrap
23450
23451.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
23452maybe-configure-stagefeedback-libiberty-linker-plugin:
23453@if libiberty-linker-plugin-bootstrap
23454maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23455configure-stagefeedback-libiberty-linker-plugin:
23456 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23457 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23458 @r=`${PWD_COMMAND}`; export r; \
23459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23460 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23461 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23462 $(HOST_EXPORTS) \
23463 $(POSTSTAGE1_HOST_EXPORTS) \
23464 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23465 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23466 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23467 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23468 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23469 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23470 case $(srcdir) in \
23471 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23472 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23473 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23474 esac; \
23475 module_srcdir=libiberty; \
23476 $(SHELL) $$s/$$module_srcdir/configure \
23477 --srcdir=$${topdir}/$$module_srcdir \
23478 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23479 --target=${target_alias} \
22121df0 23480 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23481 $(STAGEfeedback_CONFIGURE_FLAGS) \
23482 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23483@endif libiberty-linker-plugin-bootstrap
23484
23485
23486
23487
23488
23489.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
23490maybe-all-libiberty-linker-plugin:
23491@if gcc-bootstrap
23492all-libiberty-linker-plugin: stage_current
23493@endif gcc-bootstrap
23494@if libiberty-linker-plugin
23495TARGET-libiberty-linker-plugin=all
23496maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
23497all-libiberty-linker-plugin: configure-libiberty-linker-plugin
23498 @r=`${PWD_COMMAND}`; export r; \
23499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23500 $(HOST_EXPORTS) \
23501 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23502 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23503 $(TARGET-libiberty-linker-plugin))
23504@endif libiberty-linker-plugin
23505
23506
23507
23508.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
23509.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
23510maybe-all-stage1-libiberty-linker-plugin:
23511maybe-clean-stage1-libiberty-linker-plugin:
23512@if libiberty-linker-plugin-bootstrap
23513maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
23514all-stage1: all-stage1-libiberty-linker-plugin
23515TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23516all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23517 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23518 @r=`${PWD_COMMAND}`; export r; \
23519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23520 TFLAGS="$(STAGE1_TFLAGS)"; \
23521 $(HOST_EXPORTS) \
23522 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23523 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23524 CFLAGS="$(STAGE1_CFLAGS)" \
23525 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23526 LIBCFLAGS="$(LIBCFLAGS)" \
23527 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23528 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23529 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23530 $(EXTRA_HOST_FLAGS) \
23531 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23532 TFLAGS="$(STAGE1_TFLAGS)" \
23533 $(TARGET-stage1-libiberty-linker-plugin)
23534
23535maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
23536clean-stage1: clean-stage1-libiberty-linker-plugin
23537clean-stage1-libiberty-linker-plugin:
23538 @if [ $(current_stage) = stage1 ]; then \
23539 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23540 else \
23541 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
23542 $(MAKE) stage1-start; \
23543 fi; \
23544 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23545 $(MAKE) $(EXTRA_HOST_FLAGS) \
23546 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23547@endif libiberty-linker-plugin-bootstrap
23548
23549
23550.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
23551.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
23552maybe-all-stage2-libiberty-linker-plugin:
23553maybe-clean-stage2-libiberty-linker-plugin:
23554@if libiberty-linker-plugin-bootstrap
23555maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
23556all-stage2: all-stage2-libiberty-linker-plugin
23557TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23558all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23559 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23560 @r=`${PWD_COMMAND}`; export r; \
23561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23562 TFLAGS="$(STAGE2_TFLAGS)"; \
23563 $(HOST_EXPORTS) \
23564 $(POSTSTAGE1_HOST_EXPORTS) \
23565 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23566 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23567 CFLAGS="$(STAGE2_CFLAGS)" \
23568 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23569 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23570 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23571 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23572 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23573 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23574 TFLAGS="$(STAGE2_TFLAGS)" \
23575 $(TARGET-stage2-libiberty-linker-plugin)
23576
23577maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
23578clean-stage2: clean-stage2-libiberty-linker-plugin
23579clean-stage2-libiberty-linker-plugin:
23580 @if [ $(current_stage) = stage2 ]; then \
23581 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23582 else \
23583 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
23584 $(MAKE) stage2-start; \
23585 fi; \
23586 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23587 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23588@endif libiberty-linker-plugin-bootstrap
23589
23590
23591.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
23592.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
23593maybe-all-stage3-libiberty-linker-plugin:
23594maybe-clean-stage3-libiberty-linker-plugin:
23595@if libiberty-linker-plugin-bootstrap
23596maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
23597all-stage3: all-stage3-libiberty-linker-plugin
23598TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23599all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23600 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23601 @r=`${PWD_COMMAND}`; export r; \
23602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23603 TFLAGS="$(STAGE3_TFLAGS)"; \
23604 $(HOST_EXPORTS) \
23605 $(POSTSTAGE1_HOST_EXPORTS) \
23606 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23607 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23608 CFLAGS="$(STAGE3_CFLAGS)" \
23609 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23610 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23611 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23612 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23613 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23614 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23615 TFLAGS="$(STAGE3_TFLAGS)" \
23616 $(TARGET-stage3-libiberty-linker-plugin)
23617
23618maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
23619clean-stage3: clean-stage3-libiberty-linker-plugin
23620clean-stage3-libiberty-linker-plugin:
23621 @if [ $(current_stage) = stage3 ]; then \
23622 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23623 else \
23624 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
23625 $(MAKE) stage3-start; \
23626 fi; \
23627 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23628 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23629@endif libiberty-linker-plugin-bootstrap
23630
23631
23632.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
23633.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
23634maybe-all-stage4-libiberty-linker-plugin:
23635maybe-clean-stage4-libiberty-linker-plugin:
23636@if libiberty-linker-plugin-bootstrap
23637maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
23638all-stage4: all-stage4-libiberty-linker-plugin
23639TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23640all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23641 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23642 @r=`${PWD_COMMAND}`; export r; \
23643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23644 TFLAGS="$(STAGE4_TFLAGS)"; \
23645 $(HOST_EXPORTS) \
23646 $(POSTSTAGE1_HOST_EXPORTS) \
23647 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23648 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23649 CFLAGS="$(STAGE4_CFLAGS)" \
23650 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23651 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23652 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23653 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23654 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23655 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23656 TFLAGS="$(STAGE4_TFLAGS)" \
23657 $(TARGET-stage4-libiberty-linker-plugin)
23658
23659maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
23660clean-stage4: clean-stage4-libiberty-linker-plugin
23661clean-stage4-libiberty-linker-plugin:
23662 @if [ $(current_stage) = stage4 ]; then \
23663 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23664 else \
23665 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
23666 $(MAKE) stage4-start; \
23667 fi; \
23668 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23669 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23670@endif libiberty-linker-plugin-bootstrap
23671
23672
23673.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
23674.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
23675maybe-all-stageprofile-libiberty-linker-plugin:
23676maybe-clean-stageprofile-libiberty-linker-plugin:
23677@if libiberty-linker-plugin-bootstrap
23678maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
23679all-stageprofile: all-stageprofile-libiberty-linker-plugin
23680TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23681all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23682 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23683 @r=`${PWD_COMMAND}`; export r; \
23684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23685 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23686 $(HOST_EXPORTS) \
23687 $(POSTSTAGE1_HOST_EXPORTS) \
23688 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23689 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23690 CFLAGS="$(STAGEprofile_CFLAGS)" \
23691 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23692 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23693 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23694 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23695 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23696 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23697 TFLAGS="$(STAGEprofile_TFLAGS)" \
23698 $(TARGET-stageprofile-libiberty-linker-plugin)
23699
23700maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
23701clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
23702clean-stageprofile-libiberty-linker-plugin:
23703 @if [ $(current_stage) = stageprofile ]; then \
23704 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23705 else \
23706 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
23707 $(MAKE) stageprofile-start; \
23708 fi; \
23709 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23710 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23711@endif libiberty-linker-plugin-bootstrap
23712
23713
23714.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
23715.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
23716maybe-all-stagefeedback-libiberty-linker-plugin:
23717maybe-clean-stagefeedback-libiberty-linker-plugin:
23718@if libiberty-linker-plugin-bootstrap
23719maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
23720all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
23721TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23722all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23723 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23724 @r=`${PWD_COMMAND}`; export r; \
23725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23726 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23727 $(HOST_EXPORTS) \
23728 $(POSTSTAGE1_HOST_EXPORTS) \
23729 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23730 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23731 CFLAGS="$(STAGEfeedback_CFLAGS)" \
23732 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23733 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23734 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23735 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23736 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23737 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23738 TFLAGS="$(STAGEfeedback_TFLAGS)" \
23739 $(TARGET-stagefeedback-libiberty-linker-plugin)
23740
23741maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
23742clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
23743clean-stagefeedback-libiberty-linker-plugin:
23744 @if [ $(current_stage) = stagefeedback ]; then \
23745 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23746 else \
23747 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
23748 $(MAKE) stagefeedback-start; \
23749 fi; \
23750 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23751 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23752@endif libiberty-linker-plugin-bootstrap
23753
23754
23755
23756
23757
23758.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
23759maybe-check-libiberty-linker-plugin:
23760@if libiberty-linker-plugin
23761maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
23762
23763check-libiberty-linker-plugin:
23764 @: $(MAKE); $(unstage)
23765 @r=`${PWD_COMMAND}`; export r; \
23766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23767 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
1b6c0831 23768 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
f91ca6bc 23769 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
1b6c0831
L
23770
23771@endif libiberty-linker-plugin
23772
23773.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
23774maybe-install-libiberty-linker-plugin:
23775@if libiberty-linker-plugin
23776maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
23777
23778install-libiberty-linker-plugin: installdirs
23779 @: $(MAKE); $(unstage)
23780 @r=`${PWD_COMMAND}`; export r; \
23781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23782 $(HOST_EXPORTS) \
23783 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23784 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
23785
23786@endif libiberty-linker-plugin
23787
23788.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
23789maybe-install-strip-libiberty-linker-plugin:
23790@if libiberty-linker-plugin
23791maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
23792
23793install-strip-libiberty-linker-plugin: installdirs
23794 @: $(MAKE); $(unstage)
23795 @r=`${PWD_COMMAND}`; export r; \
23796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23797 $(HOST_EXPORTS) \
23798 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23799 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
23800
23801@endif libiberty-linker-plugin
23802
23803# Other targets (info, dvi, pdf, etc.)
23804
23805.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
23806maybe-info-libiberty-linker-plugin:
23807@if libiberty-linker-plugin
23808maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
23809
23810info-libiberty-linker-plugin: \
23811 configure-libiberty-linker-plugin
23812 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23813 r=`${PWD_COMMAND}`; export r; \
23814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23815 $(HOST_EXPORTS) \
23816 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23818 done; \
22121df0 23819 echo "Doing info in libiberty-linker-plugin"; \
1b6c0831
L
23820 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23823 "RANLIB=$${RANLIB}" \
23824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23825 info) \
23826 || exit 1
23827
23828@endif libiberty-linker-plugin
23829
23830.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
23831maybe-dvi-libiberty-linker-plugin:
23832@if libiberty-linker-plugin
23833maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
23834
23835dvi-libiberty-linker-plugin: \
23836 configure-libiberty-linker-plugin
23837 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23838 r=`${PWD_COMMAND}`; export r; \
23839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23840 $(HOST_EXPORTS) \
23841 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23843 done; \
22121df0 23844 echo "Doing dvi in libiberty-linker-plugin"; \
1b6c0831
L
23845 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23848 "RANLIB=$${RANLIB}" \
23849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23850 dvi) \
23851 || exit 1
23852
23853@endif libiberty-linker-plugin
23854
23855.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
23856maybe-pdf-libiberty-linker-plugin:
23857@if libiberty-linker-plugin
23858maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
23859
23860pdf-libiberty-linker-plugin: \
23861 configure-libiberty-linker-plugin
23862 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23863 r=`${PWD_COMMAND}`; export r; \
23864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23865 $(HOST_EXPORTS) \
23866 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23868 done; \
22121df0 23869 echo "Doing pdf in libiberty-linker-plugin"; \
1b6c0831
L
23870 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23873 "RANLIB=$${RANLIB}" \
23874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23875 pdf) \
23876 || exit 1
23877
23878@endif libiberty-linker-plugin
23879
23880.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
23881maybe-html-libiberty-linker-plugin:
23882@if libiberty-linker-plugin
23883maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
23884
23885html-libiberty-linker-plugin: \
23886 configure-libiberty-linker-plugin
23887 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23888 r=`${PWD_COMMAND}`; export r; \
23889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23890 $(HOST_EXPORTS) \
23891 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23893 done; \
22121df0 23894 echo "Doing html in libiberty-linker-plugin"; \
1b6c0831
L
23895 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23898 "RANLIB=$${RANLIB}" \
23899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23900 html) \
23901 || exit 1
23902
23903@endif libiberty-linker-plugin
23904
23905.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
23906maybe-TAGS-libiberty-linker-plugin:
23907@if libiberty-linker-plugin
23908maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
23909
23910TAGS-libiberty-linker-plugin: \
23911 configure-libiberty-linker-plugin
23912 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23913 r=`${PWD_COMMAND}`; export r; \
23914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23915 $(HOST_EXPORTS) \
23916 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23918 done; \
22121df0 23919 echo "Doing TAGS in libiberty-linker-plugin"; \
1b6c0831
L
23920 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23923 "RANLIB=$${RANLIB}" \
23924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23925 TAGS) \
23926 || exit 1
23927
23928@endif libiberty-linker-plugin
23929
23930.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
23931maybe-install-info-libiberty-linker-plugin:
23932@if libiberty-linker-plugin
23933maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
23934
23935install-info-libiberty-linker-plugin: \
23936 configure-libiberty-linker-plugin \
23937 info-libiberty-linker-plugin
23938 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23939 r=`${PWD_COMMAND}`; export r; \
23940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23941 $(HOST_EXPORTS) \
23942 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23944 done; \
22121df0 23945 echo "Doing install-info in libiberty-linker-plugin"; \
1b6c0831
L
23946 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23949 "RANLIB=$${RANLIB}" \
23950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23951 install-info) \
23952 || exit 1
23953
23954@endif libiberty-linker-plugin
23955
23956.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
23957maybe-install-pdf-libiberty-linker-plugin:
23958@if libiberty-linker-plugin
23959maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
23960
23961install-pdf-libiberty-linker-plugin: \
23962 configure-libiberty-linker-plugin \
23963 pdf-libiberty-linker-plugin
23964 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23965 r=`${PWD_COMMAND}`; export r; \
23966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23967 $(HOST_EXPORTS) \
23968 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23970 done; \
22121df0 23971 echo "Doing install-pdf in libiberty-linker-plugin"; \
1b6c0831
L
23972 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23975 "RANLIB=$${RANLIB}" \
23976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23977 install-pdf) \
23978 || exit 1
23979
23980@endif libiberty-linker-plugin
23981
23982.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
23983maybe-install-html-libiberty-linker-plugin:
23984@if libiberty-linker-plugin
23985maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
23986
23987install-html-libiberty-linker-plugin: \
23988 configure-libiberty-linker-plugin \
23989 html-libiberty-linker-plugin
23990 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23991 r=`${PWD_COMMAND}`; export r; \
23992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23993 $(HOST_EXPORTS) \
23994 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23996 done; \
22121df0 23997 echo "Doing install-html in libiberty-linker-plugin"; \
1b6c0831
L
23998 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24001 "RANLIB=$${RANLIB}" \
24002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24003 install-html) \
24004 || exit 1
24005
24006@endif libiberty-linker-plugin
24007
24008.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
24009maybe-installcheck-libiberty-linker-plugin:
24010@if libiberty-linker-plugin
24011maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
24012
24013installcheck-libiberty-linker-plugin: \
24014 configure-libiberty-linker-plugin
24015 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24016 r=`${PWD_COMMAND}`; export r; \
24017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24018 $(HOST_EXPORTS) \
24019 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24021 done; \
22121df0 24022 echo "Doing installcheck in libiberty-linker-plugin"; \
1b6c0831
L
24023 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24026 "RANLIB=$${RANLIB}" \
24027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24028 installcheck) \
24029 || exit 1
24030
24031@endif libiberty-linker-plugin
24032
24033.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
24034maybe-mostlyclean-libiberty-linker-plugin:
24035@if libiberty-linker-plugin
24036maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
24037
24038mostlyclean-libiberty-linker-plugin:
24039 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24040 r=`${PWD_COMMAND}`; export r; \
24041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24042 $(HOST_EXPORTS) \
24043 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24045 done; \
22121df0 24046 echo "Doing mostlyclean in libiberty-linker-plugin"; \
1b6c0831
L
24047 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24050 "RANLIB=$${RANLIB}" \
24051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24052 mostlyclean) \
24053 || exit 1
24054
24055@endif libiberty-linker-plugin
24056
24057.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
24058maybe-clean-libiberty-linker-plugin:
24059@if libiberty-linker-plugin
24060maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
24061
24062clean-libiberty-linker-plugin:
24063 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24064 r=`${PWD_COMMAND}`; export r; \
24065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24066 $(HOST_EXPORTS) \
24067 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24069 done; \
22121df0 24070 echo "Doing clean in libiberty-linker-plugin"; \
1b6c0831
L
24071 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24074 "RANLIB=$${RANLIB}" \
24075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24076 clean) \
24077 || exit 1
24078
24079@endif libiberty-linker-plugin
24080
24081.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
24082maybe-distclean-libiberty-linker-plugin:
24083@if libiberty-linker-plugin
24084maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
24085
24086distclean-libiberty-linker-plugin:
24087 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24088 r=`${PWD_COMMAND}`; export r; \
24089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24090 $(HOST_EXPORTS) \
24091 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24093 done; \
22121df0 24094 echo "Doing distclean in libiberty-linker-plugin"; \
1b6c0831
L
24095 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24098 "RANLIB=$${RANLIB}" \
24099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24100 distclean) \
24101 || exit 1
24102
24103@endif libiberty-linker-plugin
24104
24105.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
24106maybe-maintainer-clean-libiberty-linker-plugin:
24107@if libiberty-linker-plugin
24108maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
24109
24110maintainer-clean-libiberty-linker-plugin:
24111 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24112 r=`${PWD_COMMAND}`; export r; \
24113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24114 $(HOST_EXPORTS) \
24115 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24117 done; \
22121df0 24118 echo "Doing maintainer-clean in libiberty-linker-plugin"; \
1b6c0831
L
24119 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24122 "RANLIB=$${RANLIB}" \
24123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24124 maintainer-clean) \
24125 || exit 1
24126
24127@endif libiberty-linker-plugin
24128
24129
24130
a90ef4bf
JM
24131.PHONY: configure-libiconv maybe-configure-libiconv
24132maybe-configure-libiconv:
4f0ef2d8 24133@if gcc-bootstrap
a90ef4bf 24134configure-libiconv: stage_current
4f0ef2d8 24135@endif gcc-bootstrap
a90ef4bf
JM
24136@if libiconv
24137maybe-configure-libiconv: configure-libiconv
24138configure-libiconv:
c52c6897 24139 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24141 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
22121df0 24142 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
1f53ca9a 24143 $(HOST_EXPORTS) \
a90ef4bf
JM
24144 echo Configuring in $(HOST_SUBDIR)/libiconv; \
24145 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 24146 case $(srcdir) in \
b00612cc 24147 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24148 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 24149 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24150 esac; \
1b6c0831
L
24151 module_srcdir=libiconv; \
24152 $(SHELL) \
24153 $$s/$$module_srcdir/configure \
24154 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24155 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24156 --target=${target_alias} --disable-shared \
2a4cbe27 24157 || exit 1
a90ef4bf 24158@endif libiconv
2a4cbe27 24159
a7254363
PB
24160
24161
016a3251
DD
24162.PHONY: configure-stage1-libiconv maybe-configure-stage1-libiconv
24163maybe-configure-stage1-libiconv:
24164@if libiconv-bootstrap
24165maybe-configure-stage1-libiconv: configure-stage1-libiconv
24166configure-stage1-libiconv:
24167 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24168 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24169 @r=`${PWD_COMMAND}`; export r; \
24170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24171 TFLAGS="$(STAGE1_TFLAGS)"; \
24172 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24173 $(HOST_EXPORTS) \
24174 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
24175 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
24176 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
24177 echo Configuring stage 1 in $(HOST_SUBDIR)/libiconv; \
24178 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24179 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24180 case $(srcdir) in \
24181 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24182 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24183 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24184 esac; \
24185 module_srcdir=libiconv; \
24186 $(SHELL) $$s/$$module_srcdir/configure \
24187 --srcdir=$${topdir}/$$module_srcdir \
24188 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24189 --target=${target_alias} \
24190 \
24191 $(STAGE1_CONFIGURE_FLAGS) \
24192 --disable-shared
24193@endif libiconv-bootstrap
24194
24195.PHONY: configure-stage2-libiconv maybe-configure-stage2-libiconv
24196maybe-configure-stage2-libiconv:
24197@if libiconv-bootstrap
24198maybe-configure-stage2-libiconv: configure-stage2-libiconv
24199configure-stage2-libiconv:
24200 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24201 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24202 @r=`${PWD_COMMAND}`; export r; \
24203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24204 TFLAGS="$(STAGE2_TFLAGS)"; \
24205 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24206 $(HOST_EXPORTS) \
24207 $(POSTSTAGE1_HOST_EXPORTS) \
24208 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
24209 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
24210 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
24211 echo Configuring stage 2 in $(HOST_SUBDIR)/libiconv; \
24212 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24213 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24214 case $(srcdir) in \
24215 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24216 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24217 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24218 esac; \
24219 module_srcdir=libiconv; \
24220 $(SHELL) $$s/$$module_srcdir/configure \
24221 --srcdir=$${topdir}/$$module_srcdir \
24222 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24223 --target=${target_alias} \
24224 --with-build-libsubdir=$(HOST_SUBDIR) \
24225 $(STAGE2_CONFIGURE_FLAGS) \
24226 --disable-shared
24227@endif libiconv-bootstrap
24228
24229.PHONY: configure-stage3-libiconv maybe-configure-stage3-libiconv
24230maybe-configure-stage3-libiconv:
24231@if libiconv-bootstrap
24232maybe-configure-stage3-libiconv: configure-stage3-libiconv
24233configure-stage3-libiconv:
24234 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24235 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24236 @r=`${PWD_COMMAND}`; export r; \
24237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24238 TFLAGS="$(STAGE3_TFLAGS)"; \
24239 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24240 $(HOST_EXPORTS) \
24241 $(POSTSTAGE1_HOST_EXPORTS) \
24242 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
24243 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
24244 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
24245 echo Configuring stage 3 in $(HOST_SUBDIR)/libiconv; \
24246 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24247 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24248 case $(srcdir) in \
24249 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24250 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24251 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24252 esac; \
24253 module_srcdir=libiconv; \
24254 $(SHELL) $$s/$$module_srcdir/configure \
24255 --srcdir=$${topdir}/$$module_srcdir \
24256 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24257 --target=${target_alias} \
24258 --with-build-libsubdir=$(HOST_SUBDIR) \
24259 $(STAGE3_CONFIGURE_FLAGS) \
24260 --disable-shared
24261@endif libiconv-bootstrap
24262
24263.PHONY: configure-stage4-libiconv maybe-configure-stage4-libiconv
24264maybe-configure-stage4-libiconv:
24265@if libiconv-bootstrap
24266maybe-configure-stage4-libiconv: configure-stage4-libiconv
24267configure-stage4-libiconv:
24268 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24269 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24270 @r=`${PWD_COMMAND}`; export r; \
24271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24272 TFLAGS="$(STAGE4_TFLAGS)"; \
24273 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24274 $(HOST_EXPORTS) \
24275 $(POSTSTAGE1_HOST_EXPORTS) \
24276 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
24277 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
24278 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
24279 echo Configuring stage 4 in $(HOST_SUBDIR)/libiconv; \
24280 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24281 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24282 case $(srcdir) in \
24283 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24284 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24285 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24286 esac; \
24287 module_srcdir=libiconv; \
24288 $(SHELL) $$s/$$module_srcdir/configure \
24289 --srcdir=$${topdir}/$$module_srcdir \
24290 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24291 --target=${target_alias} \
24292 --with-build-libsubdir=$(HOST_SUBDIR) \
24293 $(STAGE4_CONFIGURE_FLAGS) \
24294 --disable-shared
24295@endif libiconv-bootstrap
24296
24297.PHONY: configure-stageprofile-libiconv maybe-configure-stageprofile-libiconv
24298maybe-configure-stageprofile-libiconv:
24299@if libiconv-bootstrap
24300maybe-configure-stageprofile-libiconv: configure-stageprofile-libiconv
24301configure-stageprofile-libiconv:
24302 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24303 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24304 @r=`${PWD_COMMAND}`; export r; \
24305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24306 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24307 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24308 $(HOST_EXPORTS) \
24309 $(POSTSTAGE1_HOST_EXPORTS) \
24310 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
24311 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
24312 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
24313 echo Configuring stage profile in $(HOST_SUBDIR)/libiconv; \
24314 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24315 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24316 case $(srcdir) in \
24317 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24318 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24319 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24320 esac; \
24321 module_srcdir=libiconv; \
24322 $(SHELL) $$s/$$module_srcdir/configure \
24323 --srcdir=$${topdir}/$$module_srcdir \
24324 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24325 --target=${target_alias} \
24326 --with-build-libsubdir=$(HOST_SUBDIR) \
24327 $(STAGEprofile_CONFIGURE_FLAGS) \
24328 --disable-shared
24329@endif libiconv-bootstrap
24330
24331.PHONY: configure-stagefeedback-libiconv maybe-configure-stagefeedback-libiconv
24332maybe-configure-stagefeedback-libiconv:
24333@if libiconv-bootstrap
24334maybe-configure-stagefeedback-libiconv: configure-stagefeedback-libiconv
24335configure-stagefeedback-libiconv:
24336 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24337 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24338 @r=`${PWD_COMMAND}`; export r; \
24339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24340 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24341 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24342 $(HOST_EXPORTS) \
24343 $(POSTSTAGE1_HOST_EXPORTS) \
24344 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
24345 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
24346 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
24347 echo Configuring stage feedback in $(HOST_SUBDIR)/libiconv; \
24348 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24349 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24350 case $(srcdir) in \
24351 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24352 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24353 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24354 esac; \
24355 module_srcdir=libiconv; \
24356 $(SHELL) $$s/$$module_srcdir/configure \
24357 --srcdir=$${topdir}/$$module_srcdir \
24358 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24359 --target=${target_alias} \
24360 --with-build-libsubdir=$(HOST_SUBDIR) \
24361 $(STAGEfeedback_CONFIGURE_FLAGS) \
24362 --disable-shared
24363@endif libiconv-bootstrap
24364
24365
24366
d545f33b
PB
24367
24368
a90ef4bf
JM
24369.PHONY: all-libiconv maybe-all-libiconv
24370maybe-all-libiconv:
4f0ef2d8 24371@if gcc-bootstrap
a90ef4bf 24372all-libiconv: stage_current
4f0ef2d8 24373@endif gcc-bootstrap
a90ef4bf
JM
24374@if libiconv
24375TARGET-libiconv=all
24376maybe-all-libiconv: all-libiconv
24377all-libiconv: configure-libiconv
4fa63067
NN
24378 @r=`${PWD_COMMAND}`; export r; \
24379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24380 $(HOST_EXPORTS) \
a90ef4bf 24381 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 24382 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24383 $(TARGET-libiconv))
24384@endif libiconv
2a4cbe27 24385
a7254363 24386
d545f33b 24387
016a3251
DD
24388.PHONY: all-stage1-libiconv maybe-all-stage1-libiconv
24389.PHONY: clean-stage1-libiconv maybe-clean-stage1-libiconv
24390maybe-all-stage1-libiconv:
24391maybe-clean-stage1-libiconv:
24392@if libiconv-bootstrap
24393maybe-all-stage1-libiconv: all-stage1-libiconv
24394all-stage1: all-stage1-libiconv
24395TARGET-stage1-libiconv = $(TARGET-libiconv)
24396all-stage1-libiconv: configure-stage1-libiconv
24397 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24398 @r=`${PWD_COMMAND}`; export r; \
24399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24400 TFLAGS="$(STAGE1_TFLAGS)"; \
24401 $(HOST_EXPORTS) \
24402 cd $(HOST_SUBDIR)/libiconv && \
24403 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24404 CFLAGS="$(STAGE1_CFLAGS)" \
24405 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
24406 LIBCFLAGS="$(LIBCFLAGS)" \
24407 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24408 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24409 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24410 $(EXTRA_HOST_FLAGS) \
24411 $(STAGE1_FLAGS_TO_PASS) \
24412 TFLAGS="$(STAGE1_TFLAGS)" \
24413 $(TARGET-stage1-libiconv)
24414
24415maybe-clean-stage1-libiconv: clean-stage1-libiconv
24416clean-stage1: clean-stage1-libiconv
24417clean-stage1-libiconv:
24418 @if [ $(current_stage) = stage1 ]; then \
24419 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24420 else \
24421 [ -f $(HOST_SUBDIR)/stage1-libiconv/Makefile ] || exit 0; \
24422 $(MAKE) stage1-start; \
24423 fi; \
24424 cd $(HOST_SUBDIR)/libiconv && \
24425 $(MAKE) $(EXTRA_HOST_FLAGS) \
24426 $(STAGE1_FLAGS_TO_PASS) clean
24427@endif libiconv-bootstrap
24428
24429
24430.PHONY: all-stage2-libiconv maybe-all-stage2-libiconv
24431.PHONY: clean-stage2-libiconv maybe-clean-stage2-libiconv
24432maybe-all-stage2-libiconv:
24433maybe-clean-stage2-libiconv:
24434@if libiconv-bootstrap
24435maybe-all-stage2-libiconv: all-stage2-libiconv
24436all-stage2: all-stage2-libiconv
24437TARGET-stage2-libiconv = $(TARGET-libiconv)
24438all-stage2-libiconv: configure-stage2-libiconv
24439 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24440 @r=`${PWD_COMMAND}`; export r; \
24441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24442 TFLAGS="$(STAGE2_TFLAGS)"; \
24443 $(HOST_EXPORTS) \
24444 $(POSTSTAGE1_HOST_EXPORTS) \
24445 cd $(HOST_SUBDIR)/libiconv && \
24446 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24447 CFLAGS="$(STAGE2_CFLAGS)" \
24448 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
24449 LIBCFLAGS="$(STAGE2_CFLAGS)" \
24450 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24451 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24452 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24453 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24454 TFLAGS="$(STAGE2_TFLAGS)" \
24455 $(TARGET-stage2-libiconv)
24456
24457maybe-clean-stage2-libiconv: clean-stage2-libiconv
24458clean-stage2: clean-stage2-libiconv
24459clean-stage2-libiconv:
24460 @if [ $(current_stage) = stage2 ]; then \
24461 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24462 else \
24463 [ -f $(HOST_SUBDIR)/stage2-libiconv/Makefile ] || exit 0; \
24464 $(MAKE) stage2-start; \
24465 fi; \
24466 cd $(HOST_SUBDIR)/libiconv && \
24467 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24468@endif libiconv-bootstrap
24469
24470
24471.PHONY: all-stage3-libiconv maybe-all-stage3-libiconv
24472.PHONY: clean-stage3-libiconv maybe-clean-stage3-libiconv
24473maybe-all-stage3-libiconv:
24474maybe-clean-stage3-libiconv:
24475@if libiconv-bootstrap
24476maybe-all-stage3-libiconv: all-stage3-libiconv
24477all-stage3: all-stage3-libiconv
24478TARGET-stage3-libiconv = $(TARGET-libiconv)
24479all-stage3-libiconv: configure-stage3-libiconv
24480 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24481 @r=`${PWD_COMMAND}`; export r; \
24482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24483 TFLAGS="$(STAGE3_TFLAGS)"; \
24484 $(HOST_EXPORTS) \
24485 $(POSTSTAGE1_HOST_EXPORTS) \
24486 cd $(HOST_SUBDIR)/libiconv && \
24487 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24488 CFLAGS="$(STAGE3_CFLAGS)" \
24489 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
24490 LIBCFLAGS="$(STAGE3_CFLAGS)" \
24491 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24492 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24493 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24494 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24495 TFLAGS="$(STAGE3_TFLAGS)" \
24496 $(TARGET-stage3-libiconv)
24497
24498maybe-clean-stage3-libiconv: clean-stage3-libiconv
24499clean-stage3: clean-stage3-libiconv
24500clean-stage3-libiconv:
24501 @if [ $(current_stage) = stage3 ]; then \
24502 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24503 else \
24504 [ -f $(HOST_SUBDIR)/stage3-libiconv/Makefile ] || exit 0; \
24505 $(MAKE) stage3-start; \
24506 fi; \
24507 cd $(HOST_SUBDIR)/libiconv && \
24508 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24509@endif libiconv-bootstrap
24510
24511
24512.PHONY: all-stage4-libiconv maybe-all-stage4-libiconv
24513.PHONY: clean-stage4-libiconv maybe-clean-stage4-libiconv
24514maybe-all-stage4-libiconv:
24515maybe-clean-stage4-libiconv:
24516@if libiconv-bootstrap
24517maybe-all-stage4-libiconv: all-stage4-libiconv
24518all-stage4: all-stage4-libiconv
24519TARGET-stage4-libiconv = $(TARGET-libiconv)
24520all-stage4-libiconv: configure-stage4-libiconv
24521 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24522 @r=`${PWD_COMMAND}`; export r; \
24523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24524 TFLAGS="$(STAGE4_TFLAGS)"; \
24525 $(HOST_EXPORTS) \
24526 $(POSTSTAGE1_HOST_EXPORTS) \
24527 cd $(HOST_SUBDIR)/libiconv && \
24528 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24529 CFLAGS="$(STAGE4_CFLAGS)" \
24530 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
24531 LIBCFLAGS="$(STAGE4_CFLAGS)" \
24532 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24533 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24534 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24535 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24536 TFLAGS="$(STAGE4_TFLAGS)" \
24537 $(TARGET-stage4-libiconv)
24538
24539maybe-clean-stage4-libiconv: clean-stage4-libiconv
24540clean-stage4: clean-stage4-libiconv
24541clean-stage4-libiconv:
24542 @if [ $(current_stage) = stage4 ]; then \
24543 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24544 else \
24545 [ -f $(HOST_SUBDIR)/stage4-libiconv/Makefile ] || exit 0; \
24546 $(MAKE) stage4-start; \
24547 fi; \
24548 cd $(HOST_SUBDIR)/libiconv && \
24549 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24550@endif libiconv-bootstrap
24551
24552
24553.PHONY: all-stageprofile-libiconv maybe-all-stageprofile-libiconv
24554.PHONY: clean-stageprofile-libiconv maybe-clean-stageprofile-libiconv
24555maybe-all-stageprofile-libiconv:
24556maybe-clean-stageprofile-libiconv:
24557@if libiconv-bootstrap
24558maybe-all-stageprofile-libiconv: all-stageprofile-libiconv
24559all-stageprofile: all-stageprofile-libiconv
24560TARGET-stageprofile-libiconv = $(TARGET-libiconv)
24561all-stageprofile-libiconv: configure-stageprofile-libiconv
24562 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24563 @r=`${PWD_COMMAND}`; export r; \
24564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24565 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24566 $(HOST_EXPORTS) \
24567 $(POSTSTAGE1_HOST_EXPORTS) \
24568 cd $(HOST_SUBDIR)/libiconv && \
24569 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24570 CFLAGS="$(STAGEprofile_CFLAGS)" \
24571 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
24572 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
24573 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24574 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24575 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24576 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24577 TFLAGS="$(STAGEprofile_TFLAGS)" \
24578 $(TARGET-stageprofile-libiconv)
24579
24580maybe-clean-stageprofile-libiconv: clean-stageprofile-libiconv
24581clean-stageprofile: clean-stageprofile-libiconv
24582clean-stageprofile-libiconv:
24583 @if [ $(current_stage) = stageprofile ]; then \
24584 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24585 else \
24586 [ -f $(HOST_SUBDIR)/stageprofile-libiconv/Makefile ] || exit 0; \
24587 $(MAKE) stageprofile-start; \
24588 fi; \
24589 cd $(HOST_SUBDIR)/libiconv && \
24590 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24591@endif libiconv-bootstrap
24592
24593
24594.PHONY: all-stagefeedback-libiconv maybe-all-stagefeedback-libiconv
24595.PHONY: clean-stagefeedback-libiconv maybe-clean-stagefeedback-libiconv
24596maybe-all-stagefeedback-libiconv:
24597maybe-clean-stagefeedback-libiconv:
24598@if libiconv-bootstrap
24599maybe-all-stagefeedback-libiconv: all-stagefeedback-libiconv
24600all-stagefeedback: all-stagefeedback-libiconv
24601TARGET-stagefeedback-libiconv = $(TARGET-libiconv)
24602all-stagefeedback-libiconv: configure-stagefeedback-libiconv
24603 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24604 @r=`${PWD_COMMAND}`; export r; \
24605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24606 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24607 $(HOST_EXPORTS) \
24608 $(POSTSTAGE1_HOST_EXPORTS) \
24609 cd $(HOST_SUBDIR)/libiconv && \
24610 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24611 CFLAGS="$(STAGEfeedback_CFLAGS)" \
24612 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
24613 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
24614 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24615 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24616 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24617 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24618 TFLAGS="$(STAGEfeedback_TFLAGS)" \
24619 $(TARGET-stagefeedback-libiconv)
24620
24621maybe-clean-stagefeedback-libiconv: clean-stagefeedback-libiconv
24622clean-stagefeedback: clean-stagefeedback-libiconv
24623clean-stagefeedback-libiconv:
24624 @if [ $(current_stage) = stagefeedback ]; then \
24625 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24626 else \
24627 [ -f $(HOST_SUBDIR)/stagefeedback-libiconv/Makefile ] || exit 0; \
24628 $(MAKE) stagefeedback-start; \
24629 fi; \
24630 cd $(HOST_SUBDIR)/libiconv && \
24631 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24632@endif libiconv-bootstrap
24633
24634
24635
24636
d545f33b 24637
a90ef4bf
JM
24638.PHONY: check-libiconv maybe-check-libiconv
24639maybe-check-libiconv:
24640@if libiconv
24641maybe-check-libiconv: check-libiconv
2a4cbe27 24642
a90ef4bf 24643check-libiconv:
0aed8855 24644 @: $(MAKE); $(unstage)
4fa63067 24645 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
016a3251 24647 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 24648 (cd $(HOST_SUBDIR)/libiconv && \
016a3251 24649 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 24650
a90ef4bf 24651@endif libiconv
4fa63067 24652
a90ef4bf
JM
24653.PHONY: install-libiconv maybe-install-libiconv
24654maybe-install-libiconv:
24655@if libiconv
24656maybe-install-libiconv: install-libiconv
2a4cbe27 24657
a90ef4bf 24658install-libiconv:
2a4cbe27 24659
a90ef4bf 24660@endif libiconv
9b980aa1 24661
a90ef4bf
JM
24662.PHONY: install-strip-libiconv maybe-install-strip-libiconv
24663maybe-install-strip-libiconv:
24664@if libiconv
24665maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 24666
a90ef4bf
JM
24667install-strip-libiconv:
24668
24669@endif libiconv
9b980aa1 24670
56a8fe78 24671# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24672
a90ef4bf
JM
24673.PHONY: maybe-info-libiconv info-libiconv
24674maybe-info-libiconv:
24675@if libiconv
24676maybe-info-libiconv: info-libiconv
4fa63067 24677
016a3251
DD
24678# libiconv doesn't support info.
24679info-libiconv:
2a4cbe27 24680
a90ef4bf 24681@endif libiconv
2a4cbe27 24682
a90ef4bf
JM
24683.PHONY: maybe-dvi-libiconv dvi-libiconv
24684maybe-dvi-libiconv:
24685@if libiconv
24686maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 24687
a90ef4bf
JM
24688dvi-libiconv: \
24689 configure-libiconv
a90ef4bf 24690 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24691 r=`${PWD_COMMAND}`; export r; \
24692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24693 $(HOST_EXPORTS) \
b813574b 24694 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24696 done; \
22121df0 24697 echo "Doing dvi in libiconv"; \
a90ef4bf 24698 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24701 "RANLIB=$${RANLIB}" \
0c24b341 24702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24703 dvi) \
2a4cbe27
NN
24704 || exit 1
24705
a90ef4bf 24706@endif libiconv
2a4cbe27 24707
a90ef4bf
JM
24708.PHONY: maybe-pdf-libiconv pdf-libiconv
24709maybe-pdf-libiconv:
24710@if libiconv
24711maybe-pdf-libiconv: pdf-libiconv
56a8fe78 24712
016a3251
DD
24713# libiconv doesn't support pdf.
24714pdf-libiconv:
56a8fe78 24715
a90ef4bf 24716@endif libiconv
56a8fe78 24717
a90ef4bf
JM
24718.PHONY: maybe-html-libiconv html-libiconv
24719maybe-html-libiconv:
24720@if libiconv
24721maybe-html-libiconv: html-libiconv
6d389afc 24722
016a3251
DD
24723# libiconv doesn't support html.
24724html-libiconv:
6d389afc 24725
a90ef4bf 24726@endif libiconv
6d389afc 24727
a90ef4bf
JM
24728.PHONY: maybe-TAGS-libiconv TAGS-libiconv
24729maybe-TAGS-libiconv:
24730@if libiconv
24731maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 24732
a90ef4bf
JM
24733TAGS-libiconv: \
24734 configure-libiconv
a90ef4bf 24735 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24736 r=`${PWD_COMMAND}`; export r; \
24737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24738 $(HOST_EXPORTS) \
b813574b 24739 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24741 done; \
22121df0 24742 echo "Doing TAGS in libiconv"; \
a90ef4bf 24743 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24746 "RANLIB=$${RANLIB}" \
0c24b341 24747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24748 TAGS) \
2a4cbe27
NN
24749 || exit 1
24750
a90ef4bf 24751@endif libiconv
2a4cbe27 24752
a90ef4bf
JM
24753.PHONY: maybe-install-info-libiconv install-info-libiconv
24754maybe-install-info-libiconv:
24755@if libiconv
24756maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 24757
a90ef4bf
JM
24758# libiconv doesn't support install-info.
24759install-info-libiconv:
2a4cbe27 24760
a90ef4bf 24761@endif libiconv
2a4cbe27 24762
a90ef4bf
JM
24763.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
24764maybe-install-pdf-libiconv:
24765@if libiconv
24766maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 24767
a90ef4bf
JM
24768# libiconv doesn't support install-pdf.
24769install-pdf-libiconv:
a3ca38d2 24770
a90ef4bf 24771@endif libiconv
a3ca38d2 24772
a90ef4bf
JM
24773.PHONY: maybe-install-html-libiconv install-html-libiconv
24774maybe-install-html-libiconv:
24775@if libiconv
24776maybe-install-html-libiconv: install-html-libiconv
108a6f8e 24777
a90ef4bf
JM
24778# libiconv doesn't support install-html.
24779install-html-libiconv:
108a6f8e 24780
a90ef4bf 24781@endif libiconv
108a6f8e 24782
a90ef4bf
JM
24783.PHONY: maybe-installcheck-libiconv installcheck-libiconv
24784maybe-installcheck-libiconv:
24785@if libiconv
24786maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 24787
a90ef4bf
JM
24788installcheck-libiconv: \
24789 configure-libiconv
a90ef4bf 24790 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24791 r=`${PWD_COMMAND}`; export r; \
24792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24793 $(HOST_EXPORTS) \
b813574b 24794 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24796 done; \
22121df0 24797 echo "Doing installcheck in libiconv"; \
a90ef4bf 24798 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24801 "RANLIB=$${RANLIB}" \
0c24b341 24802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24803 installcheck) \
2a4cbe27
NN
24804 || exit 1
24805
a90ef4bf 24806@endif libiconv
2a4cbe27 24807
a90ef4bf
JM
24808.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
24809maybe-mostlyclean-libiconv:
24810@if libiconv
24811maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 24812
a90ef4bf 24813mostlyclean-libiconv:
a90ef4bf 24814 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24815 r=`${PWD_COMMAND}`; export r; \
24816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24817 $(HOST_EXPORTS) \
b813574b 24818 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24820 done; \
22121df0 24821 echo "Doing mostlyclean in libiconv"; \
a90ef4bf 24822 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24825 "RANLIB=$${RANLIB}" \
0c24b341 24826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24827 mostlyclean) \
2a4cbe27
NN
24828 || exit 1
24829
a90ef4bf 24830@endif libiconv
2a4cbe27 24831
a90ef4bf
JM
24832.PHONY: maybe-clean-libiconv clean-libiconv
24833maybe-clean-libiconv:
24834@if libiconv
24835maybe-clean-libiconv: clean-libiconv
2a4cbe27 24836
a90ef4bf 24837clean-libiconv:
a90ef4bf 24838 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24839 r=`${PWD_COMMAND}`; export r; \
24840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24841 $(HOST_EXPORTS) \
b813574b 24842 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24844 done; \
22121df0 24845 echo "Doing clean in libiconv"; \
a90ef4bf 24846 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24849 "RANLIB=$${RANLIB}" \
0c24b341 24850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24851 clean) \
2a4cbe27
NN
24852 || exit 1
24853
a90ef4bf 24854@endif libiconv
2a4cbe27 24855
a90ef4bf
JM
24856.PHONY: maybe-distclean-libiconv distclean-libiconv
24857maybe-distclean-libiconv:
24858@if libiconv
24859maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 24860
a90ef4bf 24861distclean-libiconv:
a90ef4bf 24862 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24863 r=`${PWD_COMMAND}`; export r; \
24864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24865 $(HOST_EXPORTS) \
b813574b 24866 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24868 done; \
22121df0 24869 echo "Doing distclean in libiconv"; \
a90ef4bf 24870 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24873 "RANLIB=$${RANLIB}" \
0c24b341 24874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24875 distclean) \
2a4cbe27
NN
24876 || exit 1
24877
a90ef4bf 24878@endif libiconv
2a4cbe27 24879
a90ef4bf
JM
24880.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
24881maybe-maintainer-clean-libiconv:
24882@if libiconv
24883maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 24884
a90ef4bf 24885maintainer-clean-libiconv:
a90ef4bf 24886 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24887 r=`${PWD_COMMAND}`; export r; \
24888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24889 $(HOST_EXPORTS) \
b813574b 24890 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24892 done; \
22121df0 24893 echo "Doing maintainer-clean in libiconv"; \
a90ef4bf 24894 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24897 "RANLIB=$${RANLIB}" \
0c24b341 24898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24899 maintainer-clean) \
2a4cbe27
NN
24900 || exit 1
24901
a90ef4bf 24902@endif libiconv
2a4cbe27 24903
2a4cbe27 24904
a7254363 24905
a90ef4bf
JM
24906.PHONY: configure-m4 maybe-configure-m4
24907maybe-configure-m4:
4f0ef2d8 24908@if gcc-bootstrap
a90ef4bf 24909configure-m4: stage_current
4f0ef2d8 24910@endif gcc-bootstrap
a90ef4bf
JM
24911@if m4
24912maybe-configure-m4: configure-m4
24913configure-m4:
0aed8855 24914 @: $(MAKE); $(unstage)
c52c6897 24915 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24917 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
22121df0 24918 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4; \
1f53ca9a 24919 $(HOST_EXPORTS) \
a90ef4bf
JM
24920 echo Configuring in $(HOST_SUBDIR)/m4; \
24921 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 24922 case $(srcdir) in \
b00612cc 24923 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24924 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 24925 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24926 esac; \
1b6c0831
L
24927 module_srcdir=m4; \
24928 $(SHELL) \
24929 $$s/$$module_srcdir/configure \
24930 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24931 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24932 --target=${target_alias} \
2a4cbe27 24933 || exit 1
a90ef4bf 24934@endif m4
2a4cbe27 24935
a7254363
PB
24936
24937
d545f33b
PB
24938
24939
a90ef4bf
JM
24940.PHONY: all-m4 maybe-all-m4
24941maybe-all-m4:
4f0ef2d8 24942@if gcc-bootstrap
a90ef4bf 24943all-m4: stage_current
4f0ef2d8 24944@endif gcc-bootstrap
a90ef4bf
JM
24945@if m4
24946TARGET-m4=all
24947maybe-all-m4: all-m4
24948all-m4: configure-m4
0aed8855 24949 @: $(MAKE); $(unstage)
4fa63067
NN
24950 @r=`${PWD_COMMAND}`; export r; \
24951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24952 $(HOST_EXPORTS) \
a90ef4bf 24953 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 24954 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24955 $(TARGET-m4))
24956@endif m4
2a4cbe27 24957
a7254363 24958
d545f33b
PB
24959
24960
a90ef4bf
JM
24961.PHONY: check-m4 maybe-check-m4
24962maybe-check-m4:
24963@if m4
24964maybe-check-m4: check-m4
2a4cbe27 24965
a90ef4bf 24966check-m4:
0aed8855 24967 @: $(MAKE); $(unstage)
4fa63067 24968 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 24970 $(HOST_EXPORTS) \
a90ef4bf 24971 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 24972 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 24973
a90ef4bf 24974@endif m4
2a4cbe27 24975
a90ef4bf
JM
24976.PHONY: install-m4 maybe-install-m4
24977maybe-install-m4:
24978@if m4
24979maybe-install-m4: install-m4
2a4cbe27 24980
a90ef4bf 24981install-m4: installdirs
0aed8855 24982 @: $(MAKE); $(unstage)
4fa63067 24983 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24985 $(HOST_EXPORTS) \
a90ef4bf 24986 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 24987 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 24988
a90ef4bf 24989@endif m4
2a4cbe27 24990
a90ef4bf
JM
24991.PHONY: install-strip-m4 maybe-install-strip-m4
24992maybe-install-strip-m4:
24993@if m4
24994maybe-install-strip-m4: install-strip-m4
9b980aa1 24995
a90ef4bf 24996install-strip-m4: installdirs
9b980aa1
RW
24997 @: $(MAKE); $(unstage)
24998 @r=`${PWD_COMMAND}`; export r; \
24999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25000 $(HOST_EXPORTS) \
a90ef4bf 25001 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
25002 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25003
a90ef4bf 25004@endif m4
9b980aa1 25005
56a8fe78 25006# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25007
a90ef4bf
JM
25008.PHONY: maybe-info-m4 info-m4
25009maybe-info-m4:
25010@if m4
25011maybe-info-m4: info-m4
4fa63067 25012
a90ef4bf
JM
25013info-m4: \
25014 configure-m4
0aed8855 25015 @: $(MAKE); $(unstage)
a90ef4bf 25016 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25017 r=`${PWD_COMMAND}`; export r; \
25018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25019 $(HOST_EXPORTS) \
b813574b 25020 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25022 done; \
22121df0 25023 echo "Doing info in m4"; \
a90ef4bf 25024 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25027 "RANLIB=$${RANLIB}" \
0c24b341 25028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25029 info) \
2a4cbe27
NN
25030 || exit 1
25031
a90ef4bf 25032@endif m4
2a4cbe27 25033
a90ef4bf
JM
25034.PHONY: maybe-dvi-m4 dvi-m4
25035maybe-dvi-m4:
25036@if m4
25037maybe-dvi-m4: dvi-m4
2a4cbe27 25038
a90ef4bf
JM
25039dvi-m4: \
25040 configure-m4
0aed8855 25041 @: $(MAKE); $(unstage)
a90ef4bf 25042 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25043 r=`${PWD_COMMAND}`; export r; \
25044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25045 $(HOST_EXPORTS) \
b813574b 25046 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25048 done; \
22121df0 25049 echo "Doing dvi in m4"; \
a90ef4bf 25050 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25053 "RANLIB=$${RANLIB}" \
0c24b341 25054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25055 dvi) \
2a4cbe27
NN
25056 || exit 1
25057
a90ef4bf 25058@endif m4
2a4cbe27 25059
a90ef4bf
JM
25060.PHONY: maybe-pdf-m4 pdf-m4
25061maybe-pdf-m4:
25062@if m4
25063maybe-pdf-m4: pdf-m4
56a8fe78 25064
a90ef4bf
JM
25065pdf-m4: \
25066 configure-m4
56a8fe78 25067 @: $(MAKE); $(unstage)
a90ef4bf 25068 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
25069 r=`${PWD_COMMAND}`; export r; \
25070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25071 $(HOST_EXPORTS) \
25072 for flag in $(EXTRA_HOST_FLAGS) ; do \
25073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25074 done; \
22121df0 25075 echo "Doing pdf in m4"; \
a90ef4bf 25076 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
25077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25079 "RANLIB=$${RANLIB}" \
0c24b341 25080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25081 pdf) \
25082 || exit 1
25083
a90ef4bf 25084@endif m4
56a8fe78 25085
a90ef4bf
JM
25086.PHONY: maybe-html-m4 html-m4
25087maybe-html-m4:
25088@if m4
25089maybe-html-m4: html-m4
6d389afc 25090
a90ef4bf
JM
25091html-m4: \
25092 configure-m4
0aed8855 25093 @: $(MAKE); $(unstage)
a90ef4bf 25094 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
25095 r=`${PWD_COMMAND}`; export r; \
25096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25097 $(HOST_EXPORTS) \
25098 for flag in $(EXTRA_HOST_FLAGS) ; do \
25099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25100 done; \
22121df0 25101 echo "Doing html in m4"; \
a90ef4bf 25102 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
25103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25105 "RANLIB=$${RANLIB}" \
0c24b341 25106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25107 html) \
25108 || exit 1
25109
a90ef4bf 25110@endif m4
6d389afc 25111
a90ef4bf
JM
25112.PHONY: maybe-TAGS-m4 TAGS-m4
25113maybe-TAGS-m4:
25114@if m4
25115maybe-TAGS-m4: TAGS-m4
2a4cbe27 25116
a90ef4bf
JM
25117TAGS-m4: \
25118 configure-m4
0aed8855 25119 @: $(MAKE); $(unstage)
a90ef4bf 25120 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25121 r=`${PWD_COMMAND}`; export r; \
25122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25123 $(HOST_EXPORTS) \
b813574b 25124 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25126 done; \
22121df0 25127 echo "Doing TAGS in m4"; \
a90ef4bf 25128 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25131 "RANLIB=$${RANLIB}" \
0c24b341 25132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25133 TAGS) \
2a4cbe27
NN
25134 || exit 1
25135
a90ef4bf 25136@endif m4
2a4cbe27 25137
a90ef4bf
JM
25138.PHONY: maybe-install-info-m4 install-info-m4
25139maybe-install-info-m4:
25140@if m4
25141maybe-install-info-m4: install-info-m4
2a4cbe27 25142
a90ef4bf
JM
25143install-info-m4: \
25144 configure-m4 \
25145 info-m4
0aed8855 25146 @: $(MAKE); $(unstage)
a90ef4bf 25147 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25148 r=`${PWD_COMMAND}`; export r; \
25149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25150 $(HOST_EXPORTS) \
b813574b 25151 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25153 done; \
22121df0 25154 echo "Doing install-info in m4"; \
a90ef4bf 25155 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25158 "RANLIB=$${RANLIB}" \
0c24b341 25159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25160 install-info) \
2a4cbe27
NN
25161 || exit 1
25162
a90ef4bf 25163@endif m4
2a4cbe27 25164
a90ef4bf
JM
25165.PHONY: maybe-install-pdf-m4 install-pdf-m4
25166maybe-install-pdf-m4:
25167@if m4
25168maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 25169
a90ef4bf
JM
25170install-pdf-m4: \
25171 configure-m4 \
25172 pdf-m4
a3ca38d2 25173 @: $(MAKE); $(unstage)
a90ef4bf 25174 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
25175 r=`${PWD_COMMAND}`; export r; \
25176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25177 $(HOST_EXPORTS) \
25178 for flag in $(EXTRA_HOST_FLAGS) ; do \
25179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25180 done; \
22121df0 25181 echo "Doing install-pdf in m4"; \
a90ef4bf 25182 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
25183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25185 "RANLIB=$${RANLIB}" \
0c24b341 25186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25187 install-pdf) \
25188 || exit 1
25189
a90ef4bf 25190@endif m4
a3ca38d2 25191
a90ef4bf
JM
25192.PHONY: maybe-install-html-m4 install-html-m4
25193maybe-install-html-m4:
25194@if m4
25195maybe-install-html-m4: install-html-m4
108a6f8e 25196
a90ef4bf
JM
25197install-html-m4: \
25198 configure-m4 \
25199 html-m4
108a6f8e 25200 @: $(MAKE); $(unstage)
a90ef4bf 25201 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
25202 r=`${PWD_COMMAND}`; export r; \
25203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25204 $(HOST_EXPORTS) \
25205 for flag in $(EXTRA_HOST_FLAGS) ; do \
25206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25207 done; \
22121df0 25208 echo "Doing install-html in m4"; \
a90ef4bf 25209 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
25210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25212 "RANLIB=$${RANLIB}" \
0c24b341 25213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25214 install-html) \
25215 || exit 1
25216
a90ef4bf 25217@endif m4
108a6f8e 25218
a90ef4bf
JM
25219.PHONY: maybe-installcheck-m4 installcheck-m4
25220maybe-installcheck-m4:
25221@if m4
25222maybe-installcheck-m4: installcheck-m4
2a4cbe27 25223
a90ef4bf
JM
25224installcheck-m4: \
25225 configure-m4
0aed8855 25226 @: $(MAKE); $(unstage)
a90ef4bf 25227 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25228 r=`${PWD_COMMAND}`; export r; \
25229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25230 $(HOST_EXPORTS) \
b813574b 25231 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25233 done; \
22121df0 25234 echo "Doing installcheck in m4"; \
a90ef4bf 25235 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25238 "RANLIB=$${RANLIB}" \
0c24b341 25239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25240 installcheck) \
2a4cbe27
NN
25241 || exit 1
25242
a90ef4bf 25243@endif m4
2a4cbe27 25244
a90ef4bf
JM
25245.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
25246maybe-mostlyclean-m4:
25247@if m4
25248maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 25249
a90ef4bf 25250mostlyclean-m4:
0aed8855 25251 @: $(MAKE); $(unstage)
a90ef4bf 25252 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25253 r=`${PWD_COMMAND}`; export r; \
25254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25255 $(HOST_EXPORTS) \
b813574b 25256 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25258 done; \
22121df0 25259 echo "Doing mostlyclean in m4"; \
a90ef4bf 25260 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25263 "RANLIB=$${RANLIB}" \
0c24b341 25264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25265 mostlyclean) \
2a4cbe27
NN
25266 || exit 1
25267
a90ef4bf 25268@endif m4
2a4cbe27 25269
a90ef4bf
JM
25270.PHONY: maybe-clean-m4 clean-m4
25271maybe-clean-m4:
25272@if m4
25273maybe-clean-m4: clean-m4
2a4cbe27 25274
a90ef4bf 25275clean-m4:
0aed8855 25276 @: $(MAKE); $(unstage)
a90ef4bf 25277 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25278 r=`${PWD_COMMAND}`; export r; \
25279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25280 $(HOST_EXPORTS) \
b813574b 25281 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25283 done; \
22121df0 25284 echo "Doing clean in m4"; \
a90ef4bf 25285 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25288 "RANLIB=$${RANLIB}" \
0c24b341 25289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25290 clean) \
2a4cbe27
NN
25291 || exit 1
25292
a90ef4bf 25293@endif m4
2a4cbe27 25294
a90ef4bf
JM
25295.PHONY: maybe-distclean-m4 distclean-m4
25296maybe-distclean-m4:
25297@if m4
25298maybe-distclean-m4: distclean-m4
2a4cbe27 25299
a90ef4bf 25300distclean-m4:
0aed8855 25301 @: $(MAKE); $(unstage)
a90ef4bf 25302 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25303 r=`${PWD_COMMAND}`; export r; \
25304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25305 $(HOST_EXPORTS) \
b813574b 25306 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25308 done; \
22121df0 25309 echo "Doing distclean in m4"; \
a90ef4bf 25310 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25313 "RANLIB=$${RANLIB}" \
0c24b341 25314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25315 distclean) \
2a4cbe27
NN
25316 || exit 1
25317
a90ef4bf 25318@endif m4
2a4cbe27 25319
a90ef4bf
JM
25320.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
25321maybe-maintainer-clean-m4:
25322@if m4
25323maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 25324
a90ef4bf 25325maintainer-clean-m4:
0aed8855 25326 @: $(MAKE); $(unstage)
a90ef4bf 25327 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25328 r=`${PWD_COMMAND}`; export r; \
25329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25330 $(HOST_EXPORTS) \
b813574b 25331 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25333 done; \
22121df0 25334 echo "Doing maintainer-clean in m4"; \
a90ef4bf 25335 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25338 "RANLIB=$${RANLIB}" \
0c24b341 25339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25340 maintainer-clean) \
2a4cbe27
NN
25341 || exit 1
25342
a90ef4bf 25343@endif m4
2a4cbe27 25344
2a4cbe27 25345
a7254363 25346
a90ef4bf
JM
25347.PHONY: configure-readline maybe-configure-readline
25348maybe-configure-readline:
4f0ef2d8 25349@if gcc-bootstrap
a90ef4bf 25350configure-readline: stage_current
4f0ef2d8 25351@endif gcc-bootstrap
a90ef4bf
JM
25352@if readline
25353maybe-configure-readline: configure-readline
25354configure-readline:
0aed8855 25355 @: $(MAKE); $(unstage)
c52c6897 25356 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25358 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22121df0 25359 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline; \
1f53ca9a 25360 $(HOST_EXPORTS) \
a90ef4bf
JM
25361 echo Configuring in $(HOST_SUBDIR)/readline; \
25362 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 25363 case $(srcdir) in \
b00612cc 25364 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25365 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 25366 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25367 esac; \
1b6c0831
L
25368 module_srcdir=readline; \
25369 $(SHELL) \
25370 $$s/$$module_srcdir/configure \
25371 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25372 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25373 --target=${target_alias} \
2a4cbe27 25374 || exit 1
a90ef4bf 25375@endif readline
2a4cbe27 25376
a7254363
PB
25377
25378
d545f33b
PB
25379
25380
a90ef4bf
JM
25381.PHONY: all-readline maybe-all-readline
25382maybe-all-readline:
4f0ef2d8 25383@if gcc-bootstrap
a90ef4bf 25384all-readline: stage_current
4f0ef2d8 25385@endif gcc-bootstrap
a90ef4bf
JM
25386@if readline
25387TARGET-readline=all
25388maybe-all-readline: all-readline
25389all-readline: configure-readline
0aed8855 25390 @: $(MAKE); $(unstage)
4fa63067
NN
25391 @r=`${PWD_COMMAND}`; export r; \
25392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25393 $(HOST_EXPORTS) \
a90ef4bf 25394 (cd $(HOST_SUBDIR)/readline && \
b3676d82 25395 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25396 $(TARGET-readline))
25397@endif readline
2a4cbe27 25398
a7254363 25399
d545f33b
PB
25400
25401
a90ef4bf
JM
25402.PHONY: check-readline maybe-check-readline
25403maybe-check-readline:
25404@if readline
25405maybe-check-readline: check-readline
2a4cbe27 25406
a90ef4bf 25407check-readline:
0aed8855 25408 @: $(MAKE); $(unstage)
4fa63067 25409 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25411 $(HOST_EXPORTS) \
a90ef4bf 25412 (cd $(HOST_SUBDIR)/readline && \
b00612cc 25413 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25414
a90ef4bf 25415@endif readline
2a4cbe27 25416
a90ef4bf
JM
25417.PHONY: install-readline maybe-install-readline
25418maybe-install-readline:
25419@if readline
25420maybe-install-readline: install-readline
2a4cbe27 25421
a90ef4bf 25422install-readline: installdirs
0aed8855 25423 @: $(MAKE); $(unstage)
4fa63067
NN
25424 @r=`${PWD_COMMAND}`; export r; \
25425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25426 $(HOST_EXPORTS) \
a90ef4bf 25427 (cd $(HOST_SUBDIR)/readline && \
2da12f12 25428 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 25429
a90ef4bf 25430@endif readline
9b980aa1 25431
a90ef4bf
JM
25432.PHONY: install-strip-readline maybe-install-strip-readline
25433maybe-install-strip-readline:
25434@if readline
25435maybe-install-strip-readline: install-strip-readline
25436
25437install-strip-readline: installdirs
9b980aa1
RW
25438 @: $(MAKE); $(unstage)
25439 @r=`${PWD_COMMAND}`; export r; \
25440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25441 $(HOST_EXPORTS) \
a90ef4bf 25442 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
25443 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25444
a90ef4bf 25445@endif readline
9b980aa1 25446
56a8fe78 25447# Other targets (info, dvi, pdf, etc.)
4fa63067 25448
a90ef4bf
JM
25449.PHONY: maybe-info-readline info-readline
25450maybe-info-readline:
25451@if readline
25452maybe-info-readline: info-readline
4fa63067 25453
a90ef4bf
JM
25454info-readline: \
25455 configure-readline
0aed8855 25456 @: $(MAKE); $(unstage)
a90ef4bf 25457 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25458 r=`${PWD_COMMAND}`; export r; \
25459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25460 $(HOST_EXPORTS) \
b813574b 25461 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25463 done; \
22121df0 25464 echo "Doing info in readline"; \
a90ef4bf 25465 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25468 "RANLIB=$${RANLIB}" \
0c24b341 25469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25470 info) \
2a4cbe27
NN
25471 || exit 1
25472
a90ef4bf 25473@endif readline
2a4cbe27 25474
a90ef4bf
JM
25475.PHONY: maybe-dvi-readline dvi-readline
25476maybe-dvi-readline:
25477@if readline
25478maybe-dvi-readline: dvi-readline
2a4cbe27 25479
a90ef4bf
JM
25480dvi-readline: \
25481 configure-readline
0aed8855 25482 @: $(MAKE); $(unstage)
a90ef4bf 25483 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25484 r=`${PWD_COMMAND}`; export r; \
25485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25486 $(HOST_EXPORTS) \
b813574b 25487 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25489 done; \
22121df0 25490 echo "Doing dvi in readline"; \
a90ef4bf 25491 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25494 "RANLIB=$${RANLIB}" \
0c24b341 25495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25496 dvi) \
2a4cbe27
NN
25497 || exit 1
25498
a90ef4bf 25499@endif readline
2a4cbe27 25500
a90ef4bf
JM
25501.PHONY: maybe-pdf-readline pdf-readline
25502maybe-pdf-readline:
25503@if readline
25504maybe-pdf-readline: pdf-readline
56a8fe78 25505
a90ef4bf
JM
25506pdf-readline: \
25507 configure-readline
56a8fe78 25508 @: $(MAKE); $(unstage)
a90ef4bf 25509 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
25510 r=`${PWD_COMMAND}`; export r; \
25511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25512 $(HOST_EXPORTS) \
25513 for flag in $(EXTRA_HOST_FLAGS) ; do \
25514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25515 done; \
22121df0 25516 echo "Doing pdf in readline"; \
a90ef4bf 25517 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
25518 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25519 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25520 "RANLIB=$${RANLIB}" \
0c24b341 25521 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25522 pdf) \
25523 || exit 1
25524
a90ef4bf 25525@endif readline
56a8fe78 25526
a90ef4bf
JM
25527.PHONY: maybe-html-readline html-readline
25528maybe-html-readline:
25529@if readline
25530maybe-html-readline: html-readline
6d389afc 25531
a90ef4bf
JM
25532html-readline: \
25533 configure-readline
0aed8855 25534 @: $(MAKE); $(unstage)
a90ef4bf 25535 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
25536 r=`${PWD_COMMAND}`; export r; \
25537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25538 $(HOST_EXPORTS) \
25539 for flag in $(EXTRA_HOST_FLAGS) ; do \
25540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25541 done; \
22121df0 25542 echo "Doing html in readline"; \
a90ef4bf 25543 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
25544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25546 "RANLIB=$${RANLIB}" \
0c24b341 25547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25548 html) \
25549 || exit 1
25550
a90ef4bf 25551@endif readline
6d389afc 25552
a90ef4bf
JM
25553.PHONY: maybe-TAGS-readline TAGS-readline
25554maybe-TAGS-readline:
25555@if readline
25556maybe-TAGS-readline: TAGS-readline
2a4cbe27 25557
a90ef4bf
JM
25558TAGS-readline: \
25559 configure-readline
0aed8855 25560 @: $(MAKE); $(unstage)
a90ef4bf 25561 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25562 r=`${PWD_COMMAND}`; export r; \
25563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25564 $(HOST_EXPORTS) \
b813574b 25565 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25567 done; \
22121df0 25568 echo "Doing TAGS in readline"; \
a90ef4bf 25569 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25572 "RANLIB=$${RANLIB}" \
0c24b341 25573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25574 TAGS) \
2a4cbe27
NN
25575 || exit 1
25576
a90ef4bf 25577@endif readline
2a4cbe27 25578
a90ef4bf
JM
25579.PHONY: maybe-install-info-readline install-info-readline
25580maybe-install-info-readline:
25581@if readline
25582maybe-install-info-readline: install-info-readline
2a4cbe27 25583
a90ef4bf
JM
25584install-info-readline: \
25585 configure-readline \
25586 info-readline
0aed8855 25587 @: $(MAKE); $(unstage)
a90ef4bf 25588 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25589 r=`${PWD_COMMAND}`; export r; \
25590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25591 $(HOST_EXPORTS) \
b813574b 25592 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25594 done; \
22121df0 25595 echo "Doing install-info in readline"; \
a90ef4bf 25596 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25599 "RANLIB=$${RANLIB}" \
0c24b341 25600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25601 install-info) \
2a4cbe27
NN
25602 || exit 1
25603
a90ef4bf 25604@endif readline
2a4cbe27 25605
a90ef4bf
JM
25606.PHONY: maybe-install-pdf-readline install-pdf-readline
25607maybe-install-pdf-readline:
25608@if readline
25609maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 25610
a90ef4bf
JM
25611install-pdf-readline: \
25612 configure-readline \
25613 pdf-readline
a3ca38d2 25614 @: $(MAKE); $(unstage)
a90ef4bf 25615 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
25616 r=`${PWD_COMMAND}`; export r; \
25617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25618 $(HOST_EXPORTS) \
25619 for flag in $(EXTRA_HOST_FLAGS) ; do \
25620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25621 done; \
22121df0 25622 echo "Doing install-pdf in readline"; \
a90ef4bf 25623 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
25624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25626 "RANLIB=$${RANLIB}" \
0c24b341 25627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25628 install-pdf) \
25629 || exit 1
25630
a90ef4bf 25631@endif readline
a3ca38d2 25632
a90ef4bf
JM
25633.PHONY: maybe-install-html-readline install-html-readline
25634maybe-install-html-readline:
25635@if readline
25636maybe-install-html-readline: install-html-readline
108a6f8e 25637
a90ef4bf
JM
25638install-html-readline: \
25639 configure-readline \
25640 html-readline
108a6f8e 25641 @: $(MAKE); $(unstage)
a90ef4bf 25642 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
25643 r=`${PWD_COMMAND}`; export r; \
25644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25645 $(HOST_EXPORTS) \
25646 for flag in $(EXTRA_HOST_FLAGS) ; do \
25647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25648 done; \
22121df0 25649 echo "Doing install-html in readline"; \
a90ef4bf 25650 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
25651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25653 "RANLIB=$${RANLIB}" \
0c24b341 25654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25655 install-html) \
25656 || exit 1
25657
a90ef4bf 25658@endif readline
108a6f8e 25659
a90ef4bf
JM
25660.PHONY: maybe-installcheck-readline installcheck-readline
25661maybe-installcheck-readline:
25662@if readline
25663maybe-installcheck-readline: installcheck-readline
2a4cbe27 25664
a90ef4bf
JM
25665installcheck-readline: \
25666 configure-readline
0aed8855 25667 @: $(MAKE); $(unstage)
a90ef4bf 25668 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25669 r=`${PWD_COMMAND}`; export r; \
25670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25671 $(HOST_EXPORTS) \
b813574b 25672 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25674 done; \
22121df0 25675 echo "Doing installcheck in readline"; \
a90ef4bf 25676 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25679 "RANLIB=$${RANLIB}" \
0c24b341 25680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25681 installcheck) \
2a4cbe27
NN
25682 || exit 1
25683
a90ef4bf 25684@endif readline
2a4cbe27 25685
a90ef4bf
JM
25686.PHONY: maybe-mostlyclean-readline mostlyclean-readline
25687maybe-mostlyclean-readline:
25688@if readline
25689maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 25690
a90ef4bf 25691mostlyclean-readline:
0aed8855 25692 @: $(MAKE); $(unstage)
a90ef4bf 25693 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25694 r=`${PWD_COMMAND}`; export r; \
25695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25696 $(HOST_EXPORTS) \
b813574b 25697 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25699 done; \
22121df0 25700 echo "Doing mostlyclean in readline"; \
a90ef4bf 25701 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25704 "RANLIB=$${RANLIB}" \
0c24b341 25705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25706 mostlyclean) \
2a4cbe27
NN
25707 || exit 1
25708
a90ef4bf 25709@endif readline
2a4cbe27 25710
a90ef4bf
JM
25711.PHONY: maybe-clean-readline clean-readline
25712maybe-clean-readline:
25713@if readline
25714maybe-clean-readline: clean-readline
2a4cbe27 25715
a90ef4bf 25716clean-readline:
0aed8855 25717 @: $(MAKE); $(unstage)
a90ef4bf 25718 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25719 r=`${PWD_COMMAND}`; export r; \
25720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25721 $(HOST_EXPORTS) \
b813574b 25722 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25724 done; \
22121df0 25725 echo "Doing clean in readline"; \
a90ef4bf 25726 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25729 "RANLIB=$${RANLIB}" \
0c24b341 25730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25731 clean) \
2a4cbe27
NN
25732 || exit 1
25733
a90ef4bf 25734@endif readline
2a4cbe27 25735
a90ef4bf
JM
25736.PHONY: maybe-distclean-readline distclean-readline
25737maybe-distclean-readline:
25738@if readline
25739maybe-distclean-readline: distclean-readline
2a4cbe27 25740
a90ef4bf 25741distclean-readline:
0aed8855 25742 @: $(MAKE); $(unstage)
a90ef4bf 25743 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25744 r=`${PWD_COMMAND}`; export r; \
25745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25746 $(HOST_EXPORTS) \
b813574b 25747 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25749 done; \
22121df0 25750 echo "Doing distclean in readline"; \
a90ef4bf 25751 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25754 "RANLIB=$${RANLIB}" \
0c24b341 25755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25756 distclean) \
2a4cbe27
NN
25757 || exit 1
25758
a90ef4bf 25759@endif readline
2a4cbe27 25760
a90ef4bf
JM
25761.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
25762maybe-maintainer-clean-readline:
25763@if readline
25764maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 25765
a90ef4bf 25766maintainer-clean-readline:
0aed8855 25767 @: $(MAKE); $(unstage)
a90ef4bf 25768 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25769 r=`${PWD_COMMAND}`; export r; \
25770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25771 $(HOST_EXPORTS) \
b813574b 25772 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25774 done; \
22121df0 25775 echo "Doing maintainer-clean in readline"; \
a90ef4bf 25776 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25779 "RANLIB=$${RANLIB}" \
0c24b341 25780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25781 maintainer-clean) \
2a4cbe27
NN
25782 || exit 1
25783
a90ef4bf 25784@endif readline
2a4cbe27 25785
2a4cbe27 25786
a7254363 25787
a90ef4bf
JM
25788.PHONY: configure-sid maybe-configure-sid
25789maybe-configure-sid:
4f0ef2d8 25790@if gcc-bootstrap
a90ef4bf 25791configure-sid: stage_current
4f0ef2d8 25792@endif gcc-bootstrap
a90ef4bf
JM
25793@if sid
25794maybe-configure-sid: configure-sid
25795configure-sid:
0aed8855 25796 @: $(MAKE); $(unstage)
c52c6897 25797 @r=`${PWD_COMMAND}`; export r; \
4fa63067 25798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25799 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
22121df0 25800 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid; \
1f53ca9a 25801 $(HOST_EXPORTS) \
a90ef4bf
JM
25802 echo Configuring in $(HOST_SUBDIR)/sid; \
25803 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 25804 case $(srcdir) in \
b00612cc 25805 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25806 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 25807 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25808 esac; \
1b6c0831
L
25809 module_srcdir=sid; \
25810 $(SHELL) \
25811 $$s/$$module_srcdir/configure \
25812 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25813 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25814 --target=${target_alias} \
4fa63067 25815 || exit 1
a90ef4bf 25816@endif sid
2a4cbe27 25817
a7254363
PB
25818
25819
d545f33b
PB
25820
25821
a90ef4bf
JM
25822.PHONY: all-sid maybe-all-sid
25823maybe-all-sid:
4f0ef2d8 25824@if gcc-bootstrap
a90ef4bf 25825all-sid: stage_current
4f0ef2d8 25826@endif gcc-bootstrap
a90ef4bf
JM
25827@if sid
25828TARGET-sid=all
25829maybe-all-sid: all-sid
25830all-sid: configure-sid
0aed8855 25831 @: $(MAKE); $(unstage)
4fa63067
NN
25832 @r=`${PWD_COMMAND}`; export r; \
25833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25834 $(HOST_EXPORTS) \
a90ef4bf 25835 (cd $(HOST_SUBDIR)/sid && \
b3676d82 25836 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25837 $(TARGET-sid))
25838@endif sid
2a4cbe27 25839
a7254363 25840
d545f33b
PB
25841
25842
a90ef4bf
JM
25843.PHONY: check-sid maybe-check-sid
25844maybe-check-sid:
25845@if sid
25846maybe-check-sid: check-sid
2a4cbe27 25847
a90ef4bf 25848check-sid:
0aed8855 25849 @: $(MAKE); $(unstage)
4fa63067 25850 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25852 $(HOST_EXPORTS) \
a90ef4bf 25853 (cd $(HOST_SUBDIR)/sid && \
b00612cc 25854 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25855
a90ef4bf 25856@endif sid
2a4cbe27 25857
a90ef4bf
JM
25858.PHONY: install-sid maybe-install-sid
25859maybe-install-sid:
25860@if sid
25861maybe-install-sid: install-sid
2a4cbe27 25862
a90ef4bf 25863install-sid: installdirs
0aed8855 25864 @: $(MAKE); $(unstage)
4fa63067 25865 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25867 $(HOST_EXPORTS) \
a90ef4bf 25868 (cd $(HOST_SUBDIR)/sid && \
2da12f12 25869 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25870
a90ef4bf 25871@endif sid
2a4cbe27 25872
a90ef4bf
JM
25873.PHONY: install-strip-sid maybe-install-strip-sid
25874maybe-install-strip-sid:
25875@if sid
25876maybe-install-strip-sid: install-strip-sid
9b980aa1 25877
a90ef4bf 25878install-strip-sid: installdirs
9b980aa1
RW
25879 @: $(MAKE); $(unstage)
25880 @r=`${PWD_COMMAND}`; export r; \
25881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25882 $(HOST_EXPORTS) \
a90ef4bf 25883 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
25884 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25885
a90ef4bf 25886@endif sid
9b980aa1 25887
56a8fe78 25888# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25889
a90ef4bf
JM
25890.PHONY: maybe-info-sid info-sid
25891maybe-info-sid:
25892@if sid
25893maybe-info-sid: info-sid
4fa63067 25894
a90ef4bf
JM
25895info-sid: \
25896 configure-sid
0aed8855 25897 @: $(MAKE); $(unstage)
a90ef4bf 25898 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25899 r=`${PWD_COMMAND}`; export r; \
25900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25901 $(HOST_EXPORTS) \
b813574b 25902 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25904 done; \
22121df0 25905 echo "Doing info in sid"; \
a90ef4bf 25906 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25909 "RANLIB=$${RANLIB}" \
0c24b341 25910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25911 info) \
2a4cbe27
NN
25912 || exit 1
25913
a90ef4bf 25914@endif sid
2a4cbe27 25915
a90ef4bf
JM
25916.PHONY: maybe-dvi-sid dvi-sid
25917maybe-dvi-sid:
25918@if sid
25919maybe-dvi-sid: dvi-sid
2a4cbe27 25920
a90ef4bf
JM
25921dvi-sid: \
25922 configure-sid
0aed8855 25923 @: $(MAKE); $(unstage)
a90ef4bf 25924 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25925 r=`${PWD_COMMAND}`; export r; \
25926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25927 $(HOST_EXPORTS) \
b813574b 25928 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25930 done; \
22121df0 25931 echo "Doing dvi in sid"; \
a90ef4bf 25932 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25935 "RANLIB=$${RANLIB}" \
0c24b341 25936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25937 dvi) \
2a4cbe27
NN
25938 || exit 1
25939
a90ef4bf 25940@endif sid
2a4cbe27 25941
a90ef4bf
JM
25942.PHONY: maybe-pdf-sid pdf-sid
25943maybe-pdf-sid:
25944@if sid
25945maybe-pdf-sid: pdf-sid
56a8fe78 25946
a90ef4bf
JM
25947pdf-sid: \
25948 configure-sid
56a8fe78 25949 @: $(MAKE); $(unstage)
a90ef4bf 25950 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
25951 r=`${PWD_COMMAND}`; export r; \
25952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25953 $(HOST_EXPORTS) \
25954 for flag in $(EXTRA_HOST_FLAGS) ; do \
25955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25956 done; \
22121df0 25957 echo "Doing pdf in sid"; \
a90ef4bf 25958 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
25959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25961 "RANLIB=$${RANLIB}" \
0c24b341 25962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25963 pdf) \
25964 || exit 1
25965
a90ef4bf 25966@endif sid
56a8fe78 25967
a90ef4bf
JM
25968.PHONY: maybe-html-sid html-sid
25969maybe-html-sid:
25970@if sid
25971maybe-html-sid: html-sid
6d389afc 25972
a90ef4bf
JM
25973html-sid: \
25974 configure-sid
0aed8855 25975 @: $(MAKE); $(unstage)
a90ef4bf 25976 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
25977 r=`${PWD_COMMAND}`; export r; \
25978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25979 $(HOST_EXPORTS) \
25980 for flag in $(EXTRA_HOST_FLAGS) ; do \
25981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25982 done; \
22121df0 25983 echo "Doing html in sid"; \
a90ef4bf 25984 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
25985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25987 "RANLIB=$${RANLIB}" \
0c24b341 25988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25989 html) \
25990 || exit 1
25991
a90ef4bf 25992@endif sid
6d389afc 25993
a90ef4bf
JM
25994.PHONY: maybe-TAGS-sid TAGS-sid
25995maybe-TAGS-sid:
25996@if sid
25997maybe-TAGS-sid: TAGS-sid
2a4cbe27 25998
a90ef4bf
JM
25999TAGS-sid: \
26000 configure-sid
0aed8855 26001 @: $(MAKE); $(unstage)
a90ef4bf 26002 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26003 r=`${PWD_COMMAND}`; export r; \
26004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26005 $(HOST_EXPORTS) \
b813574b 26006 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26008 done; \
22121df0 26009 echo "Doing TAGS in sid"; \
a90ef4bf 26010 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26013 "RANLIB=$${RANLIB}" \
0c24b341 26014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26015 TAGS) \
2a4cbe27
NN
26016 || exit 1
26017
a90ef4bf 26018@endif sid
2a4cbe27 26019
a90ef4bf
JM
26020.PHONY: maybe-install-info-sid install-info-sid
26021maybe-install-info-sid:
26022@if sid
26023maybe-install-info-sid: install-info-sid
2a4cbe27 26024
a90ef4bf
JM
26025install-info-sid: \
26026 configure-sid \
26027 info-sid
0aed8855 26028 @: $(MAKE); $(unstage)
a90ef4bf 26029 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26030 r=`${PWD_COMMAND}`; export r; \
26031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26032 $(HOST_EXPORTS) \
b813574b 26033 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26035 done; \
22121df0 26036 echo "Doing install-info in sid"; \
a90ef4bf 26037 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26040 "RANLIB=$${RANLIB}" \
0c24b341 26041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26042 install-info) \
2a4cbe27
NN
26043 || exit 1
26044
a90ef4bf 26045@endif sid
2a4cbe27 26046
a90ef4bf
JM
26047.PHONY: maybe-install-pdf-sid install-pdf-sid
26048maybe-install-pdf-sid:
26049@if sid
26050maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 26051
a90ef4bf
JM
26052install-pdf-sid: \
26053 configure-sid \
26054 pdf-sid
a3ca38d2 26055 @: $(MAKE); $(unstage)
a90ef4bf 26056 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
26057 r=`${PWD_COMMAND}`; export r; \
26058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26059 $(HOST_EXPORTS) \
26060 for flag in $(EXTRA_HOST_FLAGS) ; do \
26061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26062 done; \
22121df0 26063 echo "Doing install-pdf in sid"; \
a90ef4bf 26064 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
26065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26067 "RANLIB=$${RANLIB}" \
0c24b341 26068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26069 install-pdf) \
26070 || exit 1
26071
a90ef4bf 26072@endif sid
a3ca38d2 26073
a90ef4bf
JM
26074.PHONY: maybe-install-html-sid install-html-sid
26075maybe-install-html-sid:
26076@if sid
26077maybe-install-html-sid: install-html-sid
108a6f8e 26078
a90ef4bf
JM
26079install-html-sid: \
26080 configure-sid \
26081 html-sid
108a6f8e 26082 @: $(MAKE); $(unstage)
a90ef4bf 26083 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
26084 r=`${PWD_COMMAND}`; export r; \
26085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26086 $(HOST_EXPORTS) \
26087 for flag in $(EXTRA_HOST_FLAGS) ; do \
26088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26089 done; \
22121df0 26090 echo "Doing install-html in sid"; \
a90ef4bf 26091 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
26092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26094 "RANLIB=$${RANLIB}" \
0c24b341 26095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26096 install-html) \
26097 || exit 1
26098
a90ef4bf 26099@endif sid
108a6f8e 26100
a90ef4bf
JM
26101.PHONY: maybe-installcheck-sid installcheck-sid
26102maybe-installcheck-sid:
26103@if sid
26104maybe-installcheck-sid: installcheck-sid
2a4cbe27 26105
a90ef4bf
JM
26106installcheck-sid: \
26107 configure-sid
0aed8855 26108 @: $(MAKE); $(unstage)
a90ef4bf 26109 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26110 r=`${PWD_COMMAND}`; export r; \
26111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26112 $(HOST_EXPORTS) \
b813574b 26113 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26115 done; \
22121df0 26116 echo "Doing installcheck in sid"; \
a90ef4bf 26117 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26120 "RANLIB=$${RANLIB}" \
0c24b341 26121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26122 installcheck) \
2a4cbe27
NN
26123 || exit 1
26124
a90ef4bf 26125@endif sid
2a4cbe27 26126
a90ef4bf
JM
26127.PHONY: maybe-mostlyclean-sid mostlyclean-sid
26128maybe-mostlyclean-sid:
26129@if sid
26130maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 26131
a90ef4bf 26132mostlyclean-sid:
0aed8855 26133 @: $(MAKE); $(unstage)
a90ef4bf 26134 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26135 r=`${PWD_COMMAND}`; export r; \
26136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26137 $(HOST_EXPORTS) \
b813574b 26138 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26140 done; \
22121df0 26141 echo "Doing mostlyclean in sid"; \
a90ef4bf 26142 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26145 "RANLIB=$${RANLIB}" \
0c24b341 26146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26147 mostlyclean) \
2a4cbe27
NN
26148 || exit 1
26149
a90ef4bf 26150@endif sid
2a4cbe27 26151
a90ef4bf
JM
26152.PHONY: maybe-clean-sid clean-sid
26153maybe-clean-sid:
26154@if sid
26155maybe-clean-sid: clean-sid
2a4cbe27 26156
a90ef4bf 26157clean-sid:
0aed8855 26158 @: $(MAKE); $(unstage)
a90ef4bf 26159 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26160 r=`${PWD_COMMAND}`; export r; \
26161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26162 $(HOST_EXPORTS) \
b813574b 26163 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26165 done; \
22121df0 26166 echo "Doing clean in sid"; \
a90ef4bf 26167 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26170 "RANLIB=$${RANLIB}" \
0c24b341 26171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26172 clean) \
2a4cbe27
NN
26173 || exit 1
26174
a90ef4bf 26175@endif sid
2a4cbe27 26176
a90ef4bf
JM
26177.PHONY: maybe-distclean-sid distclean-sid
26178maybe-distclean-sid:
26179@if sid
26180maybe-distclean-sid: distclean-sid
2a4cbe27 26181
a90ef4bf 26182distclean-sid:
0aed8855 26183 @: $(MAKE); $(unstage)
a90ef4bf 26184 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26185 r=`${PWD_COMMAND}`; export r; \
26186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26187 $(HOST_EXPORTS) \
b813574b 26188 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26190 done; \
22121df0 26191 echo "Doing distclean in sid"; \
a90ef4bf 26192 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26195 "RANLIB=$${RANLIB}" \
0c24b341 26196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26197 distclean) \
2a4cbe27
NN
26198 || exit 1
26199
a90ef4bf 26200@endif sid
2a4cbe27 26201
a90ef4bf
JM
26202.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
26203maybe-maintainer-clean-sid:
26204@if sid
26205maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 26206
a90ef4bf 26207maintainer-clean-sid:
0aed8855 26208 @: $(MAKE); $(unstage)
a90ef4bf 26209 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26210 r=`${PWD_COMMAND}`; export r; \
26211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26212 $(HOST_EXPORTS) \
b813574b 26213 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26215 done; \
22121df0 26216 echo "Doing maintainer-clean in sid"; \
a90ef4bf 26217 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26220 "RANLIB=$${RANLIB}" \
0c24b341 26221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26222 maintainer-clean) \
2a4cbe27
NN
26223 || exit 1
26224
a90ef4bf 26225@endif sid
2a4cbe27 26226
a2592b1b 26227
a7254363 26228
a90ef4bf
JM
26229.PHONY: configure-sim maybe-configure-sim
26230maybe-configure-sim:
4f0ef2d8 26231@if gcc-bootstrap
a90ef4bf 26232configure-sim: stage_current
4f0ef2d8 26233@endif gcc-bootstrap
a90ef4bf
JM
26234@if sim
26235maybe-configure-sim: configure-sim
26236configure-sim:
26237 @: $(MAKE); $(unstage)
c52c6897
PB
26238 @r=`${PWD_COMMAND}`; export r; \
26239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26240 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
22121df0 26241 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim; \
1f53ca9a 26242 $(HOST_EXPORTS) \
a90ef4bf
JM
26243 echo Configuring in $(HOST_SUBDIR)/sim; \
26244 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 26245 case $(srcdir) in \
b00612cc 26246 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26247 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 26248 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26249 esac; \
1b6c0831
L
26250 module_srcdir=sim; \
26251 $(SHELL) \
26252 $$s/$$module_srcdir/configure \
26253 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26254 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26255 --target=${target_alias} \
a2592b1b 26256 || exit 1
a90ef4bf 26257@endif sim
a2592b1b 26258
a7254363
PB
26259
26260
a90ef4bf
JM
26261
26262
26263.PHONY: all-sim maybe-all-sim
26264maybe-all-sim:
26265@if gcc-bootstrap
26266all-sim: stage_current
26267@endif gcc-bootstrap
26268@if sim
26269TARGET-sim=all
26270maybe-all-sim: all-sim
26271all-sim: configure-sim
26272 @: $(MAKE); $(unstage)
c52c6897
PB
26273 @r=`${PWD_COMMAND}`; export r; \
26274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26275 $(HOST_EXPORTS) \
26276 (cd $(HOST_SUBDIR)/sim && \
b3676d82 26277 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26278 $(TARGET-sim))
26279@endif sim
d545f33b 26280
a90ef4bf
JM
26281
26282
26283
26284.PHONY: check-sim maybe-check-sim
26285maybe-check-sim:
26286@if sim
26287maybe-check-sim: check-sim
26288
26289check-sim:
26290 @: $(MAKE); $(unstage)
c52c6897
PB
26291 @r=`${PWD_COMMAND}`; export r; \
26292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26293 $(HOST_EXPORTS) \
a90ef4bf
JM
26294 (cd $(HOST_SUBDIR)/sim && \
26295 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 26296
a90ef4bf
JM
26297@endif sim
26298
26299.PHONY: install-sim maybe-install-sim
26300maybe-install-sim:
26301@if sim
26302maybe-install-sim: install-sim
26303
26304install-sim: installdirs
26305 @: $(MAKE); $(unstage)
c52c6897
PB
26306 @r=`${PWD_COMMAND}`; export r; \
26307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26308 $(HOST_EXPORTS) \
a90ef4bf
JM
26309 (cd $(HOST_SUBDIR)/sim && \
26310 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 26311
a90ef4bf
JM
26312@endif sim
26313
26314.PHONY: install-strip-sim maybe-install-strip-sim
26315maybe-install-strip-sim:
26316@if sim
26317maybe-install-strip-sim: install-strip-sim
26318
26319install-strip-sim: installdirs
26320 @: $(MAKE); $(unstage)
c52c6897
PB
26321 @r=`${PWD_COMMAND}`; export r; \
26322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26323 $(HOST_EXPORTS) \
a90ef4bf
JM
26324 (cd $(HOST_SUBDIR)/sim && \
26325 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 26326
a90ef4bf 26327@endif sim
9b980aa1 26328
56a8fe78 26329# Other targets (info, dvi, pdf, etc.)
4fa63067 26330
a90ef4bf
JM
26331.PHONY: maybe-info-sim info-sim
26332maybe-info-sim:
26333@if sim
26334maybe-info-sim: info-sim
4fa63067 26335
a90ef4bf
JM
26336info-sim: \
26337 configure-sim
26338 @: $(MAKE); $(unstage)
26339 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26340 r=`${PWD_COMMAND}`; export r; \
26341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26342 $(HOST_EXPORTS) \
b813574b 26343 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26345 done; \
22121df0 26346 echo "Doing info in sim"; \
a90ef4bf 26347 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26350 "RANLIB=$${RANLIB}" \
0c24b341 26351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26352 info) \
2a4cbe27
NN
26353 || exit 1
26354
a90ef4bf 26355@endif sim
2a4cbe27 26356
a90ef4bf
JM
26357.PHONY: maybe-dvi-sim dvi-sim
26358maybe-dvi-sim:
26359@if sim
26360maybe-dvi-sim: dvi-sim
2a4cbe27 26361
a90ef4bf
JM
26362dvi-sim: \
26363 configure-sim
26364 @: $(MAKE); $(unstage)
26365 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 26366 r=`${PWD_COMMAND}`; export r; \
b40e3958 26367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26368 $(HOST_EXPORTS) \
b813574b 26369 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26371 done; \
22121df0 26372 echo "Doing dvi in sim"; \
a90ef4bf 26373 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26376 "RANLIB=$${RANLIB}" \
0c24b341 26377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26378 dvi) \
2a4cbe27
NN
26379 || exit 1
26380
a90ef4bf 26381@endif sim
2a4cbe27 26382
a90ef4bf
JM
26383.PHONY: maybe-pdf-sim pdf-sim
26384maybe-pdf-sim:
26385@if sim
26386maybe-pdf-sim: pdf-sim
56a8fe78 26387
a90ef4bf
JM
26388pdf-sim: \
26389 configure-sim
26390 @: $(MAKE); $(unstage)
26391 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
26392 r=`${PWD_COMMAND}`; export r; \
26393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26394 $(HOST_EXPORTS) \
26395 for flag in $(EXTRA_HOST_FLAGS) ; do \
26396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26397 done; \
22121df0 26398 echo "Doing pdf in sim"; \
a90ef4bf 26399 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
26400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26402 "RANLIB=$${RANLIB}" \
0c24b341 26403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26404 pdf) \
26405 || exit 1
26406
a90ef4bf 26407@endif sim
56a8fe78 26408
a90ef4bf
JM
26409.PHONY: maybe-html-sim html-sim
26410maybe-html-sim:
26411@if sim
26412maybe-html-sim: html-sim
6d389afc 26413
a90ef4bf
JM
26414html-sim: \
26415 configure-sim
26416 @: $(MAKE); $(unstage)
26417 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
26418 r=`${PWD_COMMAND}`; export r; \
26419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26420 $(HOST_EXPORTS) \
26421 for flag in $(EXTRA_HOST_FLAGS) ; do \
26422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26423 done; \
22121df0 26424 echo "Doing html in sim"; \
a90ef4bf 26425 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
26426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26428 "RANLIB=$${RANLIB}" \
0c24b341 26429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26430 html) \
26431 || exit 1
26432
a90ef4bf 26433@endif sim
6d389afc 26434
a90ef4bf
JM
26435.PHONY: maybe-TAGS-sim TAGS-sim
26436maybe-TAGS-sim:
26437@if sim
26438maybe-TAGS-sim: TAGS-sim
2a4cbe27 26439
a90ef4bf
JM
26440TAGS-sim: \
26441 configure-sim
26442 @: $(MAKE); $(unstage)
26443 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26444 r=`${PWD_COMMAND}`; export r; \
26445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26446 $(HOST_EXPORTS) \
b813574b 26447 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26449 done; \
22121df0 26450 echo "Doing TAGS in sim"; \
a90ef4bf 26451 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26454 "RANLIB=$${RANLIB}" \
0c24b341 26455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26456 TAGS) \
2a4cbe27
NN
26457 || exit 1
26458
a90ef4bf 26459@endif sim
2a4cbe27 26460
a90ef4bf
JM
26461.PHONY: maybe-install-info-sim install-info-sim
26462maybe-install-info-sim:
26463@if sim
26464maybe-install-info-sim: install-info-sim
2a4cbe27 26465
a90ef4bf
JM
26466install-info-sim: \
26467 configure-sim \
26468 info-sim
26469 @: $(MAKE); $(unstage)
26470 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26471 r=`${PWD_COMMAND}`; export r; \
26472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26473 $(HOST_EXPORTS) \
b813574b 26474 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26476 done; \
22121df0 26477 echo "Doing install-info in sim"; \
a90ef4bf
JM
26478 (cd $(HOST_SUBDIR)/sim && \
26479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
26480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26481 "RANLIB=$${RANLIB}" \
0c24b341 26482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26483 install-info) \
2a4cbe27
NN
26484 || exit 1
26485
a90ef4bf 26486@endif sim
2a4cbe27 26487
a90ef4bf
JM
26488.PHONY: maybe-install-pdf-sim install-pdf-sim
26489maybe-install-pdf-sim:
26490@if sim
26491maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 26492
a90ef4bf
JM
26493install-pdf-sim: \
26494 configure-sim \
26495 pdf-sim
26496 @: $(MAKE); $(unstage)
26497 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
26498 r=`${PWD_COMMAND}`; export r; \
26499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26500 $(HOST_EXPORTS) \
26501 for flag in $(EXTRA_HOST_FLAGS) ; do \
26502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26503 done; \
22121df0 26504 echo "Doing install-pdf in sim"; \
a90ef4bf 26505 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
26506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26508 "RANLIB=$${RANLIB}" \
0c24b341 26509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26510 install-pdf) \
26511 || exit 1
26512
a90ef4bf 26513@endif sim
a3ca38d2 26514
a90ef4bf
JM
26515.PHONY: maybe-install-html-sim install-html-sim
26516maybe-install-html-sim:
26517@if sim
26518maybe-install-html-sim: install-html-sim
108a6f8e 26519
a90ef4bf
JM
26520install-html-sim: \
26521 configure-sim \
26522 html-sim
26523 @: $(MAKE); $(unstage)
26524 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
26525 r=`${PWD_COMMAND}`; export r; \
26526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26527 $(HOST_EXPORTS) \
26528 for flag in $(EXTRA_HOST_FLAGS) ; do \
26529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26530 done; \
22121df0 26531 echo "Doing install-html in sim"; \
a90ef4bf 26532 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
26533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26535 "RANLIB=$${RANLIB}" \
0c24b341 26536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26537 install-html) \
26538 || exit 1
26539
a90ef4bf 26540@endif sim
108a6f8e 26541
a90ef4bf
JM
26542.PHONY: maybe-installcheck-sim installcheck-sim
26543maybe-installcheck-sim:
26544@if sim
26545maybe-installcheck-sim: installcheck-sim
2a4cbe27 26546
a90ef4bf
JM
26547installcheck-sim: \
26548 configure-sim
26549 @: $(MAKE); $(unstage)
26550 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26551 r=`${PWD_COMMAND}`; export r; \
26552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26553 $(HOST_EXPORTS) \
b813574b 26554 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26556 done; \
22121df0 26557 echo "Doing installcheck in sim"; \
a90ef4bf 26558 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26561 "RANLIB=$${RANLIB}" \
0c24b341 26562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26563 installcheck) \
2a4cbe27
NN
26564 || exit 1
26565
a90ef4bf 26566@endif sim
2a4cbe27 26567
a90ef4bf
JM
26568.PHONY: maybe-mostlyclean-sim mostlyclean-sim
26569maybe-mostlyclean-sim:
26570@if sim
26571maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 26572
a90ef4bf
JM
26573mostlyclean-sim:
26574 @: $(MAKE); $(unstage)
26575 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
26576 r=`${PWD_COMMAND}`; export r; \
26577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
26578 $(HOST_EXPORTS) \
26579 for flag in $(EXTRA_HOST_FLAGS) ; do \
26580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26581 done; \
22121df0 26582 echo "Doing mostlyclean in sim"; \
a90ef4bf 26583 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
26584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26586 "RANLIB=$${RANLIB}" \
0c24b341 26587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
26588 mostlyclean) \
26589 || exit 1
4fa63067 26590
a90ef4bf 26591@endif sim
4fa63067 26592
a90ef4bf
JM
26593.PHONY: maybe-clean-sim clean-sim
26594maybe-clean-sim:
26595@if sim
26596maybe-clean-sim: clean-sim
4fa63067 26597
a90ef4bf
JM
26598clean-sim:
26599 @: $(MAKE); $(unstage)
26600 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26601 r=`${PWD_COMMAND}`; export r; \
26602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26603 $(HOST_EXPORTS) \
b813574b 26604 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26606 done; \
22121df0 26607 echo "Doing clean in sim"; \
a90ef4bf 26608 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26611 "RANLIB=$${RANLIB}" \
0c24b341 26612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26613 clean) \
2a4cbe27
NN
26614 || exit 1
26615
a90ef4bf 26616@endif sim
2a4cbe27 26617
a90ef4bf
JM
26618.PHONY: maybe-distclean-sim distclean-sim
26619maybe-distclean-sim:
26620@if sim
26621maybe-distclean-sim: distclean-sim
2a4cbe27 26622
a90ef4bf
JM
26623distclean-sim:
26624 @: $(MAKE); $(unstage)
26625 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26626 r=`${PWD_COMMAND}`; export r; \
26627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26628 $(HOST_EXPORTS) \
b813574b 26629 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26631 done; \
22121df0 26632 echo "Doing distclean in sim"; \
a90ef4bf 26633 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26636 "RANLIB=$${RANLIB}" \
0c24b341 26637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26638 distclean) \
2a4cbe27
NN
26639 || exit 1
26640
a90ef4bf 26641@endif sim
2a4cbe27 26642
a90ef4bf
JM
26643.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
26644maybe-maintainer-clean-sim:
26645@if sim
26646maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 26647
a90ef4bf
JM
26648maintainer-clean-sim:
26649 @: $(MAKE); $(unstage)
26650 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26651 r=`${PWD_COMMAND}`; export r; \
26652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26653 $(HOST_EXPORTS) \
b813574b 26654 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26656 done; \
22121df0 26657 echo "Doing maintainer-clean in sim"; \
a90ef4bf 26658 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26661 "RANLIB=$${RANLIB}" \
0c24b341 26662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26663 maintainer-clean) \
2a4cbe27
NN
26664 || exit 1
26665
a90ef4bf 26666@endif sim
2a4cbe27 26667
2a4cbe27 26668
a7254363 26669
a90ef4bf
JM
26670.PHONY: configure-texinfo maybe-configure-texinfo
26671maybe-configure-texinfo:
4f0ef2d8 26672@if gcc-bootstrap
a90ef4bf 26673configure-texinfo: stage_current
4f0ef2d8 26674@endif gcc-bootstrap
a90ef4bf
JM
26675@if texinfo
26676maybe-configure-texinfo: configure-texinfo
26677configure-texinfo:
0aed8855 26678 @: $(MAKE); $(unstage)
c52c6897 26679 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26681 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 26682 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo; \
1f53ca9a 26683 $(HOST_EXPORTS) \
a90ef4bf
JM
26684 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26685 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 26686 case $(srcdir) in \
b00612cc 26687 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26688 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 26689 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26690 esac; \
1b6c0831
L
26691 module_srcdir=texinfo; \
26692 $(SHELL) \
26693 $$s/$$module_srcdir/configure \
26694 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26695 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26696 --target=${target_alias} \
2a4cbe27 26697 || exit 1
a90ef4bf 26698@endif texinfo
2a4cbe27 26699
a7254363
PB
26700
26701
d545f33b
PB
26702
26703
a90ef4bf
JM
26704.PHONY: all-texinfo maybe-all-texinfo
26705maybe-all-texinfo:
4f0ef2d8 26706@if gcc-bootstrap
a90ef4bf 26707all-texinfo: stage_current
4f0ef2d8 26708@endif gcc-bootstrap
a90ef4bf
JM
26709@if texinfo
26710TARGET-texinfo=all
26711maybe-all-texinfo: all-texinfo
26712all-texinfo: configure-texinfo
0aed8855 26713 @: $(MAKE); $(unstage)
4fa63067
NN
26714 @r=`${PWD_COMMAND}`; export r; \
26715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26716 $(HOST_EXPORTS) \
a90ef4bf 26717 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 26718 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26719 $(TARGET-texinfo))
26720@endif texinfo
4fa63067 26721
a7254363 26722
d545f33b
PB
26723
26724
a90ef4bf
JM
26725.PHONY: check-texinfo maybe-check-texinfo
26726maybe-check-texinfo:
26727@if texinfo
26728maybe-check-texinfo: check-texinfo
2a4cbe27 26729
a90ef4bf 26730check-texinfo:
0aed8855 26731 @: $(MAKE); $(unstage)
4fa63067
NN
26732 @r=`${PWD_COMMAND}`; export r; \
26733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26734 $(HOST_EXPORTS) \
a90ef4bf 26735 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 26736 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26737
a90ef4bf 26738@endif texinfo
4fa63067 26739
a90ef4bf
JM
26740.PHONY: install-texinfo maybe-install-texinfo
26741maybe-install-texinfo:
26742@if texinfo
26743maybe-install-texinfo: install-texinfo
4fa63067 26744
a90ef4bf 26745install-texinfo:
4fa63067 26746
a90ef4bf 26747@endif texinfo
4fa63067 26748
a90ef4bf
JM
26749.PHONY: install-strip-texinfo maybe-install-strip-texinfo
26750maybe-install-strip-texinfo:
26751@if texinfo
26752maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 26753
a90ef4bf 26754install-strip-texinfo:
9b980aa1 26755
a90ef4bf 26756@endif texinfo
9b980aa1 26757
56a8fe78 26758# Other targets (info, dvi, pdf, etc.)
4fa63067 26759
a90ef4bf
JM
26760.PHONY: maybe-info-texinfo info-texinfo
26761maybe-info-texinfo:
26762@if texinfo
26763maybe-info-texinfo: info-texinfo
4fa63067 26764
a90ef4bf
JM
26765info-texinfo: \
26766 configure-texinfo
0aed8855 26767 @: $(MAKE); $(unstage)
a90ef4bf 26768 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26769 r=`${PWD_COMMAND}`; export r; \
26770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26771 $(HOST_EXPORTS) \
b813574b 26772 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26774 done; \
22121df0 26775 echo "Doing info in texinfo"; \
a90ef4bf 26776 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26779 "RANLIB=$${RANLIB}" \
0c24b341 26780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26781 info) \
2a4cbe27
NN
26782 || exit 1
26783
a90ef4bf 26784@endif texinfo
2a4cbe27 26785
a90ef4bf
JM
26786.PHONY: maybe-dvi-texinfo dvi-texinfo
26787maybe-dvi-texinfo:
26788@if texinfo
26789maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 26790
a90ef4bf
JM
26791dvi-texinfo: \
26792 configure-texinfo
0aed8855 26793 @: $(MAKE); $(unstage)
a90ef4bf 26794 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26795 r=`${PWD_COMMAND}`; export r; \
26796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26797 $(HOST_EXPORTS) \
b813574b 26798 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26800 done; \
22121df0 26801 echo "Doing dvi in texinfo"; \
a90ef4bf 26802 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26805 "RANLIB=$${RANLIB}" \
0c24b341 26806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26807 dvi) \
2a4cbe27
NN
26808 || exit 1
26809
a90ef4bf 26810@endif texinfo
2a4cbe27 26811
a90ef4bf
JM
26812.PHONY: maybe-pdf-texinfo pdf-texinfo
26813maybe-pdf-texinfo:
26814@if texinfo
26815maybe-pdf-texinfo: pdf-texinfo
56a8fe78 26816
a90ef4bf
JM
26817pdf-texinfo: \
26818 configure-texinfo
56a8fe78 26819 @: $(MAKE); $(unstage)
a90ef4bf 26820 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
26821 r=`${PWD_COMMAND}`; export r; \
26822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26823 $(HOST_EXPORTS) \
26824 for flag in $(EXTRA_HOST_FLAGS) ; do \
26825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26826 done; \
22121df0 26827 echo "Doing pdf in texinfo"; \
a90ef4bf 26828 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
26829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26831 "RANLIB=$${RANLIB}" \
0c24b341 26832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26833 pdf) \
26834 || exit 1
26835
a90ef4bf 26836@endif texinfo
56a8fe78 26837
a90ef4bf
JM
26838.PHONY: maybe-html-texinfo html-texinfo
26839maybe-html-texinfo:
26840@if texinfo
26841maybe-html-texinfo: html-texinfo
6d389afc 26842
a90ef4bf
JM
26843html-texinfo: \
26844 configure-texinfo
0aed8855 26845 @: $(MAKE); $(unstage)
a90ef4bf 26846 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
26847 r=`${PWD_COMMAND}`; export r; \
26848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26849 $(HOST_EXPORTS) \
26850 for flag in $(EXTRA_HOST_FLAGS) ; do \
26851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26852 done; \
22121df0 26853 echo "Doing html in texinfo"; \
a90ef4bf 26854 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
26855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26857 "RANLIB=$${RANLIB}" \
0c24b341 26858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26859 html) \
26860 || exit 1
26861
a90ef4bf 26862@endif texinfo
6d389afc 26863
a90ef4bf
JM
26864.PHONY: maybe-TAGS-texinfo TAGS-texinfo
26865maybe-TAGS-texinfo:
26866@if texinfo
26867maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 26868
a90ef4bf
JM
26869TAGS-texinfo: \
26870 configure-texinfo
0aed8855 26871 @: $(MAKE); $(unstage)
a90ef4bf 26872 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26873 r=`${PWD_COMMAND}`; export r; \
26874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26875 $(HOST_EXPORTS) \
b813574b 26876 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26878 done; \
22121df0 26879 echo "Doing TAGS in texinfo"; \
a90ef4bf 26880 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26883 "RANLIB=$${RANLIB}" \
0c24b341 26884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26885 TAGS) \
2a4cbe27
NN
26886 || exit 1
26887
a90ef4bf 26888@endif texinfo
2a4cbe27 26889
a90ef4bf
JM
26890.PHONY: maybe-install-info-texinfo install-info-texinfo
26891maybe-install-info-texinfo:
26892@if texinfo
26893maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 26894
a90ef4bf
JM
26895install-info-texinfo: \
26896 configure-texinfo \
26897 info-texinfo
0aed8855 26898 @: $(MAKE); $(unstage)
a90ef4bf 26899 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26900 r=`${PWD_COMMAND}`; export r; \
26901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26902 $(HOST_EXPORTS) \
b813574b 26903 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26905 done; \
22121df0 26906 echo "Doing install-info in texinfo"; \
a90ef4bf 26907 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26910 "RANLIB=$${RANLIB}" \
0c24b341 26911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26912 install-info) \
2a4cbe27
NN
26913 || exit 1
26914
a90ef4bf 26915@endif texinfo
2a4cbe27 26916
a90ef4bf
JM
26917.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
26918maybe-install-pdf-texinfo:
26919@if texinfo
26920maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 26921
a90ef4bf
JM
26922install-pdf-texinfo: \
26923 configure-texinfo \
26924 pdf-texinfo
a3ca38d2 26925 @: $(MAKE); $(unstage)
a90ef4bf 26926 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
26927 r=`${PWD_COMMAND}`; export r; \
26928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26929 $(HOST_EXPORTS) \
26930 for flag in $(EXTRA_HOST_FLAGS) ; do \
26931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26932 done; \
22121df0 26933 echo "Doing install-pdf in texinfo"; \
a90ef4bf 26934 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
26935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26937 "RANLIB=$${RANLIB}" \
0c24b341 26938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26939 install-pdf) \
26940 || exit 1
26941
a90ef4bf 26942@endif texinfo
a3ca38d2 26943
a90ef4bf
JM
26944.PHONY: maybe-install-html-texinfo install-html-texinfo
26945maybe-install-html-texinfo:
26946@if texinfo
26947maybe-install-html-texinfo: install-html-texinfo
108a6f8e 26948
a90ef4bf
JM
26949install-html-texinfo: \
26950 configure-texinfo \
26951 html-texinfo
108a6f8e 26952 @: $(MAKE); $(unstage)
a90ef4bf 26953 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
26954 r=`${PWD_COMMAND}`; export r; \
26955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26956 $(HOST_EXPORTS) \
26957 for flag in $(EXTRA_HOST_FLAGS) ; do \
26958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26959 done; \
22121df0 26960 echo "Doing install-html in texinfo"; \
a90ef4bf 26961 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
26962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26964 "RANLIB=$${RANLIB}" \
0c24b341 26965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26966 install-html) \
26967 || exit 1
26968
a90ef4bf 26969@endif texinfo
108a6f8e 26970
a90ef4bf
JM
26971.PHONY: maybe-installcheck-texinfo installcheck-texinfo
26972maybe-installcheck-texinfo:
26973@if texinfo
26974maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 26975
a90ef4bf
JM
26976installcheck-texinfo: \
26977 configure-texinfo
0aed8855 26978 @: $(MAKE); $(unstage)
a90ef4bf 26979 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26980 r=`${PWD_COMMAND}`; export r; \
26981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26982 $(HOST_EXPORTS) \
b813574b 26983 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26985 done; \
22121df0 26986 echo "Doing installcheck in texinfo"; \
a90ef4bf 26987 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26990 "RANLIB=$${RANLIB}" \
0c24b341 26991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26992 installcheck) \
2a4cbe27
NN
26993 || exit 1
26994
a90ef4bf 26995@endif texinfo
2a4cbe27 26996
a90ef4bf
JM
26997.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
26998maybe-mostlyclean-texinfo:
26999@if texinfo
27000maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 27001
a90ef4bf 27002mostlyclean-texinfo:
0aed8855 27003 @: $(MAKE); $(unstage)
a90ef4bf 27004 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27005 r=`${PWD_COMMAND}`; export r; \
27006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27007 $(HOST_EXPORTS) \
b813574b 27008 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27010 done; \
22121df0 27011 echo "Doing mostlyclean in texinfo"; \
a90ef4bf 27012 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27015 "RANLIB=$${RANLIB}" \
0c24b341 27016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27017 mostlyclean) \
2a4cbe27
NN
27018 || exit 1
27019
a90ef4bf 27020@endif texinfo
2a4cbe27 27021
a90ef4bf
JM
27022.PHONY: maybe-clean-texinfo clean-texinfo
27023maybe-clean-texinfo:
27024@if texinfo
27025maybe-clean-texinfo: clean-texinfo
2a4cbe27 27026
a90ef4bf 27027clean-texinfo:
0aed8855 27028 @: $(MAKE); $(unstage)
a90ef4bf 27029 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27030 r=`${PWD_COMMAND}`; export r; \
27031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27032 $(HOST_EXPORTS) \
b813574b 27033 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27035 done; \
22121df0 27036 echo "Doing clean in texinfo"; \
a90ef4bf 27037 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27040 "RANLIB=$${RANLIB}" \
0c24b341 27041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27042 clean) \
2a4cbe27
NN
27043 || exit 1
27044
a90ef4bf 27045@endif texinfo
2a4cbe27 27046
a90ef4bf
JM
27047.PHONY: maybe-distclean-texinfo distclean-texinfo
27048maybe-distclean-texinfo:
27049@if texinfo
27050maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 27051
a90ef4bf 27052distclean-texinfo:
0aed8855 27053 @: $(MAKE); $(unstage)
a90ef4bf 27054 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27055 r=`${PWD_COMMAND}`; export r; \
27056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27057 $(HOST_EXPORTS) \
b813574b 27058 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27060 done; \
22121df0 27061 echo "Doing distclean in texinfo"; \
a90ef4bf 27062 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27065 "RANLIB=$${RANLIB}" \
0c24b341 27066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27067 distclean) \
2a4cbe27
NN
27068 || exit 1
27069
a90ef4bf 27070@endif texinfo
2a4cbe27 27071
a90ef4bf
JM
27072.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
27073maybe-maintainer-clean-texinfo:
27074@if texinfo
27075maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 27076
a90ef4bf 27077maintainer-clean-texinfo:
0aed8855 27078 @: $(MAKE); $(unstage)
a90ef4bf 27079 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27080 r=`${PWD_COMMAND}`; export r; \
27081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27082 $(HOST_EXPORTS) \
b813574b 27083 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27085 done; \
22121df0 27086 echo "Doing maintainer-clean in texinfo"; \
a90ef4bf 27087 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27090 "RANLIB=$${RANLIB}" \
0c24b341 27091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27092 maintainer-clean) \
2a4cbe27
NN
27093 || exit 1
27094
a90ef4bf 27095@endif texinfo
2a4cbe27 27096
2a4cbe27 27097
a7254363 27098
a90ef4bf
JM
27099.PHONY: configure-zlib maybe-configure-zlib
27100maybe-configure-zlib:
4f0ef2d8 27101@if gcc-bootstrap
a90ef4bf 27102configure-zlib: stage_current
4f0ef2d8 27103@endif gcc-bootstrap
a90ef4bf
JM
27104@if zlib
27105maybe-configure-zlib: configure-zlib
27106configure-zlib:
c52c6897
PB
27107 @r=`${PWD_COMMAND}`; export r; \
27108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27109 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 27110 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
1f53ca9a 27111 $(HOST_EXPORTS) \
a90ef4bf
JM
27112 echo Configuring in $(HOST_SUBDIR)/zlib; \
27113 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 27114 case $(srcdir) in \
b00612cc 27115 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27116 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 27117 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 27118 esac; \
1b6c0831
L
27119 module_srcdir=zlib; \
27120 $(SHELL) \
27121 $$s/$$module_srcdir/configure \
27122 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27123 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e81d5d05 27124 --target=${target_alias} @extra_host_zlib_configure_flags@ \
04cf1b77 27125 || exit 1
a90ef4bf 27126@endif zlib
04cf1b77 27127
a7254363
PB
27128
27129
a90ef4bf
JM
27130.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
27131maybe-configure-stage1-zlib:
27132@if zlib-bootstrap
27133maybe-configure-stage1-zlib: configure-stage1-zlib
27134configure-stage1-zlib:
c52c6897 27135 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 27136 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27137 @r=`${PWD_COMMAND}`; export r; \
27138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27139 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 27140 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 27141 $(HOST_EXPORTS) \
8ee82aff 27142 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27143 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27144 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
27145 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib; \
27146 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27147 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27148 case $(srcdir) in \
27149 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27150 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27151 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27152 esac; \
1b6c0831
L
27153 module_srcdir=zlib; \
27154 $(SHELL) $$s/$$module_srcdir/configure \
27155 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27156 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
27157 --target=${target_alias} \
27158 \
e81d5d05
L
27159 $(STAGE1_CONFIGURE_FLAGS) \
27160 @extra_host_zlib_configure_flags@
a90ef4bf 27161@endif zlib-bootstrap
d545f33b 27162
a90ef4bf
JM
27163.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
27164maybe-configure-stage2-zlib:
27165@if zlib-bootstrap
27166maybe-configure-stage2-zlib: configure-stage2-zlib
27167configure-stage2-zlib:
c52c6897 27168 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 27169 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27170 @r=`${PWD_COMMAND}`; export r; \
27171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27172 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 27173 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27174 $(HOST_EXPORTS) \
1b05fbbd 27175 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27176 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27177 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27178 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27179 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib; \
27180 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27181 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27182 case $(srcdir) in \
27183 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27184 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27185 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27186 esac; \
1b6c0831
L
27187 module_srcdir=zlib; \
27188 $(SHELL) $$s/$$module_srcdir/configure \
27189 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27190 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27191 --target=${target_alias} \
22121df0 27192 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27193 $(STAGE2_CONFIGURE_FLAGS) \
27194 @extra_host_zlib_configure_flags@
a90ef4bf 27195@endif zlib-bootstrap
8520c408 27196
a90ef4bf
JM
27197.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
27198maybe-configure-stage3-zlib:
27199@if zlib-bootstrap
27200maybe-configure-stage3-zlib: configure-stage3-zlib
27201configure-stage3-zlib:
c52c6897 27202 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 27203 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27204 @r=`${PWD_COMMAND}`; export r; \
27205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27206 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 27207 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27208 $(HOST_EXPORTS) \
1b05fbbd 27209 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27210 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27211 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
27212 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27213 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib; \
27214 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27215 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27216 case $(srcdir) in \
27217 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27218 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27219 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27220 esac; \
1b6c0831
L
27221 module_srcdir=zlib; \
27222 $(SHELL) $$s/$$module_srcdir/configure \
27223 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27224 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27225 --target=${target_alias} \
22121df0 27226 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27227 $(STAGE3_CONFIGURE_FLAGS) \
27228 @extra_host_zlib_configure_flags@
a90ef4bf 27229@endif zlib-bootstrap
8520c408 27230
a90ef4bf
JM
27231.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
27232maybe-configure-stage4-zlib:
27233@if zlib-bootstrap
27234maybe-configure-stage4-zlib: configure-stage4-zlib
27235configure-stage4-zlib:
c52c6897 27236 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 27237 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27238 @r=`${PWD_COMMAND}`; export r; \
27239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27240 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 27241 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27242 $(HOST_EXPORTS) \
1b05fbbd 27243 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27244 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27245 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
27246 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27247 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib; \
27248 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27249 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27250 case $(srcdir) in \
27251 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27252 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27253 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27254 esac; \
1b6c0831
L
27255 module_srcdir=zlib; \
27256 $(SHELL) $$s/$$module_srcdir/configure \
27257 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27258 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27259 --target=${target_alias} \
22121df0 27260 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27261 $(STAGE4_CONFIGURE_FLAGS) \
27262 @extra_host_zlib_configure_flags@
a90ef4bf 27263@endif zlib-bootstrap
d545f33b 27264
a90ef4bf
JM
27265.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
27266maybe-configure-stageprofile-zlib:
27267@if zlib-bootstrap
27268maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
27269configure-stageprofile-zlib:
c52c6897 27270 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 27271 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27272 @r=`${PWD_COMMAND}`; export r; \
27273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27274 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 27275 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27276 $(HOST_EXPORTS) \
1b05fbbd
AO
27277 $(POSTSTAGE1_HOST_EXPORTS) \
27278 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27279 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
27280 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27281 echo Configuring stage profile in $(HOST_SUBDIR)/zlib; \
27282 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27283 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27284 case $(srcdir) in \
27285 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27286 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27287 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27288 esac; \
1b6c0831
L
27289 module_srcdir=zlib; \
27290 $(SHELL) $$s/$$module_srcdir/configure \
27291 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27292 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27293 --target=${target_alias} \
22121df0 27294 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27295 $(STAGEprofile_CONFIGURE_FLAGS) \
27296 @extra_host_zlib_configure_flags@
a90ef4bf 27297@endif zlib-bootstrap
d545f33b 27298
a90ef4bf
JM
27299.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
27300maybe-configure-stagefeedback-zlib:
27301@if zlib-bootstrap
27302maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
27303configure-stagefeedback-zlib:
c52c6897 27304 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 27305 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27306 @r=`${PWD_COMMAND}`; export r; \
27307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27308 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 27309 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27310 $(HOST_EXPORTS) \
1b05fbbd
AO
27311 $(POSTSTAGE1_HOST_EXPORTS) \
27312 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27313 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
27314 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27315 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib; \
27316 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27317 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27318 case $(srcdir) in \
27319 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27320 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27321 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27322 esac; \
1b6c0831
L
27323 module_srcdir=zlib; \
27324 $(SHELL) $$s/$$module_srcdir/configure \
27325 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27326 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27327 --target=${target_alias} \
22121df0 27328 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27329 $(STAGEfeedback_CONFIGURE_FLAGS) \
27330 @extra_host_zlib_configure_flags@
a90ef4bf 27331@endif zlib-bootstrap
d545f33b
PB
27332
27333
27334
27335
27336
a90ef4bf
JM
27337.PHONY: all-zlib maybe-all-zlib
27338maybe-all-zlib:
4f0ef2d8 27339@if gcc-bootstrap
a90ef4bf 27340all-zlib: stage_current
4f0ef2d8 27341@endif gcc-bootstrap
a90ef4bf
JM
27342@if zlib
27343TARGET-zlib=all
27344maybe-all-zlib: all-zlib
27345all-zlib: configure-zlib
c52c6897 27346 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 27347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 27348 $(HOST_EXPORTS) \
a90ef4bf 27349 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 27350 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27351 $(TARGET-zlib))
27352@endif zlib
04cf1b77 27353
a7254363 27354
d545f33b 27355
a90ef4bf
JM
27356.PHONY: all-stage1-zlib maybe-all-stage1-zlib
27357.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
27358maybe-all-stage1-zlib:
27359maybe-clean-stage1-zlib:
27360@if zlib-bootstrap
27361maybe-all-stage1-zlib: all-stage1-zlib
27362all-stage1: all-stage1-zlib
27363TARGET-stage1-zlib = $(TARGET-zlib)
27364all-stage1-zlib: configure-stage1-zlib
c52c6897 27365 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
27366 @r=`${PWD_COMMAND}`; export r; \
27367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27368 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 27369 $(HOST_EXPORTS) \
a90ef4bf 27370 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27371 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27372 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 27373 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
27374 LIBCFLAGS="$(LIBCFLAGS)" \
27375 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27376 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27377 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
27378 $(EXTRA_HOST_FLAGS) \
27379 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 27380 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 27381 $(TARGET-stage1-zlib)
d545f33b 27382
a90ef4bf
JM
27383maybe-clean-stage1-zlib: clean-stage1-zlib
27384clean-stage1: clean-stage1-zlib
27385clean-stage1-zlib:
9dbaa842 27386 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 27387 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27388 else \
a90ef4bf 27389 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27390 $(MAKE) stage1-start; \
27391 fi; \
a90ef4bf 27392 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27393 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 27394 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27395@endif zlib-bootstrap
d545f33b
PB
27396
27397
a90ef4bf
JM
27398.PHONY: all-stage2-zlib maybe-all-stage2-zlib
27399.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
27400maybe-all-stage2-zlib:
27401maybe-clean-stage2-zlib:
27402@if zlib-bootstrap
27403maybe-all-stage2-zlib: all-stage2-zlib
27404all-stage2: all-stage2-zlib
27405TARGET-stage2-zlib = $(TARGET-zlib)
27406all-stage2-zlib: configure-stage2-zlib
c52c6897 27407 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
27408 @r=`${PWD_COMMAND}`; export r; \
27409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27410 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 27411 $(HOST_EXPORTS) \
1f53ca9a 27412 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27413 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27414 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27415 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27416 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27417 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27418 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27419 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27420 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27421 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27422 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27423 $(TARGET-stage2-zlib)
d545f33b 27424
a90ef4bf
JM
27425maybe-clean-stage2-zlib: clean-stage2-zlib
27426clean-stage2: clean-stage2-zlib
27427clean-stage2-zlib:
9dbaa842 27428 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27429 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27430 else \
a90ef4bf 27431 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27432 $(MAKE) stage2-start; \
27433 fi; \
a90ef4bf 27434 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27435 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27436@endif zlib-bootstrap
d545f33b
PB
27437
27438
a90ef4bf
JM
27439.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27440.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27441maybe-all-stage3-zlib:
27442maybe-clean-stage3-zlib:
27443@if zlib-bootstrap
27444maybe-all-stage3-zlib: all-stage3-zlib
27445all-stage3: all-stage3-zlib
27446TARGET-stage3-zlib = $(TARGET-zlib)
27447all-stage3-zlib: configure-stage3-zlib
c52c6897 27448 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27449 @r=`${PWD_COMMAND}`; export r; \
27450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27451 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27452 $(HOST_EXPORTS) \
1f53ca9a 27453 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27454 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27455 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27456 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27457 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27458 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27459 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27460 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27461 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27462 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27463 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27464 $(TARGET-stage3-zlib)
d545f33b 27465
a90ef4bf
JM
27466maybe-clean-stage3-zlib: clean-stage3-zlib
27467clean-stage3: clean-stage3-zlib
27468clean-stage3-zlib:
9dbaa842 27469 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27470 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27471 else \
a90ef4bf 27472 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27473 $(MAKE) stage3-start; \
27474 fi; \
a90ef4bf 27475 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27476 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27477@endif zlib-bootstrap
d545f33b
PB
27478
27479
a90ef4bf
JM
27480.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27481.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27482maybe-all-stage4-zlib:
27483maybe-clean-stage4-zlib:
27484@if zlib-bootstrap
27485maybe-all-stage4-zlib: all-stage4-zlib
27486all-stage4: all-stage4-zlib
27487TARGET-stage4-zlib = $(TARGET-zlib)
27488all-stage4-zlib: configure-stage4-zlib
c52c6897 27489 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27490 @r=`${PWD_COMMAND}`; export r; \
27491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27492 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27493 $(HOST_EXPORTS) \
1f53ca9a 27494 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27495 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27496 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27497 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27498 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27499 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27500 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27501 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27502 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27503 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27504 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27505 $(TARGET-stage4-zlib)
d545f33b 27506
a90ef4bf
JM
27507maybe-clean-stage4-zlib: clean-stage4-zlib
27508clean-stage4: clean-stage4-zlib
27509clean-stage4-zlib:
9dbaa842 27510 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27511 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27512 else \
a90ef4bf 27513 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27514 $(MAKE) stage4-start; \
27515 fi; \
a90ef4bf 27516 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27517 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27518@endif zlib-bootstrap
d545f33b
PB
27519
27520
a90ef4bf
JM
27521.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27522.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27523maybe-all-stageprofile-zlib:
27524maybe-clean-stageprofile-zlib:
27525@if zlib-bootstrap
27526maybe-all-stageprofile-zlib: all-stageprofile-zlib
27527all-stageprofile: all-stageprofile-zlib
27528TARGET-stageprofile-zlib = $(TARGET-zlib)
27529all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27530 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27531 @r=`${PWD_COMMAND}`; export r; \
27532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27533 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27534 $(HOST_EXPORTS) \
1f53ca9a 27535 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27536 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27537 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27538 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27539 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27540 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27541 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27542 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27543 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27544 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27545 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27546 $(TARGET-stageprofile-zlib)
d545f33b 27547
a90ef4bf
JM
27548maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27549clean-stageprofile: clean-stageprofile-zlib
27550clean-stageprofile-zlib:
9dbaa842 27551 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27552 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27553 else \
a90ef4bf 27554 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27555 $(MAKE) stageprofile-start; \
27556 fi; \
a90ef4bf 27557 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27558 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27559@endif zlib-bootstrap
d545f33b
PB
27560
27561
a90ef4bf
JM
27562.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27563.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27564maybe-all-stagefeedback-zlib:
27565maybe-clean-stagefeedback-zlib:
27566@if zlib-bootstrap
27567maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27568all-stagefeedback: all-stagefeedback-zlib
27569TARGET-stagefeedback-zlib = $(TARGET-zlib)
27570all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27571 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27572 @r=`${PWD_COMMAND}`; export r; \
27573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27574 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27575 $(HOST_EXPORTS) \
1f53ca9a 27576 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27577 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27578 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27579 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27580 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27581 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27582 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27583 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27584 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27585 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27586 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27587 $(TARGET-stagefeedback-zlib)
d545f33b 27588
a90ef4bf
JM
27589maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27590clean-stagefeedback: clean-stagefeedback-zlib
27591clean-stagefeedback-zlib:
9dbaa842 27592 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27593 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27594 else \
a90ef4bf 27595 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27596 $(MAKE) stagefeedback-start; \
27597 fi; \
a90ef4bf 27598 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27599 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27600@endif zlib-bootstrap
d545f33b
PB
27601
27602
27603
27604
27605
a90ef4bf
JM
27606.PHONY: check-zlib maybe-check-zlib
27607maybe-check-zlib:
27608@if zlib
27609maybe-check-zlib: check-zlib
04cf1b77 27610
a90ef4bf 27611check-zlib:
04cf1b77 27612
a90ef4bf 27613@endif zlib
04cf1b77 27614
a90ef4bf
JM
27615.PHONY: install-zlib maybe-install-zlib
27616maybe-install-zlib:
27617@if zlib
27618maybe-install-zlib: install-zlib
04cf1b77 27619
a90ef4bf 27620install-zlib:
04cf1b77 27621
a90ef4bf 27622@endif zlib
04cf1b77 27623
a90ef4bf
JM
27624.PHONY: install-strip-zlib maybe-install-strip-zlib
27625maybe-install-strip-zlib:
27626@if zlib
27627maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27628
a90ef4bf 27629install-strip-zlib:
9b980aa1 27630
a90ef4bf 27631@endif zlib
9b980aa1 27632
56a8fe78 27633# Other targets (info, dvi, pdf, etc.)
04cf1b77 27634
a90ef4bf
JM
27635.PHONY: maybe-info-zlib info-zlib
27636maybe-info-zlib:
27637@if zlib
27638maybe-info-zlib: info-zlib
04cf1b77 27639
a90ef4bf
JM
27640info-zlib: \
27641 configure-zlib
27642 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27643 r=`${PWD_COMMAND}`; export r; \
27644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27645 $(HOST_EXPORTS) \
b813574b 27646 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27648 done; \
22121df0 27649 echo "Doing info in zlib"; \
a90ef4bf 27650 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27653 "RANLIB=$${RANLIB}" \
0c24b341 27654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27655 info) \
04cf1b77
PB
27656 || exit 1
27657
a90ef4bf 27658@endif zlib
04cf1b77 27659
a90ef4bf
JM
27660.PHONY: maybe-dvi-zlib dvi-zlib
27661maybe-dvi-zlib:
27662@if zlib
27663maybe-dvi-zlib: dvi-zlib
04cf1b77 27664
a90ef4bf
JM
27665dvi-zlib: \
27666 configure-zlib
27667 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27668 r=`${PWD_COMMAND}`; export r; \
27669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27670 $(HOST_EXPORTS) \
b813574b 27671 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27673 done; \
22121df0 27674 echo "Doing dvi in zlib"; \
a90ef4bf 27675 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27678 "RANLIB=$${RANLIB}" \
0c24b341 27679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27680 dvi) \
04cf1b77
PB
27681 || exit 1
27682
a90ef4bf 27683@endif zlib
04cf1b77 27684
a90ef4bf
JM
27685.PHONY: maybe-pdf-zlib pdf-zlib
27686maybe-pdf-zlib:
27687@if zlib
27688maybe-pdf-zlib: pdf-zlib
56a8fe78 27689
a90ef4bf
JM
27690pdf-zlib: \
27691 configure-zlib
27692 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27693 r=`${PWD_COMMAND}`; export r; \
27694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27695 $(HOST_EXPORTS) \
27696 for flag in $(EXTRA_HOST_FLAGS) ; do \
27697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27698 done; \
22121df0 27699 echo "Doing pdf in zlib"; \
a90ef4bf 27700 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27703 "RANLIB=$${RANLIB}" \
0c24b341 27704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27705 pdf) \
27706 || exit 1
27707
a90ef4bf 27708@endif zlib
56a8fe78 27709
a90ef4bf
JM
27710.PHONY: maybe-html-zlib html-zlib
27711maybe-html-zlib:
27712@if zlib
27713maybe-html-zlib: html-zlib
6d389afc 27714
a90ef4bf
JM
27715html-zlib: \
27716 configure-zlib
27717 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27718 r=`${PWD_COMMAND}`; export r; \
27719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27720 $(HOST_EXPORTS) \
27721 for flag in $(EXTRA_HOST_FLAGS) ; do \
27722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27723 done; \
22121df0 27724 echo "Doing html in zlib"; \
a90ef4bf 27725 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27728 "RANLIB=$${RANLIB}" \
0c24b341 27729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27730 html) \
27731 || exit 1
27732
a90ef4bf 27733@endif zlib
6d389afc 27734
a90ef4bf
JM
27735.PHONY: maybe-TAGS-zlib TAGS-zlib
27736maybe-TAGS-zlib:
27737@if zlib
27738maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27739
a90ef4bf
JM
27740TAGS-zlib: \
27741 configure-zlib
27742 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27743 r=`${PWD_COMMAND}`; export r; \
27744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27745 $(HOST_EXPORTS) \
b813574b 27746 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27748 done; \
22121df0 27749 echo "Doing TAGS in zlib"; \
a90ef4bf 27750 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27753 "RANLIB=$${RANLIB}" \
0c24b341 27754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27755 TAGS) \
04cf1b77
PB
27756 || exit 1
27757
a90ef4bf 27758@endif zlib
04cf1b77 27759
a90ef4bf
JM
27760.PHONY: maybe-install-info-zlib install-info-zlib
27761maybe-install-info-zlib:
27762@if zlib
27763maybe-install-info-zlib: install-info-zlib
04cf1b77 27764
a90ef4bf
JM
27765install-info-zlib: \
27766 configure-zlib \
27767 info-zlib
27768 @[ -f ./zlib/Makefile ] || exit 0; \
27769 r=`${PWD_COMMAND}`; export r; \
27770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27771 $(HOST_EXPORTS) \
b813574b 27772 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27774 done; \
22121df0 27775 echo "Doing install-info in zlib"; \
a90ef4bf 27776 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27779 "RANLIB=$${RANLIB}" \
0c24b341 27780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27781 install-info) \
04cf1b77
PB
27782 || exit 1
27783
a90ef4bf 27784@endif zlib
04cf1b77 27785
a90ef4bf
JM
27786.PHONY: maybe-install-pdf-zlib install-pdf-zlib
27787maybe-install-pdf-zlib:
27788@if zlib
27789maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 27790
a90ef4bf
JM
27791install-pdf-zlib: \
27792 configure-zlib \
27793 pdf-zlib
27794 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
27795 r=`${PWD_COMMAND}`; export r; \
27796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27797 $(HOST_EXPORTS) \
27798 for flag in $(EXTRA_HOST_FLAGS) ; do \
27799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27800 done; \
22121df0 27801 echo "Doing install-pdf in zlib"; \
a90ef4bf 27802 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
27803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27805 "RANLIB=$${RANLIB}" \
0c24b341 27806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27807 install-pdf) \
27808 || exit 1
27809
a90ef4bf 27810@endif zlib
a3ca38d2 27811
a90ef4bf
JM
27812.PHONY: maybe-install-html-zlib install-html-zlib
27813maybe-install-html-zlib:
27814@if zlib
27815maybe-install-html-zlib: install-html-zlib
108a6f8e 27816
a90ef4bf
JM
27817install-html-zlib: \
27818 configure-zlib \
27819 html-zlib
27820 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
27821 r=`${PWD_COMMAND}`; export r; \
27822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27823 $(HOST_EXPORTS) \
27824 for flag in $(EXTRA_HOST_FLAGS) ; do \
27825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27826 done; \
22121df0 27827 echo "Doing install-html in zlib"; \
a90ef4bf 27828 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
27829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27831 "RANLIB=$${RANLIB}" \
0c24b341 27832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27833 install-html) \
27834 || exit 1
27835
a90ef4bf 27836@endif zlib
108a6f8e 27837
a90ef4bf
JM
27838.PHONY: maybe-installcheck-zlib installcheck-zlib
27839maybe-installcheck-zlib:
27840@if zlib
27841maybe-installcheck-zlib: installcheck-zlib
04cf1b77 27842
a90ef4bf
JM
27843installcheck-zlib: \
27844 configure-zlib
27845 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27846 r=`${PWD_COMMAND}`; export r; \
27847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27848 $(HOST_EXPORTS) \
b813574b 27849 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27851 done; \
22121df0 27852 echo "Doing installcheck in zlib"; \
a90ef4bf 27853 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27856 "RANLIB=$${RANLIB}" \
0c24b341 27857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27858 installcheck) \
04cf1b77
PB
27859 || exit 1
27860
a90ef4bf 27861@endif zlib
04cf1b77 27862
a90ef4bf
JM
27863.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
27864maybe-mostlyclean-zlib:
27865@if zlib
27866maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 27867
a90ef4bf
JM
27868mostlyclean-zlib:
27869 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27870 r=`${PWD_COMMAND}`; export r; \
27871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27872 $(HOST_EXPORTS) \
b813574b 27873 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27875 done; \
22121df0 27876 echo "Doing mostlyclean in zlib"; \
a90ef4bf 27877 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27880 "RANLIB=$${RANLIB}" \
0c24b341 27881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27882 mostlyclean) \
04cf1b77
PB
27883 || exit 1
27884
a90ef4bf 27885@endif zlib
04cf1b77 27886
a90ef4bf
JM
27887.PHONY: maybe-clean-zlib clean-zlib
27888maybe-clean-zlib:
27889@if zlib
27890maybe-clean-zlib: clean-zlib
04cf1b77 27891
a90ef4bf
JM
27892clean-zlib:
27893 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27894 r=`${PWD_COMMAND}`; export r; \
27895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27896 $(HOST_EXPORTS) \
b813574b 27897 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27899 done; \
22121df0 27900 echo "Doing clean in zlib"; \
a90ef4bf 27901 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27904 "RANLIB=$${RANLIB}" \
0c24b341 27905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27906 clean) \
04cf1b77
PB
27907 || exit 1
27908
a90ef4bf 27909@endif zlib
04cf1b77 27910
a90ef4bf
JM
27911.PHONY: maybe-distclean-zlib distclean-zlib
27912maybe-distclean-zlib:
27913@if zlib
27914maybe-distclean-zlib: distclean-zlib
04cf1b77 27915
a90ef4bf
JM
27916distclean-zlib:
27917 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27918 r=`${PWD_COMMAND}`; export r; \
27919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27920 $(HOST_EXPORTS) \
b813574b 27921 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27923 done; \
22121df0 27924 echo "Doing distclean in zlib"; \
a90ef4bf 27925 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27928 "RANLIB=$${RANLIB}" \
0c24b341 27929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27930 distclean) \
04cf1b77
PB
27931 || exit 1
27932
a90ef4bf 27933@endif zlib
04cf1b77 27934
a90ef4bf
JM
27935.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
27936maybe-maintainer-clean-zlib:
27937@if zlib
27938maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 27939
a90ef4bf
JM
27940maintainer-clean-zlib:
27941 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27942 r=`${PWD_COMMAND}`; export r; \
27943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27944 $(HOST_EXPORTS) \
b813574b 27945 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27947 done; \
22121df0 27948 echo "Doing maintainer-clean in zlib"; \
a90ef4bf 27949 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27952 "RANLIB=$${RANLIB}" \
0c24b341 27953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27954 maintainer-clean) \
04cf1b77
PB
27955 || exit 1
27956
a90ef4bf 27957@endif zlib
04cf1b77
PB
27958
27959
a7254363 27960
a90ef4bf
JM
27961.PHONY: configure-gdb maybe-configure-gdb
27962maybe-configure-gdb:
4f0ef2d8 27963@if gcc-bootstrap
a90ef4bf 27964configure-gdb: stage_current
4f0ef2d8 27965@endif gcc-bootstrap
a90ef4bf
JM
27966@if gdb
27967maybe-configure-gdb: configure-gdb
27968configure-gdb:
27969 @: $(MAKE); $(unstage)
c52c6897
PB
27970 @r=`${PWD_COMMAND}`; export r; \
27971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27972 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
22121df0 27973 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb; \
1f53ca9a 27974 $(HOST_EXPORTS) \
a90ef4bf
JM
27975 echo Configuring in $(HOST_SUBDIR)/gdb; \
27976 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 27977 case $(srcdir) in \
b00612cc 27978 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27979 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 27980 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 27981 esac; \
1b6c0831
L
27982 module_srcdir=gdb; \
27983 $(SHELL) \
27984 $$s/$$module_srcdir/configure \
27985 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27986 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27987 --target=${target_alias} \
4fa63067 27988 || exit 1
a90ef4bf 27989@endif gdb
4fa63067 27990
a7254363
PB
27991
27992
d545f33b 27993
8520c408 27994
a90ef4bf
JM
27995.PHONY: all-gdb maybe-all-gdb
27996maybe-all-gdb:
27997@if gcc-bootstrap
27998all-gdb: stage_current
27999@endif gcc-bootstrap
28000@if gdb
28001TARGET-gdb=all
28002maybe-all-gdb: all-gdb
28003all-gdb: configure-gdb
28004 @: $(MAKE); $(unstage)
c52c6897
PB
28005 @r=`${PWD_COMMAND}`; export r; \
28006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28007 $(HOST_EXPORTS) \
28008 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 28009 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28010 $(TARGET-gdb))
28011@endif gdb
8520c408 28012
a90ef4bf
JM
28013
28014
28015
28016.PHONY: check-gdb maybe-check-gdb
28017maybe-check-gdb:
28018@if gdb
28019maybe-check-gdb: check-gdb
28020
28021check-gdb:
28022 @: $(MAKE); $(unstage)
c52c6897
PB
28023 @r=`${PWD_COMMAND}`; export r; \
28024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28025 $(HOST_EXPORTS) \
a90ef4bf
JM
28026 (cd $(HOST_SUBDIR)/gdb && \
28027 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 28028
a90ef4bf
JM
28029@endif gdb
28030
28031.PHONY: install-gdb maybe-install-gdb
28032maybe-install-gdb:
28033@if gdb
28034maybe-install-gdb: install-gdb
28035
28036install-gdb: installdirs
28037 @: $(MAKE); $(unstage)
c52c6897
PB
28038 @r=`${PWD_COMMAND}`; export r; \
28039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28040 $(HOST_EXPORTS) \
a90ef4bf
JM
28041 (cd $(HOST_SUBDIR)/gdb && \
28042 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 28043
a90ef4bf
JM
28044@endif gdb
28045
28046.PHONY: install-strip-gdb maybe-install-strip-gdb
28047maybe-install-strip-gdb:
28048@if gdb
28049maybe-install-strip-gdb: install-strip-gdb
28050
28051install-strip-gdb: installdirs
28052 @: $(MAKE); $(unstage)
c52c6897
PB
28053 @r=`${PWD_COMMAND}`; export r; \
28054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28055 $(HOST_EXPORTS) \
a90ef4bf
JM
28056 (cd $(HOST_SUBDIR)/gdb && \
28057 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 28058
a90ef4bf 28059@endif gdb
d545f33b 28060
a90ef4bf 28061# Other targets (info, dvi, pdf, etc.)
d545f33b 28062
a90ef4bf
JM
28063.PHONY: maybe-info-gdb info-gdb
28064maybe-info-gdb:
28065@if gdb
28066maybe-info-gdb: info-gdb
d545f33b 28067
a90ef4bf
JM
28068info-gdb: \
28069 configure-gdb
28070 @: $(MAKE); $(unstage)
28071 @[ -f ./gdb/Makefile ] || exit 0; \
28072 r=`${PWD_COMMAND}`; export r; \
4fa63067 28073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28074 $(HOST_EXPORTS) \
28075 for flag in $(EXTRA_HOST_FLAGS) ; do \
28076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28077 done; \
22121df0 28078 echo "Doing info in gdb"; \
a90ef4bf
JM
28079 (cd $(HOST_SUBDIR)/gdb && \
28080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28082 "RANLIB=$${RANLIB}" \
28083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28084 info) \
28085 || exit 1
4fa63067 28086
a90ef4bf 28087@endif gdb
a7254363 28088
a90ef4bf
JM
28089.PHONY: maybe-dvi-gdb dvi-gdb
28090maybe-dvi-gdb:
28091@if gdb
28092maybe-dvi-gdb: dvi-gdb
d545f33b 28093
a90ef4bf
JM
28094dvi-gdb: \
28095 configure-gdb
28096 @: $(MAKE); $(unstage)
28097 @[ -f ./gdb/Makefile ] || exit 0; \
28098 r=`${PWD_COMMAND}`; export r; \
d545f33b 28099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28100 $(HOST_EXPORTS) \
28101 for flag in $(EXTRA_HOST_FLAGS) ; do \
28102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28103 done; \
22121df0 28104 echo "Doing dvi in gdb"; \
a90ef4bf
JM
28105 (cd $(HOST_SUBDIR)/gdb && \
28106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28108 "RANLIB=$${RANLIB}" \
28109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28110 dvi) \
28111 || exit 1
d545f33b 28112
a90ef4bf 28113@endif gdb
d545f33b 28114
a90ef4bf
JM
28115.PHONY: maybe-pdf-gdb pdf-gdb
28116maybe-pdf-gdb:
28117@if gdb
28118maybe-pdf-gdb: pdf-gdb
d545f33b 28119
a90ef4bf
JM
28120pdf-gdb: \
28121 configure-gdb
9b980aa1 28122 @: $(MAKE); $(unstage)
a90ef4bf 28123 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28124 r=`${PWD_COMMAND}`; export r; \
28125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28126 $(HOST_EXPORTS) \
b813574b 28127 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28129 done; \
22121df0 28130 echo "Doing pdf in gdb"; \
a90ef4bf 28131 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28134 "RANLIB=$${RANLIB}" \
0c24b341 28135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28136 pdf) \
2a4cbe27
NN
28137 || exit 1
28138
a90ef4bf 28139@endif gdb
2a4cbe27 28140
a90ef4bf
JM
28141.PHONY: maybe-html-gdb html-gdb
28142maybe-html-gdb:
28143@if gdb
28144maybe-html-gdb: html-gdb
2a4cbe27 28145
a90ef4bf
JM
28146html-gdb: \
28147 configure-gdb
28148 @: $(MAKE); $(unstage)
28149 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28150 r=`${PWD_COMMAND}`; export r; \
28151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28152 $(HOST_EXPORTS) \
b813574b 28153 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28155 done; \
22121df0 28156 echo "Doing html in gdb"; \
a90ef4bf 28157 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28160 "RANLIB=$${RANLIB}" \
0c24b341 28161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28162 html) \
2a4cbe27
NN
28163 || exit 1
28164
a90ef4bf 28165@endif gdb
2a4cbe27 28166
a90ef4bf
JM
28167.PHONY: maybe-TAGS-gdb TAGS-gdb
28168maybe-TAGS-gdb:
28169@if gdb
28170maybe-TAGS-gdb: TAGS-gdb
56a8fe78 28171
a90ef4bf
JM
28172TAGS-gdb: \
28173 configure-gdb
28174 @: $(MAKE); $(unstage)
28175 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
28176 r=`${PWD_COMMAND}`; export r; \
28177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28178 $(HOST_EXPORTS) \
28179 for flag in $(EXTRA_HOST_FLAGS) ; do \
28180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28181 done; \
22121df0 28182 echo "Doing TAGS in gdb"; \
a90ef4bf 28183 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
28184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28186 "RANLIB=$${RANLIB}" \
0c24b341 28187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28188 TAGS) \
56a8fe78
DD
28189 || exit 1
28190
a90ef4bf 28191@endif gdb
56a8fe78 28192
a90ef4bf
JM
28193.PHONY: maybe-install-info-gdb install-info-gdb
28194maybe-install-info-gdb:
28195@if gdb
28196maybe-install-info-gdb: install-info-gdb
6d389afc 28197
a90ef4bf
JM
28198install-info-gdb: \
28199 configure-gdb \
28200 info-gdb
28201 @: $(MAKE); $(unstage)
28202 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
28203 r=`${PWD_COMMAND}`; export r; \
28204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
28205 $(HOST_EXPORTS) \
28206 for flag in $(EXTRA_HOST_FLAGS) ; do \
28207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28208 done; \
22121df0 28209 echo "Doing install-info in gdb"; \
a90ef4bf 28210 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
28211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28213 "RANLIB=$${RANLIB}" \
0c24b341 28214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28215 install-info) \
6d389afc
MS
28216 || exit 1
28217
a90ef4bf 28218@endif gdb
6d389afc 28219
a90ef4bf
JM
28220.PHONY: maybe-install-pdf-gdb install-pdf-gdb
28221maybe-install-pdf-gdb:
28222@if gdb
28223maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 28224
a90ef4bf
JM
28225install-pdf-gdb: \
28226 configure-gdb \
28227 pdf-gdb
28228 @: $(MAKE); $(unstage)
28229 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28230 r=`${PWD_COMMAND}`; export r; \
28231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28232 $(HOST_EXPORTS) \
b813574b 28233 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28235 done; \
22121df0 28236 echo "Doing install-pdf in gdb"; \
a90ef4bf 28237 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28240 "RANLIB=$${RANLIB}" \
0c24b341 28241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28242 install-pdf) \
2a4cbe27
NN
28243 || exit 1
28244
a90ef4bf 28245@endif gdb
2a4cbe27 28246
a90ef4bf
JM
28247.PHONY: maybe-install-html-gdb install-html-gdb
28248maybe-install-html-gdb:
28249@if gdb
28250maybe-install-html-gdb: install-html-gdb
2a4cbe27 28251
a90ef4bf
JM
28252install-html-gdb: \
28253 configure-gdb \
28254 html-gdb
28255 @: $(MAKE); $(unstage)
28256 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28257 r=`${PWD_COMMAND}`; export r; \
28258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28259 $(HOST_EXPORTS) \
b813574b 28260 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28262 done; \
22121df0 28263 echo "Doing install-html in gdb"; \
a90ef4bf 28264 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28267 "RANLIB=$${RANLIB}" \
0c24b341 28268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28269 install-html) \
2a4cbe27
NN
28270 || exit 1
28271
a90ef4bf 28272@endif gdb
2a4cbe27 28273
a90ef4bf
JM
28274.PHONY: maybe-installcheck-gdb installcheck-gdb
28275maybe-installcheck-gdb:
28276@if gdb
28277maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 28278
a90ef4bf
JM
28279installcheck-gdb: \
28280 configure-gdb
28281 @: $(MAKE); $(unstage)
28282 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
28283 r=`${PWD_COMMAND}`; export r; \
28284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28285 $(HOST_EXPORTS) \
28286 for flag in $(EXTRA_HOST_FLAGS) ; do \
28287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28288 done; \
22121df0 28289 echo "Doing installcheck in gdb"; \
a90ef4bf 28290 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
28291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28293 "RANLIB=$${RANLIB}" \
0c24b341 28294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28295 installcheck) \
a3ca38d2
DD
28296 || exit 1
28297
a90ef4bf 28298@endif gdb
a3ca38d2 28299
a90ef4bf
JM
28300.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
28301maybe-mostlyclean-gdb:
28302@if gdb
28303maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 28304
a90ef4bf
JM
28305mostlyclean-gdb:
28306 @: $(MAKE); $(unstage)
28307 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
28308 r=`${PWD_COMMAND}`; export r; \
28309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28310 $(HOST_EXPORTS) \
28311 for flag in $(EXTRA_HOST_FLAGS) ; do \
28312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28313 done; \
22121df0 28314 echo "Doing mostlyclean in gdb"; \
a90ef4bf 28315 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
28316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28318 "RANLIB=$${RANLIB}" \
0c24b341 28319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28320 mostlyclean) \
108a6f8e
CD
28321 || exit 1
28322
a90ef4bf 28323@endif gdb
108a6f8e 28324
a90ef4bf
JM
28325.PHONY: maybe-clean-gdb clean-gdb
28326maybe-clean-gdb:
28327@if gdb
28328maybe-clean-gdb: clean-gdb
2a4cbe27 28329
a90ef4bf
JM
28330clean-gdb:
28331 @: $(MAKE); $(unstage)
28332 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28333 r=`${PWD_COMMAND}`; export r; \
28334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28335 $(HOST_EXPORTS) \
b813574b 28336 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28338 done; \
22121df0 28339 echo "Doing clean in gdb"; \
a90ef4bf 28340 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28343 "RANLIB=$${RANLIB}" \
0c24b341 28344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28345 clean) \
2a4cbe27
NN
28346 || exit 1
28347
a90ef4bf 28348@endif gdb
2a4cbe27 28349
a90ef4bf
JM
28350.PHONY: maybe-distclean-gdb distclean-gdb
28351maybe-distclean-gdb:
28352@if gdb
28353maybe-distclean-gdb: distclean-gdb
2a4cbe27 28354
a90ef4bf
JM
28355distclean-gdb:
28356 @: $(MAKE); $(unstage)
28357 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28358 r=`${PWD_COMMAND}`; export r; \
28359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28360 $(HOST_EXPORTS) \
b813574b 28361 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28363 done; \
22121df0 28364 echo "Doing distclean in gdb"; \
a90ef4bf 28365 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28368 "RANLIB=$${RANLIB}" \
0c24b341 28369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28370 distclean) \
2a4cbe27
NN
28371 || exit 1
28372
a90ef4bf 28373@endif gdb
2a4cbe27 28374
a90ef4bf
JM
28375.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
28376maybe-maintainer-clean-gdb:
28377@if gdb
28378maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 28379
a90ef4bf
JM
28380maintainer-clean-gdb:
28381 @: $(MAKE); $(unstage)
28382 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28383 r=`${PWD_COMMAND}`; export r; \
28384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28385 $(HOST_EXPORTS) \
b813574b 28386 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28388 done; \
22121df0 28389 echo "Doing maintainer-clean in gdb"; \
a90ef4bf 28390 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28393 "RANLIB=$${RANLIB}" \
0c24b341 28394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28395 maintainer-clean) \
2a4cbe27
NN
28396 || exit 1
28397
a90ef4bf 28398@endif gdb
2a4cbe27 28399
2a4cbe27 28400
a7254363 28401
a90ef4bf
JM
28402.PHONY: configure-expect maybe-configure-expect
28403maybe-configure-expect:
4f0ef2d8 28404@if gcc-bootstrap
a90ef4bf 28405configure-expect: stage_current
4f0ef2d8 28406@endif gcc-bootstrap
a90ef4bf
JM
28407@if expect
28408maybe-configure-expect: configure-expect
28409configure-expect:
28410 @: $(MAKE); $(unstage)
c52c6897
PB
28411 @r=`${PWD_COMMAND}`; export r; \
28412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28413 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
22121df0 28414 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect; \
1f53ca9a 28415 $(HOST_EXPORTS) \
a90ef4bf
JM
28416 echo Configuring in $(HOST_SUBDIR)/expect; \
28417 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
28418 case $(srcdir) in \
28419 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28420 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
28421 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28422 esac; \
1b6c0831
L
28423 module_srcdir=expect; \
28424 $(SHELL) \
28425 $$s/$$module_srcdir/configure \
28426 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28427 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28428 --target=${target_alias} \
be01d343 28429 || exit 1
a90ef4bf 28430@endif expect
be01d343
PB
28431
28432
28433
be01d343 28434
8520c408 28435
a90ef4bf
JM
28436.PHONY: all-expect maybe-all-expect
28437maybe-all-expect:
28438@if gcc-bootstrap
28439all-expect: stage_current
28440@endif gcc-bootstrap
28441@if expect
28442TARGET-expect=all
28443maybe-all-expect: all-expect
28444all-expect: configure-expect
28445 @: $(MAKE); $(unstage)
c52c6897
PB
28446 @r=`${PWD_COMMAND}`; export r; \
28447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28448 $(HOST_EXPORTS) \
28449 (cd $(HOST_SUBDIR)/expect && \
b3676d82 28450 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28451 $(TARGET-expect))
28452@endif expect
8520c408 28453
a90ef4bf
JM
28454
28455
28456
28457.PHONY: check-expect maybe-check-expect
28458maybe-check-expect:
28459@if expect
28460maybe-check-expect: check-expect
28461
28462check-expect:
28463 @: $(MAKE); $(unstage)
c52c6897
PB
28464 @r=`${PWD_COMMAND}`; export r; \
28465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28466 $(HOST_EXPORTS) \
a90ef4bf
JM
28467 (cd $(HOST_SUBDIR)/expect && \
28468 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 28469
a90ef4bf
JM
28470@endif expect
28471
28472.PHONY: install-expect maybe-install-expect
28473maybe-install-expect:
28474@if expect
28475maybe-install-expect: install-expect
28476
28477install-expect: installdirs
28478 @: $(MAKE); $(unstage)
c52c6897
PB
28479 @r=`${PWD_COMMAND}`; export r; \
28480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28481 $(HOST_EXPORTS) \
a90ef4bf
JM
28482 (cd $(HOST_SUBDIR)/expect && \
28483 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 28484
a90ef4bf
JM
28485@endif expect
28486
28487.PHONY: install-strip-expect maybe-install-strip-expect
28488maybe-install-strip-expect:
28489@if expect
28490maybe-install-strip-expect: install-strip-expect
28491
28492install-strip-expect: installdirs
28493 @: $(MAKE); $(unstage)
c52c6897
PB
28494 @r=`${PWD_COMMAND}`; export r; \
28495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28496 $(HOST_EXPORTS) \
a90ef4bf
JM
28497 (cd $(HOST_SUBDIR)/expect && \
28498 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 28499
a90ef4bf 28500@endif expect
be01d343 28501
a90ef4bf 28502# Other targets (info, dvi, pdf, etc.)
be01d343 28503
a90ef4bf
JM
28504.PHONY: maybe-info-expect info-expect
28505maybe-info-expect:
28506@if expect
28507maybe-info-expect: info-expect
be01d343 28508
a90ef4bf
JM
28509info-expect: \
28510 configure-expect
28511 @: $(MAKE); $(unstage)
28512 @[ -f ./expect/Makefile ] || exit 0; \
28513 r=`${PWD_COMMAND}`; export r; \
be01d343 28514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28515 $(HOST_EXPORTS) \
28516 for flag in $(EXTRA_HOST_FLAGS) ; do \
28517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28518 done; \
22121df0 28519 echo "Doing info in expect"; \
a90ef4bf
JM
28520 (cd $(HOST_SUBDIR)/expect && \
28521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28523 "RANLIB=$${RANLIB}" \
28524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28525 info) \
28526 || exit 1
be01d343 28527
a90ef4bf 28528@endif expect
be01d343 28529
a90ef4bf
JM
28530.PHONY: maybe-dvi-expect dvi-expect
28531maybe-dvi-expect:
28532@if expect
28533maybe-dvi-expect: dvi-expect
be01d343 28534
a90ef4bf
JM
28535dvi-expect: \
28536 configure-expect
28537 @: $(MAKE); $(unstage)
28538 @[ -f ./expect/Makefile ] || exit 0; \
28539 r=`${PWD_COMMAND}`; export r; \
be01d343 28540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28541 $(HOST_EXPORTS) \
28542 for flag in $(EXTRA_HOST_FLAGS) ; do \
28543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28544 done; \
22121df0 28545 echo "Doing dvi in expect"; \
a90ef4bf
JM
28546 (cd $(HOST_SUBDIR)/expect && \
28547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28549 "RANLIB=$${RANLIB}" \
28550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28551 dvi) \
28552 || exit 1
be01d343 28553
a90ef4bf 28554@endif expect
be01d343 28555
a90ef4bf
JM
28556.PHONY: maybe-pdf-expect pdf-expect
28557maybe-pdf-expect:
28558@if expect
28559maybe-pdf-expect: pdf-expect
be01d343 28560
a90ef4bf
JM
28561pdf-expect: \
28562 configure-expect
28563 @: $(MAKE); $(unstage)
28564 @[ -f ./expect/Makefile ] || exit 0; \
28565 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28567 $(HOST_EXPORTS) \
a90ef4bf
JM
28568 for flag in $(EXTRA_HOST_FLAGS) ; do \
28569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28570 done; \
22121df0 28571 echo "Doing pdf in expect"; \
a90ef4bf
JM
28572 (cd $(HOST_SUBDIR)/expect && \
28573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28575 "RANLIB=$${RANLIB}" \
28576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28577 pdf) \
28578 || exit 1
be01d343 28579
a90ef4bf 28580@endif expect
be01d343 28581
a90ef4bf
JM
28582.PHONY: maybe-html-expect html-expect
28583maybe-html-expect:
28584@if expect
28585maybe-html-expect: html-expect
be01d343 28586
a90ef4bf
JM
28587html-expect: \
28588 configure-expect
28589 @: $(MAKE); $(unstage)
28590 @[ -f ./expect/Makefile ] || exit 0; \
28591 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28593 $(HOST_EXPORTS) \
a90ef4bf
JM
28594 for flag in $(EXTRA_HOST_FLAGS) ; do \
28595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28596 done; \
22121df0 28597 echo "Doing html in expect"; \
a90ef4bf
JM
28598 (cd $(HOST_SUBDIR)/expect && \
28599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28601 "RANLIB=$${RANLIB}" \
28602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28603 html) \
28604 || exit 1
be01d343 28605
a90ef4bf 28606@endif expect
be01d343 28607
a90ef4bf
JM
28608.PHONY: maybe-TAGS-expect TAGS-expect
28609maybe-TAGS-expect:
28610@if expect
28611maybe-TAGS-expect: TAGS-expect
9b980aa1 28612
a90ef4bf
JM
28613TAGS-expect: \
28614 configure-expect
9b980aa1 28615 @: $(MAKE); $(unstage)
a90ef4bf 28616 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28617 r=`${PWD_COMMAND}`; export r; \
28618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28619 $(HOST_EXPORTS) \
28620 for flag in $(EXTRA_HOST_FLAGS) ; do \
28621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28622 done; \
22121df0 28623 echo "Doing TAGS in expect"; \
a90ef4bf 28624 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28627 "RANLIB=$${RANLIB}" \
0c24b341 28628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28629 TAGS) \
28630 || exit 1
28631
a90ef4bf 28632@endif expect
be01d343 28633
a90ef4bf
JM
28634.PHONY: maybe-install-info-expect install-info-expect
28635maybe-install-info-expect:
28636@if expect
28637maybe-install-info-expect: install-info-expect
be01d343 28638
a90ef4bf
JM
28639install-info-expect: \
28640 configure-expect \
28641 info-expect
28642 @: $(MAKE); $(unstage)
28643 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28644 r=`${PWD_COMMAND}`; export r; \
28645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28646 $(HOST_EXPORTS) \
28647 for flag in $(EXTRA_HOST_FLAGS) ; do \
28648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28649 done; \
22121df0 28650 echo "Doing install-info in expect"; \
a90ef4bf 28651 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28654 "RANLIB=$${RANLIB}" \
0c24b341 28655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28656 install-info) \
28657 || exit 1
28658
a90ef4bf 28659@endif expect
be01d343 28660
a90ef4bf
JM
28661.PHONY: maybe-install-pdf-expect install-pdf-expect
28662maybe-install-pdf-expect:
28663@if expect
28664maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 28665
a90ef4bf
JM
28666install-pdf-expect: \
28667 configure-expect \
28668 pdf-expect
28669 @: $(MAKE); $(unstage)
28670 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
28671 r=`${PWD_COMMAND}`; export r; \
28672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28673 $(HOST_EXPORTS) \
28674 for flag in $(EXTRA_HOST_FLAGS) ; do \
28675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28676 done; \
22121df0 28677 echo "Doing install-pdf in expect"; \
a90ef4bf 28678 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
28679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28681 "RANLIB=$${RANLIB}" \
0c24b341 28682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28683 install-pdf) \
28684 || exit 1
28685
a90ef4bf 28686@endif expect
a3ca38d2 28687
a90ef4bf
JM
28688.PHONY: maybe-install-html-expect install-html-expect
28689maybe-install-html-expect:
28690@if expect
28691maybe-install-html-expect: install-html-expect
108a6f8e 28692
a90ef4bf
JM
28693install-html-expect: \
28694 configure-expect \
28695 html-expect
28696 @: $(MAKE); $(unstage)
28697 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
28698 r=`${PWD_COMMAND}`; export r; \
28699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28700 $(HOST_EXPORTS) \
28701 for flag in $(EXTRA_HOST_FLAGS) ; do \
28702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28703 done; \
22121df0 28704 echo "Doing install-html in expect"; \
a90ef4bf 28705 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
28706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28708 "RANLIB=$${RANLIB}" \
0c24b341 28709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28710 install-html) \
28711 || exit 1
28712
a90ef4bf 28713@endif expect
108a6f8e 28714
a90ef4bf
JM
28715.PHONY: maybe-installcheck-expect installcheck-expect
28716maybe-installcheck-expect:
28717@if expect
28718maybe-installcheck-expect: installcheck-expect
be01d343 28719
a90ef4bf
JM
28720installcheck-expect: \
28721 configure-expect
28722 @: $(MAKE); $(unstage)
28723 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28724 r=`${PWD_COMMAND}`; export r; \
28725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28726 $(HOST_EXPORTS) \
28727 for flag in $(EXTRA_HOST_FLAGS) ; do \
28728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28729 done; \
22121df0 28730 echo "Doing installcheck in expect"; \
a90ef4bf 28731 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28734 "RANLIB=$${RANLIB}" \
0c24b341 28735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28736 installcheck) \
28737 || exit 1
28738
a90ef4bf 28739@endif expect
be01d343 28740
a90ef4bf
JM
28741.PHONY: maybe-mostlyclean-expect mostlyclean-expect
28742maybe-mostlyclean-expect:
28743@if expect
28744maybe-mostlyclean-expect: mostlyclean-expect
be01d343 28745
a90ef4bf
JM
28746mostlyclean-expect:
28747 @: $(MAKE); $(unstage)
28748 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28749 r=`${PWD_COMMAND}`; export r; \
28750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28751 $(HOST_EXPORTS) \
28752 for flag in $(EXTRA_HOST_FLAGS) ; do \
28753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28754 done; \
22121df0 28755 echo "Doing mostlyclean in expect"; \
a90ef4bf 28756 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28759 "RANLIB=$${RANLIB}" \
0c24b341 28760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28761 mostlyclean) \
28762 || exit 1
28763
a90ef4bf 28764@endif expect
be01d343 28765
a90ef4bf
JM
28766.PHONY: maybe-clean-expect clean-expect
28767maybe-clean-expect:
28768@if expect
28769maybe-clean-expect: clean-expect
be01d343 28770
a90ef4bf
JM
28771clean-expect:
28772 @: $(MAKE); $(unstage)
28773 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28774 r=`${PWD_COMMAND}`; export r; \
28775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28776 $(HOST_EXPORTS) \
28777 for flag in $(EXTRA_HOST_FLAGS) ; do \
28778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28779 done; \
22121df0 28780 echo "Doing clean in expect"; \
a90ef4bf 28781 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28784 "RANLIB=$${RANLIB}" \
0c24b341 28785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28786 clean) \
28787 || exit 1
28788
a90ef4bf 28789@endif expect
be01d343 28790
a90ef4bf
JM
28791.PHONY: maybe-distclean-expect distclean-expect
28792maybe-distclean-expect:
28793@if expect
28794maybe-distclean-expect: distclean-expect
be01d343 28795
a90ef4bf
JM
28796distclean-expect:
28797 @: $(MAKE); $(unstage)
28798 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28799 r=`${PWD_COMMAND}`; export r; \
28800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28801 $(HOST_EXPORTS) \
28802 for flag in $(EXTRA_HOST_FLAGS) ; do \
28803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28804 done; \
22121df0 28805 echo "Doing distclean in expect"; \
a90ef4bf 28806 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28809 "RANLIB=$${RANLIB}" \
0c24b341 28810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28811 distclean) \
28812 || exit 1
28813
a90ef4bf 28814@endif expect
be01d343 28815
a90ef4bf
JM
28816.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
28817maybe-maintainer-clean-expect:
28818@if expect
28819maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 28820
a90ef4bf
JM
28821maintainer-clean-expect:
28822 @: $(MAKE); $(unstage)
28823 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28824 r=`${PWD_COMMAND}`; export r; \
28825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28826 $(HOST_EXPORTS) \
28827 for flag in $(EXTRA_HOST_FLAGS) ; do \
28828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28829 done; \
22121df0 28830 echo "Doing maintainer-clean in expect"; \
a90ef4bf 28831 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28834 "RANLIB=$${RANLIB}" \
0c24b341 28835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28836 maintainer-clean) \
28837 || exit 1
28838
a90ef4bf 28839@endif expect
be01d343
PB
28840
28841
28842
a90ef4bf
JM
28843.PHONY: configure-guile maybe-configure-guile
28844maybe-configure-guile:
4f0ef2d8 28845@if gcc-bootstrap
a90ef4bf 28846configure-guile: stage_current
4f0ef2d8 28847@endif gcc-bootstrap
a90ef4bf
JM
28848@if guile
28849maybe-configure-guile: configure-guile
28850configure-guile:
0aed8855 28851 @: $(MAKE); $(unstage)
c52c6897 28852 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 28853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28854 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
22121df0 28855 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile; \
1f53ca9a 28856 $(HOST_EXPORTS) \
a90ef4bf
JM
28857 echo Configuring in $(HOST_SUBDIR)/guile; \
28858 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 28859 case $(srcdir) in \
b00612cc 28860 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28861 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 28862 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 28863 esac; \
1b6c0831
L
28864 module_srcdir=guile; \
28865 $(SHELL) \
28866 $$s/$$module_srcdir/configure \
28867 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28868 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28869 --target=${target_alias} \
4b1cb4fe 28870 || exit 1
a90ef4bf 28871@endif guile
4b1cb4fe 28872
a7254363
PB
28873
28874
d545f33b
PB
28875
28876
a90ef4bf
JM
28877.PHONY: all-guile maybe-all-guile
28878maybe-all-guile:
4f0ef2d8 28879@if gcc-bootstrap
a90ef4bf 28880all-guile: stage_current
4f0ef2d8 28881@endif gcc-bootstrap
a90ef4bf
JM
28882@if guile
28883TARGET-guile=all
28884maybe-all-guile: all-guile
28885all-guile: configure-guile
28886 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28887 @r=`${PWD_COMMAND}`; export r; \
28888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 28889 $(HOST_EXPORTS) \
a90ef4bf 28890 (cd $(HOST_SUBDIR)/guile && \
b3676d82 28891 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28892 $(TARGET-guile))
28893@endif guile
4b1cb4fe 28894
a7254363 28895
d545f33b
PB
28896
28897
a90ef4bf
JM
28898.PHONY: check-guile maybe-check-guile
28899maybe-check-guile:
28900@if guile
28901maybe-check-guile: check-guile
4b1cb4fe 28902
a90ef4bf 28903check-guile:
0aed8855 28904 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28905 @r=`${PWD_COMMAND}`; export r; \
28906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28907 $(HOST_EXPORTS) \
a90ef4bf 28908 (cd $(HOST_SUBDIR)/guile && \
b00612cc 28909 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 28910
a90ef4bf 28911@endif guile
4b1cb4fe 28912
a90ef4bf
JM
28913.PHONY: install-guile maybe-install-guile
28914maybe-install-guile:
28915@if guile
28916maybe-install-guile: install-guile
4b1cb4fe 28917
a90ef4bf 28918install-guile: installdirs
0aed8855 28919 @: $(MAKE); $(unstage)
b813574b
PB
28920 @r=`${PWD_COMMAND}`; export r; \
28921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 28922 $(HOST_EXPORTS) \
a90ef4bf 28923 (cd $(HOST_SUBDIR)/guile && \
2da12f12 28924 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 28925
a90ef4bf 28926@endif guile
4b1cb4fe 28927
a90ef4bf
JM
28928.PHONY: install-strip-guile maybe-install-strip-guile
28929maybe-install-strip-guile:
28930@if guile
28931maybe-install-strip-guile: install-strip-guile
9b980aa1 28932
a90ef4bf 28933install-strip-guile: installdirs
9b980aa1
RW
28934 @: $(MAKE); $(unstage)
28935 @r=`${PWD_COMMAND}`; export r; \
28936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28937 $(HOST_EXPORTS) \
a90ef4bf 28938 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
28939 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28940
a90ef4bf 28941@endif guile
9b980aa1 28942
56a8fe78 28943# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 28944
a90ef4bf
JM
28945.PHONY: maybe-info-guile info-guile
28946maybe-info-guile:
28947@if guile
28948maybe-info-guile: info-guile
4b1cb4fe 28949
a90ef4bf
JM
28950info-guile: \
28951 configure-guile
0aed8855 28952 @: $(MAKE); $(unstage)
a90ef4bf 28953 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28954 r=`${PWD_COMMAND}`; export r; \
28955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28956 $(HOST_EXPORTS) \
b813574b 28957 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28959 done; \
22121df0 28960 echo "Doing info in guile"; \
a90ef4bf 28961 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28964 "RANLIB=$${RANLIB}" \
0c24b341 28965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28966 info) \
4b1cb4fe
DD
28967 || exit 1
28968
a90ef4bf 28969@endif guile
4b1cb4fe 28970
a90ef4bf
JM
28971.PHONY: maybe-dvi-guile dvi-guile
28972maybe-dvi-guile:
28973@if guile
28974maybe-dvi-guile: dvi-guile
4b1cb4fe 28975
a90ef4bf
JM
28976dvi-guile: \
28977 configure-guile
0aed8855 28978 @: $(MAKE); $(unstage)
a90ef4bf 28979 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28980 r=`${PWD_COMMAND}`; export r; \
28981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28982 $(HOST_EXPORTS) \
b813574b 28983 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28985 done; \
22121df0 28986 echo "Doing dvi in guile"; \
a90ef4bf 28987 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28990 "RANLIB=$${RANLIB}" \
0c24b341 28991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28992 dvi) \
4b1cb4fe
DD
28993 || exit 1
28994
a90ef4bf 28995@endif guile
4b1cb4fe 28996
a90ef4bf
JM
28997.PHONY: maybe-pdf-guile pdf-guile
28998maybe-pdf-guile:
28999@if guile
29000maybe-pdf-guile: pdf-guile
56a8fe78 29001
a90ef4bf
JM
29002pdf-guile: \
29003 configure-guile
56a8fe78 29004 @: $(MAKE); $(unstage)
a90ef4bf 29005 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
29006 r=`${PWD_COMMAND}`; export r; \
29007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29008 $(HOST_EXPORTS) \
29009 for flag in $(EXTRA_HOST_FLAGS) ; do \
29010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29011 done; \
22121df0 29012 echo "Doing pdf in guile"; \
a90ef4bf 29013 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
29014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29016 "RANLIB=$${RANLIB}" \
0c24b341 29017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29018 pdf) \
29019 || exit 1
29020
a90ef4bf 29021@endif guile
56a8fe78 29022
a90ef4bf
JM
29023.PHONY: maybe-html-guile html-guile
29024maybe-html-guile:
29025@if guile
29026maybe-html-guile: html-guile
6d389afc 29027
a90ef4bf
JM
29028html-guile: \
29029 configure-guile
0aed8855 29030 @: $(MAKE); $(unstage)
a90ef4bf 29031 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
29032 r=`${PWD_COMMAND}`; export r; \
29033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29034 $(HOST_EXPORTS) \
29035 for flag in $(EXTRA_HOST_FLAGS) ; do \
29036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29037 done; \
22121df0 29038 echo "Doing html in guile"; \
a90ef4bf 29039 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
29040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29042 "RANLIB=$${RANLIB}" \
0c24b341 29043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29044 html) \
29045 || exit 1
29046
a90ef4bf 29047@endif guile
6d389afc 29048
a90ef4bf
JM
29049.PHONY: maybe-TAGS-guile TAGS-guile
29050maybe-TAGS-guile:
29051@if guile
29052maybe-TAGS-guile: TAGS-guile
4b1cb4fe 29053
a90ef4bf
JM
29054TAGS-guile: \
29055 configure-guile
0aed8855 29056 @: $(MAKE); $(unstage)
a90ef4bf 29057 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29058 r=`${PWD_COMMAND}`; export r; \
29059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29060 $(HOST_EXPORTS) \
b813574b 29061 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29063 done; \
22121df0 29064 echo "Doing TAGS in guile"; \
a90ef4bf 29065 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29068 "RANLIB=$${RANLIB}" \
0c24b341 29069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29070 TAGS) \
4b1cb4fe
DD
29071 || exit 1
29072
a90ef4bf 29073@endif guile
4b1cb4fe 29074
a90ef4bf
JM
29075.PHONY: maybe-install-info-guile install-info-guile
29076maybe-install-info-guile:
29077@if guile
29078maybe-install-info-guile: install-info-guile
4b1cb4fe 29079
a90ef4bf
JM
29080install-info-guile: \
29081 configure-guile \
29082 info-guile
0aed8855 29083 @: $(MAKE); $(unstage)
a90ef4bf 29084 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29085 r=`${PWD_COMMAND}`; export r; \
29086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29087 $(HOST_EXPORTS) \
b813574b 29088 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29090 done; \
22121df0 29091 echo "Doing install-info in guile"; \
a90ef4bf 29092 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29095 "RANLIB=$${RANLIB}" \
0c24b341 29096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29097 install-info) \
4b1cb4fe
DD
29098 || exit 1
29099
a90ef4bf 29100@endif guile
4b1cb4fe 29101
a90ef4bf
JM
29102.PHONY: maybe-install-pdf-guile install-pdf-guile
29103maybe-install-pdf-guile:
29104@if guile
29105maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 29106
a90ef4bf
JM
29107install-pdf-guile: \
29108 configure-guile \
29109 pdf-guile
a3ca38d2 29110 @: $(MAKE); $(unstage)
a90ef4bf 29111 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
29112 r=`${PWD_COMMAND}`; export r; \
29113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29114 $(HOST_EXPORTS) \
29115 for flag in $(EXTRA_HOST_FLAGS) ; do \
29116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29117 done; \
22121df0 29118 echo "Doing install-pdf in guile"; \
a90ef4bf 29119 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
29120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29122 "RANLIB=$${RANLIB}" \
0c24b341 29123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29124 install-pdf) \
29125 || exit 1
29126
a90ef4bf 29127@endif guile
a3ca38d2 29128
a90ef4bf
JM
29129.PHONY: maybe-install-html-guile install-html-guile
29130maybe-install-html-guile:
29131@if guile
29132maybe-install-html-guile: install-html-guile
108a6f8e 29133
a90ef4bf
JM
29134install-html-guile: \
29135 configure-guile \
29136 html-guile
108a6f8e 29137 @: $(MAKE); $(unstage)
a90ef4bf 29138 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
29139 r=`${PWD_COMMAND}`; export r; \
29140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29141 $(HOST_EXPORTS) \
29142 for flag in $(EXTRA_HOST_FLAGS) ; do \
29143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29144 done; \
22121df0 29145 echo "Doing install-html in guile"; \
a90ef4bf 29146 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
29147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29149 "RANLIB=$${RANLIB}" \
0c24b341 29150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29151 install-html) \
29152 || exit 1
29153
a90ef4bf 29154@endif guile
108a6f8e 29155
a90ef4bf
JM
29156.PHONY: maybe-installcheck-guile installcheck-guile
29157maybe-installcheck-guile:
29158@if guile
29159maybe-installcheck-guile: installcheck-guile
4b1cb4fe 29160
a90ef4bf
JM
29161installcheck-guile: \
29162 configure-guile
0aed8855 29163 @: $(MAKE); $(unstage)
a90ef4bf 29164 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29165 r=`${PWD_COMMAND}`; export r; \
29166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29167 $(HOST_EXPORTS) \
b813574b 29168 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29170 done; \
22121df0 29171 echo "Doing installcheck in guile"; \
a90ef4bf 29172 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29175 "RANLIB=$${RANLIB}" \
0c24b341 29176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29177 installcheck) \
4b1cb4fe
DD
29178 || exit 1
29179
a90ef4bf 29180@endif guile
4b1cb4fe 29181
a90ef4bf
JM
29182.PHONY: maybe-mostlyclean-guile mostlyclean-guile
29183maybe-mostlyclean-guile:
29184@if guile
29185maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 29186
a90ef4bf 29187mostlyclean-guile:
0aed8855 29188 @: $(MAKE); $(unstage)
a90ef4bf 29189 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29190 r=`${PWD_COMMAND}`; export r; \
29191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29192 $(HOST_EXPORTS) \
b813574b 29193 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29195 done; \
22121df0 29196 echo "Doing mostlyclean in guile"; \
a90ef4bf 29197 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29200 "RANLIB=$${RANLIB}" \
0c24b341 29201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29202 mostlyclean) \
4b1cb4fe
DD
29203 || exit 1
29204
a90ef4bf 29205@endif guile
4b1cb4fe 29206
a90ef4bf
JM
29207.PHONY: maybe-clean-guile clean-guile
29208maybe-clean-guile:
29209@if guile
29210maybe-clean-guile: clean-guile
4b1cb4fe 29211
a90ef4bf 29212clean-guile:
0aed8855 29213 @: $(MAKE); $(unstage)
a90ef4bf 29214 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29215 r=`${PWD_COMMAND}`; export r; \
29216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29217 $(HOST_EXPORTS) \
b813574b 29218 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29220 done; \
22121df0 29221 echo "Doing clean in guile"; \
a90ef4bf 29222 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29225 "RANLIB=$${RANLIB}" \
0c24b341 29226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29227 clean) \
4b1cb4fe
DD
29228 || exit 1
29229
a90ef4bf 29230@endif guile
4b1cb4fe 29231
a90ef4bf
JM
29232.PHONY: maybe-distclean-guile distclean-guile
29233maybe-distclean-guile:
29234@if guile
29235maybe-distclean-guile: distclean-guile
4b1cb4fe 29236
a90ef4bf 29237distclean-guile:
0aed8855 29238 @: $(MAKE); $(unstage)
a90ef4bf 29239 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29240 r=`${PWD_COMMAND}`; export r; \
29241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29242 $(HOST_EXPORTS) \
b813574b 29243 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29245 done; \
22121df0 29246 echo "Doing distclean in guile"; \
a90ef4bf 29247 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29250 "RANLIB=$${RANLIB}" \
0c24b341 29251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29252 distclean) \
4b1cb4fe
DD
29253 || exit 1
29254
a90ef4bf 29255@endif guile
4b1cb4fe 29256
a90ef4bf
JM
29257.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
29258maybe-maintainer-clean-guile:
29259@if guile
29260maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 29261
a90ef4bf 29262maintainer-clean-guile:
0aed8855 29263 @: $(MAKE); $(unstage)
a90ef4bf 29264 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29265 r=`${PWD_COMMAND}`; export r; \
29266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29267 $(HOST_EXPORTS) \
b813574b 29268 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29270 done; \
22121df0 29271 echo "Doing maintainer-clean in guile"; \
a90ef4bf 29272 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29275 "RANLIB=$${RANLIB}" \
0c24b341 29276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29277 maintainer-clean) \
4b1cb4fe
DD
29278 || exit 1
29279
a90ef4bf 29280@endif guile
4b1cb4fe
DD
29281
29282
a7254363 29283
a90ef4bf
JM
29284.PHONY: configure-tk maybe-configure-tk
29285maybe-configure-tk:
4f0ef2d8 29286@if gcc-bootstrap
a90ef4bf 29287configure-tk: stage_current
4f0ef2d8 29288@endif gcc-bootstrap
a90ef4bf
JM
29289@if tk
29290maybe-configure-tk: configure-tk
29291configure-tk:
29292 @: $(MAKE); $(unstage)
c52c6897
PB
29293 @r=`${PWD_COMMAND}`; export r; \
29294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29295 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
22121df0 29296 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk; \
1f53ca9a 29297 $(HOST_EXPORTS) \
a90ef4bf
JM
29298 echo Configuring in $(HOST_SUBDIR)/tk; \
29299 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 29300 case $(srcdir) in \
b00612cc 29301 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29302 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 29303 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29304 esac; \
1b6c0831
L
29305 module_srcdir=tk; \
29306 $(SHELL) \
29307 $$s/$$module_srcdir/configure \
29308 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29309 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29310 --target=${target_alias} \
2a4cbe27 29311 || exit 1
a90ef4bf 29312@endif tk
2a4cbe27 29313
a7254363
PB
29314
29315
a90ef4bf
JM
29316
29317
29318.PHONY: all-tk maybe-all-tk
29319maybe-all-tk:
29320@if gcc-bootstrap
29321all-tk: stage_current
29322@endif gcc-bootstrap
29323@if tk
29324TARGET-tk=all
29325maybe-all-tk: all-tk
29326all-tk: configure-tk
29327 @: $(MAKE); $(unstage)
c52c6897
PB
29328 @r=`${PWD_COMMAND}`; export r; \
29329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29330 $(HOST_EXPORTS) \
29331 (cd $(HOST_SUBDIR)/tk && \
b3676d82 29332 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29333 $(TARGET-tk))
29334@endif tk
d545f33b 29335
a90ef4bf
JM
29336
29337
29338
29339.PHONY: check-tk maybe-check-tk
29340maybe-check-tk:
29341@if tk
29342maybe-check-tk: check-tk
29343
29344check-tk:
29345 @: $(MAKE); $(unstage)
c52c6897
PB
29346 @r=`${PWD_COMMAND}`; export r; \
29347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29348 $(HOST_EXPORTS) \
a90ef4bf
JM
29349 (cd $(HOST_SUBDIR)/tk && \
29350 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 29351
a90ef4bf
JM
29352@endif tk
29353
29354.PHONY: install-tk maybe-install-tk
29355maybe-install-tk:
29356@if tk
29357maybe-install-tk: install-tk
29358
29359install-tk: installdirs
29360 @: $(MAKE); $(unstage)
c52c6897
PB
29361 @r=`${PWD_COMMAND}`; export r; \
29362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29363 $(HOST_EXPORTS) \
a90ef4bf
JM
29364 (cd $(HOST_SUBDIR)/tk && \
29365 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 29366
a90ef4bf
JM
29367@endif tk
29368
29369.PHONY: install-strip-tk maybe-install-strip-tk
29370maybe-install-strip-tk:
29371@if tk
29372maybe-install-strip-tk: install-strip-tk
29373
29374install-strip-tk: installdirs
29375 @: $(MAKE); $(unstage)
c52c6897
PB
29376 @r=`${PWD_COMMAND}`; export r; \
29377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29378 $(HOST_EXPORTS) \
a90ef4bf
JM
29379 (cd $(HOST_SUBDIR)/tk && \
29380 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 29381
a90ef4bf 29382@endif tk
9b980aa1 29383
56a8fe78 29384# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29385
a90ef4bf
JM
29386.PHONY: maybe-info-tk info-tk
29387maybe-info-tk:
29388@if tk
29389maybe-info-tk: info-tk
4fa63067 29390
a90ef4bf
JM
29391info-tk: \
29392 configure-tk
29393 @: $(MAKE); $(unstage)
29394 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29395 r=`${PWD_COMMAND}`; export r; \
29396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29397 $(HOST_EXPORTS) \
b813574b 29398 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29400 done; \
22121df0 29401 echo "Doing info in tk"; \
a90ef4bf 29402 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
29403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29405 "RANLIB=$${RANLIB}" \
0c24b341 29406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29407 info) \
29408 || exit 1
29409
a90ef4bf 29410@endif tk
6d389afc 29411
a90ef4bf
JM
29412.PHONY: maybe-dvi-tk dvi-tk
29413maybe-dvi-tk:
29414@if tk
29415maybe-dvi-tk: dvi-tk
6d389afc 29416
a90ef4bf
JM
29417dvi-tk: \
29418 configure-tk
29419 @: $(MAKE); $(unstage)
29420 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
29421 r=`${PWD_COMMAND}`; export r; \
29422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29423 $(HOST_EXPORTS) \
29424 for flag in $(EXTRA_HOST_FLAGS) ; do \
29425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29426 done; \
22121df0 29427 echo "Doing dvi in tk"; \
a90ef4bf 29428 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29431 "RANLIB=$${RANLIB}" \
0c24b341 29432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29433 dvi) \
2a4cbe27
NN
29434 || exit 1
29435
a90ef4bf 29436@endif tk
2a4cbe27 29437
a90ef4bf
JM
29438.PHONY: maybe-pdf-tk pdf-tk
29439maybe-pdf-tk:
29440@if tk
29441maybe-pdf-tk: pdf-tk
56a8fe78 29442
a90ef4bf
JM
29443pdf-tk: \
29444 configure-tk
29445 @: $(MAKE); $(unstage)
29446 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
29447 r=`${PWD_COMMAND}`; export r; \
29448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29449 $(HOST_EXPORTS) \
29450 for flag in $(EXTRA_HOST_FLAGS) ; do \
29451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29452 done; \
22121df0 29453 echo "Doing pdf in tk"; \
a90ef4bf 29454 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
29455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29457 "RANLIB=$${RANLIB}" \
0c24b341 29458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29459 pdf) \
29460 || exit 1
29461
a90ef4bf 29462@endif tk
56a8fe78 29463
a90ef4bf
JM
29464.PHONY: maybe-html-tk html-tk
29465maybe-html-tk:
29466@if tk
29467maybe-html-tk: html-tk
2a4cbe27 29468
a90ef4bf
JM
29469html-tk: \
29470 configure-tk
29471 @: $(MAKE); $(unstage)
29472 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29473 r=`${PWD_COMMAND}`; export r; \
29474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29475 $(HOST_EXPORTS) \
b813574b 29476 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29478 done; \
22121df0 29479 echo "Doing html in tk"; \
a90ef4bf 29480 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29483 "RANLIB=$${RANLIB}" \
0c24b341 29484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29485 html) \
2a4cbe27
NN
29486 || exit 1
29487
a90ef4bf 29488@endif tk
2a4cbe27 29489
a90ef4bf
JM
29490.PHONY: maybe-TAGS-tk TAGS-tk
29491maybe-TAGS-tk:
29492@if tk
29493maybe-TAGS-tk: TAGS-tk
2a4cbe27 29494
a90ef4bf
JM
29495TAGS-tk: \
29496 configure-tk
29497 @: $(MAKE); $(unstage)
29498 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29499 r=`${PWD_COMMAND}`; export r; \
29500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29501 $(HOST_EXPORTS) \
b813574b 29502 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29504 done; \
22121df0 29505 echo "Doing TAGS in tk"; \
a90ef4bf 29506 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29509 "RANLIB=$${RANLIB}" \
0c24b341 29510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29511 TAGS) \
2a4cbe27
NN
29512 || exit 1
29513
a90ef4bf 29514@endif tk
2a4cbe27 29515
a90ef4bf
JM
29516.PHONY: maybe-install-info-tk install-info-tk
29517maybe-install-info-tk:
29518@if tk
29519maybe-install-info-tk: install-info-tk
2a4cbe27 29520
a90ef4bf
JM
29521install-info-tk: \
29522 configure-tk \
29523 info-tk
29524 @: $(MAKE); $(unstage)
29525 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29526 r=`${PWD_COMMAND}`; export r; \
29527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29528 $(HOST_EXPORTS) \
b813574b 29529 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29531 done; \
22121df0 29532 echo "Doing install-info in tk"; \
a90ef4bf 29533 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29536 "RANLIB=$${RANLIB}" \
0c24b341 29537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29538 install-info) \
2a4cbe27
NN
29539 || exit 1
29540
a90ef4bf 29541@endif tk
2a4cbe27 29542
a90ef4bf
JM
29543.PHONY: maybe-install-pdf-tk install-pdf-tk
29544maybe-install-pdf-tk:
29545@if tk
29546maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 29547
a90ef4bf
JM
29548install-pdf-tk: \
29549 configure-tk \
29550 pdf-tk
29551 @: $(MAKE); $(unstage)
29552 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
29553 r=`${PWD_COMMAND}`; export r; \
29554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29555 $(HOST_EXPORTS) \
29556 for flag in $(EXTRA_HOST_FLAGS) ; do \
29557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29558 done; \
22121df0 29559 echo "Doing install-pdf in tk"; \
a90ef4bf 29560 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
29561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29563 "RANLIB=$${RANLIB}" \
0c24b341 29564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29565 install-pdf) \
29566 || exit 1
29567
a90ef4bf 29568@endif tk
a3ca38d2 29569
a90ef4bf
JM
29570.PHONY: maybe-install-html-tk install-html-tk
29571maybe-install-html-tk:
29572@if tk
29573maybe-install-html-tk: install-html-tk
108a6f8e 29574
a90ef4bf
JM
29575install-html-tk: \
29576 configure-tk \
29577 html-tk
29578 @: $(MAKE); $(unstage)
29579 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
29580 r=`${PWD_COMMAND}`; export r; \
29581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29582 $(HOST_EXPORTS) \
29583 for flag in $(EXTRA_HOST_FLAGS) ; do \
29584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29585 done; \
22121df0 29586 echo "Doing install-html in tk"; \
a90ef4bf 29587 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
29588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29590 "RANLIB=$${RANLIB}" \
0c24b341 29591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29592 install-html) \
29593 || exit 1
29594
a90ef4bf 29595@endif tk
108a6f8e 29596
a90ef4bf
JM
29597.PHONY: maybe-installcheck-tk installcheck-tk
29598maybe-installcheck-tk:
29599@if tk
29600maybe-installcheck-tk: installcheck-tk
2a4cbe27 29601
a90ef4bf
JM
29602installcheck-tk: \
29603 configure-tk
29604 @: $(MAKE); $(unstage)
29605 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29606 r=`${PWD_COMMAND}`; export r; \
29607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29608 $(HOST_EXPORTS) \
b813574b 29609 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29611 done; \
22121df0 29612 echo "Doing installcheck in tk"; \
a90ef4bf 29613 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29616 "RANLIB=$${RANLIB}" \
0c24b341 29617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29618 installcheck) \
2a4cbe27
NN
29619 || exit 1
29620
a90ef4bf 29621@endif tk
2a4cbe27 29622
a90ef4bf
JM
29623.PHONY: maybe-mostlyclean-tk mostlyclean-tk
29624maybe-mostlyclean-tk:
29625@if tk
29626maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 29627
a90ef4bf
JM
29628mostlyclean-tk:
29629 @: $(MAKE); $(unstage)
29630 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29631 r=`${PWD_COMMAND}`; export r; \
29632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29633 $(HOST_EXPORTS) \
b813574b 29634 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29636 done; \
22121df0 29637 echo "Doing mostlyclean in tk"; \
a90ef4bf 29638 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29641 "RANLIB=$${RANLIB}" \
0c24b341 29642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29643 mostlyclean) \
2a4cbe27
NN
29644 || exit 1
29645
a90ef4bf 29646@endif tk
2a4cbe27 29647
a90ef4bf
JM
29648.PHONY: maybe-clean-tk clean-tk
29649maybe-clean-tk:
29650@if tk
29651maybe-clean-tk: clean-tk
2a4cbe27 29652
a90ef4bf
JM
29653clean-tk:
29654 @: $(MAKE); $(unstage)
29655 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29656 r=`${PWD_COMMAND}`; export r; \
29657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29658 $(HOST_EXPORTS) \
b813574b 29659 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29661 done; \
22121df0 29662 echo "Doing clean in tk"; \
a90ef4bf 29663 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29666 "RANLIB=$${RANLIB}" \
0c24b341 29667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29668 clean) \
2a4cbe27
NN
29669 || exit 1
29670
a90ef4bf 29671@endif tk
2a4cbe27 29672
a90ef4bf
JM
29673.PHONY: maybe-distclean-tk distclean-tk
29674maybe-distclean-tk:
29675@if tk
29676maybe-distclean-tk: distclean-tk
2a4cbe27 29677
a90ef4bf
JM
29678distclean-tk:
29679 @: $(MAKE); $(unstage)
29680 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29681 r=`${PWD_COMMAND}`; export r; \
29682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29683 $(HOST_EXPORTS) \
b813574b 29684 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29686 done; \
22121df0 29687 echo "Doing distclean in tk"; \
a90ef4bf 29688 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29691 "RANLIB=$${RANLIB}" \
0c24b341 29692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29693 distclean) \
2a4cbe27
NN
29694 || exit 1
29695
a90ef4bf 29696@endif tk
2a4cbe27 29697
a90ef4bf
JM
29698.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
29699maybe-maintainer-clean-tk:
29700@if tk
29701maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 29702
a90ef4bf
JM
29703maintainer-clean-tk:
29704 @: $(MAKE); $(unstage)
29705 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29706 r=`${PWD_COMMAND}`; export r; \
29707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29708 $(HOST_EXPORTS) \
b813574b 29709 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29711 done; \
22121df0 29712 echo "Doing maintainer-clean in tk"; \
a90ef4bf 29713 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29716 "RANLIB=$${RANLIB}" \
0c24b341 29717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29718 maintainer-clean) \
2a4cbe27
NN
29719 || exit 1
29720
a90ef4bf 29721@endif tk
2a4cbe27 29722
2a4cbe27 29723
a7254363 29724
a90ef4bf
JM
29725.PHONY: configure-libtermcap maybe-configure-libtermcap
29726maybe-configure-libtermcap:
dc448a7b 29727@if gcc-bootstrap
a90ef4bf 29728configure-libtermcap: stage_current
dc448a7b 29729@endif gcc-bootstrap
a90ef4bf
JM
29730@if libtermcap
29731maybe-configure-libtermcap: configure-libtermcap
29732configure-libtermcap:
dc448a7b
TT
29733 @: $(MAKE); $(unstage)
29734 @r=`${PWD_COMMAND}`; export r; \
29735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29736 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 29737 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap; \
1f53ca9a 29738 $(HOST_EXPORTS) \
a90ef4bf
JM
29739 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
29740 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
29741 case $(srcdir) in \
29742 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29743 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
29744 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29745 esac; \
1b6c0831
L
29746 module_srcdir=libtermcap; \
29747 $(SHELL) \
29748 $$s/$$module_srcdir/configure \
29749 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 29750 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29751 --target=${target_alias} \
dc448a7b 29752 || exit 1
a90ef4bf 29753@endif libtermcap
dc448a7b
TT
29754
29755
29756
29757
29758
a90ef4bf
JM
29759.PHONY: all-libtermcap maybe-all-libtermcap
29760maybe-all-libtermcap:
dc448a7b 29761@if gcc-bootstrap
a90ef4bf 29762all-libtermcap: stage_current
dc448a7b 29763@endif gcc-bootstrap
a90ef4bf
JM
29764@if libtermcap
29765TARGET-libtermcap=all
29766maybe-all-libtermcap: all-libtermcap
29767all-libtermcap: configure-libtermcap
dc448a7b
TT
29768 @: $(MAKE); $(unstage)
29769 @r=`${PWD_COMMAND}`; export r; \
29770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29771 $(HOST_EXPORTS) \
a90ef4bf 29772 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 29773 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29774 $(TARGET-libtermcap))
29775@endif libtermcap
dc448a7b
TT
29776
29777
29778
29779
a90ef4bf
JM
29780.PHONY: check-libtermcap maybe-check-libtermcap
29781maybe-check-libtermcap:
29782@if libtermcap
29783maybe-check-libtermcap: check-libtermcap
dc448a7b 29784
a90ef4bf
JM
29785check-libtermcap:
29786
29787@endif libtermcap
29788
29789.PHONY: install-libtermcap maybe-install-libtermcap
29790maybe-install-libtermcap:
29791@if libtermcap
29792maybe-install-libtermcap: install-libtermcap
29793
29794install-libtermcap: installdirs
dc448a7b
TT
29795 @: $(MAKE); $(unstage)
29796 @r=`${PWD_COMMAND}`; export r; \
29797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29798 $(HOST_EXPORTS) \
a90ef4bf
JM
29799 (cd $(HOST_SUBDIR)/libtermcap && \
29800 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 29801
a90ef4bf 29802@endif libtermcap
dc448a7b 29803
a90ef4bf
JM
29804.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
29805maybe-install-strip-libtermcap:
29806@if libtermcap
29807maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 29808
a90ef4bf
JM
29809install-strip-libtermcap: installdirs
29810 @: $(MAKE); $(unstage)
29811 @r=`${PWD_COMMAND}`; export r; \
29812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29813 $(HOST_EXPORTS) \
29814 (cd $(HOST_SUBDIR)/libtermcap && \
29815 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 29816
a90ef4bf 29817@endif libtermcap
9b980aa1 29818
dc448a7b
TT
29819# Other targets (info, dvi, pdf, etc.)
29820
a90ef4bf
JM
29821.PHONY: maybe-info-libtermcap info-libtermcap
29822maybe-info-libtermcap:
29823@if libtermcap
29824maybe-info-libtermcap: info-libtermcap
dc448a7b 29825
a90ef4bf
JM
29826info-libtermcap: \
29827 configure-libtermcap
dc448a7b 29828 @: $(MAKE); $(unstage)
a90ef4bf 29829 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29830 r=`${PWD_COMMAND}`; export r; \
29831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29832 $(HOST_EXPORTS) \
29833 for flag in $(EXTRA_HOST_FLAGS) ; do \
29834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29835 done; \
22121df0 29836 echo "Doing info in libtermcap"; \
a90ef4bf 29837 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29840 "RANLIB=$${RANLIB}" \
29841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29842 info) \
29843 || exit 1
29844
a90ef4bf 29845@endif libtermcap
dc448a7b 29846
a90ef4bf
JM
29847.PHONY: maybe-dvi-libtermcap dvi-libtermcap
29848maybe-dvi-libtermcap:
29849@if libtermcap
29850maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 29851
a90ef4bf
JM
29852dvi-libtermcap: \
29853 configure-libtermcap
dc448a7b 29854 @: $(MAKE); $(unstage)
a90ef4bf 29855 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29856 r=`${PWD_COMMAND}`; export r; \
29857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29858 $(HOST_EXPORTS) \
29859 for flag in $(EXTRA_HOST_FLAGS) ; do \
29860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29861 done; \
22121df0 29862 echo "Doing dvi in libtermcap"; \
a90ef4bf 29863 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29866 "RANLIB=$${RANLIB}" \
29867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29868 dvi) \
29869 || exit 1
29870
a90ef4bf 29871@endif libtermcap
dc448a7b 29872
a90ef4bf
JM
29873.PHONY: maybe-pdf-libtermcap pdf-libtermcap
29874maybe-pdf-libtermcap:
29875@if libtermcap
29876maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 29877
a90ef4bf
JM
29878pdf-libtermcap: \
29879 configure-libtermcap
dc448a7b 29880 @: $(MAKE); $(unstage)
a90ef4bf 29881 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29882 r=`${PWD_COMMAND}`; export r; \
29883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29884 $(HOST_EXPORTS) \
29885 for flag in $(EXTRA_HOST_FLAGS) ; do \
29886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29887 done; \
22121df0 29888 echo "Doing pdf in libtermcap"; \
a90ef4bf 29889 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29892 "RANLIB=$${RANLIB}" \
29893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29894 pdf) \
29895 || exit 1
29896
a90ef4bf 29897@endif libtermcap
dc448a7b 29898
a90ef4bf
JM
29899.PHONY: maybe-html-libtermcap html-libtermcap
29900maybe-html-libtermcap:
29901@if libtermcap
29902maybe-html-libtermcap: html-libtermcap
dc448a7b 29903
a90ef4bf
JM
29904html-libtermcap: \
29905 configure-libtermcap
dc448a7b 29906 @: $(MAKE); $(unstage)
a90ef4bf 29907 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29908 r=`${PWD_COMMAND}`; export r; \
29909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29910 $(HOST_EXPORTS) \
29911 for flag in $(EXTRA_HOST_FLAGS) ; do \
29912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29913 done; \
22121df0 29914 echo "Doing html in libtermcap"; \
a90ef4bf 29915 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29918 "RANLIB=$${RANLIB}" \
29919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29920 html) \
29921 || exit 1
29922
a90ef4bf 29923@endif libtermcap
dc448a7b 29924
a90ef4bf
JM
29925.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
29926maybe-TAGS-libtermcap:
29927@if libtermcap
29928maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 29929
a90ef4bf
JM
29930TAGS-libtermcap: \
29931 configure-libtermcap
dc448a7b 29932 @: $(MAKE); $(unstage)
a90ef4bf 29933 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29934 r=`${PWD_COMMAND}`; export r; \
29935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29936 $(HOST_EXPORTS) \
29937 for flag in $(EXTRA_HOST_FLAGS) ; do \
29938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29939 done; \
22121df0 29940 echo "Doing TAGS in libtermcap"; \
a90ef4bf 29941 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29944 "RANLIB=$${RANLIB}" \
29945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29946 TAGS) \
29947 || exit 1
29948
a90ef4bf 29949@endif libtermcap
dc448a7b 29950
a90ef4bf
JM
29951.PHONY: maybe-install-info-libtermcap install-info-libtermcap
29952maybe-install-info-libtermcap:
29953@if libtermcap
29954maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 29955
a90ef4bf
JM
29956install-info-libtermcap: \
29957 configure-libtermcap \
29958 info-libtermcap
dc448a7b 29959 @: $(MAKE); $(unstage)
a90ef4bf 29960 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29961 r=`${PWD_COMMAND}`; export r; \
29962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29963 $(HOST_EXPORTS) \
29964 for flag in $(EXTRA_HOST_FLAGS) ; do \
29965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29966 done; \
22121df0 29967 echo "Doing install-info in libtermcap"; \
a90ef4bf 29968 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29971 "RANLIB=$${RANLIB}" \
29972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29973 install-info) \
dc448a7b
TT
29974 || exit 1
29975
a90ef4bf 29976@endif libtermcap
dc448a7b 29977
a90ef4bf
JM
29978.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
29979maybe-install-pdf-libtermcap:
29980@if libtermcap
29981maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 29982
a90ef4bf
JM
29983install-pdf-libtermcap: \
29984 configure-libtermcap \
29985 pdf-libtermcap
dc448a7b 29986 @: $(MAKE); $(unstage)
a90ef4bf 29987 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29988 r=`${PWD_COMMAND}`; export r; \
29989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29990 $(HOST_EXPORTS) \
29991 for flag in $(EXTRA_HOST_FLAGS) ; do \
29992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29993 done; \
22121df0 29994 echo "Doing install-pdf in libtermcap"; \
a90ef4bf 29995 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29998 "RANLIB=$${RANLIB}" \
29999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30000 install-pdf) \
dc448a7b
TT
30001 || exit 1
30002
a90ef4bf 30003@endif libtermcap
dc448a7b 30004
a90ef4bf
JM
30005.PHONY: maybe-install-html-libtermcap install-html-libtermcap
30006maybe-install-html-libtermcap:
30007@if libtermcap
30008maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 30009
a90ef4bf
JM
30010install-html-libtermcap: \
30011 configure-libtermcap \
30012 html-libtermcap
dc448a7b 30013 @: $(MAKE); $(unstage)
a90ef4bf 30014 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30015 r=`${PWD_COMMAND}`; export r; \
30016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30017 $(HOST_EXPORTS) \
30018 for flag in $(EXTRA_HOST_FLAGS) ; do \
30019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30020 done; \
22121df0 30021 echo "Doing install-html in libtermcap"; \
a90ef4bf 30022 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30025 "RANLIB=$${RANLIB}" \
30026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30027 install-html) \
dc448a7b
TT
30028 || exit 1
30029
a90ef4bf 30030@endif libtermcap
dc448a7b 30031
a90ef4bf
JM
30032.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
30033maybe-installcheck-libtermcap:
30034@if libtermcap
30035maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 30036
a90ef4bf
JM
30037installcheck-libtermcap: \
30038 configure-libtermcap
dc448a7b 30039 @: $(MAKE); $(unstage)
a90ef4bf 30040 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30041 r=`${PWD_COMMAND}`; export r; \
30042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30043 $(HOST_EXPORTS) \
30044 for flag in $(EXTRA_HOST_FLAGS) ; do \
30045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30046 done; \
22121df0 30047 echo "Doing installcheck in libtermcap"; \
a90ef4bf 30048 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30051 "RANLIB=$${RANLIB}" \
30052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30053 installcheck) \
dc448a7b
TT
30054 || exit 1
30055
a90ef4bf 30056@endif libtermcap
dc448a7b 30057
a90ef4bf
JM
30058.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
30059maybe-mostlyclean-libtermcap:
30060@if libtermcap
30061maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 30062
a90ef4bf
JM
30063# libtermcap doesn't support mostlyclean.
30064mostlyclean-libtermcap:
dc448a7b 30065
a90ef4bf 30066@endif libtermcap
dc448a7b 30067
a90ef4bf
JM
30068.PHONY: maybe-clean-libtermcap clean-libtermcap
30069maybe-clean-libtermcap:
30070@if libtermcap
30071maybe-clean-libtermcap: clean-libtermcap
dc448a7b 30072
a90ef4bf
JM
30073# libtermcap doesn't support clean.
30074clean-libtermcap:
dc448a7b 30075
a90ef4bf
JM
30076@endif libtermcap
30077
30078.PHONY: maybe-distclean-libtermcap distclean-libtermcap
30079maybe-distclean-libtermcap:
30080@if libtermcap
30081maybe-distclean-libtermcap: distclean-libtermcap
30082
30083# libtermcap doesn't support distclean.
30084distclean-libtermcap:
30085
30086@endif libtermcap
30087
30088.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
30089maybe-maintainer-clean-libtermcap:
30090@if libtermcap
30091maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
30092
30093# libtermcap doesn't support maintainer-clean.
30094maintainer-clean-libtermcap:
30095
30096@endif libtermcap
30097
30098
30099
30100.PHONY: configure-utils maybe-configure-utils
30101maybe-configure-utils:
30102@if gcc-bootstrap
30103configure-utils: stage_current
30104@endif gcc-bootstrap
30105@if utils
30106maybe-configure-utils: configure-utils
30107configure-utils:
30108 @: $(MAKE); $(unstage)
c52c6897 30109 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30111 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
22121df0 30112 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils; \
1f53ca9a 30113 $(HOST_EXPORTS) \
a90ef4bf
JM
30114 echo Configuring in $(HOST_SUBDIR)/utils; \
30115 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 30116 case $(srcdir) in \
b00612cc 30117 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30118 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 30119 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30120 esac; \
1b6c0831
L
30121 module_srcdir=utils; \
30122 $(SHELL) \
30123 $$s/$$module_srcdir/configure \
30124 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30125 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30126 --target=${target_alias} \
2a4cbe27 30127 || exit 1
a90ef4bf 30128@endif utils
2a4cbe27 30129
a7254363
PB
30130
30131
d545f33b
PB
30132
30133
a90ef4bf
JM
30134.PHONY: all-utils maybe-all-utils
30135maybe-all-utils:
4f0ef2d8 30136@if gcc-bootstrap
a90ef4bf 30137all-utils: stage_current
4f0ef2d8 30138@endif gcc-bootstrap
a90ef4bf
JM
30139@if utils
30140TARGET-utils=all
30141maybe-all-utils: all-utils
30142all-utils: configure-utils
0aed8855 30143 @: $(MAKE); $(unstage)
4fa63067
NN
30144 @r=`${PWD_COMMAND}`; export r; \
30145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30146 $(HOST_EXPORTS) \
a90ef4bf 30147 (cd $(HOST_SUBDIR)/utils && \
b3676d82 30148 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30149 $(TARGET-utils))
30150@endif utils
2a4cbe27 30151
a7254363 30152
d545f33b
PB
30153
30154
a90ef4bf
JM
30155.PHONY: check-utils maybe-check-utils
30156maybe-check-utils:
30157@if utils
30158maybe-check-utils: check-utils
2a4cbe27 30159
a90ef4bf 30160check-utils:
2a4cbe27 30161
a90ef4bf 30162@endif utils
2a4cbe27 30163
a90ef4bf
JM
30164.PHONY: install-utils maybe-install-utils
30165maybe-install-utils:
30166@if utils
30167maybe-install-utils: install-utils
2a4cbe27 30168
a90ef4bf 30169install-utils: installdirs
0aed8855 30170 @: $(MAKE); $(unstage)
4fa63067 30171 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30173 $(HOST_EXPORTS) \
a90ef4bf 30174 (cd $(HOST_SUBDIR)/utils && \
2da12f12 30175 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 30176
a90ef4bf 30177@endif utils
2a4cbe27 30178
a90ef4bf
JM
30179.PHONY: install-strip-utils maybe-install-strip-utils
30180maybe-install-strip-utils:
30181@if utils
30182maybe-install-strip-utils: install-strip-utils
9b980aa1 30183
a90ef4bf 30184install-strip-utils: installdirs
9b980aa1
RW
30185 @: $(MAKE); $(unstage)
30186 @r=`${PWD_COMMAND}`; export r; \
30187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30188 $(HOST_EXPORTS) \
a90ef4bf 30189 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
30190 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30191
a90ef4bf 30192@endif utils
9b980aa1 30193
56a8fe78 30194# Other targets (info, dvi, pdf, etc.)
2a4cbe27 30195
a90ef4bf
JM
30196.PHONY: maybe-info-utils info-utils
30197maybe-info-utils:
30198@if utils
30199maybe-info-utils: info-utils
4fa63067 30200
a90ef4bf
JM
30201info-utils: \
30202 configure-utils
0aed8855 30203 @: $(MAKE); $(unstage)
a90ef4bf 30204 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30205 r=`${PWD_COMMAND}`; export r; \
30206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30207 $(HOST_EXPORTS) \
b813574b 30208 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30210 done; \
22121df0 30211 echo "Doing info in utils"; \
a90ef4bf 30212 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30215 "RANLIB=$${RANLIB}" \
0c24b341 30216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30217 info) \
2a4cbe27
NN
30218 || exit 1
30219
a90ef4bf 30220@endif utils
2a4cbe27 30221
a90ef4bf
JM
30222.PHONY: maybe-dvi-utils dvi-utils
30223maybe-dvi-utils:
30224@if utils
30225maybe-dvi-utils: dvi-utils
2a4cbe27 30226
a90ef4bf
JM
30227dvi-utils: \
30228 configure-utils
0aed8855 30229 @: $(MAKE); $(unstage)
a90ef4bf 30230 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30231 r=`${PWD_COMMAND}`; export r; \
30232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30233 $(HOST_EXPORTS) \
b813574b 30234 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30236 done; \
22121df0 30237 echo "Doing dvi in utils"; \
a90ef4bf 30238 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30241 "RANLIB=$${RANLIB}" \
0c24b341 30242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30243 dvi) \
2a4cbe27
NN
30244 || exit 1
30245
a90ef4bf 30246@endif utils
2a4cbe27 30247
a90ef4bf
JM
30248.PHONY: maybe-pdf-utils pdf-utils
30249maybe-pdf-utils:
30250@if utils
30251maybe-pdf-utils: pdf-utils
56a8fe78 30252
a90ef4bf
JM
30253pdf-utils: \
30254 configure-utils
56a8fe78 30255 @: $(MAKE); $(unstage)
a90ef4bf 30256 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
30257 r=`${PWD_COMMAND}`; export r; \
30258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30259 $(HOST_EXPORTS) \
30260 for flag in $(EXTRA_HOST_FLAGS) ; do \
30261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30262 done; \
22121df0 30263 echo "Doing pdf in utils"; \
a90ef4bf 30264 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
30265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30267 "RANLIB=$${RANLIB}" \
0c24b341 30268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30269 pdf) \
30270 || exit 1
30271
a90ef4bf 30272@endif utils
56a8fe78 30273
a90ef4bf
JM
30274.PHONY: maybe-html-utils html-utils
30275maybe-html-utils:
30276@if utils
30277maybe-html-utils: html-utils
6d389afc 30278
a90ef4bf
JM
30279html-utils: \
30280 configure-utils
0aed8855 30281 @: $(MAKE); $(unstage)
a90ef4bf 30282 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
30283 r=`${PWD_COMMAND}`; export r; \
30284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30285 $(HOST_EXPORTS) \
30286 for flag in $(EXTRA_HOST_FLAGS) ; do \
30287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30288 done; \
22121df0 30289 echo "Doing html in utils"; \
a90ef4bf 30290 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
30291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30293 "RANLIB=$${RANLIB}" \
0c24b341 30294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30295 html) \
30296 || exit 1
30297
a90ef4bf 30298@endif utils
6d389afc 30299
a90ef4bf
JM
30300.PHONY: maybe-TAGS-utils TAGS-utils
30301maybe-TAGS-utils:
30302@if utils
30303maybe-TAGS-utils: TAGS-utils
2a4cbe27 30304
a90ef4bf
JM
30305TAGS-utils: \
30306 configure-utils
0aed8855 30307 @: $(MAKE); $(unstage)
a90ef4bf 30308 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30309 r=`${PWD_COMMAND}`; export r; \
30310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30311 $(HOST_EXPORTS) \
b813574b 30312 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30314 done; \
22121df0 30315 echo "Doing TAGS in utils"; \
a90ef4bf 30316 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30319 "RANLIB=$${RANLIB}" \
0c24b341 30320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30321 TAGS) \
2a4cbe27
NN
30322 || exit 1
30323
a90ef4bf 30324@endif utils
2a4cbe27 30325
a90ef4bf
JM
30326.PHONY: maybe-install-info-utils install-info-utils
30327maybe-install-info-utils:
30328@if utils
30329maybe-install-info-utils: install-info-utils
2a4cbe27 30330
a90ef4bf
JM
30331install-info-utils: \
30332 configure-utils \
30333 info-utils
0aed8855 30334 @: $(MAKE); $(unstage)
a90ef4bf 30335 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30336 r=`${PWD_COMMAND}`; export r; \
30337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30338 $(HOST_EXPORTS) \
b813574b 30339 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30341 done; \
22121df0 30342 echo "Doing install-info in utils"; \
a90ef4bf 30343 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30346 "RANLIB=$${RANLIB}" \
0c24b341 30347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30348 install-info) \
2a4cbe27
NN
30349 || exit 1
30350
a90ef4bf 30351@endif utils
2a4cbe27 30352
a90ef4bf
JM
30353.PHONY: maybe-install-pdf-utils install-pdf-utils
30354maybe-install-pdf-utils:
30355@if utils
30356maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 30357
a90ef4bf
JM
30358install-pdf-utils: \
30359 configure-utils \
30360 pdf-utils
a3ca38d2 30361 @: $(MAKE); $(unstage)
a90ef4bf 30362 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
30363 r=`${PWD_COMMAND}`; export r; \
30364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30365 $(HOST_EXPORTS) \
30366 for flag in $(EXTRA_HOST_FLAGS) ; do \
30367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30368 done; \
22121df0 30369 echo "Doing install-pdf in utils"; \
a90ef4bf 30370 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
30371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30373 "RANLIB=$${RANLIB}" \
0c24b341 30374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30375 install-pdf) \
30376 || exit 1
30377
a90ef4bf 30378@endif utils
a3ca38d2 30379
a90ef4bf
JM
30380.PHONY: maybe-install-html-utils install-html-utils
30381maybe-install-html-utils:
30382@if utils
30383maybe-install-html-utils: install-html-utils
108a6f8e 30384
a90ef4bf
JM
30385install-html-utils: \
30386 configure-utils \
30387 html-utils
108a6f8e 30388 @: $(MAKE); $(unstage)
a90ef4bf 30389 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
30390 r=`${PWD_COMMAND}`; export r; \
30391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30392 $(HOST_EXPORTS) \
30393 for flag in $(EXTRA_HOST_FLAGS) ; do \
30394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30395 done; \
22121df0 30396 echo "Doing install-html in utils"; \
a90ef4bf 30397 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
30398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30400 "RANLIB=$${RANLIB}" \
0c24b341 30401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30402 install-html) \
30403 || exit 1
30404
a90ef4bf 30405@endif utils
108a6f8e 30406
a90ef4bf
JM
30407.PHONY: maybe-installcheck-utils installcheck-utils
30408maybe-installcheck-utils:
30409@if utils
30410maybe-installcheck-utils: installcheck-utils
2a4cbe27 30411
a90ef4bf
JM
30412installcheck-utils: \
30413 configure-utils
0aed8855 30414 @: $(MAKE); $(unstage)
a90ef4bf 30415 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30416 r=`${PWD_COMMAND}`; export r; \
30417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30418 $(HOST_EXPORTS) \
b813574b 30419 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30421 done; \
22121df0 30422 echo "Doing installcheck in utils"; \
a90ef4bf 30423 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30426 "RANLIB=$${RANLIB}" \
0c24b341 30427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30428 installcheck) \
2a4cbe27
NN
30429 || exit 1
30430
a90ef4bf 30431@endif utils
2a4cbe27 30432
a90ef4bf
JM
30433.PHONY: maybe-mostlyclean-utils mostlyclean-utils
30434maybe-mostlyclean-utils:
30435@if utils
30436maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 30437
a90ef4bf 30438mostlyclean-utils:
0aed8855 30439 @: $(MAKE); $(unstage)
a90ef4bf 30440 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30441 r=`${PWD_COMMAND}`; export r; \
30442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30443 $(HOST_EXPORTS) \
b813574b 30444 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30446 done; \
22121df0 30447 echo "Doing mostlyclean in utils"; \
a90ef4bf 30448 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30451 "RANLIB=$${RANLIB}" \
0c24b341 30452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30453 mostlyclean) \
2a4cbe27
NN
30454 || exit 1
30455
a90ef4bf 30456@endif utils
2a4cbe27 30457
a90ef4bf
JM
30458.PHONY: maybe-clean-utils clean-utils
30459maybe-clean-utils:
30460@if utils
30461maybe-clean-utils: clean-utils
2a4cbe27 30462
a90ef4bf 30463clean-utils:
0aed8855 30464 @: $(MAKE); $(unstage)
a90ef4bf 30465 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30466 r=`${PWD_COMMAND}`; export r; \
30467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30468 $(HOST_EXPORTS) \
b813574b 30469 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30471 done; \
22121df0 30472 echo "Doing clean in utils"; \
a90ef4bf 30473 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30476 "RANLIB=$${RANLIB}" \
0c24b341 30477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30478 clean) \
2a4cbe27
NN
30479 || exit 1
30480
a90ef4bf 30481@endif utils
2a4cbe27 30482
a90ef4bf
JM
30483.PHONY: maybe-distclean-utils distclean-utils
30484maybe-distclean-utils:
30485@if utils
30486maybe-distclean-utils: distclean-utils
2a4cbe27 30487
a90ef4bf 30488distclean-utils:
0aed8855 30489 @: $(MAKE); $(unstage)
a90ef4bf 30490 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30491 r=`${PWD_COMMAND}`; export r; \
30492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30493 $(HOST_EXPORTS) \
b813574b 30494 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30496 done; \
22121df0 30497 echo "Doing distclean in utils"; \
a90ef4bf 30498 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30501 "RANLIB=$${RANLIB}" \
0c24b341 30502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30503 distclean) \
2a4cbe27
NN
30504 || exit 1
30505
a90ef4bf 30506@endif utils
2a4cbe27 30507
a90ef4bf
JM
30508.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
30509maybe-maintainer-clean-utils:
30510@if utils
30511maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 30512
a90ef4bf 30513maintainer-clean-utils:
0aed8855 30514 @: $(MAKE); $(unstage)
a90ef4bf 30515 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30516 r=`${PWD_COMMAND}`; export r; \
30517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30518 $(HOST_EXPORTS) \
b813574b 30519 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30521 done; \
22121df0 30522 echo "Doing maintainer-clean in utils"; \
a90ef4bf 30523 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30526 "RANLIB=$${RANLIB}" \
0c24b341 30527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30528 maintainer-clean) \
2a4cbe27
NN
30529 || exit 1
30530
a90ef4bf 30531@endif utils
2a4cbe27 30532
2a4cbe27 30533
a7254363 30534
a90ef4bf
JM
30535.PHONY: configure-gnattools maybe-configure-gnattools
30536maybe-configure-gnattools:
4f0ef2d8 30537@if gcc-bootstrap
a90ef4bf 30538configure-gnattools: stage_current
4f0ef2d8 30539@endif gcc-bootstrap
a90ef4bf
JM
30540@if gnattools
30541maybe-configure-gnattools: configure-gnattools
30542configure-gnattools:
0aed8855 30543 @: $(MAKE); $(unstage)
c52c6897 30544 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30546 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
22121df0 30547 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools; \
1f53ca9a 30548 $(HOST_EXPORTS) \
a90ef4bf
JM
30549 echo Configuring in $(HOST_SUBDIR)/gnattools; \
30550 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 30551 case $(srcdir) in \
b00612cc 30552 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30553 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 30554 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30555 esac; \
1b6c0831
L
30556 module_srcdir=gnattools; \
30557 $(SHELL) \
30558 $$s/$$module_srcdir/configure \
30559 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30560 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30561 --target=${target_alias} \
2a4cbe27 30562 || exit 1
a90ef4bf 30563@endif gnattools
2a4cbe27 30564
a7254363
PB
30565
30566
d545f33b
PB
30567
30568
a90ef4bf
JM
30569.PHONY: all-gnattools maybe-all-gnattools
30570maybe-all-gnattools:
4f0ef2d8 30571@if gcc-bootstrap
a90ef4bf 30572all-gnattools: stage_current
4f0ef2d8 30573@endif gcc-bootstrap
a90ef4bf
JM
30574@if gnattools
30575TARGET-gnattools=all
30576maybe-all-gnattools: all-gnattools
30577all-gnattools: configure-gnattools
0aed8855 30578 @: $(MAKE); $(unstage)
4fa63067
NN
30579 @r=`${PWD_COMMAND}`; export r; \
30580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30581 $(HOST_EXPORTS) \
a90ef4bf 30582 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 30583 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30584 $(TARGET-gnattools))
30585@endif gnattools
4fa63067 30586
a7254363 30587
d545f33b
PB
30588
30589
a90ef4bf
JM
30590.PHONY: check-gnattools maybe-check-gnattools
30591maybe-check-gnattools:
30592@if gnattools
30593maybe-check-gnattools: check-gnattools
2a4cbe27 30594
a90ef4bf 30595check-gnattools:
0aed8855 30596 @: $(MAKE); $(unstage)
4fa63067
NN
30597 @r=`${PWD_COMMAND}`; export r; \
30598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30599 $(HOST_EXPORTS) \
a90ef4bf 30600 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 30601 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 30602
a90ef4bf 30603@endif gnattools
4fa63067 30604
a90ef4bf
JM
30605.PHONY: install-gnattools maybe-install-gnattools
30606maybe-install-gnattools:
30607@if gnattools
30608maybe-install-gnattools: install-gnattools
4fa63067 30609
a90ef4bf 30610install-gnattools: installdirs
0aed8855 30611 @: $(MAKE); $(unstage)
4fa63067
NN
30612 @r=`${PWD_COMMAND}`; export r; \
30613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30614 $(HOST_EXPORTS) \
a90ef4bf 30615 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 30616 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 30617
a90ef4bf 30618@endif gnattools
4fa63067 30619
a90ef4bf
JM
30620.PHONY: install-strip-gnattools maybe-install-strip-gnattools
30621maybe-install-strip-gnattools:
30622@if gnattools
30623maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 30624
a90ef4bf 30625install-strip-gnattools: installdirs
9b980aa1
RW
30626 @: $(MAKE); $(unstage)
30627 @r=`${PWD_COMMAND}`; export r; \
30628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30629 $(HOST_EXPORTS) \
a90ef4bf 30630 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
30631 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30632
a90ef4bf 30633@endif gnattools
9b980aa1 30634
56a8fe78 30635# Other targets (info, dvi, pdf, etc.)
4fa63067 30636
a90ef4bf
JM
30637.PHONY: maybe-info-gnattools info-gnattools
30638maybe-info-gnattools:
30639@if gnattools
30640maybe-info-gnattools: info-gnattools
4fa63067 30641
a90ef4bf
JM
30642info-gnattools: \
30643 configure-gnattools
0aed8855 30644 @: $(MAKE); $(unstage)
a90ef4bf 30645 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30646 r=`${PWD_COMMAND}`; export r; \
30647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30648 $(HOST_EXPORTS) \
b813574b 30649 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30651 done; \
22121df0 30652 echo "Doing info in gnattools"; \
a90ef4bf 30653 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30656 "RANLIB=$${RANLIB}" \
0c24b341 30657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30658 info) \
2a4cbe27
NN
30659 || exit 1
30660
a90ef4bf 30661@endif gnattools
2a4cbe27 30662
a90ef4bf
JM
30663.PHONY: maybe-dvi-gnattools dvi-gnattools
30664maybe-dvi-gnattools:
30665@if gnattools
30666maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 30667
a90ef4bf
JM
30668dvi-gnattools: \
30669 configure-gnattools
0aed8855 30670 @: $(MAKE); $(unstage)
a90ef4bf 30671 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30672 r=`${PWD_COMMAND}`; export r; \
30673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30674 $(HOST_EXPORTS) \
b813574b 30675 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30677 done; \
22121df0 30678 echo "Doing dvi in gnattools"; \
a90ef4bf 30679 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30682 "RANLIB=$${RANLIB}" \
0c24b341 30683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30684 dvi) \
2a4cbe27
NN
30685 || exit 1
30686
a90ef4bf 30687@endif gnattools
2a4cbe27 30688
a90ef4bf
JM
30689.PHONY: maybe-pdf-gnattools pdf-gnattools
30690maybe-pdf-gnattools:
30691@if gnattools
30692maybe-pdf-gnattools: pdf-gnattools
56a8fe78 30693
a90ef4bf
JM
30694pdf-gnattools: \
30695 configure-gnattools
56a8fe78 30696 @: $(MAKE); $(unstage)
a90ef4bf 30697 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
30698 r=`${PWD_COMMAND}`; export r; \
30699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30700 $(HOST_EXPORTS) \
30701 for flag in $(EXTRA_HOST_FLAGS) ; do \
30702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30703 done; \
22121df0 30704 echo "Doing pdf in gnattools"; \
a90ef4bf 30705 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
30706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30708 "RANLIB=$${RANLIB}" \
0c24b341 30709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30710 pdf) \
30711 || exit 1
30712
a90ef4bf 30713@endif gnattools
56a8fe78 30714
a90ef4bf
JM
30715.PHONY: maybe-html-gnattools html-gnattools
30716maybe-html-gnattools:
30717@if gnattools
30718maybe-html-gnattools: html-gnattools
6d389afc 30719
a90ef4bf
JM
30720html-gnattools: \
30721 configure-gnattools
0aed8855 30722 @: $(MAKE); $(unstage)
a90ef4bf 30723 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
30724 r=`${PWD_COMMAND}`; export r; \
30725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30726 $(HOST_EXPORTS) \
30727 for flag in $(EXTRA_HOST_FLAGS) ; do \
30728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30729 done; \
22121df0 30730 echo "Doing html in gnattools"; \
a90ef4bf 30731 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
30732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30734 "RANLIB=$${RANLIB}" \
0c24b341 30735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30736 html) \
30737 || exit 1
30738
a90ef4bf 30739@endif gnattools
6d389afc 30740
a90ef4bf
JM
30741.PHONY: maybe-TAGS-gnattools TAGS-gnattools
30742maybe-TAGS-gnattools:
30743@if gnattools
30744maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 30745
a90ef4bf
JM
30746TAGS-gnattools: \
30747 configure-gnattools
0aed8855 30748 @: $(MAKE); $(unstage)
a90ef4bf 30749 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30750 r=`${PWD_COMMAND}`; export r; \
30751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30752 $(HOST_EXPORTS) \
b813574b 30753 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30755 done; \
22121df0 30756 echo "Doing TAGS in gnattools"; \
a90ef4bf 30757 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30760 "RANLIB=$${RANLIB}" \
0c24b341 30761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30762 TAGS) \
2a4cbe27
NN
30763 || exit 1
30764
a90ef4bf 30765@endif gnattools
2a4cbe27 30766
a90ef4bf
JM
30767.PHONY: maybe-install-info-gnattools install-info-gnattools
30768maybe-install-info-gnattools:
30769@if gnattools
30770maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 30771
a90ef4bf
JM
30772install-info-gnattools: \
30773 configure-gnattools \
30774 info-gnattools
0aed8855 30775 @: $(MAKE); $(unstage)
a90ef4bf 30776 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30777 r=`${PWD_COMMAND}`; export r; \
30778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30779 $(HOST_EXPORTS) \
b813574b 30780 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30782 done; \
22121df0 30783 echo "Doing install-info in gnattools"; \
a90ef4bf 30784 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30787 "RANLIB=$${RANLIB}" \
0c24b341 30788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30789 install-info) \
2a4cbe27
NN
30790 || exit 1
30791
a90ef4bf 30792@endif gnattools
2a4cbe27 30793
a90ef4bf
JM
30794.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
30795maybe-install-pdf-gnattools:
30796@if gnattools
30797maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 30798
a90ef4bf
JM
30799install-pdf-gnattools: \
30800 configure-gnattools \
30801 pdf-gnattools
a3ca38d2 30802 @: $(MAKE); $(unstage)
a90ef4bf 30803 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
30804 r=`${PWD_COMMAND}`; export r; \
30805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30806 $(HOST_EXPORTS) \
30807 for flag in $(EXTRA_HOST_FLAGS) ; do \
30808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30809 done; \
22121df0 30810 echo "Doing install-pdf in gnattools"; \
a90ef4bf 30811 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
30812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30814 "RANLIB=$${RANLIB}" \
0c24b341 30815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30816 install-pdf) \
30817 || exit 1
30818
a90ef4bf 30819@endif gnattools
a3ca38d2 30820
a90ef4bf
JM
30821.PHONY: maybe-install-html-gnattools install-html-gnattools
30822maybe-install-html-gnattools:
30823@if gnattools
30824maybe-install-html-gnattools: install-html-gnattools
108a6f8e 30825
a90ef4bf
JM
30826install-html-gnattools: \
30827 configure-gnattools \
30828 html-gnattools
108a6f8e 30829 @: $(MAKE); $(unstage)
a90ef4bf 30830 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
30831 r=`${PWD_COMMAND}`; export r; \
30832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30833 $(HOST_EXPORTS) \
30834 for flag in $(EXTRA_HOST_FLAGS) ; do \
30835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30836 done; \
22121df0 30837 echo "Doing install-html in gnattools"; \
a90ef4bf 30838 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
30839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30841 "RANLIB=$${RANLIB}" \
0c24b341 30842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30843 install-html) \
30844 || exit 1
30845
a90ef4bf 30846@endif gnattools
108a6f8e 30847
a90ef4bf
JM
30848.PHONY: maybe-installcheck-gnattools installcheck-gnattools
30849maybe-installcheck-gnattools:
30850@if gnattools
30851maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 30852
a90ef4bf
JM
30853installcheck-gnattools: \
30854 configure-gnattools
0aed8855 30855 @: $(MAKE); $(unstage)
a90ef4bf 30856 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30857 r=`${PWD_COMMAND}`; export r; \
30858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30859 $(HOST_EXPORTS) \
b813574b 30860 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30862 done; \
22121df0 30863 echo "Doing installcheck in gnattools"; \
a90ef4bf 30864 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30867 "RANLIB=$${RANLIB}" \
0c24b341 30868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30869 installcheck) \
2a4cbe27
NN
30870 || exit 1
30871
a90ef4bf 30872@endif gnattools
2a4cbe27 30873
a90ef4bf
JM
30874.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
30875maybe-mostlyclean-gnattools:
30876@if gnattools
30877maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 30878
a90ef4bf 30879mostlyclean-gnattools:
0aed8855 30880 @: $(MAKE); $(unstage)
a90ef4bf 30881 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30882 r=`${PWD_COMMAND}`; export r; \
30883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30884 $(HOST_EXPORTS) \
b813574b 30885 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30887 done; \
22121df0 30888 echo "Doing mostlyclean in gnattools"; \
a90ef4bf 30889 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30892 "RANLIB=$${RANLIB}" \
0c24b341 30893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30894 mostlyclean) \
2a4cbe27
NN
30895 || exit 1
30896
a90ef4bf 30897@endif gnattools
2a4cbe27 30898
a90ef4bf
JM
30899.PHONY: maybe-clean-gnattools clean-gnattools
30900maybe-clean-gnattools:
30901@if gnattools
30902maybe-clean-gnattools: clean-gnattools
2a4cbe27 30903
a90ef4bf 30904clean-gnattools:
0aed8855 30905 @: $(MAKE); $(unstage)
a90ef4bf 30906 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30907 r=`${PWD_COMMAND}`; export r; \
30908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30909 $(HOST_EXPORTS) \
b813574b 30910 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30912 done; \
22121df0 30913 echo "Doing clean in gnattools"; \
a90ef4bf 30914 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30917 "RANLIB=$${RANLIB}" \
0c24b341 30918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30919 clean) \
2a4cbe27
NN
30920 || exit 1
30921
a90ef4bf 30922@endif gnattools
2a4cbe27 30923
a90ef4bf
JM
30924.PHONY: maybe-distclean-gnattools distclean-gnattools
30925maybe-distclean-gnattools:
30926@if gnattools
30927maybe-distclean-gnattools: distclean-gnattools
a2592b1b 30928
a90ef4bf 30929distclean-gnattools:
0aed8855 30930 @: $(MAKE); $(unstage)
a90ef4bf 30931 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
30932 r=`${PWD_COMMAND}`; export r; \
30933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30934 $(HOST_EXPORTS) \
b813574b 30935 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
30936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30937 done; \
22121df0 30938 echo "Doing distclean in gnattools"; \
a90ef4bf 30939 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
30940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30942 "RANLIB=$${RANLIB}" \
0c24b341 30943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30944 distclean) \
a2592b1b
DD
30945 || exit 1
30946
a90ef4bf 30947@endif gnattools
a2592b1b 30948
a90ef4bf
JM
30949.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
30950maybe-maintainer-clean-gnattools:
30951@if gnattools
30952maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 30953
a90ef4bf 30954maintainer-clean-gnattools:
0aed8855 30955 @: $(MAKE); $(unstage)
a90ef4bf 30956 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 30957 r=`${PWD_COMMAND}`; export r; \
b40e3958 30958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30959 $(HOST_EXPORTS) \
b813574b 30960 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30962 done; \
22121df0 30963 echo "Doing maintainer-clean in gnattools"; \
a90ef4bf 30964 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
30965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30967 "RANLIB=$${RANLIB}" \
0c24b341 30968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30969 maintainer-clean) \
4fa63067 30970 || exit 1
252b5132 30971
a90ef4bf 30972@endif gnattools
252b5132 30973
252b5132 30974
a7254363 30975
a90ef4bf
JM
30976.PHONY: configure-lto-plugin maybe-configure-lto-plugin
30977maybe-configure-lto-plugin:
4f0ef2d8 30978@if gcc-bootstrap
a90ef4bf 30979configure-lto-plugin: stage_current
4f0ef2d8 30980@endif gcc-bootstrap
a90ef4bf
JM
30981@if lto-plugin
30982maybe-configure-lto-plugin: configure-lto-plugin
30983configure-lto-plugin:
c52c6897 30984 @r=`${PWD_COMMAND}`; export r; \
b813574b 30985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30986 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
22121df0 30987 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
1f53ca9a 30988 $(HOST_EXPORTS) \
a90ef4bf
JM
30989 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
30990 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 30991 case $(srcdir) in \
b00612cc 30992 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30993 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 30994 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30995 esac; \
1b6c0831
L
30996 module_srcdir=lto-plugin; \
30997 $(SHELL) \
30998 $$s/$$module_srcdir/configure \
30999 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31000 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31001 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 31002 || exit 1
a90ef4bf 31003@endif lto-plugin
a7254363 31004
d545f33b
PB
31005
31006
a90ef4bf
JM
31007.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
31008maybe-configure-stage1-lto-plugin:
31009@if lto-plugin-bootstrap
31010maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
31011configure-stage1-lto-plugin:
31012 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31013 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31014 @r=`${PWD_COMMAND}`; export r; \
31015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31016 TFLAGS="$(STAGE1_TFLAGS)"; \
31017 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
31018 $(HOST_EXPORTS) \
31019 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
31020 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
31021 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
31022 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin; \
31023 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31024 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31025 case $(srcdir) in \
31026 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31027 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31028 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31029 esac; \
1b6c0831
L
31030 module_srcdir=lto-plugin; \
31031 $(SHELL) $$s/$$module_srcdir/configure \
31032 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31033 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
31034 --target=${target_alias} \
31035 \
a90ef4bf 31036 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 31037 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31038@endif lto-plugin-bootstrap
252b5132 31039
a90ef4bf
JM
31040.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
31041maybe-configure-stage2-lto-plugin:
31042@if lto-plugin-bootstrap
31043maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
31044configure-stage2-lto-plugin:
31045 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31046 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
31047 @r=`${PWD_COMMAND}`; export r; \
31048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31049 TFLAGS="$(STAGE2_TFLAGS)"; \
31050 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 31051 $(HOST_EXPORTS) \
a90ef4bf
JM
31052 $(POSTSTAGE1_HOST_EXPORTS) \
31053 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
31054 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
31055 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31056 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin; \
31057 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31058 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31059 case $(srcdir) in \
31060 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31061 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31062 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31063 esac; \
1b6c0831
L
31064 module_srcdir=lto-plugin; \
31065 $(SHELL) $$s/$$module_srcdir/configure \
31066 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31067 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31068 --target=${target_alias} \
22121df0 31069 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31070 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 31071 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31072@endif lto-plugin-bootstrap
4fa63067 31073
a90ef4bf
JM
31074.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
31075maybe-configure-stage3-lto-plugin:
31076@if lto-plugin-bootstrap
31077maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
31078configure-stage3-lto-plugin:
31079 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31080 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31081 @r=`${PWD_COMMAND}`; export r; \
31082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31083 TFLAGS="$(STAGE3_TFLAGS)"; \
31084 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31085 $(HOST_EXPORTS) \
a90ef4bf
JM
31086 $(POSTSTAGE1_HOST_EXPORTS) \
31087 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
31088 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
31089 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31090 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin; \
31091 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31092 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31093 case $(srcdir) in \
31094 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31095 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31096 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31097 esac; \
1b6c0831
L
31098 module_srcdir=lto-plugin; \
31099 $(SHELL) $$s/$$module_srcdir/configure \
31100 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31101 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31102 --target=${target_alias} \
22121df0 31103 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31104 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 31105 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31106@endif lto-plugin-bootstrap
9b980aa1 31107
a90ef4bf
JM
31108.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
31109maybe-configure-stage4-lto-plugin:
31110@if lto-plugin-bootstrap
31111maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
31112configure-stage4-lto-plugin:
31113 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31114 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
31115 @r=`${PWD_COMMAND}`; export r; \
31116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31117 TFLAGS="$(STAGE4_TFLAGS)"; \
31118 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 31119 $(HOST_EXPORTS) \
a90ef4bf
JM
31120 $(POSTSTAGE1_HOST_EXPORTS) \
31121 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
31122 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
31123 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31124 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin; \
31125 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31126 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31127 case $(srcdir) in \
31128 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31129 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31130 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31131 esac; \
1b6c0831
L
31132 module_srcdir=lto-plugin; \
31133 $(SHELL) $$s/$$module_srcdir/configure \
31134 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31135 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31136 --target=${target_alias} \
22121df0 31137 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31138 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 31139 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31140@endif lto-plugin-bootstrap
4fa63067 31141
a90ef4bf
JM
31142.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
31143maybe-configure-stageprofile-lto-plugin:
31144@if lto-plugin-bootstrap
31145maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31146configure-stageprofile-lto-plugin:
31147 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31148 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31149 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31151 TFLAGS="$(STAGEprofile_TFLAGS)"; \
31152 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31153 $(HOST_EXPORTS) \
a90ef4bf
JM
31154 $(POSTSTAGE1_HOST_EXPORTS) \
31155 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
31156 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
31157 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31158 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin; \
31159 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31160 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31161 case $(srcdir) in \
31162 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31163 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31164 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31165 esac; \
1b6c0831
L
31166 module_srcdir=lto-plugin; \
31167 $(SHELL) $$s/$$module_srcdir/configure \
31168 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31169 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31170 --target=${target_alias} \
22121df0 31171 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31172 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 31173 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31174@endif lto-plugin-bootstrap
4fa63067 31175
a90ef4bf
JM
31176.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
31177maybe-configure-stagefeedback-lto-plugin:
31178@if lto-plugin-bootstrap
31179maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31180configure-stagefeedback-lto-plugin:
31181 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31182 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31183 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31185 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
31186 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31187 $(HOST_EXPORTS) \
a90ef4bf
JM
31188 $(POSTSTAGE1_HOST_EXPORTS) \
31189 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
31190 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
31191 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31192 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin; \
31193 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31194 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31195 case $(srcdir) in \
31196 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31197 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31198 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31199 esac; \
1b6c0831
L
31200 module_srcdir=lto-plugin; \
31201 $(SHELL) $$s/$$module_srcdir/configure \
31202 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31203 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31204 --target=${target_alias} \
22121df0 31205 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31206 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 31207 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31208@endif lto-plugin-bootstrap
252b5132 31209
56a8fe78 31210
56a8fe78 31211
56a8fe78 31212
6d389afc 31213
a90ef4bf
JM
31214.PHONY: all-lto-plugin maybe-all-lto-plugin
31215maybe-all-lto-plugin:
31216@if gcc-bootstrap
31217all-lto-plugin: stage_current
31218@endif gcc-bootstrap
31219@if lto-plugin
31220TARGET-lto-plugin=all
31221maybe-all-lto-plugin: all-lto-plugin
31222all-lto-plugin: configure-lto-plugin
31223 @r=`${PWD_COMMAND}`; export r; \
6d389afc 31224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31225 $(HOST_EXPORTS) \
31226 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31227 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31228 $(TARGET-lto-plugin))
31229@endif lto-plugin
6d389afc 31230
6d389afc 31231
252b5132 31232
a90ef4bf
JM
31233.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
31234.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
31235maybe-all-stage1-lto-plugin:
31236maybe-clean-stage1-lto-plugin:
31237@if lto-plugin-bootstrap
31238maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
31239all-stage1: all-stage1-lto-plugin
31240TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
31241all-stage1-lto-plugin: configure-stage1-lto-plugin
31242 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31243 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31245 TFLAGS="$(STAGE1_TFLAGS)"; \
31246 $(HOST_EXPORTS) \
31247 cd $(HOST_SUBDIR)/lto-plugin && \
31248 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31249 CFLAGS="$(STAGE1_CFLAGS)" \
31250 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
31251 LIBCFLAGS="$(LIBCFLAGS)" \
31252 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31253 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31254 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 31255 $(EXTRA_HOST_FLAGS) \
1b6c0831 31256 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31257 TFLAGS="$(STAGE1_TFLAGS)" \
31258 $(TARGET-stage1-lto-plugin)
3866be5d 31259
a90ef4bf
JM
31260maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
31261clean-stage1: clean-stage1-lto-plugin
31262clean-stage1-lto-plugin:
31263 @if [ $(current_stage) = stage1 ]; then \
31264 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31265 else \
31266 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
31267 $(MAKE) stage1-start; \
31268 fi; \
31269 cd $(HOST_SUBDIR)/lto-plugin && \
31270 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 31271 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31272@endif lto-plugin-bootstrap
3866be5d 31273
3866be5d 31274
a90ef4bf
JM
31275.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
31276.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
31277maybe-all-stage2-lto-plugin:
31278maybe-clean-stage2-lto-plugin:
31279@if lto-plugin-bootstrap
31280maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
31281all-stage2: all-stage2-lto-plugin
31282TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
31283all-stage2-lto-plugin: configure-stage2-lto-plugin
31284 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31285 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31287 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 31288 $(HOST_EXPORTS) \
a90ef4bf
JM
31289 $(POSTSTAGE1_HOST_EXPORTS) \
31290 cd $(HOST_SUBDIR)/lto-plugin && \
31291 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31292 CFLAGS="$(STAGE2_CFLAGS)" \
31293 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
31294 LIBCFLAGS="$(STAGE2_CFLAGS)" \
31295 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31296 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31297 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31298 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31299 TFLAGS="$(STAGE2_TFLAGS)" \
31300 $(TARGET-stage2-lto-plugin)
3866be5d 31301
a90ef4bf
JM
31302maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
31303clean-stage2: clean-stage2-lto-plugin
31304clean-stage2-lto-plugin:
31305 @if [ $(current_stage) = stage2 ]; then \
31306 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31307 else \
31308 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
31309 $(MAKE) stage2-start; \
31310 fi; \
31311 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31312 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31313@endif lto-plugin-bootstrap
3866be5d 31314
a3ca38d2 31315
a90ef4bf
JM
31316.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
31317.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
31318maybe-all-stage3-lto-plugin:
31319maybe-clean-stage3-lto-plugin:
31320@if lto-plugin-bootstrap
31321maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
31322all-stage3: all-stage3-lto-plugin
31323TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
31324all-stage3-lto-plugin: configure-stage3-lto-plugin
31325 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31326 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 31327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31328 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 31329 $(HOST_EXPORTS) \
a90ef4bf
JM
31330 $(POSTSTAGE1_HOST_EXPORTS) \
31331 cd $(HOST_SUBDIR)/lto-plugin && \
31332 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31333 CFLAGS="$(STAGE3_CFLAGS)" \
31334 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
31335 LIBCFLAGS="$(STAGE3_CFLAGS)" \
31336 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31337 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31338 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31339 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31340 TFLAGS="$(STAGE3_TFLAGS)" \
31341 $(TARGET-stage3-lto-plugin)
a3ca38d2 31342
a90ef4bf
JM
31343maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
31344clean-stage3: clean-stage3-lto-plugin
31345clean-stage3-lto-plugin:
31346 @if [ $(current_stage) = stage3 ]; then \
31347 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31348 else \
31349 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
31350 $(MAKE) stage3-start; \
31351 fi; \
31352 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31353 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31354@endif lto-plugin-bootstrap
a3ca38d2 31355
108a6f8e 31356
a90ef4bf
JM
31357.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
31358.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
31359maybe-all-stage4-lto-plugin:
31360maybe-clean-stage4-lto-plugin:
31361@if lto-plugin-bootstrap
31362maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
31363all-stage4: all-stage4-lto-plugin
31364TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
31365all-stage4-lto-plugin: configure-stage4-lto-plugin
31366 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31367 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 31368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31369 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 31370 $(HOST_EXPORTS) \
a90ef4bf
JM
31371 $(POSTSTAGE1_HOST_EXPORTS) \
31372 cd $(HOST_SUBDIR)/lto-plugin && \
31373 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31374 CFLAGS="$(STAGE4_CFLAGS)" \
31375 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
31376 LIBCFLAGS="$(STAGE4_CFLAGS)" \
31377 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31378 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31379 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31380 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31381 TFLAGS="$(STAGE4_TFLAGS)" \
31382 $(TARGET-stage4-lto-plugin)
108a6f8e 31383
a90ef4bf
JM
31384maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
31385clean-stage4: clean-stage4-lto-plugin
31386clean-stage4-lto-plugin:
31387 @if [ $(current_stage) = stage4 ]; then \
31388 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31389 else \
31390 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
31391 $(MAKE) stage4-start; \
31392 fi; \
31393 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31394 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31395@endif lto-plugin-bootstrap
4fa63067 31396
4fa63067 31397
a90ef4bf
JM
31398.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
31399.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
31400maybe-all-stageprofile-lto-plugin:
31401maybe-clean-stageprofile-lto-plugin:
31402@if lto-plugin-bootstrap
31403maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
31404all-stageprofile: all-stageprofile-lto-plugin
31405TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
31406all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31407 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31408 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31410 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 31411 $(HOST_EXPORTS) \
a90ef4bf
JM
31412 $(POSTSTAGE1_HOST_EXPORTS) \
31413 cd $(HOST_SUBDIR)/lto-plugin && \
31414 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31415 CFLAGS="$(STAGEprofile_CFLAGS)" \
31416 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
31417 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
31418 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31419 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31420 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31421 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31422 TFLAGS="$(STAGEprofile_TFLAGS)" \
31423 $(TARGET-stageprofile-lto-plugin)
4fa63067 31424
a90ef4bf
JM
31425maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
31426clean-stageprofile: clean-stageprofile-lto-plugin
31427clean-stageprofile-lto-plugin:
31428 @if [ $(current_stage) = stageprofile ]; then \
31429 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31430 else \
31431 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
31432 $(MAKE) stageprofile-start; \
31433 fi; \
31434 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31435 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31436@endif lto-plugin-bootstrap
4fa63067 31437
4fa63067 31438
a90ef4bf
JM
31439.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
31440.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
31441maybe-all-stagefeedback-lto-plugin:
31442maybe-clean-stagefeedback-lto-plugin:
31443@if lto-plugin-bootstrap
31444maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
31445all-stagefeedback: all-stagefeedback-lto-plugin
31446TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
31447all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31448 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31449 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31451 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 31452 $(HOST_EXPORTS) \
a90ef4bf
JM
31453 $(POSTSTAGE1_HOST_EXPORTS) \
31454 cd $(HOST_SUBDIR)/lto-plugin && \
31455 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31456 CFLAGS="$(STAGEfeedback_CFLAGS)" \
31457 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
31458 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
31459 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31460 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31461 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31462 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31463 TFLAGS="$(STAGEfeedback_TFLAGS)" \
31464 $(TARGET-stagefeedback-lto-plugin)
3866be5d 31465
a90ef4bf
JM
31466maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
31467clean-stagefeedback: clean-stagefeedback-lto-plugin
31468clean-stagefeedback-lto-plugin:
31469 @if [ $(current_stage) = stagefeedback ]; then \
31470 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31471 else \
31472 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
31473 $(MAKE) stagefeedback-start; \
31474 fi; \
31475 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31476 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31477@endif lto-plugin-bootstrap
a7254363 31478
e2b9e2dc 31479
a7254363
PB
31480
31481
d545f33b 31482
a90ef4bf
JM
31483.PHONY: check-lto-plugin maybe-check-lto-plugin
31484maybe-check-lto-plugin:
31485@if lto-plugin
31486maybe-check-lto-plugin: check-lto-plugin
d545f33b 31487
a90ef4bf 31488check-lto-plugin:
0aed8855 31489 @: $(MAKE); $(unstage)
b40e3958
L
31490 @r=`${PWD_COMMAND}`; export r; \
31491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31492 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 31493 (cd $(HOST_SUBDIR)/lto-plugin && \
f91ca6bc 31494 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
3866be5d 31495
a90ef4bf 31496@endif lto-plugin
3866be5d 31497
a90ef4bf
JM
31498.PHONY: install-lto-plugin maybe-install-lto-plugin
31499maybe-install-lto-plugin:
31500@if lto-plugin
31501maybe-install-lto-plugin: install-lto-plugin
4fa63067 31502
a90ef4bf 31503install-lto-plugin: installdirs
0aed8855 31504 @: $(MAKE); $(unstage)
4fa63067
NN
31505 @r=`${PWD_COMMAND}`; export r; \
31506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31507 $(HOST_EXPORTS) \
a90ef4bf 31508 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31509 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 31510
a90ef4bf 31511@endif lto-plugin
4fa63067 31512
a90ef4bf
JM
31513.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
31514maybe-install-strip-lto-plugin:
31515@if lto-plugin
31516maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 31517
a90ef4bf 31518install-strip-lto-plugin: installdirs
9b980aa1
RW
31519 @: $(MAKE); $(unstage)
31520 @r=`${PWD_COMMAND}`; export r; \
31521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31522 $(HOST_EXPORTS) \
a90ef4bf 31523 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31524 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 31525
a90ef4bf 31526@endif lto-plugin
9b980aa1 31527
56a8fe78 31528# Other targets (info, dvi, pdf, etc.)
4fa63067 31529
a90ef4bf
JM
31530.PHONY: maybe-info-lto-plugin info-lto-plugin
31531maybe-info-lto-plugin:
31532@if lto-plugin
31533maybe-info-lto-plugin: info-lto-plugin
4fa63067 31534
a90ef4bf
JM
31535info-lto-plugin: \
31536 configure-lto-plugin
31537 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31538 r=`${PWD_COMMAND}`; export r; \
31539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31540 $(HOST_EXPORTS) \
1b6c0831 31541 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31543 done; \
22121df0 31544 echo "Doing info in lto-plugin"; \
a90ef4bf 31545 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31548 "RANLIB=$${RANLIB}" \
0c24b341 31549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31550 info) \
4fa63067
NN
31551 || exit 1
31552
a90ef4bf 31553@endif lto-plugin
4fa63067 31554
a90ef4bf
JM
31555.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
31556maybe-dvi-lto-plugin:
31557@if lto-plugin
31558maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 31559
a90ef4bf
JM
31560dvi-lto-plugin: \
31561 configure-lto-plugin
31562 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31563 r=`${PWD_COMMAND}`; export r; \
31564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31565 $(HOST_EXPORTS) \
1b6c0831 31566 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31568 done; \
22121df0 31569 echo "Doing dvi in lto-plugin"; \
a90ef4bf 31570 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31573 "RANLIB=$${RANLIB}" \
0c24b341 31574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31575 dvi) \
4fa63067
NN
31576 || exit 1
31577
a90ef4bf 31578@endif lto-plugin
4fa63067 31579
a90ef4bf
JM
31580.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
31581maybe-pdf-lto-plugin:
31582@if lto-plugin
31583maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 31584
a90ef4bf
JM
31585pdf-lto-plugin: \
31586 configure-lto-plugin
31587 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
31588 r=`${PWD_COMMAND}`; export r; \
31589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31590 $(HOST_EXPORTS) \
1b6c0831 31591 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
31592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31593 done; \
22121df0 31594 echo "Doing pdf in lto-plugin"; \
a90ef4bf 31595 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
31596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31598 "RANLIB=$${RANLIB}" \
0c24b341 31599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31600 pdf) \
31601 || exit 1
31602
a90ef4bf 31603@endif lto-plugin
56a8fe78 31604
a90ef4bf
JM
31605.PHONY: maybe-html-lto-plugin html-lto-plugin
31606maybe-html-lto-plugin:
31607@if lto-plugin
31608maybe-html-lto-plugin: html-lto-plugin
6d389afc 31609
a90ef4bf
JM
31610html-lto-plugin: \
31611 configure-lto-plugin
31612 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
31613 r=`${PWD_COMMAND}`; export r; \
31614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 31615 $(HOST_EXPORTS) \
1b6c0831 31616 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
31617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31618 done; \
22121df0 31619 echo "Doing html in lto-plugin"; \
a90ef4bf 31620 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
31621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31623 "RANLIB=$${RANLIB}" \
0c24b341 31624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31625 html) \
31626 || exit 1
31627
a90ef4bf 31628@endif lto-plugin
6d389afc 31629
a90ef4bf
JM
31630.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
31631maybe-TAGS-lto-plugin:
31632@if lto-plugin
31633maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 31634
a90ef4bf
JM
31635TAGS-lto-plugin: \
31636 configure-lto-plugin
31637 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31638 r=`${PWD_COMMAND}`; export r; \
31639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31640 $(HOST_EXPORTS) \
1b6c0831 31641 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31643 done; \
22121df0 31644 echo "Doing TAGS in lto-plugin"; \
a90ef4bf 31645 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31648 "RANLIB=$${RANLIB}" \
0c24b341 31649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31650 TAGS) \
4fa63067
NN
31651 || exit 1
31652
a90ef4bf 31653@endif lto-plugin
4fa63067 31654
a90ef4bf
JM
31655.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
31656maybe-install-info-lto-plugin:
31657@if lto-plugin
31658maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 31659
a90ef4bf
JM
31660install-info-lto-plugin: \
31661 configure-lto-plugin \
31662 info-lto-plugin
31663 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31664 r=`${PWD_COMMAND}`; export r; \
31665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31666 $(HOST_EXPORTS) \
1b6c0831 31667 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31669 done; \
22121df0 31670 echo "Doing install-info in lto-plugin"; \
a90ef4bf 31671 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31674 "RANLIB=$${RANLIB}" \
0c24b341 31675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31676 install-info) \
4fa63067
NN
31677 || exit 1
31678
a90ef4bf 31679@endif lto-plugin
4fa63067 31680
a90ef4bf
JM
31681.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
31682maybe-install-pdf-lto-plugin:
31683@if lto-plugin
31684maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 31685
a90ef4bf
JM
31686install-pdf-lto-plugin: \
31687 configure-lto-plugin \
31688 pdf-lto-plugin
31689 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
31690 r=`${PWD_COMMAND}`; export r; \
31691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31692 $(HOST_EXPORTS) \
1b6c0831 31693 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
31694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31695 done; \
22121df0 31696 echo "Doing install-pdf in lto-plugin"; \
a90ef4bf 31697 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
31698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31700 "RANLIB=$${RANLIB}" \
0c24b341 31701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31702 install-pdf) \
31703 || exit 1
31704
a90ef4bf 31705@endif lto-plugin
a3ca38d2 31706
a90ef4bf
JM
31707.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
31708maybe-install-html-lto-plugin:
31709@if lto-plugin
31710maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 31711
a90ef4bf
JM
31712install-html-lto-plugin: \
31713 configure-lto-plugin \
31714 html-lto-plugin
31715 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
31716 r=`${PWD_COMMAND}`; export r; \
31717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31718 $(HOST_EXPORTS) \
1b6c0831 31719 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
31720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31721 done; \
22121df0 31722 echo "Doing install-html in lto-plugin"; \
a90ef4bf 31723 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
31724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31726 "RANLIB=$${RANLIB}" \
0c24b341 31727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31728 install-html) \
31729 || exit 1
31730
a90ef4bf 31731@endif lto-plugin
108a6f8e 31732
a90ef4bf
JM
31733.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
31734maybe-installcheck-lto-plugin:
31735@if lto-plugin
31736maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 31737
a90ef4bf
JM
31738installcheck-lto-plugin: \
31739 configure-lto-plugin
31740 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31741 r=`${PWD_COMMAND}`; export r; \
31742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31743 $(HOST_EXPORTS) \
1b6c0831 31744 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31746 done; \
22121df0 31747 echo "Doing installcheck in lto-plugin"; \
a90ef4bf 31748 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31751 "RANLIB=$${RANLIB}" \
0c24b341 31752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31753 installcheck) \
4fa63067
NN
31754 || exit 1
31755
a90ef4bf 31756@endif lto-plugin
4fa63067 31757
a90ef4bf
JM
31758.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
31759maybe-mostlyclean-lto-plugin:
31760@if lto-plugin
31761maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 31762
a90ef4bf
JM
31763mostlyclean-lto-plugin:
31764 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31765 r=`${PWD_COMMAND}`; export r; \
31766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31767 $(HOST_EXPORTS) \
1b6c0831 31768 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31770 done; \
22121df0 31771 echo "Doing mostlyclean in lto-plugin"; \
a90ef4bf 31772 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31775 "RANLIB=$${RANLIB}" \
0c24b341 31776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31777 mostlyclean) \
4fa63067
NN
31778 || exit 1
31779
a90ef4bf 31780@endif lto-plugin
4fa63067 31781
a90ef4bf
JM
31782.PHONY: maybe-clean-lto-plugin clean-lto-plugin
31783maybe-clean-lto-plugin:
31784@if lto-plugin
31785maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 31786
a90ef4bf
JM
31787clean-lto-plugin:
31788 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31789 r=`${PWD_COMMAND}`; export r; \
31790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31791 $(HOST_EXPORTS) \
1b6c0831 31792 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31794 done; \
22121df0 31795 echo "Doing clean in lto-plugin"; \
a90ef4bf 31796 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31799 "RANLIB=$${RANLIB}" \
0c24b341 31800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31801 clean) \
4fa63067
NN
31802 || exit 1
31803
a90ef4bf 31804@endif lto-plugin
4fa63067 31805
a90ef4bf
JM
31806.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
31807maybe-distclean-lto-plugin:
31808@if lto-plugin
31809maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 31810
a90ef4bf
JM
31811distclean-lto-plugin:
31812 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31813 r=`${PWD_COMMAND}`; export r; \
31814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31815 $(HOST_EXPORTS) \
1b6c0831 31816 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31818 done; \
22121df0 31819 echo "Doing distclean in lto-plugin"; \
a90ef4bf 31820 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31823 "RANLIB=$${RANLIB}" \
0c24b341 31824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31825 distclean) \
4fa63067
NN
31826 || exit 1
31827
a90ef4bf 31828@endif lto-plugin
4fa63067 31829
a90ef4bf
JM
31830.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
31831maybe-maintainer-clean-lto-plugin:
31832@if lto-plugin
31833maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 31834
a90ef4bf
JM
31835maintainer-clean-lto-plugin:
31836 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31837 r=`${PWD_COMMAND}`; export r; \
31838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31839 $(HOST_EXPORTS) \
1b6c0831 31840 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31842 done; \
22121df0 31843 echo "Doing maintainer-clean in lto-plugin"; \
a90ef4bf 31844 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31847 "RANLIB=$${RANLIB}" \
0c24b341 31848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31849 maintainer-clean) \
4fa63067 31850 || exit 1
16ae0395 31851
a90ef4bf
JM
31852@endif lto-plugin
31853
31854
31855
1b6c0831
L
31856.PHONY: configure-libcc1 maybe-configure-libcc1
31857maybe-configure-libcc1:
4f0ef2d8 31858@if gcc-bootstrap
1b6c0831 31859configure-libcc1: stage_current
4f0ef2d8 31860@endif gcc-bootstrap
1b6c0831
L
31861@if libcc1
31862maybe-configure-libcc1: configure-libcc1
31863configure-libcc1:
31864 @: $(MAKE); $(unstage)
c52c6897 31865 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 31867 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
22121df0 31868 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \
1b6c0831
L
31869 $(HOST_EXPORTS) \
31870 echo Configuring in $(HOST_SUBDIR)/libcc1; \
31871 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 31872 case $(srcdir) in \
b00612cc 31873 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 31874 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 31875 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 31876 esac; \
1b6c0831
L
31877 module_srcdir=libcc1; \
31878 $(SHELL) \
31879 $$s/$$module_srcdir/configure \
31880 --srcdir=$${topdir}/$$module_srcdir \
31881 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31882 --target=${target_alias} --enable-shared \
e2b9e2dc 31883 || exit 1
1b6c0831 31884@endif libcc1
d545f33b
PB
31885
31886
3866be5d 31887
16ae0395 31888
9b980aa1 31889
1b6c0831
L
31890.PHONY: all-libcc1 maybe-all-libcc1
31891maybe-all-libcc1:
31892@if gcc-bootstrap
31893all-libcc1: stage_current
31894@endif gcc-bootstrap
31895@if libcc1
31896TARGET-libcc1=all
31897maybe-all-libcc1: all-libcc1
31898all-libcc1: configure-libcc1
31899 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31900 @r=`${PWD_COMMAND}`; export r; \
31901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31902 $(HOST_EXPORTS) \
31903 (cd $(HOST_SUBDIR)/libcc1 && \
31904 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
31905 $(TARGET-libcc1))
31906@endif libcc1
e8a5fa9c 31907
1b6c0831
L
31908
31909
31910
31911.PHONY: check-libcc1 maybe-check-libcc1
31912maybe-check-libcc1:
31913@if libcc1
31914maybe-check-libcc1: check-libcc1
31915
31916check-libcc1:
31917 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31918 @r=`${PWD_COMMAND}`; export r; \
31919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31920 $(HOST_EXPORTS) \
1b6c0831
L
31921 (cd $(HOST_SUBDIR)/libcc1 && \
31922 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 31923
1b6c0831
L
31924@endif libcc1
31925
31926.PHONY: install-libcc1 maybe-install-libcc1
31927maybe-install-libcc1:
31928@if libcc1
31929maybe-install-libcc1: install-libcc1
31930
31931install-libcc1: installdirs
31932 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31933 @r=`${PWD_COMMAND}`; export r; \
31934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31935 $(HOST_EXPORTS) \
31936 (cd $(HOST_SUBDIR)/libcc1 && \
31937 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 31938
1b6c0831
L
31939@endif libcc1
31940
31941.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
31942maybe-install-strip-libcc1:
31943@if libcc1
31944maybe-install-strip-libcc1: install-strip-libcc1
31945
31946install-strip-libcc1: installdirs
31947 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31948 @r=`${PWD_COMMAND}`; export r; \
31949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31950 $(HOST_EXPORTS) \
31951 (cd $(HOST_SUBDIR)/libcc1 && \
31952 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 31953
1b6c0831 31954@endif libcc1
e8a5fa9c 31955
1b6c0831 31956# Other targets (info, dvi, pdf, etc.)
d545f33b 31957
1b6c0831
L
31958.PHONY: maybe-info-libcc1 info-libcc1
31959maybe-info-libcc1:
31960@if libcc1
31961maybe-info-libcc1: info-libcc1
d545f33b 31962
1b6c0831
L
31963info-libcc1: \
31964 configure-libcc1
31965 @: $(MAKE); $(unstage)
31966 @[ -f ./libcc1/Makefile ] || exit 0; \
31967 r=`${PWD_COMMAND}`; export r; \
b40e3958 31968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31969 $(HOST_EXPORTS) \
31970 for flag in $(EXTRA_HOST_FLAGS) ; do \
31971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31972 done; \
22121df0 31973 echo "Doing info in libcc1"; \
1b6c0831
L
31974 (cd $(HOST_SUBDIR)/libcc1 && \
31975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31977 "RANLIB=$${RANLIB}" \
31978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31979 info) \
31980 || exit 1
3866be5d 31981
1b6c0831 31982@endif libcc1
a7254363 31983
1b6c0831
L
31984.PHONY: maybe-dvi-libcc1 dvi-libcc1
31985maybe-dvi-libcc1:
31986@if libcc1
31987maybe-dvi-libcc1: dvi-libcc1
a7254363 31988
1b6c0831
L
31989dvi-libcc1: \
31990 configure-libcc1
31991 @: $(MAKE); $(unstage)
31992 @[ -f ./libcc1/Makefile ] || exit 0; \
31993 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31995 $(HOST_EXPORTS) \
31996 for flag in $(EXTRA_HOST_FLAGS) ; do \
31997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31998 done; \
22121df0 31999 echo "Doing dvi in libcc1"; \
1b6c0831
L
32000 (cd $(HOST_SUBDIR)/libcc1 && \
32001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32003 "RANLIB=$${RANLIB}" \
32004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32005 dvi) \
32006 || exit 1
e8a5fa9c 32007
1b6c0831 32008@endif libcc1
e8a5fa9c 32009
1b6c0831
L
32010.PHONY: maybe-pdf-libcc1 pdf-libcc1
32011maybe-pdf-libcc1:
32012@if libcc1
32013maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 32014
1b6c0831
L
32015pdf-libcc1: \
32016 configure-libcc1
32017 @: $(MAKE); $(unstage)
32018 @[ -f ./libcc1/Makefile ] || exit 0; \
32019 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32021 $(HOST_EXPORTS) \
32022 for flag in $(EXTRA_HOST_FLAGS) ; do \
32023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32024 done; \
22121df0 32025 echo "Doing pdf in libcc1"; \
1b6c0831
L
32026 (cd $(HOST_SUBDIR)/libcc1 && \
32027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32029 "RANLIB=$${RANLIB}" \
32030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32031 pdf) \
32032 || exit 1
e8a5fa9c 32033
1b6c0831 32034@endif libcc1
e8a5fa9c 32035
1b6c0831
L
32036.PHONY: maybe-html-libcc1 html-libcc1
32037maybe-html-libcc1:
32038@if libcc1
32039maybe-html-libcc1: html-libcc1
e8a5fa9c 32040
1b6c0831
L
32041html-libcc1: \
32042 configure-libcc1
32043 @: $(MAKE); $(unstage)
32044 @[ -f ./libcc1/Makefile ] || exit 0; \
32045 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32047 $(HOST_EXPORTS) \
32048 for flag in $(EXTRA_HOST_FLAGS) ; do \
32049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32050 done; \
22121df0 32051 echo "Doing html in libcc1"; \
1b6c0831
L
32052 (cd $(HOST_SUBDIR)/libcc1 && \
32053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32055 "RANLIB=$${RANLIB}" \
32056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32057 html) \
32058 || exit 1
e8a5fa9c 32059
1b6c0831 32060@endif libcc1
e8a5fa9c 32061
1b6c0831
L
32062.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
32063maybe-TAGS-libcc1:
32064@if libcc1
32065maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 32066
1b6c0831
L
32067TAGS-libcc1: \
32068 configure-libcc1
32069 @: $(MAKE); $(unstage)
32070 @[ -f ./libcc1/Makefile ] || exit 0; \
32071 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32073 $(HOST_EXPORTS) \
32074 for flag in $(EXTRA_HOST_FLAGS) ; do \
32075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32076 done; \
22121df0 32077 echo "Doing TAGS in libcc1"; \
1b6c0831
L
32078 (cd $(HOST_SUBDIR)/libcc1 && \
32079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32081 "RANLIB=$${RANLIB}" \
32082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32083 TAGS) \
32084 || exit 1
32085
32086@endif libcc1
32087
32088.PHONY: maybe-install-info-libcc1 install-info-libcc1
32089maybe-install-info-libcc1:
32090@if libcc1
32091maybe-install-info-libcc1: install-info-libcc1
32092
32093install-info-libcc1: \
32094 configure-libcc1 \
32095 info-libcc1
32096 @: $(MAKE); $(unstage)
32097 @[ -f ./libcc1/Makefile ] || exit 0; \
32098 r=`${PWD_COMMAND}`; export r; \
32099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32100 $(HOST_EXPORTS) \
32101 for flag in $(EXTRA_HOST_FLAGS) ; do \
32102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32103 done; \
22121df0 32104 echo "Doing install-info in libcc1"; \
1b6c0831
L
32105 (cd $(HOST_SUBDIR)/libcc1 && \
32106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32108 "RANLIB=$${RANLIB}" \
32109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32110 install-info) \
32111 || exit 1
32112
32113@endif libcc1
32114
32115.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
32116maybe-install-pdf-libcc1:
32117@if libcc1
32118maybe-install-pdf-libcc1: install-pdf-libcc1
32119
32120install-pdf-libcc1: \
32121 configure-libcc1 \
32122 pdf-libcc1
32123 @: $(MAKE); $(unstage)
32124 @[ -f ./libcc1/Makefile ] || exit 0; \
32125 r=`${PWD_COMMAND}`; export r; \
32126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32127 $(HOST_EXPORTS) \
32128 for flag in $(EXTRA_HOST_FLAGS) ; do \
32129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32130 done; \
22121df0 32131 echo "Doing install-pdf in libcc1"; \
1b6c0831
L
32132 (cd $(HOST_SUBDIR)/libcc1 && \
32133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32135 "RANLIB=$${RANLIB}" \
32136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32137 install-pdf) \
32138 || exit 1
32139
32140@endif libcc1
32141
32142.PHONY: maybe-install-html-libcc1 install-html-libcc1
32143maybe-install-html-libcc1:
32144@if libcc1
32145maybe-install-html-libcc1: install-html-libcc1
32146
32147install-html-libcc1: \
32148 configure-libcc1 \
32149 html-libcc1
32150 @: $(MAKE); $(unstage)
32151 @[ -f ./libcc1/Makefile ] || exit 0; \
32152 r=`${PWD_COMMAND}`; export r; \
32153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32154 $(HOST_EXPORTS) \
32155 for flag in $(EXTRA_HOST_FLAGS) ; do \
32156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32157 done; \
22121df0 32158 echo "Doing install-html in libcc1"; \
1b6c0831
L
32159 (cd $(HOST_SUBDIR)/libcc1 && \
32160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32162 "RANLIB=$${RANLIB}" \
32163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32164 install-html) \
32165 || exit 1
32166
32167@endif libcc1
32168
32169.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
32170maybe-installcheck-libcc1:
32171@if libcc1
32172maybe-installcheck-libcc1: installcheck-libcc1
32173
32174installcheck-libcc1: \
32175 configure-libcc1
32176 @: $(MAKE); $(unstage)
32177 @[ -f ./libcc1/Makefile ] || exit 0; \
32178 r=`${PWD_COMMAND}`; export r; \
32179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32180 $(HOST_EXPORTS) \
32181 for flag in $(EXTRA_HOST_FLAGS) ; do \
32182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32183 done; \
22121df0 32184 echo "Doing installcheck in libcc1"; \
1b6c0831
L
32185 (cd $(HOST_SUBDIR)/libcc1 && \
32186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32188 "RANLIB=$${RANLIB}" \
32189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32190 installcheck) \
32191 || exit 1
32192
32193@endif libcc1
32194
32195.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
32196maybe-mostlyclean-libcc1:
32197@if libcc1
32198maybe-mostlyclean-libcc1: mostlyclean-libcc1
32199
32200mostlyclean-libcc1:
32201 @: $(MAKE); $(unstage)
32202 @[ -f ./libcc1/Makefile ] || exit 0; \
32203 r=`${PWD_COMMAND}`; export r; \
32204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32205 $(HOST_EXPORTS) \
32206 for flag in $(EXTRA_HOST_FLAGS) ; do \
32207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32208 done; \
22121df0 32209 echo "Doing mostlyclean in libcc1"; \
1b6c0831
L
32210 (cd $(HOST_SUBDIR)/libcc1 && \
32211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32213 "RANLIB=$${RANLIB}" \
32214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32215 mostlyclean) \
32216 || exit 1
32217
32218@endif libcc1
32219
32220.PHONY: maybe-clean-libcc1 clean-libcc1
32221maybe-clean-libcc1:
32222@if libcc1
32223maybe-clean-libcc1: clean-libcc1
32224
32225clean-libcc1:
32226 @: $(MAKE); $(unstage)
32227 @[ -f ./libcc1/Makefile ] || exit 0; \
32228 r=`${PWD_COMMAND}`; export r; \
32229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32230 $(HOST_EXPORTS) \
32231 for flag in $(EXTRA_HOST_FLAGS) ; do \
32232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32233 done; \
22121df0 32234 echo "Doing clean in libcc1"; \
1b6c0831
L
32235 (cd $(HOST_SUBDIR)/libcc1 && \
32236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32238 "RANLIB=$${RANLIB}" \
32239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32240 clean) \
32241 || exit 1
32242
32243@endif libcc1
32244
32245.PHONY: maybe-distclean-libcc1 distclean-libcc1
32246maybe-distclean-libcc1:
32247@if libcc1
32248maybe-distclean-libcc1: distclean-libcc1
32249
32250distclean-libcc1:
32251 @: $(MAKE); $(unstage)
32252 @[ -f ./libcc1/Makefile ] || exit 0; \
32253 r=`${PWD_COMMAND}`; export r; \
32254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32255 $(HOST_EXPORTS) \
32256 for flag in $(EXTRA_HOST_FLAGS) ; do \
32257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32258 done; \
22121df0 32259 echo "Doing distclean in libcc1"; \
1b6c0831
L
32260 (cd $(HOST_SUBDIR)/libcc1 && \
32261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32263 "RANLIB=$${RANLIB}" \
32264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32265 distclean) \
32266 || exit 1
32267
32268@endif libcc1
32269
32270.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
32271maybe-maintainer-clean-libcc1:
32272@if libcc1
32273maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
32274
32275maintainer-clean-libcc1:
32276 @: $(MAKE); $(unstage)
32277 @[ -f ./libcc1/Makefile ] || exit 0; \
32278 r=`${PWD_COMMAND}`; export r; \
32279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32280 $(HOST_EXPORTS) \
32281 for flag in $(EXTRA_HOST_FLAGS) ; do \
32282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32283 done; \
22121df0 32284 echo "Doing maintainer-clean in libcc1"; \
1b6c0831
L
32285 (cd $(HOST_SUBDIR)/libcc1 && \
32286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32288 "RANLIB=$${RANLIB}" \
32289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32290 maintainer-clean) \
32291 || exit 1
32292
32293@endif libcc1
32294
32295
32296
32297.PHONY: configure-gotools maybe-configure-gotools
32298maybe-configure-gotools:
32299@if gcc-bootstrap
32300configure-gotools: stage_current
32301@endif gcc-bootstrap
32302@if gotools
32303maybe-configure-gotools: configure-gotools
32304configure-gotools:
32305 @: $(MAKE); $(unstage)
32306 @r=`${PWD_COMMAND}`; export r; \
32307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32308 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
22121df0 32309 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools; \
1b6c0831
L
32310 $(HOST_EXPORTS) \
32311 echo Configuring in $(HOST_SUBDIR)/gotools; \
32312 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
32313 case $(srcdir) in \
32314 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32315 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
32316 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32317 esac; \
32318 module_srcdir=gotools; \
32319 $(SHELL) \
32320 $$s/$$module_srcdir/configure \
32321 --srcdir=$${topdir}/$$module_srcdir \
32322 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32323 --target=${target_alias} \
32324 || exit 1
32325@endif gotools
32326
32327
32328
32329
32330
32331.PHONY: all-gotools maybe-all-gotools
32332maybe-all-gotools:
32333@if gcc-bootstrap
32334all-gotools: stage_current
32335@endif gcc-bootstrap
32336@if gotools
32337TARGET-gotools=all
32338maybe-all-gotools: all-gotools
32339all-gotools: configure-gotools
32340 @: $(MAKE); $(unstage)
32341 @r=`${PWD_COMMAND}`; export r; \
32342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32343 $(HOST_EXPORTS) \
32344 (cd $(HOST_SUBDIR)/gotools && \
32345 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
32346 $(TARGET-gotools))
32347@endif gotools
32348
32349
32350
32351
32352.PHONY: check-gotools maybe-check-gotools
32353maybe-check-gotools:
32354@if gotools
32355maybe-check-gotools: check-gotools
32356
32357check-gotools:
32358 @: $(MAKE); $(unstage)
32359 @r=`${PWD_COMMAND}`; export r; \
32360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32361 $(HOST_EXPORTS) \
1b6c0831
L
32362 (cd $(HOST_SUBDIR)/gotools && \
32363 $(MAKE) $(FLAGS_TO_PASS) check)
32364
32365@endif gotools
32366
32367.PHONY: install-gotools maybe-install-gotools
32368maybe-install-gotools:
32369@if gotools
32370maybe-install-gotools: install-gotools
32371
32372install-gotools: installdirs
32373 @: $(MAKE); $(unstage)
32374 @r=`${PWD_COMMAND}`; export r; \
32375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32376 $(HOST_EXPORTS) \
32377 (cd $(HOST_SUBDIR)/gotools && \
32378 $(MAKE) $(FLAGS_TO_PASS) install)
32379
32380@endif gotools
32381
32382.PHONY: install-strip-gotools maybe-install-strip-gotools
32383maybe-install-strip-gotools:
32384@if gotools
32385maybe-install-strip-gotools: install-strip-gotools
32386
32387install-strip-gotools: installdirs
32388 @: $(MAKE); $(unstage)
32389 @r=`${PWD_COMMAND}`; export r; \
32390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32391 $(HOST_EXPORTS) \
32392 (cd $(HOST_SUBDIR)/gotools && \
32393 $(MAKE) $(FLAGS_TO_PASS) install-strip)
32394
32395@endif gotools
32396
32397# Other targets (info, dvi, pdf, etc.)
32398
32399.PHONY: maybe-info-gotools info-gotools
32400maybe-info-gotools:
32401@if gotools
32402maybe-info-gotools: info-gotools
32403
32404info-gotools: \
32405 configure-gotools
32406 @: $(MAKE); $(unstage)
32407 @[ -f ./gotools/Makefile ] || exit 0; \
32408 r=`${PWD_COMMAND}`; export r; \
32409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32410 $(HOST_EXPORTS) \
32411 for flag in $(EXTRA_HOST_FLAGS) ; do \
32412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32413 done; \
22121df0 32414 echo "Doing info in gotools"; \
1b6c0831
L
32415 (cd $(HOST_SUBDIR)/gotools && \
32416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32418 "RANLIB=$${RANLIB}" \
32419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32420 info) \
32421 || exit 1
32422
32423@endif gotools
32424
32425.PHONY: maybe-dvi-gotools dvi-gotools
32426maybe-dvi-gotools:
32427@if gotools
32428maybe-dvi-gotools: dvi-gotools
32429
32430dvi-gotools: \
32431 configure-gotools
32432 @: $(MAKE); $(unstage)
32433 @[ -f ./gotools/Makefile ] || exit 0; \
32434 r=`${PWD_COMMAND}`; export r; \
32435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32436 $(HOST_EXPORTS) \
32437 for flag in $(EXTRA_HOST_FLAGS) ; do \
32438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32439 done; \
22121df0 32440 echo "Doing dvi in gotools"; \
1b6c0831
L
32441 (cd $(HOST_SUBDIR)/gotools && \
32442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32444 "RANLIB=$${RANLIB}" \
32445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32446 dvi) \
32447 || exit 1
32448
32449@endif gotools
32450
32451.PHONY: maybe-pdf-gotools pdf-gotools
32452maybe-pdf-gotools:
32453@if gotools
32454maybe-pdf-gotools: pdf-gotools
32455
32456pdf-gotools: \
32457 configure-gotools
32458 @: $(MAKE); $(unstage)
32459 @[ -f ./gotools/Makefile ] || exit 0; \
32460 r=`${PWD_COMMAND}`; export r; \
32461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32462 $(HOST_EXPORTS) \
32463 for flag in $(EXTRA_HOST_FLAGS) ; do \
32464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32465 done; \
22121df0 32466 echo "Doing pdf in gotools"; \
1b6c0831
L
32467 (cd $(HOST_SUBDIR)/gotools && \
32468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32470 "RANLIB=$${RANLIB}" \
32471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32472 pdf) \
32473 || exit 1
32474
32475@endif gotools
32476
32477.PHONY: maybe-html-gotools html-gotools
32478maybe-html-gotools:
32479@if gotools
32480maybe-html-gotools: html-gotools
32481
32482html-gotools: \
32483 configure-gotools
32484 @: $(MAKE); $(unstage)
32485 @[ -f ./gotools/Makefile ] || exit 0; \
32486 r=`${PWD_COMMAND}`; export r; \
32487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32488 $(HOST_EXPORTS) \
32489 for flag in $(EXTRA_HOST_FLAGS) ; do \
32490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32491 done; \
22121df0 32492 echo "Doing html in gotools"; \
1b6c0831
L
32493 (cd $(HOST_SUBDIR)/gotools && \
32494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32496 "RANLIB=$${RANLIB}" \
32497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32498 html) \
32499 || exit 1
32500
32501@endif gotools
32502
32503.PHONY: maybe-TAGS-gotools TAGS-gotools
32504maybe-TAGS-gotools:
32505@if gotools
32506maybe-TAGS-gotools: TAGS-gotools
32507
32508TAGS-gotools: \
32509 configure-gotools
32510 @: $(MAKE); $(unstage)
32511 @[ -f ./gotools/Makefile ] || exit 0; \
32512 r=`${PWD_COMMAND}`; export r; \
32513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32514 $(HOST_EXPORTS) \
32515 for flag in $(EXTRA_HOST_FLAGS) ; do \
32516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32517 done; \
22121df0 32518 echo "Doing TAGS in gotools"; \
1b6c0831
L
32519 (cd $(HOST_SUBDIR)/gotools && \
32520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32522 "RANLIB=$${RANLIB}" \
32523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32524 TAGS) \
32525 || exit 1
32526
32527@endif gotools
32528
32529.PHONY: maybe-install-info-gotools install-info-gotools
32530maybe-install-info-gotools:
32531@if gotools
32532maybe-install-info-gotools: install-info-gotools
32533
32534install-info-gotools: \
32535 configure-gotools \
32536 info-gotools
32537 @: $(MAKE); $(unstage)
32538 @[ -f ./gotools/Makefile ] || exit 0; \
32539 r=`${PWD_COMMAND}`; export r; \
32540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32541 $(HOST_EXPORTS) \
32542 for flag in $(EXTRA_HOST_FLAGS) ; do \
32543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32544 done; \
22121df0 32545 echo "Doing install-info in gotools"; \
1b6c0831
L
32546 (cd $(HOST_SUBDIR)/gotools && \
32547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32549 "RANLIB=$${RANLIB}" \
32550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32551 install-info) \
32552 || exit 1
32553
32554@endif gotools
32555
32556.PHONY: maybe-install-pdf-gotools install-pdf-gotools
32557maybe-install-pdf-gotools:
32558@if gotools
32559maybe-install-pdf-gotools: install-pdf-gotools
32560
32561install-pdf-gotools: \
32562 configure-gotools \
32563 pdf-gotools
32564 @: $(MAKE); $(unstage)
32565 @[ -f ./gotools/Makefile ] || exit 0; \
32566 r=`${PWD_COMMAND}`; export r; \
32567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32568 $(HOST_EXPORTS) \
32569 for flag in $(EXTRA_HOST_FLAGS) ; do \
32570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32571 done; \
22121df0 32572 echo "Doing install-pdf in gotools"; \
1b6c0831
L
32573 (cd $(HOST_SUBDIR)/gotools && \
32574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32576 "RANLIB=$${RANLIB}" \
32577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32578 install-pdf) \
32579 || exit 1
32580
32581@endif gotools
32582
32583.PHONY: maybe-install-html-gotools install-html-gotools
32584maybe-install-html-gotools:
32585@if gotools
32586maybe-install-html-gotools: install-html-gotools
32587
32588install-html-gotools: \
32589 configure-gotools \
32590 html-gotools
32591 @: $(MAKE); $(unstage)
32592 @[ -f ./gotools/Makefile ] || exit 0; \
32593 r=`${PWD_COMMAND}`; export r; \
32594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32595 $(HOST_EXPORTS) \
32596 for flag in $(EXTRA_HOST_FLAGS) ; do \
32597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32598 done; \
22121df0 32599 echo "Doing install-html in gotools"; \
1b6c0831
L
32600 (cd $(HOST_SUBDIR)/gotools && \
32601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32603 "RANLIB=$${RANLIB}" \
32604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32605 install-html) \
32606 || exit 1
32607
32608@endif gotools
32609
32610.PHONY: maybe-installcheck-gotools installcheck-gotools
32611maybe-installcheck-gotools:
32612@if gotools
32613maybe-installcheck-gotools: installcheck-gotools
32614
32615installcheck-gotools: \
32616 configure-gotools
32617 @: $(MAKE); $(unstage)
32618 @[ -f ./gotools/Makefile ] || exit 0; \
32619 r=`${PWD_COMMAND}`; export r; \
32620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32621 $(HOST_EXPORTS) \
32622 for flag in $(EXTRA_HOST_FLAGS) ; do \
32623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32624 done; \
22121df0 32625 echo "Doing installcheck in gotools"; \
1b6c0831
L
32626 (cd $(HOST_SUBDIR)/gotools && \
32627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32629 "RANLIB=$${RANLIB}" \
32630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32631 installcheck) \
32632 || exit 1
32633
32634@endif gotools
32635
32636.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
32637maybe-mostlyclean-gotools:
32638@if gotools
32639maybe-mostlyclean-gotools: mostlyclean-gotools
32640
32641mostlyclean-gotools:
32642 @: $(MAKE); $(unstage)
32643 @[ -f ./gotools/Makefile ] || exit 0; \
32644 r=`${PWD_COMMAND}`; export r; \
32645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32646 $(HOST_EXPORTS) \
32647 for flag in $(EXTRA_HOST_FLAGS) ; do \
32648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32649 done; \
22121df0 32650 echo "Doing mostlyclean in gotools"; \
1b6c0831
L
32651 (cd $(HOST_SUBDIR)/gotools && \
32652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32654 "RANLIB=$${RANLIB}" \
32655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32656 mostlyclean) \
32657 || exit 1
32658
32659@endif gotools
32660
32661.PHONY: maybe-clean-gotools clean-gotools
32662maybe-clean-gotools:
32663@if gotools
32664maybe-clean-gotools: clean-gotools
32665
32666clean-gotools:
32667 @: $(MAKE); $(unstage)
32668 @[ -f ./gotools/Makefile ] || exit 0; \
32669 r=`${PWD_COMMAND}`; export r; \
32670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32671 $(HOST_EXPORTS) \
32672 for flag in $(EXTRA_HOST_FLAGS) ; do \
32673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32674 done; \
22121df0 32675 echo "Doing clean in gotools"; \
1b6c0831
L
32676 (cd $(HOST_SUBDIR)/gotools && \
32677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32679 "RANLIB=$${RANLIB}" \
32680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32681 clean) \
32682 || exit 1
32683
32684@endif gotools
32685
32686.PHONY: maybe-distclean-gotools distclean-gotools
32687maybe-distclean-gotools:
32688@if gotools
32689maybe-distclean-gotools: distclean-gotools
32690
32691distclean-gotools:
32692 @: $(MAKE); $(unstage)
32693 @[ -f ./gotools/Makefile ] || exit 0; \
32694 r=`${PWD_COMMAND}`; export r; \
32695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32696 $(HOST_EXPORTS) \
32697 for flag in $(EXTRA_HOST_FLAGS) ; do \
32698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32699 done; \
22121df0 32700 echo "Doing distclean in gotools"; \
1b6c0831
L
32701 (cd $(HOST_SUBDIR)/gotools && \
32702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32704 "RANLIB=$${RANLIB}" \
32705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32706 distclean) \
32707 || exit 1
32708
32709@endif gotools
32710
32711.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
32712maybe-maintainer-clean-gotools:
32713@if gotools
32714maybe-maintainer-clean-gotools: maintainer-clean-gotools
32715
32716maintainer-clean-gotools:
32717 @: $(MAKE); $(unstage)
32718 @[ -f ./gotools/Makefile ] || exit 0; \
32719 r=`${PWD_COMMAND}`; export r; \
32720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32721 $(HOST_EXPORTS) \
32722 for flag in $(EXTRA_HOST_FLAGS) ; do \
32723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32724 done; \
22121df0 32725 echo "Doing maintainer-clean in gotools"; \
1b6c0831
L
32726 (cd $(HOST_SUBDIR)/gotools && \
32727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32729 "RANLIB=$${RANLIB}" \
32730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32731 maintainer-clean) \
32732 || exit 1
32733
32734@endif gotools
32735
32736
32737
32738# ---------------------------------------
32739# Modules which run on the target machine
32740# ---------------------------------------
32741
32742
32743
32744
32745.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
32746maybe-configure-target-libstdc++-v3:
32747@if gcc-bootstrap
32748configure-target-libstdc++-v3: stage_current
32749@endif gcc-bootstrap
32750@if target-libstdc++-v3
32751maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
32752configure-target-libstdc++-v3:
32753 @r=`${PWD_COMMAND}`; export r; \
32754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32755 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0
L
32756 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
32757 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32758 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32759 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32760 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32761 else \
32762 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32763 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32764 fi; \
32765 else \
32766 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32767 fi; \
32768 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22121df0 32769 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32770 $(RAW_CXX_TARGET_EXPORTS) \
32771 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
32772 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
32773 case $(srcdir) in \
32774 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32775 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32776 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32777 esac; \
32778 module_srcdir=libstdc++-v3; \
32779 rm -f no-such-file || : ; \
32780 CONFIG_SITE=no-such-file $(SHELL) \
32781 $$s/$$module_srcdir/configure \
32782 --srcdir=$${topdir}/$$module_srcdir \
32783 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32784 --target=${target_alias} \
32785 || exit 1
32786@endif target-libstdc++-v3
32787
32788
32789
32790.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
32791maybe-configure-stage1-target-libstdc++-v3:
32792@if target-libstdc++-v3-bootstrap
32793maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
32794configure-stage1-target-libstdc++-v3:
32795 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32796 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32797 @r=`${PWD_COMMAND}`; export r; \
32798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32799 TFLAGS="$(STAGE1_TFLAGS)"; \
32800 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32801 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32802 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32803 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32804 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32805 else \
32806 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32807 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32808 fi; \
32809 else \
32810 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32811 fi; \
32812 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32813 $(RAW_CXX_TARGET_EXPORTS) \
32814 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32815 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32816 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32817 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \
32818 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32819 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32820 case $(srcdir) in \
32821 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32822 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32823 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32824 esac; \
32825 module_srcdir=libstdc++-v3; \
32826 $(SHELL) $$s/$$module_srcdir/configure \
32827 --srcdir=$${topdir}/$$module_srcdir \
32828 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32829 --target=${target_alias} \
32830 \
32831 $(STAGE1_CONFIGURE_FLAGS)
32832@endif target-libstdc++-v3-bootstrap
32833
32834.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
32835maybe-configure-stage2-target-libstdc++-v3:
32836@if target-libstdc++-v3-bootstrap
32837maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
32838configure-stage2-target-libstdc++-v3:
32839 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32840 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32841 @r=`${PWD_COMMAND}`; export r; \
32842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32843 TFLAGS="$(STAGE2_TFLAGS)"; \
32844 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32845 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32846 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32847 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32848 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32849 else \
32850 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32851 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32852 fi; \
32853 else \
32854 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32855 fi; \
32856 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32857 $(RAW_CXX_TARGET_EXPORTS) \
32858 \
32859 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32860 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32861 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32862 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \
32863 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32864 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32865 case $(srcdir) in \
32866 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32867 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32868 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32869 esac; \
32870 module_srcdir=libstdc++-v3; \
32871 $(SHELL) $$s/$$module_srcdir/configure \
32872 --srcdir=$${topdir}/$$module_srcdir \
32873 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32874 --target=${target_alias} \
22121df0 32875 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
32876 $(STAGE2_CONFIGURE_FLAGS)
32877@endif target-libstdc++-v3-bootstrap
32878
32879.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
32880maybe-configure-stage3-target-libstdc++-v3:
32881@if target-libstdc++-v3-bootstrap
32882maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
32883configure-stage3-target-libstdc++-v3:
32884 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32885 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32886 @r=`${PWD_COMMAND}`; export r; \
32887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32888 TFLAGS="$(STAGE3_TFLAGS)"; \
32889 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32890 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32891 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32892 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32893 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32894 else \
32895 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32896 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32897 fi; \
32898 else \
32899 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32900 fi; \
32901 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32902 $(RAW_CXX_TARGET_EXPORTS) \
32903 \
32904 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32905 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32906 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32907 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \
32908 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32909 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32910 case $(srcdir) in \
32911 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32912 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32913 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32914 esac; \
32915 module_srcdir=libstdc++-v3; \
32916 $(SHELL) $$s/$$module_srcdir/configure \
32917 --srcdir=$${topdir}/$$module_srcdir \
32918 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32919 --target=${target_alias} \
22121df0 32920 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
32921 $(STAGE3_CONFIGURE_FLAGS)
32922@endif target-libstdc++-v3-bootstrap
32923
32924.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
32925maybe-configure-stage4-target-libstdc++-v3:
32926@if target-libstdc++-v3-bootstrap
32927maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
32928configure-stage4-target-libstdc++-v3:
32929 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32930 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32931 @r=`${PWD_COMMAND}`; export r; \
32932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32933 TFLAGS="$(STAGE4_TFLAGS)"; \
32934 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32935 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32936 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32937 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32938 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32939 else \
32940 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32941 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32942 fi; \
32943 else \
32944 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32945 fi; \
32946 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32947 $(RAW_CXX_TARGET_EXPORTS) \
32948 \
32949 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32950 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32951 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32952 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \
32953 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32954 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32955 case $(srcdir) in \
32956 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32957 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32958 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32959 esac; \
32960 module_srcdir=libstdc++-v3; \
32961 $(SHELL) $$s/$$module_srcdir/configure \
32962 --srcdir=$${topdir}/$$module_srcdir \
32963 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32964 --target=${target_alias} \
22121df0 32965 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
32966 $(STAGE4_CONFIGURE_FLAGS)
32967@endif target-libstdc++-v3-bootstrap
32968
32969.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
32970maybe-configure-stageprofile-target-libstdc++-v3:
32971@if target-libstdc++-v3-bootstrap
32972maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
32973configure-stageprofile-target-libstdc++-v3:
32974 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32975 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32976 @r=`${PWD_COMMAND}`; export r; \
32977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32978 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32979 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32980 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32981 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32982 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32983 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32984 else \
32985 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32986 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32987 fi; \
32988 else \
32989 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32990 fi; \
32991 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32992 $(RAW_CXX_TARGET_EXPORTS) \
32993 \
32994 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32995 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32996 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32997 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \
32998 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32999 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33000 case $(srcdir) in \
33001 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33002 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33003 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33004 esac; \
33005 module_srcdir=libstdc++-v3; \
33006 $(SHELL) $$s/$$module_srcdir/configure \
33007 --srcdir=$${topdir}/$$module_srcdir \
33008 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33009 --target=${target_alias} \
22121df0 33010 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33011 $(STAGEprofile_CONFIGURE_FLAGS)
33012@endif target-libstdc++-v3-bootstrap
33013
33014.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
33015maybe-configure-stagefeedback-target-libstdc++-v3:
33016@if target-libstdc++-v3-bootstrap
33017maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
33018configure-stagefeedback-target-libstdc++-v3:
33019 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33020 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
33021 @r=`${PWD_COMMAND}`; export r; \
33022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33023 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33024 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 33025 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
33026 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33027 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33028 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
33029 else \
33030 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33031 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33032 fi; \
33033 else \
33034 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33035 fi; \
33036 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
33037 $(RAW_CXX_TARGET_EXPORTS) \
33038 \
33039 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33040 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33041 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33042 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \
33043 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33044 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33045 case $(srcdir) in \
33046 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33047 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33048 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33049 esac; \
33050 module_srcdir=libstdc++-v3; \
33051 $(SHELL) $$s/$$module_srcdir/configure \
33052 --srcdir=$${topdir}/$$module_srcdir \
33053 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33054 --target=${target_alias} \
22121df0 33055 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33056 $(STAGEfeedback_CONFIGURE_FLAGS)
33057@endif target-libstdc++-v3-bootstrap
33058
33059
33060
33061
33062
33063.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
33064maybe-all-target-libstdc++-v3:
33065@if gcc-bootstrap
33066all-target-libstdc++-v3: stage_current
33067@endif gcc-bootstrap
33068@if target-libstdc++-v3
33069TARGET-target-libstdc++-v3=all
33070maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
33071all-target-libstdc++-v3: configure-target-libstdc++-v3
33072 @r=`${PWD_COMMAND}`; export r; \
33073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33074 $(RAW_CXX_TARGET_EXPORTS) \
33075 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33076 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33077 $(TARGET-target-libstdc++-v3))
33078@endif target-libstdc++-v3
33079
33080
33081
33082.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
33083.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
33084maybe-all-stage1-target-libstdc++-v3:
33085maybe-clean-stage1-target-libstdc++-v3:
33086@if target-libstdc++-v3-bootstrap
33087maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
33088all-stage1: all-stage1-target-libstdc++-v3
33089TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33090all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
33091 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33092 @r=`${PWD_COMMAND}`; export r; \
33093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33094 TFLAGS="$(STAGE1_TFLAGS)"; \
33095 $(RAW_CXX_TARGET_EXPORTS) \
33096 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33097 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33098 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33099 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33100 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33101 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33102 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33103 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33104 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33105 \
33106 TFLAGS="$(STAGE1_TFLAGS)" \
33107 $(TARGET-stage1-target-libstdc++-v3)
33108
33109maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
33110clean-stage1: clean-stage1-target-libstdc++-v3
33111clean-stage1-target-libstdc++-v3:
33112 @if [ $(current_stage) = stage1 ]; then \
33113 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33114 else \
33115 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
33116 $(MAKE) stage1-start; \
33117 fi; \
33118 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33119 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33120 clean
33121@endif target-libstdc++-v3-bootstrap
33122
33123
33124.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
33125.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
33126maybe-all-stage2-target-libstdc++-v3:
33127maybe-clean-stage2-target-libstdc++-v3:
33128@if target-libstdc++-v3-bootstrap
33129maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
33130all-stage2: all-stage2-target-libstdc++-v3
33131TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33132all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
33133 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33134 @r=`${PWD_COMMAND}`; export r; \
33135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33136 TFLAGS="$(STAGE2_TFLAGS)"; \
33137 $(RAW_CXX_TARGET_EXPORTS) \
33138 \
33139 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33140 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33141 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33142 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33143 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33144 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33145 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33146 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33147 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33148 TFLAGS="$(STAGE2_TFLAGS)" \
33149 $(TARGET-stage2-target-libstdc++-v3)
33150
33151maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
33152clean-stage2: clean-stage2-target-libstdc++-v3
33153clean-stage2-target-libstdc++-v3:
33154 @if [ $(current_stage) = stage2 ]; then \
33155 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33156 else \
33157 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
33158 $(MAKE) stage2-start; \
33159 fi; \
33160 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33161 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33162@endif target-libstdc++-v3-bootstrap
33163
33164
33165.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
33166.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
33167maybe-all-stage3-target-libstdc++-v3:
33168maybe-clean-stage3-target-libstdc++-v3:
33169@if target-libstdc++-v3-bootstrap
33170maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
33171all-stage3: all-stage3-target-libstdc++-v3
33172TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33173all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
33174 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33175 @r=`${PWD_COMMAND}`; export r; \
33176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33177 TFLAGS="$(STAGE3_TFLAGS)"; \
33178 $(RAW_CXX_TARGET_EXPORTS) \
33179 \
33180 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33181 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33182 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33183 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33184 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33185 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33186 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33187 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33188 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33189 TFLAGS="$(STAGE3_TFLAGS)" \
33190 $(TARGET-stage3-target-libstdc++-v3)
33191
33192maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
33193clean-stage3: clean-stage3-target-libstdc++-v3
33194clean-stage3-target-libstdc++-v3:
33195 @if [ $(current_stage) = stage3 ]; then \
33196 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33197 else \
33198 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
33199 $(MAKE) stage3-start; \
33200 fi; \
33201 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33202 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33203@endif target-libstdc++-v3-bootstrap
33204
33205
33206.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
33207.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
33208maybe-all-stage4-target-libstdc++-v3:
33209maybe-clean-stage4-target-libstdc++-v3:
33210@if target-libstdc++-v3-bootstrap
33211maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
33212all-stage4: all-stage4-target-libstdc++-v3
33213TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33214all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
33215 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33216 @r=`${PWD_COMMAND}`; export r; \
33217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33218 TFLAGS="$(STAGE4_TFLAGS)"; \
33219 $(RAW_CXX_TARGET_EXPORTS) \
33220 \
33221 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33222 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33223 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33224 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33225 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33226 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33227 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33228 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33229 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33230 TFLAGS="$(STAGE4_TFLAGS)" \
33231 $(TARGET-stage4-target-libstdc++-v3)
33232
33233maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
33234clean-stage4: clean-stage4-target-libstdc++-v3
33235clean-stage4-target-libstdc++-v3:
33236 @if [ $(current_stage) = stage4 ]; then \
33237 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33238 else \
33239 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
33240 $(MAKE) stage4-start; \
33241 fi; \
33242 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33243 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33244@endif target-libstdc++-v3-bootstrap
33245
33246
33247.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
33248.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
33249maybe-all-stageprofile-target-libstdc++-v3:
33250maybe-clean-stageprofile-target-libstdc++-v3:
33251@if target-libstdc++-v3-bootstrap
33252maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
33253all-stageprofile: all-stageprofile-target-libstdc++-v3
33254TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33255all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
33256 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33257 @r=`${PWD_COMMAND}`; export r; \
33258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33259 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33260 $(RAW_CXX_TARGET_EXPORTS) \
33261 \
33262 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33263 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33264 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33265 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33266 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33267 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33268 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33269 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33270 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33271 TFLAGS="$(STAGEprofile_TFLAGS)" \
33272 $(TARGET-stageprofile-target-libstdc++-v3)
33273
33274maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
33275clean-stageprofile: clean-stageprofile-target-libstdc++-v3
33276clean-stageprofile-target-libstdc++-v3:
33277 @if [ $(current_stage) = stageprofile ]; then \
33278 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33279 else \
33280 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
33281 $(MAKE) stageprofile-start; \
33282 fi; \
33283 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33284 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33285@endif target-libstdc++-v3-bootstrap
33286
33287
33288.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
33289.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
33290maybe-all-stagefeedback-target-libstdc++-v3:
33291maybe-clean-stagefeedback-target-libstdc++-v3:
33292@if target-libstdc++-v3-bootstrap
33293maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
33294all-stagefeedback: all-stagefeedback-target-libstdc++-v3
33295TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33296all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
33297 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33298 @r=`${PWD_COMMAND}`; export r; \
33299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33300 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33301 $(RAW_CXX_TARGET_EXPORTS) \
33302 \
33303 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33304 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33305 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33306 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33307 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33308 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33309 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33310 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33311 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33312 TFLAGS="$(STAGEfeedback_TFLAGS)" \
33313 $(TARGET-stagefeedback-target-libstdc++-v3)
33314
33315maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
33316clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
33317clean-stagefeedback-target-libstdc++-v3:
33318 @if [ $(current_stage) = stagefeedback ]; then \
33319 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33320 else \
33321 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
33322 $(MAKE) stagefeedback-start; \
33323 fi; \
33324 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33325 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33326@endif target-libstdc++-v3-bootstrap
33327
33328
33329
33330
33331
33332
33333.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
33334maybe-check-target-libstdc++-v3:
33335@if target-libstdc++-v3
33336maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
33337
33338check-target-libstdc++-v3:
33339 @: $(MAKE); $(unstage)
33340 @r=`${PWD_COMMAND}`; export r; \
33341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33342 $(RAW_CXX_TARGET_EXPORTS) \
33343 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33344 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
33345
33346@endif target-libstdc++-v3
33347
33348.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
33349maybe-install-target-libstdc++-v3:
33350@if target-libstdc++-v3
33351maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
33352
33353install-target-libstdc++-v3: installdirs
33354 @: $(MAKE); $(unstage)
33355 @r=`${PWD_COMMAND}`; export r; \
33356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33357 $(RAW_CXX_TARGET_EXPORTS) \
33358 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33359 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
33360
33361@endif target-libstdc++-v3
33362
33363.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
33364maybe-install-strip-target-libstdc++-v3:
33365@if target-libstdc++-v3
33366maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
33367
33368install-strip-target-libstdc++-v3: installdirs
33369 @: $(MAKE); $(unstage)
33370 @r=`${PWD_COMMAND}`; export r; \
33371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33372 $(RAW_CXX_TARGET_EXPORTS) \
33373 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33374 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
33375
33376@endif target-libstdc++-v3
33377
33378# Other targets (info, dvi, pdf, etc.)
33379
33380.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
33381maybe-info-target-libstdc++-v3:
33382@if target-libstdc++-v3
33383maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
33384
33385info-target-libstdc++-v3: \
33386 configure-target-libstdc++-v3
33387 @: $(MAKE); $(unstage)
22121df0 33388 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33389 r=`${PWD_COMMAND}`; export r; \
33390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33391 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33392 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33393 for flag in $(EXTRA_TARGET_FLAGS); do \
33394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33395 done; \
33396 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33399 "RANLIB=$${RANLIB}" \
33400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33401 info) \
33402 || exit 1
33403
33404@endif target-libstdc++-v3
33405
33406.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
33407maybe-dvi-target-libstdc++-v3:
33408@if target-libstdc++-v3
33409maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
33410
33411dvi-target-libstdc++-v3: \
33412 configure-target-libstdc++-v3
33413 @: $(MAKE); $(unstage)
22121df0 33414 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33415 r=`${PWD_COMMAND}`; export r; \
33416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33417 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33418 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33419 for flag in $(EXTRA_TARGET_FLAGS); do \
33420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33421 done; \
33422 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33425 "RANLIB=$${RANLIB}" \
33426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33427 dvi) \
33428 || exit 1
33429
33430@endif target-libstdc++-v3
33431
33432.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
33433maybe-pdf-target-libstdc++-v3:
33434@if target-libstdc++-v3
33435maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
33436
33437pdf-target-libstdc++-v3: \
33438 configure-target-libstdc++-v3
33439 @: $(MAKE); $(unstage)
22121df0 33440 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33441 r=`${PWD_COMMAND}`; export r; \
33442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33443 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33444 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33445 for flag in $(EXTRA_TARGET_FLAGS); do \
33446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33447 done; \
33448 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33451 "RANLIB=$${RANLIB}" \
33452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33453 pdf) \
33454 || exit 1
33455
33456@endif target-libstdc++-v3
33457
33458.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
33459maybe-html-target-libstdc++-v3:
33460@if target-libstdc++-v3
33461maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
33462
33463html-target-libstdc++-v3: \
33464 configure-target-libstdc++-v3
33465 @: $(MAKE); $(unstage)
22121df0 33466 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33467 r=`${PWD_COMMAND}`; export r; \
33468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33469 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33470 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33471 for flag in $(EXTRA_TARGET_FLAGS); do \
33472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33473 done; \
33474 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33477 "RANLIB=$${RANLIB}" \
33478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33479 html) \
33480 || exit 1
33481
33482@endif target-libstdc++-v3
33483
33484.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
33485maybe-TAGS-target-libstdc++-v3:
33486@if target-libstdc++-v3
33487maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
33488
33489TAGS-target-libstdc++-v3: \
33490 configure-target-libstdc++-v3
33491 @: $(MAKE); $(unstage)
22121df0 33492 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33493 r=`${PWD_COMMAND}`; export r; \
33494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33495 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33496 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33497 for flag in $(EXTRA_TARGET_FLAGS); do \
33498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33499 done; \
33500 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33503 "RANLIB=$${RANLIB}" \
33504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33505 TAGS) \
33506 || exit 1
33507
33508@endif target-libstdc++-v3
33509
33510.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
33511maybe-install-info-target-libstdc++-v3:
33512@if target-libstdc++-v3
33513maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
33514
33515install-info-target-libstdc++-v3: \
33516 configure-target-libstdc++-v3 \
33517 info-target-libstdc++-v3
33518 @: $(MAKE); $(unstage)
22121df0 33519 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33520 r=`${PWD_COMMAND}`; export r; \
33521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33522 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33523 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33524 for flag in $(EXTRA_TARGET_FLAGS); do \
33525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33526 done; \
33527 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33530 "RANLIB=$${RANLIB}" \
33531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33532 install-info) \
33533 || exit 1
33534
33535@endif target-libstdc++-v3
33536
33537.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
33538maybe-install-pdf-target-libstdc++-v3:
33539@if target-libstdc++-v3
33540maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
33541
33542install-pdf-target-libstdc++-v3: \
33543 configure-target-libstdc++-v3 \
33544 pdf-target-libstdc++-v3
33545 @: $(MAKE); $(unstage)
22121df0 33546 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33547 r=`${PWD_COMMAND}`; export r; \
33548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33549 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33550 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33551 for flag in $(EXTRA_TARGET_FLAGS); do \
33552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33553 done; \
33554 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33557 "RANLIB=$${RANLIB}" \
33558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33559 install-pdf) \
33560 || exit 1
33561
33562@endif target-libstdc++-v3
33563
33564.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
33565maybe-install-html-target-libstdc++-v3:
33566@if target-libstdc++-v3
33567maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
33568
33569install-html-target-libstdc++-v3: \
33570 configure-target-libstdc++-v3 \
33571 html-target-libstdc++-v3
33572 @: $(MAKE); $(unstage)
22121df0 33573 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33574 r=`${PWD_COMMAND}`; export r; \
33575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33576 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33577 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33578 for flag in $(EXTRA_TARGET_FLAGS); do \
33579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33580 done; \
33581 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33584 "RANLIB=$${RANLIB}" \
33585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33586 install-html) \
33587 || exit 1
33588
33589@endif target-libstdc++-v3
33590
33591.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
33592maybe-installcheck-target-libstdc++-v3:
33593@if target-libstdc++-v3
33594maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
33595
33596installcheck-target-libstdc++-v3: \
33597 configure-target-libstdc++-v3
33598 @: $(MAKE); $(unstage)
22121df0 33599 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33600 r=`${PWD_COMMAND}`; export r; \
33601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33602 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33603 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33604 for flag in $(EXTRA_TARGET_FLAGS); do \
33605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33606 done; \
33607 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33610 "RANLIB=$${RANLIB}" \
33611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33612 installcheck) \
33613 || exit 1
33614
33615@endif target-libstdc++-v3
33616
33617.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
33618maybe-mostlyclean-target-libstdc++-v3:
33619@if target-libstdc++-v3
33620maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
33621
33622mostlyclean-target-libstdc++-v3:
33623 @: $(MAKE); $(unstage)
22121df0 33624 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33625 r=`${PWD_COMMAND}`; export r; \
33626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33627 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33628 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33629 for flag in $(EXTRA_TARGET_FLAGS); do \
33630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33631 done; \
33632 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33635 "RANLIB=$${RANLIB}" \
33636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33637 mostlyclean) \
33638 || exit 1
33639
33640@endif target-libstdc++-v3
33641
33642.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
33643maybe-clean-target-libstdc++-v3:
33644@if target-libstdc++-v3
33645maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
33646
33647clean-target-libstdc++-v3:
33648 @: $(MAKE); $(unstage)
22121df0 33649 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33650 r=`${PWD_COMMAND}`; export r; \
33651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33652 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33653 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33654 for flag in $(EXTRA_TARGET_FLAGS); do \
33655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33656 done; \
33657 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33660 "RANLIB=$${RANLIB}" \
33661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33662 clean) \
33663 || exit 1
33664
33665@endif target-libstdc++-v3
33666
33667.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
33668maybe-distclean-target-libstdc++-v3:
33669@if target-libstdc++-v3
33670maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
33671
33672distclean-target-libstdc++-v3:
33673 @: $(MAKE); $(unstage)
22121df0 33674 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33675 r=`${PWD_COMMAND}`; export r; \
33676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33677 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33678 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33679 for flag in $(EXTRA_TARGET_FLAGS); do \
33680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33681 done; \
33682 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33685 "RANLIB=$${RANLIB}" \
33686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33687 distclean) \
33688 || exit 1
33689
33690@endif target-libstdc++-v3
33691
33692.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
33693maybe-maintainer-clean-target-libstdc++-v3:
33694@if target-libstdc++-v3
33695maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
33696
33697maintainer-clean-target-libstdc++-v3:
33698 @: $(MAKE); $(unstage)
22121df0 33699 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33700 r=`${PWD_COMMAND}`; export r; \
33701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33702 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33703 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33704 for flag in $(EXTRA_TARGET_FLAGS); do \
33705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33706 done; \
33707 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33710 "RANLIB=$${RANLIB}" \
33711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33712 maintainer-clean) \
33713 || exit 1
33714
33715@endif target-libstdc++-v3
33716
33717
33718
33719
33720
33721.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
33722maybe-configure-target-libsanitizer:
33723@if gcc-bootstrap
33724configure-target-libsanitizer: stage_current
33725@endif gcc-bootstrap
33726@if target-libsanitizer
33727maybe-configure-target-libsanitizer: configure-target-libsanitizer
33728configure-target-libsanitizer:
33729 @r=`${PWD_COMMAND}`; export r; \
33730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33731 echo "Checking multilib configuration for libsanitizer..."; \
22121df0
L
33732 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
33733 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33734 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33735 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33736 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33737 else \
33738 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33739 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33740 fi; \
33741 else \
33742 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33743 fi; \
33744 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
22121df0 33745 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33746 $(RAW_CXX_TARGET_EXPORTS) \
33747 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
33748 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
33749 case $(srcdir) in \
33750 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33751 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33752 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33753 esac; \
33754 module_srcdir=libsanitizer; \
33755 rm -f no-such-file || : ; \
33756 CONFIG_SITE=no-such-file $(SHELL) \
33757 $$s/$$module_srcdir/configure \
33758 --srcdir=$${topdir}/$$module_srcdir \
33759 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33760 --target=${target_alias} \
33761 || exit 1
33762@endif target-libsanitizer
33763
33764
33765
33766.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
33767maybe-configure-stage1-target-libsanitizer:
33768@if target-libsanitizer-bootstrap
33769maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
33770configure-stage1-target-libsanitizer:
33771 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33772 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33773 @r=`${PWD_COMMAND}`; export r; \
33774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33775 TFLAGS="$(STAGE1_TFLAGS)"; \
33776 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33777 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33778 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33779 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33780 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33781 else \
33782 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33783 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33784 fi; \
33785 else \
33786 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33787 fi; \
33788 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33789 $(RAW_CXX_TARGET_EXPORTS) \
33790 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33791 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33792 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33793 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \
33794 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33795 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33796 case $(srcdir) in \
33797 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33798 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33799 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33800 esac; \
33801 module_srcdir=libsanitizer; \
33802 $(SHELL) $$s/$$module_srcdir/configure \
33803 --srcdir=$${topdir}/$$module_srcdir \
33804 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33805 --target=${target_alias} \
33806 \
33807 $(STAGE1_CONFIGURE_FLAGS)
33808@endif target-libsanitizer-bootstrap
33809
33810.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
33811maybe-configure-stage2-target-libsanitizer:
33812@if target-libsanitizer-bootstrap
33813maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
33814configure-stage2-target-libsanitizer:
33815 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33816 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33817 @r=`${PWD_COMMAND}`; export r; \
33818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33819 TFLAGS="$(STAGE2_TFLAGS)"; \
33820 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33821 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33822 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33823 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33824 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33825 else \
33826 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33827 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33828 fi; \
33829 else \
33830 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33831 fi; \
33832 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33833 $(RAW_CXX_TARGET_EXPORTS) \
33834 \
33835 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33836 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33837 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33838 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \
33839 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33840 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33841 case $(srcdir) in \
33842 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33843 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33844 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33845 esac; \
33846 module_srcdir=libsanitizer; \
33847 $(SHELL) $$s/$$module_srcdir/configure \
33848 --srcdir=$${topdir}/$$module_srcdir \
33849 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33850 --target=${target_alias} \
22121df0 33851 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33852 $(STAGE2_CONFIGURE_FLAGS)
33853@endif target-libsanitizer-bootstrap
33854
33855.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
33856maybe-configure-stage3-target-libsanitizer:
33857@if target-libsanitizer-bootstrap
33858maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
33859configure-stage3-target-libsanitizer:
33860 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33861 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33862 @r=`${PWD_COMMAND}`; export r; \
33863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33864 TFLAGS="$(STAGE3_TFLAGS)"; \
33865 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33866 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33867 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33868 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33869 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33870 else \
33871 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33872 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33873 fi; \
33874 else \
33875 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33876 fi; \
33877 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33878 $(RAW_CXX_TARGET_EXPORTS) \
33879 \
33880 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33881 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33882 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33883 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \
33884 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33885 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33886 case $(srcdir) in \
33887 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33888 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33889 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33890 esac; \
33891 module_srcdir=libsanitizer; \
33892 $(SHELL) $$s/$$module_srcdir/configure \
33893 --srcdir=$${topdir}/$$module_srcdir \
33894 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33895 --target=${target_alias} \
22121df0 33896 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33897 $(STAGE3_CONFIGURE_FLAGS)
33898@endif target-libsanitizer-bootstrap
33899
33900.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
33901maybe-configure-stage4-target-libsanitizer:
33902@if target-libsanitizer-bootstrap
33903maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
33904configure-stage4-target-libsanitizer:
33905 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33906 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33907 @r=`${PWD_COMMAND}`; export r; \
33908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33909 TFLAGS="$(STAGE4_TFLAGS)"; \
33910 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33911 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33912 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33913 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33914 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33915 else \
33916 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33917 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33918 fi; \
33919 else \
33920 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33921 fi; \
33922 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33923 $(RAW_CXX_TARGET_EXPORTS) \
33924 \
33925 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33926 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33927 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33928 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \
33929 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33930 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33931 case $(srcdir) in \
33932 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33933 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33934 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33935 esac; \
33936 module_srcdir=libsanitizer; \
33937 $(SHELL) $$s/$$module_srcdir/configure \
33938 --srcdir=$${topdir}/$$module_srcdir \
33939 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33940 --target=${target_alias} \
22121df0 33941 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33942 $(STAGE4_CONFIGURE_FLAGS)
33943@endif target-libsanitizer-bootstrap
33944
33945.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
33946maybe-configure-stageprofile-target-libsanitizer:
33947@if target-libsanitizer-bootstrap
33948maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
33949configure-stageprofile-target-libsanitizer:
33950 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33951 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33952 @r=`${PWD_COMMAND}`; export r; \
33953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33954 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33955 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33956 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33957 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33958 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33959 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33960 else \
33961 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33962 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33963 fi; \
33964 else \
33965 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33966 fi; \
33967 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33968 $(RAW_CXX_TARGET_EXPORTS) \
33969 \
33970 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33971 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33972 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33973 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \
33974 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33975 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33976 case $(srcdir) in \
33977 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33978 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33979 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33980 esac; \
33981 module_srcdir=libsanitizer; \
33982 $(SHELL) $$s/$$module_srcdir/configure \
33983 --srcdir=$${topdir}/$$module_srcdir \
33984 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33985 --target=${target_alias} \
22121df0 33986 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33987 $(STAGEprofile_CONFIGURE_FLAGS)
33988@endif target-libsanitizer-bootstrap
33989
33990.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
33991maybe-configure-stagefeedback-target-libsanitizer:
33992@if target-libsanitizer-bootstrap
33993maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
33994configure-stagefeedback-target-libsanitizer:
33995 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33996 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33997 @r=`${PWD_COMMAND}`; export r; \
33998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33999 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34000 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 34001 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
34002 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34003 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34004 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
34005 else \
34006 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
34007 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34008 fi; \
34009 else \
34010 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34011 fi; \
34012 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
34013 $(RAW_CXX_TARGET_EXPORTS) \
34014 \
34015 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34016 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34017 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34018 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \
34019 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
34020 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
34021 case $(srcdir) in \
34022 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34023 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
34024 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34025 esac; \
34026 module_srcdir=libsanitizer; \
34027 $(SHELL) $$s/$$module_srcdir/configure \
34028 --srcdir=$${topdir}/$$module_srcdir \
34029 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34030 --target=${target_alias} \
22121df0 34031 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34032 $(STAGEfeedback_CONFIGURE_FLAGS)
34033@endif target-libsanitizer-bootstrap
34034
34035
34036
34037
34038
34039.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
34040maybe-all-target-libsanitizer:
34041@if gcc-bootstrap
34042all-target-libsanitizer: stage_current
34043@endif gcc-bootstrap
34044@if target-libsanitizer
34045TARGET-target-libsanitizer=all
34046maybe-all-target-libsanitizer: all-target-libsanitizer
34047all-target-libsanitizer: configure-target-libsanitizer
34048 @r=`${PWD_COMMAND}`; export r; \
34049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34050 $(RAW_CXX_TARGET_EXPORTS) \
34051 (cd $(TARGET_SUBDIR)/libsanitizer && \
34052 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34053 $(TARGET-target-libsanitizer))
34054@endif target-libsanitizer
34055
34056
34057
34058.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
34059.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
34060maybe-all-stage1-target-libsanitizer:
34061maybe-clean-stage1-target-libsanitizer:
34062@if target-libsanitizer-bootstrap
34063maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
34064all-stage1: all-stage1-target-libsanitizer
34065TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
34066all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
34067 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34068 @r=`${PWD_COMMAND}`; export r; \
34069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34070 TFLAGS="$(STAGE1_TFLAGS)"; \
34071 $(RAW_CXX_TARGET_EXPORTS) \
34072 cd $(TARGET_SUBDIR)/libsanitizer && \
34073 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34074 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34075 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34076 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34077 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34078 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34079 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34080 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34081 \
34082 TFLAGS="$(STAGE1_TFLAGS)" \
34083 $(TARGET-stage1-target-libsanitizer)
34084
34085maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
34086clean-stage1: clean-stage1-target-libsanitizer
34087clean-stage1-target-libsanitizer:
34088 @if [ $(current_stage) = stage1 ]; then \
34089 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
34090 else \
34091 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
34092 $(MAKE) stage1-start; \
34093 fi; \
34094 cd $(TARGET_SUBDIR)/libsanitizer && \
34095 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34096 clean
34097@endif target-libsanitizer-bootstrap
34098
34099
34100.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
34101.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
34102maybe-all-stage2-target-libsanitizer:
34103maybe-clean-stage2-target-libsanitizer:
34104@if target-libsanitizer-bootstrap
34105maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
34106all-stage2: all-stage2-target-libsanitizer
34107TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
34108all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
34109 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34110 @r=`${PWD_COMMAND}`; export r; \
34111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34112 TFLAGS="$(STAGE2_TFLAGS)"; \
34113 $(RAW_CXX_TARGET_EXPORTS) \
34114 \
34115 cd $(TARGET_SUBDIR)/libsanitizer && \
34116 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34117 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34118 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34119 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34120 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34121 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34122 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34123 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34124 TFLAGS="$(STAGE2_TFLAGS)" \
34125 $(TARGET-stage2-target-libsanitizer)
34126
34127maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
34128clean-stage2: clean-stage2-target-libsanitizer
34129clean-stage2-target-libsanitizer:
34130 @if [ $(current_stage) = stage2 ]; then \
34131 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
34132 else \
34133 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
34134 $(MAKE) stage2-start; \
34135 fi; \
34136 cd $(TARGET_SUBDIR)/libsanitizer && \
34137 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34138@endif target-libsanitizer-bootstrap
34139
34140
34141.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
34142.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
34143maybe-all-stage3-target-libsanitizer:
34144maybe-clean-stage3-target-libsanitizer:
34145@if target-libsanitizer-bootstrap
34146maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
34147all-stage3: all-stage3-target-libsanitizer
34148TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
34149all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
34150 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34151 @r=`${PWD_COMMAND}`; export r; \
34152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34153 TFLAGS="$(STAGE3_TFLAGS)"; \
34154 $(RAW_CXX_TARGET_EXPORTS) \
34155 \
34156 cd $(TARGET_SUBDIR)/libsanitizer && \
34157 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34158 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34159 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34160 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34161 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34162 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34163 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34164 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34165 TFLAGS="$(STAGE3_TFLAGS)" \
34166 $(TARGET-stage3-target-libsanitizer)
34167
34168maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
34169clean-stage3: clean-stage3-target-libsanitizer
34170clean-stage3-target-libsanitizer:
34171 @if [ $(current_stage) = stage3 ]; then \
34172 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
34173 else \
34174 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
34175 $(MAKE) stage3-start; \
34176 fi; \
34177 cd $(TARGET_SUBDIR)/libsanitizer && \
34178 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34179@endif target-libsanitizer-bootstrap
34180
34181
34182.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
34183.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
34184maybe-all-stage4-target-libsanitizer:
34185maybe-clean-stage4-target-libsanitizer:
34186@if target-libsanitizer-bootstrap
34187maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
34188all-stage4: all-stage4-target-libsanitizer
34189TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
34190all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
34191 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34192 @r=`${PWD_COMMAND}`; export r; \
34193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34194 TFLAGS="$(STAGE4_TFLAGS)"; \
34195 $(RAW_CXX_TARGET_EXPORTS) \
34196 \
34197 cd $(TARGET_SUBDIR)/libsanitizer && \
34198 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34199 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34200 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34201 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
34202 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34203 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34204 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34205 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34206 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 34207 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 34208
1b6c0831
L
34209maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
34210clean-stage4: clean-stage4-target-libsanitizer
34211clean-stage4-target-libsanitizer:
e8a5fa9c 34212 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 34213 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 34214 else \
1b6c0831 34215 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
34216 $(MAKE) stage4-start; \
34217 fi; \
1b6c0831 34218 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 34219 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 34220@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
34221
34222
1b6c0831
L
34223.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
34224.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
34225maybe-all-stageprofile-target-libsanitizer:
34226maybe-clean-stageprofile-target-libsanitizer:
34227@if target-libsanitizer-bootstrap
34228maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
34229all-stageprofile: all-stageprofile-target-libsanitizer
34230TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
34231all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
34232 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34233 @r=`${PWD_COMMAND}`; export r; \
34234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34235 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34236 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 34237 \
1b6c0831 34238 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
34239 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34240 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34241 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34242 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34243 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34244 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34245 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34246 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34247 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 34248 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 34249
1b6c0831
L
34250maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
34251clean-stageprofile: clean-stageprofile-target-libsanitizer
34252clean-stageprofile-target-libsanitizer:
e8a5fa9c 34253 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 34254 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 34255 else \
1b6c0831 34256 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
34257 $(MAKE) stageprofile-start; \
34258 fi; \
1b6c0831 34259 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 34260 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 34261@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
34262
34263
1b6c0831
L
34264.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
34265.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
34266maybe-all-stagefeedback-target-libsanitizer:
34267maybe-clean-stagefeedback-target-libsanitizer:
34268@if target-libsanitizer-bootstrap
34269maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
34270all-stagefeedback: all-stagefeedback-target-libsanitizer
34271TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
34272all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
34273 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34274 @r=`${PWD_COMMAND}`; export r; \
34275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34276 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34277 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 34278 \
1b6c0831 34279 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
34280 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34281 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34282 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34283 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34284 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34285 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34286 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34287 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34288 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 34289 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 34290
1b6c0831
L
34291maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
34292clean-stagefeedback: clean-stagefeedback-target-libsanitizer
34293clean-stagefeedback-target-libsanitizer:
e8a5fa9c 34294 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 34295 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 34296 else \
1b6c0831 34297 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
34298 $(MAKE) stagefeedback-start; \
34299 fi; \
1b6c0831 34300 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 34301 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 34302@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
34303
34304
34305
34306
d545f33b
PB
34307
34308
1b6c0831
L
34309.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
34310maybe-check-target-libsanitizer:
34311@if target-libsanitizer
34312maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 34313
1b6c0831 34314check-target-libsanitizer:
0aed8855 34315 @: $(MAKE); $(unstage)
b40e3958
L
34316 @r=`${PWD_COMMAND}`; export r; \
34317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34318 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34319 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 34320 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 34321
1b6c0831 34322@endif target-libsanitizer
3866be5d 34323
1b6c0831
L
34324.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
34325maybe-install-target-libsanitizer:
34326@if target-libsanitizer
34327maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 34328
1b6c0831 34329install-target-libsanitizer: installdirs
0aed8855 34330 @: $(MAKE); $(unstage)
b40e3958
L
34331 @r=`${PWD_COMMAND}`; export r; \
34332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34333 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34334 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 34335 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 34336
1b6c0831 34337@endif target-libsanitizer
e2b9e2dc 34338
1b6c0831
L
34339.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
34340maybe-install-strip-target-libsanitizer:
34341@if target-libsanitizer
34342maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 34343
1b6c0831 34344install-strip-target-libsanitizer: installdirs
9b980aa1
RW
34345 @: $(MAKE); $(unstage)
34346 @r=`${PWD_COMMAND}`; export r; \
34347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34348 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34349 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
34350 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34351
1b6c0831 34352@endif target-libsanitizer
9b980aa1 34353
56a8fe78 34354# Other targets (info, dvi, pdf, etc.)
3866be5d 34355
1b6c0831
L
34356.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
34357maybe-info-target-libsanitizer:
34358@if target-libsanitizer
34359maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 34360
1b6c0831
L
34361info-target-libsanitizer: \
34362 configure-target-libsanitizer
0aed8855 34363 @: $(MAKE); $(unstage)
22121df0 34364 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34365 r=`${PWD_COMMAND}`; export r; \
b40e3958 34366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34367 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34368 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34369 for flag in $(EXTRA_TARGET_FLAGS); do \
34370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34371 done; \
1b6c0831 34372 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34375 "RANLIB=$${RANLIB}" \
0c24b341 34376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34377 info) \
4fa63067 34378 || exit 1
3866be5d 34379
1b6c0831 34380@endif target-libsanitizer
3866be5d 34381
1b6c0831
L
34382.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
34383maybe-dvi-target-libsanitizer:
34384@if target-libsanitizer
34385maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 34386
1b6c0831
L
34387dvi-target-libsanitizer: \
34388 configure-target-libsanitizer
0aed8855 34389 @: $(MAKE); $(unstage)
22121df0 34390 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34391 r=`${PWD_COMMAND}`; export r; \
b40e3958 34392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34393 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34394 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34395 for flag in $(EXTRA_TARGET_FLAGS); do \
34396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34397 done; \
1b6c0831 34398 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34401 "RANLIB=$${RANLIB}" \
0c24b341 34402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34403 dvi) \
4fa63067 34404 || exit 1
3866be5d 34405
1b6c0831 34406@endif target-libsanitizer
3866be5d 34407
1b6c0831
L
34408.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
34409maybe-pdf-target-libsanitizer:
34410@if target-libsanitizer
34411maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 34412
1b6c0831
L
34413pdf-target-libsanitizer: \
34414 configure-target-libsanitizer
56a8fe78 34415 @: $(MAKE); $(unstage)
22121df0 34416 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
56a8fe78
DD
34417 r=`${PWD_COMMAND}`; export r; \
34418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34419 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34420 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \
56a8fe78
DD
34421 for flag in $(EXTRA_TARGET_FLAGS); do \
34422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34423 done; \
1b6c0831 34424 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
34425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34427 "RANLIB=$${RANLIB}" \
0c24b341 34428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
34429 pdf) \
34430 || exit 1
34431
1b6c0831 34432@endif target-libsanitizer
56a8fe78 34433
1b6c0831
L
34434.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
34435maybe-html-target-libsanitizer:
34436@if target-libsanitizer
34437maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 34438
1b6c0831
L
34439html-target-libsanitizer: \
34440 configure-target-libsanitizer
0aed8855 34441 @: $(MAKE); $(unstage)
22121df0 34442 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
6d389afc
MS
34443 r=`${PWD_COMMAND}`; export r; \
34444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 34445 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34446 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \
6d389afc
MS
34447 for flag in $(EXTRA_TARGET_FLAGS); do \
34448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34449 done; \
1b6c0831 34450 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
34451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34453 "RANLIB=$${RANLIB}" \
0c24b341 34454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
34455 html) \
34456 || exit 1
34457
1b6c0831 34458@endif target-libsanitizer
6d389afc 34459
1b6c0831
L
34460.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
34461maybe-TAGS-target-libsanitizer:
34462@if target-libsanitizer
34463maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 34464
1b6c0831
L
34465TAGS-target-libsanitizer: \
34466 configure-target-libsanitizer
0aed8855 34467 @: $(MAKE); $(unstage)
22121df0 34468 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
34469 r=`${PWD_COMMAND}`; export r; \
34470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34471 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34472 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34473 for flag in $(EXTRA_TARGET_FLAGS); do \
34474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34475 done; \
1b6c0831 34476 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34479 "RANLIB=$${RANLIB}" \
0c24b341 34480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34481 TAGS) \
e2b9e2dc
NN
34482 || exit 1
34483
1b6c0831 34484@endif target-libsanitizer
3866be5d 34485
1b6c0831
L
34486.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
34487maybe-install-info-target-libsanitizer:
34488@if target-libsanitizer
34489maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 34490
1b6c0831
L
34491install-info-target-libsanitizer: \
34492 configure-target-libsanitizer \
34493 info-target-libsanitizer
0aed8855 34494 @: $(MAKE); $(unstage)
22121df0 34495 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34496 r=`${PWD_COMMAND}`; export r; \
b40e3958 34497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34498 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34499 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34500 for flag in $(EXTRA_TARGET_FLAGS); do \
34501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34502 done; \
1b6c0831 34503 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34506 "RANLIB=$${RANLIB}" \
0c24b341 34507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34508 install-info) \
4fa63067 34509 || exit 1
3866be5d 34510
1b6c0831 34511@endif target-libsanitizer
3866be5d 34512
1b6c0831
L
34513.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
34514maybe-install-pdf-target-libsanitizer:
34515@if target-libsanitizer
34516maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 34517
1b6c0831
L
34518install-pdf-target-libsanitizer: \
34519 configure-target-libsanitizer \
34520 pdf-target-libsanitizer
a3ca38d2 34521 @: $(MAKE); $(unstage)
22121df0 34522 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
a3ca38d2
DD
34523 r=`${PWD_COMMAND}`; export r; \
34524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34525 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34526 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \
a3ca38d2
DD
34527 for flag in $(EXTRA_TARGET_FLAGS); do \
34528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34529 done; \
1b6c0831 34530 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
34531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34533 "RANLIB=$${RANLIB}" \
0c24b341 34534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
34535 install-pdf) \
34536 || exit 1
34537
1b6c0831 34538@endif target-libsanitizer
a3ca38d2 34539
1b6c0831
L
34540.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
34541maybe-install-html-target-libsanitizer:
34542@if target-libsanitizer
34543maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 34544
1b6c0831
L
34545install-html-target-libsanitizer: \
34546 configure-target-libsanitizer \
34547 html-target-libsanitizer
108a6f8e 34548 @: $(MAKE); $(unstage)
22121df0 34549 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
108a6f8e
CD
34550 r=`${PWD_COMMAND}`; export r; \
34551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34552 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34553 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \
108a6f8e
CD
34554 for flag in $(EXTRA_TARGET_FLAGS); do \
34555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34556 done; \
1b6c0831 34557 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
34558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34560 "RANLIB=$${RANLIB}" \
0c24b341 34561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
34562 install-html) \
34563 || exit 1
34564
1b6c0831 34565@endif target-libsanitizer
108a6f8e 34566
1b6c0831
L
34567.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
34568maybe-installcheck-target-libsanitizer:
34569@if target-libsanitizer
34570maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 34571
1b6c0831
L
34572installcheck-target-libsanitizer: \
34573 configure-target-libsanitizer
0aed8855 34574 @: $(MAKE); $(unstage)
22121df0 34575 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34576 r=`${PWD_COMMAND}`; export r; \
b40e3958 34577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34578 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34579 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34580 for flag in $(EXTRA_TARGET_FLAGS); do \
34581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34582 done; \
1b6c0831 34583 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34586 "RANLIB=$${RANLIB}" \
0c24b341 34587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34588 installcheck) \
4fa63067 34589 || exit 1
3866be5d 34590
1b6c0831 34591@endif target-libsanitizer
3866be5d 34592
1b6c0831
L
34593.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
34594maybe-mostlyclean-target-libsanitizer:
34595@if target-libsanitizer
34596maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 34597
1b6c0831 34598mostlyclean-target-libsanitizer:
0aed8855 34599 @: $(MAKE); $(unstage)
22121df0 34600 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
34601 r=`${PWD_COMMAND}`; export r; \
34602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34603 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34604 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34605 for flag in $(EXTRA_TARGET_FLAGS); do \
34606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34607 done; \
1b6c0831 34608 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34611 "RANLIB=$${RANLIB}" \
0c24b341 34612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34613 mostlyclean) \
e2b9e2dc
NN
34614 || exit 1
34615
1b6c0831 34616@endif target-libsanitizer
4fa63067 34617
1b6c0831
L
34618.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
34619maybe-clean-target-libsanitizer:
34620@if target-libsanitizer
34621maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 34622
1b6c0831 34623clean-target-libsanitizer:
0aed8855 34624 @: $(MAKE); $(unstage)
22121df0 34625 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34626 r=`${PWD_COMMAND}`; export r; \
b40e3958 34627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34628 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34629 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34630 for flag in $(EXTRA_TARGET_FLAGS); do \
34631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34632 done; \
1b6c0831 34633 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34636 "RANLIB=$${RANLIB}" \
0c24b341 34637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34638 clean) \
4fa63067 34639 || exit 1
3866be5d 34640
1b6c0831 34641@endif target-libsanitizer
3866be5d 34642
1b6c0831
L
34643.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
34644maybe-distclean-target-libsanitizer:
34645@if target-libsanitizer
34646maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 34647
1b6c0831 34648distclean-target-libsanitizer:
0aed8855 34649 @: $(MAKE); $(unstage)
22121df0 34650 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34651 r=`${PWD_COMMAND}`; export r; \
b40e3958 34652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34653 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34654 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34655 for flag in $(EXTRA_TARGET_FLAGS); do \
34656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34657 done; \
1b6c0831 34658 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34661 "RANLIB=$${RANLIB}" \
0c24b341 34662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34663 distclean) \
4fa63067 34664 || exit 1
3866be5d 34665
1b6c0831 34666@endif target-libsanitizer
3866be5d 34667
1b6c0831
L
34668.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
34669maybe-maintainer-clean-target-libsanitizer:
34670@if target-libsanitizer
34671maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 34672
1b6c0831 34673maintainer-clean-target-libsanitizer:
0aed8855 34674 @: $(MAKE); $(unstage)
22121df0 34675 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34676 r=`${PWD_COMMAND}`; export r; \
b40e3958 34677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34678 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34679 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34680 for flag in $(EXTRA_TARGET_FLAGS); do \
34681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34682 done; \
1b6c0831 34683 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34686 "RANLIB=$${RANLIB}" \
0c24b341 34687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34688 maintainer-clean) \
4fa63067 34689 || exit 1
3866be5d 34690
1b6c0831 34691@endif target-libsanitizer
3866be5d 34692
4fa63067 34693
4fa63067 34694
a7254363
PB
34695
34696
1b6c0831
L
34697.PHONY: configure-target-libmpx maybe-configure-target-libmpx
34698maybe-configure-target-libmpx:
5286fdef 34699@if gcc-bootstrap
1b6c0831 34700configure-target-libmpx: stage_current
5286fdef 34701@endif gcc-bootstrap
1b6c0831
L
34702@if target-libmpx
34703maybe-configure-target-libmpx: configure-target-libmpx
34704configure-target-libmpx:
5286fdef
L
34705 @r=`${PWD_COMMAND}`; export r; \
34706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 34707 echo "Checking multilib configuration for libmpx..."; \
22121df0
L
34708 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
34709 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34710 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34711 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34712 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 34713 else \
1b6c0831
L
34714 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34715 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
34716 fi; \
34717 else \
1b6c0831 34718 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 34719 fi; \
1b6c0831 34720 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
22121df0 34721 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831
L
34722 $(NORMAL_TARGET_EXPORTS) \
34723 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
34724 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
34725 case $(srcdir) in \
34726 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34727 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
34728 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34729 esac; \
1b6c0831 34730 module_srcdir=libmpx; \
5286fdef 34731 rm -f no-such-file || : ; \
1b6c0831
L
34732 CONFIG_SITE=no-such-file $(SHELL) \
34733 $$s/$$module_srcdir/configure \
34734 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 34735 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34736 --target=${target_alias} \
5286fdef 34737 || exit 1
1b6c0831 34738@endif target-libmpx
5286fdef
L
34739
34740
34741
1b6c0831
L
34742.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
34743maybe-configure-stage1-target-libmpx:
34744@if target-libmpx-bootstrap
34745maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
34746configure-stage1-target-libmpx:
5eb08693 34747 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 34748 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34749 @r=`${PWD_COMMAND}`; export r; \
34750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34751 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831 34752 echo "Checking multilib configuration for libmpx..."; \
22121df0 34753 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34754 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34755 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34756 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34757 else \
1b6c0831
L
34758 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34759 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34760 fi; \
34761 else \
1b6c0831 34762 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34763 fi; \
1b6c0831
L
34764 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34765 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34766 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34767 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34768 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34769 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \
34770 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34771 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34772 case $(srcdir) in \
34773 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34774 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34775 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34776 esac; \
1b6c0831
L
34777 module_srcdir=libmpx; \
34778 $(SHELL) $$s/$$module_srcdir/configure \
34779 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34780 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34781 --target=${target_alias} \
34782 \
5eb08693 34783 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 34784@endif target-libmpx-bootstrap
5eb08693 34785
1b6c0831
L
34786.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
34787maybe-configure-stage2-target-libmpx:
34788@if target-libmpx-bootstrap
34789maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
34790configure-stage2-target-libmpx:
5eb08693 34791 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 34792 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34793 @r=`${PWD_COMMAND}`; export r; \
34794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34795 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 34796 echo "Checking multilib configuration for libmpx..."; \
22121df0 34797 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34798 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34799 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34800 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34801 else \
1b6c0831
L
34802 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34803 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34804 fi; \
34805 else \
1b6c0831 34806 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34807 fi; \
1b6c0831
L
34808 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34809 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34810 \
34811 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34812 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34813 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34814 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \
34815 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34816 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34817 case $(srcdir) in \
34818 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34819 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34820 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34821 esac; \
1b6c0831
L
34822 module_srcdir=libmpx; \
34823 $(SHELL) $$s/$$module_srcdir/configure \
34824 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34825 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34826 --target=${target_alias} \
22121df0 34827 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34828 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 34829@endif target-libmpx-bootstrap
5eb08693 34830
1b6c0831
L
34831.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
34832maybe-configure-stage3-target-libmpx:
34833@if target-libmpx-bootstrap
34834maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
34835configure-stage3-target-libmpx:
5eb08693 34836 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 34837 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34838 @r=`${PWD_COMMAND}`; export r; \
34839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34840 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 34841 echo "Checking multilib configuration for libmpx..."; \
22121df0 34842 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34843 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34844 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34845 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34846 else \
1b6c0831
L
34847 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34848 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34849 fi; \
34850 else \
1b6c0831 34851 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34852 fi; \
1b6c0831
L
34853 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34854 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34855 \
34856 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34857 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34858 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34859 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \
34860 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34861 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34862 case $(srcdir) in \
34863 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34864 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34865 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34866 esac; \
1b6c0831
L
34867 module_srcdir=libmpx; \
34868 $(SHELL) $$s/$$module_srcdir/configure \
34869 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34870 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34871 --target=${target_alias} \
22121df0 34872 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34873 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 34874@endif target-libmpx-bootstrap
5eb08693 34875
1b6c0831
L
34876.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
34877maybe-configure-stage4-target-libmpx:
34878@if target-libmpx-bootstrap
34879maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
34880configure-stage4-target-libmpx:
5eb08693 34881 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 34882 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34883 @r=`${PWD_COMMAND}`; export r; \
34884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34885 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 34886 echo "Checking multilib configuration for libmpx..."; \
22121df0 34887 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34888 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34889 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34890 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34891 else \
1b6c0831
L
34892 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34893 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34894 fi; \
34895 else \
1b6c0831 34896 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34897 fi; \
1b6c0831
L
34898 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34899 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34900 \
34901 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34902 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34903 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34904 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \
34905 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34906 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34907 case $(srcdir) in \
34908 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34909 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34910 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34911 esac; \
1b6c0831
L
34912 module_srcdir=libmpx; \
34913 $(SHELL) $$s/$$module_srcdir/configure \
34914 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34915 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34916 --target=${target_alias} \
22121df0 34917 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34918 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 34919@endif target-libmpx-bootstrap
5eb08693 34920
1b6c0831
L
34921.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
34922maybe-configure-stageprofile-target-libmpx:
34923@if target-libmpx-bootstrap
34924maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
34925configure-stageprofile-target-libmpx:
5eb08693 34926 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 34927 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34928 @r=`${PWD_COMMAND}`; export r; \
34929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34930 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 34931 echo "Checking multilib configuration for libmpx..."; \
22121df0 34932 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34933 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34934 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34935 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34936 else \
1b6c0831
L
34937 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34938 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34939 fi; \
34940 else \
1b6c0831 34941 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34942 fi; \
1b6c0831
L
34943 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34944 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34945 \
34946 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34947 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34948 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34949 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \
34950 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34951 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34952 case $(srcdir) in \
34953 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34954 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34955 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34956 esac; \
1b6c0831
L
34957 module_srcdir=libmpx; \
34958 $(SHELL) $$s/$$module_srcdir/configure \
34959 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34960 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34961 --target=${target_alias} \
22121df0 34962 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34963 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 34964@endif target-libmpx-bootstrap
5eb08693 34965
1b6c0831
L
34966.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
34967maybe-configure-stagefeedback-target-libmpx:
34968@if target-libmpx-bootstrap
34969maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
34970configure-stagefeedback-target-libmpx:
5eb08693 34971 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 34972 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34973 @r=`${PWD_COMMAND}`; export r; \
34974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34975 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 34976 echo "Checking multilib configuration for libmpx..."; \
22121df0 34977 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34978 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34979 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34980 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34981 else \
1b6c0831
L
34982 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34983 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34984 fi; \
34985 else \
1b6c0831 34986 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34987 fi; \
1b6c0831
L
34988 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34989 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34990 \
34991 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34992 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34993 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34994 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \
34995 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34996 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34997 case $(srcdir) in \
34998 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34999 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
35000 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35001 esac; \
1b6c0831
L
35002 module_srcdir=libmpx; \
35003 $(SHELL) $$s/$$module_srcdir/configure \
35004 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 35005 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35006 --target=${target_alias} \
22121df0 35007 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 35008 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 35009@endif target-libmpx-bootstrap
5eb08693
L
35010
35011
35012
5286fdef
L
35013
35014
1b6c0831
L
35015.PHONY: all-target-libmpx maybe-all-target-libmpx
35016maybe-all-target-libmpx:
5286fdef 35017@if gcc-bootstrap
1b6c0831 35018all-target-libmpx: stage_current
5286fdef 35019@endif gcc-bootstrap
1b6c0831
L
35020@if target-libmpx
35021TARGET-target-libmpx=all
35022maybe-all-target-libmpx: all-target-libmpx
35023all-target-libmpx: configure-target-libmpx
5286fdef
L
35024 @r=`${PWD_COMMAND}`; export r; \
35025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35026 $(NORMAL_TARGET_EXPORTS) \
35027 (cd $(TARGET_SUBDIR)/libmpx && \
35028 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
35029 $(TARGET-target-libmpx))
35030@endif target-libmpx
5286fdef
L
35031
35032
35033
1b6c0831
L
35034.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
35035.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
35036maybe-all-stage1-target-libmpx:
35037maybe-clean-stage1-target-libmpx:
35038@if target-libmpx-bootstrap
35039maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
35040all-stage1: all-stage1-target-libmpx
35041TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
35042all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
35043 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35044 @r=`${PWD_COMMAND}`; export r; \
35045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35046 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
35047 $(NORMAL_TARGET_EXPORTS) \
35048 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35049 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35050 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35051 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35052 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35053 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35054 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35055 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35056 $(EXTRA_TARGET_FLAGS) \
5eb08693
L
35057 \
35058 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 35059 $(TARGET-stage1-target-libmpx)
5eb08693 35060
1b6c0831
L
35061maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
35062clean-stage1: clean-stage1-target-libmpx
35063clean-stage1-target-libmpx:
5eb08693 35064 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 35065 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35066 else \
1b6c0831 35067 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
35068 $(MAKE) stage1-start; \
35069 fi; \
1b6c0831
L
35070 cd $(TARGET_SUBDIR)/libmpx && \
35071 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 35072 clean
1b6c0831
L
35073@endif target-libmpx-bootstrap
35074
35075
35076.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
35077.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
35078maybe-all-stage2-target-libmpx:
35079maybe-clean-stage2-target-libmpx:
35080@if target-libmpx-bootstrap
35081maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
35082all-stage2: all-stage2-target-libmpx
35083TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
35084all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
35085 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35086 @r=`${PWD_COMMAND}`; export r; \
35087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35088 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 35089 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35090 \
1b6c0831 35091 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35092 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35093 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35094 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35095 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35096 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35097 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35098 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35099 $(EXTRA_TARGET_FLAGS) \
5eb08693 35100 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 35101 $(TARGET-stage2-target-libmpx)
5eb08693 35102
1b6c0831
L
35103maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
35104clean-stage2: clean-stage2-target-libmpx
35105clean-stage2-target-libmpx:
5eb08693 35106 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 35107 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35108 else \
1b6c0831 35109 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
35110 $(MAKE) stage2-start; \
35111 fi; \
1b6c0831
L
35112 cd $(TARGET_SUBDIR)/libmpx && \
35113 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35114@endif target-libmpx-bootstrap
35115
35116
35117.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
35118.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
35119maybe-all-stage3-target-libmpx:
35120maybe-clean-stage3-target-libmpx:
35121@if target-libmpx-bootstrap
35122maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
35123all-stage3: all-stage3-target-libmpx
35124TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
35125all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
35126 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35127 @r=`${PWD_COMMAND}`; export r; \
35128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35129 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 35130 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35131 \
1b6c0831 35132 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35133 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35134 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35135 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35136 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35137 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35138 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35139 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35140 $(EXTRA_TARGET_FLAGS) \
5eb08693 35141 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 35142 $(TARGET-stage3-target-libmpx)
5eb08693 35143
1b6c0831
L
35144maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
35145clean-stage3: clean-stage3-target-libmpx
35146clean-stage3-target-libmpx:
5eb08693 35147 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 35148 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35149 else \
1b6c0831 35150 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
35151 $(MAKE) stage3-start; \
35152 fi; \
1b6c0831
L
35153 cd $(TARGET_SUBDIR)/libmpx && \
35154 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35155@endif target-libmpx-bootstrap
35156
35157
35158.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
35159.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
35160maybe-all-stage4-target-libmpx:
35161maybe-clean-stage4-target-libmpx:
35162@if target-libmpx-bootstrap
35163maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
35164all-stage4: all-stage4-target-libmpx
35165TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
35166all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
35167 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35168 @r=`${PWD_COMMAND}`; export r; \
35169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35170 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 35171 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35172 \
1b6c0831 35173 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35174 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35175 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35176 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35177 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35178 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35179 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35180 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35181 $(EXTRA_TARGET_FLAGS) \
5eb08693 35182 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 35183 $(TARGET-stage4-target-libmpx)
5eb08693 35184
1b6c0831
L
35185maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
35186clean-stage4: clean-stage4-target-libmpx
35187clean-stage4-target-libmpx:
5eb08693 35188 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 35189 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35190 else \
1b6c0831 35191 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
35192 $(MAKE) stage4-start; \
35193 fi; \
1b6c0831
L
35194 cd $(TARGET_SUBDIR)/libmpx && \
35195 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35196@endif target-libmpx-bootstrap
35197
35198
35199.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
35200.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
35201maybe-all-stageprofile-target-libmpx:
35202maybe-clean-stageprofile-target-libmpx:
35203@if target-libmpx-bootstrap
35204maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
35205all-stageprofile: all-stageprofile-target-libmpx
35206TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
35207all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
35208 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35209 @r=`${PWD_COMMAND}`; export r; \
35210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35211 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 35212 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35213 \
1b6c0831 35214 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35215 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35216 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35217 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35218 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35219 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35220 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35221 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35222 $(EXTRA_TARGET_FLAGS) \
5eb08693 35223 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 35224 $(TARGET-stageprofile-target-libmpx)
5eb08693 35225
1b6c0831
L
35226maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
35227clean-stageprofile: clean-stageprofile-target-libmpx
35228clean-stageprofile-target-libmpx:
5eb08693 35229 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 35230 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35231 else \
1b6c0831 35232 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
35233 $(MAKE) stageprofile-start; \
35234 fi; \
1b6c0831
L
35235 cd $(TARGET_SUBDIR)/libmpx && \
35236 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35237@endif target-libmpx-bootstrap
35238
35239
35240.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
35241.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
35242maybe-all-stagefeedback-target-libmpx:
35243maybe-clean-stagefeedback-target-libmpx:
35244@if target-libmpx-bootstrap
35245maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
35246all-stagefeedback: all-stagefeedback-target-libmpx
35247TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
35248all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
35249 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35250 @r=`${PWD_COMMAND}`; export r; \
35251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35252 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 35253 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35254 \
1b6c0831 35255 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35256 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35257 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35258 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35259 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35260 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35261 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35262 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35263 $(EXTRA_TARGET_FLAGS) \
5eb08693 35264 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 35265 $(TARGET-stagefeedback-target-libmpx)
5eb08693 35266
1b6c0831
L
35267maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
35268clean-stagefeedback: clean-stagefeedback-target-libmpx
35269clean-stagefeedback-target-libmpx:
5eb08693 35270 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 35271 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35272 else \
1b6c0831 35273 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
35274 $(MAKE) stagefeedback-start; \
35275 fi; \
1b6c0831
L
35276 cd $(TARGET_SUBDIR)/libmpx && \
35277 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35278@endif target-libmpx-bootstrap
5eb08693
L
35279
35280
35281
35282
5286fdef
L
35283
35284
1b6c0831
L
35285.PHONY: check-target-libmpx maybe-check-target-libmpx
35286maybe-check-target-libmpx:
35287@if target-libmpx
35288maybe-check-target-libmpx: check-target-libmpx
5286fdef 35289
1b6c0831 35290check-target-libmpx:
5286fdef
L
35291 @: $(MAKE); $(unstage)
35292 @r=`${PWD_COMMAND}`; export r; \
35293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35294 $(NORMAL_TARGET_EXPORTS) \
35295 (cd $(TARGET_SUBDIR)/libmpx && \
35296 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 35297
1b6c0831 35298@endif target-libmpx
5286fdef 35299
1b6c0831
L
35300.PHONY: install-target-libmpx maybe-install-target-libmpx
35301maybe-install-target-libmpx:
35302@if target-libmpx
35303maybe-install-target-libmpx: install-target-libmpx
5286fdef 35304
1b6c0831 35305install-target-libmpx: installdirs
5286fdef
L
35306 @: $(MAKE); $(unstage)
35307 @r=`${PWD_COMMAND}`; export r; \
35308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35309 $(NORMAL_TARGET_EXPORTS) \
35310 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35311 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
35312
1b6c0831 35313@endif target-libmpx
5286fdef 35314
1b6c0831
L
35315.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
35316maybe-install-strip-target-libmpx:
35317@if target-libmpx
35318maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 35319
1b6c0831 35320install-strip-target-libmpx: installdirs
5286fdef
L
35321 @: $(MAKE); $(unstage)
35322 @r=`${PWD_COMMAND}`; export r; \
35323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35324 $(NORMAL_TARGET_EXPORTS) \
35325 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35326 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35327
1b6c0831 35328@endif target-libmpx
5286fdef
L
35329
35330# Other targets (info, dvi, pdf, etc.)
35331
1b6c0831
L
35332.PHONY: maybe-info-target-libmpx info-target-libmpx
35333maybe-info-target-libmpx:
35334@if target-libmpx
35335maybe-info-target-libmpx: info-target-libmpx
5286fdef 35336
1b6c0831
L
35337info-target-libmpx: \
35338 configure-target-libmpx
5286fdef 35339 @: $(MAKE); $(unstage)
22121df0 35340 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35341 r=`${PWD_COMMAND}`; export r; \
35342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35343 $(NORMAL_TARGET_EXPORTS) \
22121df0 35344 echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35345 for flag in $(EXTRA_TARGET_FLAGS); do \
35346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35347 done; \
1b6c0831 35348 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35351 "RANLIB=$${RANLIB}" \
35352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35353 info) \
35354 || exit 1
35355
1b6c0831 35356@endif target-libmpx
5286fdef 35357
1b6c0831
L
35358.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
35359maybe-dvi-target-libmpx:
35360@if target-libmpx
35361maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 35362
1b6c0831
L
35363dvi-target-libmpx: \
35364 configure-target-libmpx
5286fdef 35365 @: $(MAKE); $(unstage)
22121df0 35366 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35367 r=`${PWD_COMMAND}`; export r; \
35368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35369 $(NORMAL_TARGET_EXPORTS) \
22121df0 35370 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35371 for flag in $(EXTRA_TARGET_FLAGS); do \
35372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35373 done; \
1b6c0831 35374 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35377 "RANLIB=$${RANLIB}" \
35378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35379 dvi) \
35380 || exit 1
35381
1b6c0831 35382@endif target-libmpx
5286fdef 35383
1b6c0831
L
35384.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
35385maybe-pdf-target-libmpx:
35386@if target-libmpx
35387maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 35388
1b6c0831
L
35389pdf-target-libmpx: \
35390 configure-target-libmpx
5286fdef 35391 @: $(MAKE); $(unstage)
22121df0 35392 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35393 r=`${PWD_COMMAND}`; export r; \
35394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35395 $(NORMAL_TARGET_EXPORTS) \
22121df0 35396 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35397 for flag in $(EXTRA_TARGET_FLAGS); do \
35398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35399 done; \
1b6c0831 35400 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35403 "RANLIB=$${RANLIB}" \
35404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35405 pdf) \
35406 || exit 1
35407
1b6c0831 35408@endif target-libmpx
5286fdef 35409
1b6c0831
L
35410.PHONY: maybe-html-target-libmpx html-target-libmpx
35411maybe-html-target-libmpx:
35412@if target-libmpx
35413maybe-html-target-libmpx: html-target-libmpx
5286fdef 35414
1b6c0831
L
35415html-target-libmpx: \
35416 configure-target-libmpx
5286fdef 35417 @: $(MAKE); $(unstage)
22121df0 35418 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35419 r=`${PWD_COMMAND}`; export r; \
35420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35421 $(NORMAL_TARGET_EXPORTS) \
22121df0 35422 echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35423 for flag in $(EXTRA_TARGET_FLAGS); do \
35424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35425 done; \
1b6c0831 35426 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35429 "RANLIB=$${RANLIB}" \
35430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35431 html) \
35432 || exit 1
35433
1b6c0831 35434@endif target-libmpx
5286fdef 35435
1b6c0831
L
35436.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
35437maybe-TAGS-target-libmpx:
35438@if target-libmpx
35439maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 35440
1b6c0831
L
35441TAGS-target-libmpx: \
35442 configure-target-libmpx
5286fdef 35443 @: $(MAKE); $(unstage)
22121df0 35444 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35445 r=`${PWD_COMMAND}`; export r; \
35446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35447 $(NORMAL_TARGET_EXPORTS) \
22121df0 35448 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35449 for flag in $(EXTRA_TARGET_FLAGS); do \
35450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35451 done; \
1b6c0831 35452 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35455 "RANLIB=$${RANLIB}" \
35456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35457 TAGS) \
35458 || exit 1
35459
1b6c0831 35460@endif target-libmpx
5286fdef 35461
1b6c0831
L
35462.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
35463maybe-install-info-target-libmpx:
35464@if target-libmpx
35465maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 35466
1b6c0831
L
35467install-info-target-libmpx: \
35468 configure-target-libmpx \
35469 info-target-libmpx
5286fdef 35470 @: $(MAKE); $(unstage)
22121df0 35471 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35472 r=`${PWD_COMMAND}`; export r; \
35473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35474 $(NORMAL_TARGET_EXPORTS) \
22121df0 35475 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35476 for flag in $(EXTRA_TARGET_FLAGS); do \
35477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35478 done; \
1b6c0831 35479 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35482 "RANLIB=$${RANLIB}" \
35483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35484 install-info) \
35485 || exit 1
35486
1b6c0831 35487@endif target-libmpx
5286fdef 35488
1b6c0831
L
35489.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
35490maybe-install-pdf-target-libmpx:
35491@if target-libmpx
35492maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 35493
1b6c0831
L
35494install-pdf-target-libmpx: \
35495 configure-target-libmpx \
35496 pdf-target-libmpx
5286fdef 35497 @: $(MAKE); $(unstage)
22121df0 35498 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35499 r=`${PWD_COMMAND}`; export r; \
35500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35501 $(NORMAL_TARGET_EXPORTS) \
22121df0 35502 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35503 for flag in $(EXTRA_TARGET_FLAGS); do \
35504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35505 done; \
1b6c0831 35506 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35509 "RANLIB=$${RANLIB}" \
35510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35511 install-pdf) \
35512 || exit 1
35513
1b6c0831 35514@endif target-libmpx
5286fdef 35515
1b6c0831
L
35516.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
35517maybe-install-html-target-libmpx:
35518@if target-libmpx
35519maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 35520
1b6c0831
L
35521install-html-target-libmpx: \
35522 configure-target-libmpx \
35523 html-target-libmpx
5286fdef 35524 @: $(MAKE); $(unstage)
22121df0 35525 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35526 r=`${PWD_COMMAND}`; export r; \
35527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35528 $(NORMAL_TARGET_EXPORTS) \
22121df0 35529 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35530 for flag in $(EXTRA_TARGET_FLAGS); do \
35531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35532 done; \
1b6c0831 35533 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35536 "RANLIB=$${RANLIB}" \
35537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35538 install-html) \
35539 || exit 1
35540
1b6c0831 35541@endif target-libmpx
5286fdef 35542
1b6c0831
L
35543.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
35544maybe-installcheck-target-libmpx:
35545@if target-libmpx
35546maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 35547
1b6c0831
L
35548installcheck-target-libmpx: \
35549 configure-target-libmpx
5286fdef 35550 @: $(MAKE); $(unstage)
22121df0 35551 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35552 r=`${PWD_COMMAND}`; export r; \
35553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35554 $(NORMAL_TARGET_EXPORTS) \
22121df0 35555 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35556 for flag in $(EXTRA_TARGET_FLAGS); do \
35557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35558 done; \
1b6c0831 35559 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35562 "RANLIB=$${RANLIB}" \
35563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35564 installcheck) \
35565 || exit 1
35566
1b6c0831 35567@endif target-libmpx
5286fdef 35568
1b6c0831
L
35569.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
35570maybe-mostlyclean-target-libmpx:
35571@if target-libmpx
35572maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 35573
1b6c0831 35574mostlyclean-target-libmpx:
5286fdef 35575 @: $(MAKE); $(unstage)
22121df0 35576 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35577 r=`${PWD_COMMAND}`; export r; \
35578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35579 $(NORMAL_TARGET_EXPORTS) \
22121df0 35580 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35581 for flag in $(EXTRA_TARGET_FLAGS); do \
35582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35583 done; \
1b6c0831 35584 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35587 "RANLIB=$${RANLIB}" \
35588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35589 mostlyclean) \
35590 || exit 1
35591
1b6c0831 35592@endif target-libmpx
5286fdef 35593
1b6c0831
L
35594.PHONY: maybe-clean-target-libmpx clean-target-libmpx
35595maybe-clean-target-libmpx:
35596@if target-libmpx
35597maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 35598
1b6c0831 35599clean-target-libmpx:
5286fdef 35600 @: $(MAKE); $(unstage)
22121df0 35601 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35602 r=`${PWD_COMMAND}`; export r; \
35603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35604 $(NORMAL_TARGET_EXPORTS) \
22121df0 35605 echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35606 for flag in $(EXTRA_TARGET_FLAGS); do \
35607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35608 done; \
1b6c0831 35609 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35612 "RANLIB=$${RANLIB}" \
35613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35614 clean) \
35615 || exit 1
35616
1b6c0831 35617@endif target-libmpx
5286fdef 35618
1b6c0831
L
35619.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
35620maybe-distclean-target-libmpx:
35621@if target-libmpx
35622maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 35623
1b6c0831 35624distclean-target-libmpx:
5286fdef 35625 @: $(MAKE); $(unstage)
22121df0 35626 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35627 r=`${PWD_COMMAND}`; export r; \
35628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35629 $(NORMAL_TARGET_EXPORTS) \
22121df0 35630 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35631 for flag in $(EXTRA_TARGET_FLAGS); do \
35632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35633 done; \
1b6c0831 35634 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35637 "RANLIB=$${RANLIB}" \
35638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35639 distclean) \
35640 || exit 1
35641
1b6c0831 35642@endif target-libmpx
5286fdef 35643
1b6c0831
L
35644.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
35645maybe-maintainer-clean-target-libmpx:
35646@if target-libmpx
35647maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 35648
1b6c0831 35649maintainer-clean-target-libmpx:
5286fdef 35650 @: $(MAKE); $(unstage)
22121df0 35651 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35652 r=`${PWD_COMMAND}`; export r; \
35653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35654 $(NORMAL_TARGET_EXPORTS) \
22121df0 35655 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35656 for flag in $(EXTRA_TARGET_FLAGS); do \
35657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35658 done; \
1b6c0831 35659 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35662 "RANLIB=$${RANLIB}" \
35663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35664 maintainer-clean) \
35665 || exit 1
35666
1b6c0831 35667@endif target-libmpx
5286fdef
L
35668
35669
35670
35671
35672
95e43135
JBG
35673.PHONY: configure-target-libvtv maybe-configure-target-libvtv
35674maybe-configure-target-libvtv:
35675@if gcc-bootstrap
35676configure-target-libvtv: stage_current
35677@endif gcc-bootstrap
35678@if target-libvtv
35679maybe-configure-target-libvtv: configure-target-libvtv
35680configure-target-libvtv:
35681 @r=`${PWD_COMMAND}`; export r; \
35682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35683 echo "Checking multilib configuration for libvtv..."; \
22121df0
L
35684 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
35685 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35686 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35687 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35688 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35689 else \
35690 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35691 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35692 fi; \
35693 else \
35694 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35695 fi; \
35696 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
22121df0 35697 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35698 $(RAW_CXX_TARGET_EXPORTS) \
35699 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
35700 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
35701 case $(srcdir) in \
35702 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35703 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35704 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35705 esac; \
1b6c0831 35706 module_srcdir=libvtv; \
95e43135 35707 rm -f no-such-file || : ; \
1b6c0831
L
35708 CONFIG_SITE=no-such-file $(SHELL) \
35709 $$s/$$module_srcdir/configure \
35710 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35711 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35712 --target=${target_alias} \
95e43135
JBG
35713 || exit 1
35714@endif target-libvtv
35715
35716
35717
35718.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
35719maybe-configure-stage1-target-libvtv:
35720@if target-libvtv-bootstrap
35721maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
35722configure-stage1-target-libvtv:
35723 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35724 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35725 @r=`${PWD_COMMAND}`; export r; \
35726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35727 TFLAGS="$(STAGE1_TFLAGS)"; \
35728 echo "Checking multilib configuration for libvtv..."; \
22121df0 35729 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35730 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35731 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35732 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35733 else \
35734 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35735 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35736 fi; \
35737 else \
35738 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35739 fi; \
35740 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35741 $(RAW_CXX_TARGET_EXPORTS) \
35742 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35743 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35744 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35745 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \
35746 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35747 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35748 case $(srcdir) in \
35749 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35750 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35751 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35752 esac; \
1b6c0831
L
35753 module_srcdir=libvtv; \
35754 $(SHELL) $$s/$$module_srcdir/configure \
35755 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35756 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35757 --target=${target_alias} \
35758 \
95e43135
JBG
35759 $(STAGE1_CONFIGURE_FLAGS)
35760@endif target-libvtv-bootstrap
35761
35762.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
35763maybe-configure-stage2-target-libvtv:
35764@if target-libvtv-bootstrap
35765maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
35766configure-stage2-target-libvtv:
35767 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35768 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35769 @r=`${PWD_COMMAND}`; export r; \
35770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35771 TFLAGS="$(STAGE2_TFLAGS)"; \
35772 echo "Checking multilib configuration for libvtv..."; \
22121df0 35773 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35774 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35775 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35776 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35777 else \
35778 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35779 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35780 fi; \
35781 else \
35782 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35783 fi; \
35784 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35785 $(RAW_CXX_TARGET_EXPORTS) \
35786 \
35787 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35788 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35789 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35790 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \
35791 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35792 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35793 case $(srcdir) in \
35794 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35795 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35796 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35797 esac; \
1b6c0831
L
35798 module_srcdir=libvtv; \
35799 $(SHELL) $$s/$$module_srcdir/configure \
35800 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35801 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35802 --target=${target_alias} \
22121df0 35803 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35804 $(STAGE2_CONFIGURE_FLAGS)
35805@endif target-libvtv-bootstrap
35806
35807.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
35808maybe-configure-stage3-target-libvtv:
35809@if target-libvtv-bootstrap
35810maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
35811configure-stage3-target-libvtv:
35812 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35813 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35814 @r=`${PWD_COMMAND}`; export r; \
35815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35816 TFLAGS="$(STAGE3_TFLAGS)"; \
35817 echo "Checking multilib configuration for libvtv..."; \
22121df0 35818 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35819 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35820 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35821 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35822 else \
35823 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35824 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35825 fi; \
35826 else \
35827 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35828 fi; \
35829 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35830 $(RAW_CXX_TARGET_EXPORTS) \
35831 \
35832 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35833 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35834 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35835 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \
35836 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35837 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35838 case $(srcdir) in \
35839 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35840 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35841 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35842 esac; \
1b6c0831
L
35843 module_srcdir=libvtv; \
35844 $(SHELL) $$s/$$module_srcdir/configure \
35845 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35846 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35847 --target=${target_alias} \
22121df0 35848 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35849 $(STAGE3_CONFIGURE_FLAGS)
35850@endif target-libvtv-bootstrap
35851
35852.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
35853maybe-configure-stage4-target-libvtv:
35854@if target-libvtv-bootstrap
35855maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
35856configure-stage4-target-libvtv:
35857 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35858 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35859 @r=`${PWD_COMMAND}`; export r; \
35860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35861 TFLAGS="$(STAGE4_TFLAGS)"; \
35862 echo "Checking multilib configuration for libvtv..."; \
22121df0 35863 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35864 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35865 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35866 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35867 else \
35868 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35869 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35870 fi; \
35871 else \
35872 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35873 fi; \
35874 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35875 $(RAW_CXX_TARGET_EXPORTS) \
35876 \
35877 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35878 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35879 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35880 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \
35881 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35882 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35883 case $(srcdir) in \
35884 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35885 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35886 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35887 esac; \
1b6c0831
L
35888 module_srcdir=libvtv; \
35889 $(SHELL) $$s/$$module_srcdir/configure \
35890 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35891 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35892 --target=${target_alias} \
22121df0 35893 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35894 $(STAGE4_CONFIGURE_FLAGS)
35895@endif target-libvtv-bootstrap
35896
35897.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
35898maybe-configure-stageprofile-target-libvtv:
35899@if target-libvtv-bootstrap
35900maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
35901configure-stageprofile-target-libvtv:
35902 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35903 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35904 @r=`${PWD_COMMAND}`; export r; \
35905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35906 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35907 echo "Checking multilib configuration for libvtv..."; \
22121df0 35908 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35909 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35910 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35911 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35912 else \
35913 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35914 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35915 fi; \
35916 else \
35917 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35918 fi; \
35919 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35920 $(RAW_CXX_TARGET_EXPORTS) \
35921 \
35922 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35923 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35924 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35925 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \
35926 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35927 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35928 case $(srcdir) in \
35929 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35930 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35931 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35932 esac; \
1b6c0831
L
35933 module_srcdir=libvtv; \
35934 $(SHELL) $$s/$$module_srcdir/configure \
35935 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35936 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35937 --target=${target_alias} \
22121df0 35938 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35939 $(STAGEprofile_CONFIGURE_FLAGS)
35940@endif target-libvtv-bootstrap
35941
35942.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
35943maybe-configure-stagefeedback-target-libvtv:
35944@if target-libvtv-bootstrap
35945maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
35946configure-stagefeedback-target-libvtv:
35947 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35948 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35949 @r=`${PWD_COMMAND}`; export r; \
35950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35951 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35952 echo "Checking multilib configuration for libvtv..."; \
22121df0 35953 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35954 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35955 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35956 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35957 else \
35958 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35959 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35960 fi; \
35961 else \
35962 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35963 fi; \
35964 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35965 $(RAW_CXX_TARGET_EXPORTS) \
35966 \
35967 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35968 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35969 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35970 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \
35971 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35972 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35973 case $(srcdir) in \
35974 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35975 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35976 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35977 esac; \
1b6c0831
L
35978 module_srcdir=libvtv; \
35979 $(SHELL) $$s/$$module_srcdir/configure \
35980 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35981 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35982 --target=${target_alias} \
22121df0 35983 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35984 $(STAGEfeedback_CONFIGURE_FLAGS)
35985@endif target-libvtv-bootstrap
35986
35987
35988
35989
35990
35991.PHONY: all-target-libvtv maybe-all-target-libvtv
35992maybe-all-target-libvtv:
35993@if gcc-bootstrap
35994all-target-libvtv: stage_current
35995@endif gcc-bootstrap
35996@if target-libvtv
35997TARGET-target-libvtv=all
35998maybe-all-target-libvtv: all-target-libvtv
35999all-target-libvtv: configure-target-libvtv
36000 @r=`${PWD_COMMAND}`; export r; \
36001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36002 $(RAW_CXX_TARGET_EXPORTS) \
36003 (cd $(TARGET_SUBDIR)/libvtv && \
36004 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36005 $(TARGET-target-libvtv))
36006@endif target-libvtv
36007
36008
36009
36010.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
36011.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
36012maybe-all-stage1-target-libvtv:
36013maybe-clean-stage1-target-libvtv:
36014@if target-libvtv-bootstrap
36015maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
36016all-stage1: all-stage1-target-libvtv
36017TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
36018all-stage1-target-libvtv: configure-stage1-target-libvtv
36019 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36020 @r=`${PWD_COMMAND}`; export r; \
36021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36022 TFLAGS="$(STAGE1_TFLAGS)"; \
36023 $(RAW_CXX_TARGET_EXPORTS) \
36024 cd $(TARGET_SUBDIR)/libvtv && \
36025 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36026 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36027 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36028 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36029 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36030 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36031 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36032 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36033 \
36034 TFLAGS="$(STAGE1_TFLAGS)" \
36035 $(TARGET-stage1-target-libvtv)
36036
36037maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
36038clean-stage1: clean-stage1-target-libvtv
36039clean-stage1-target-libvtv:
36040 @if [ $(current_stage) = stage1 ]; then \
36041 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36042 else \
36043 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
36044 $(MAKE) stage1-start; \
36045 fi; \
36046 cd $(TARGET_SUBDIR)/libvtv && \
36047 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36048 clean
36049@endif target-libvtv-bootstrap
36050
36051
36052.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
36053.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
36054maybe-all-stage2-target-libvtv:
36055maybe-clean-stage2-target-libvtv:
36056@if target-libvtv-bootstrap
36057maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
36058all-stage2: all-stage2-target-libvtv
36059TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
36060all-stage2-target-libvtv: configure-stage2-target-libvtv
36061 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36062 @r=`${PWD_COMMAND}`; export r; \
36063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36064 TFLAGS="$(STAGE2_TFLAGS)"; \
36065 $(RAW_CXX_TARGET_EXPORTS) \
36066 \
36067 cd $(TARGET_SUBDIR)/libvtv && \
36068 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36069 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36070 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36071 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36072 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36073 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36074 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36075 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36076 TFLAGS="$(STAGE2_TFLAGS)" \
36077 $(TARGET-stage2-target-libvtv)
36078
36079maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
36080clean-stage2: clean-stage2-target-libvtv
36081clean-stage2-target-libvtv:
36082 @if [ $(current_stage) = stage2 ]; then \
36083 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36084 else \
36085 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
36086 $(MAKE) stage2-start; \
36087 fi; \
36088 cd $(TARGET_SUBDIR)/libvtv && \
36089 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36090@endif target-libvtv-bootstrap
36091
36092
36093.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
36094.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
36095maybe-all-stage3-target-libvtv:
36096maybe-clean-stage3-target-libvtv:
36097@if target-libvtv-bootstrap
36098maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
36099all-stage3: all-stage3-target-libvtv
36100TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
36101all-stage3-target-libvtv: configure-stage3-target-libvtv
36102 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36103 @r=`${PWD_COMMAND}`; export r; \
36104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36105 TFLAGS="$(STAGE3_TFLAGS)"; \
36106 $(RAW_CXX_TARGET_EXPORTS) \
36107 \
36108 cd $(TARGET_SUBDIR)/libvtv && \
36109 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36110 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36111 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36112 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36113 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36114 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36115 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36116 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36117 TFLAGS="$(STAGE3_TFLAGS)" \
36118 $(TARGET-stage3-target-libvtv)
36119
36120maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
36121clean-stage3: clean-stage3-target-libvtv
36122clean-stage3-target-libvtv:
36123 @if [ $(current_stage) = stage3 ]; then \
36124 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36125 else \
36126 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
36127 $(MAKE) stage3-start; \
36128 fi; \
36129 cd $(TARGET_SUBDIR)/libvtv && \
36130 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36131@endif target-libvtv-bootstrap
36132
36133
36134.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
36135.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
36136maybe-all-stage4-target-libvtv:
36137maybe-clean-stage4-target-libvtv:
36138@if target-libvtv-bootstrap
36139maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
36140all-stage4: all-stage4-target-libvtv
36141TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
36142all-stage4-target-libvtv: configure-stage4-target-libvtv
36143 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36144 @r=`${PWD_COMMAND}`; export r; \
36145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36146 TFLAGS="$(STAGE4_TFLAGS)"; \
36147 $(RAW_CXX_TARGET_EXPORTS) \
36148 \
36149 cd $(TARGET_SUBDIR)/libvtv && \
36150 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36151 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36152 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36153 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36154 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36155 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36156 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36157 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36158 TFLAGS="$(STAGE4_TFLAGS)" \
36159 $(TARGET-stage4-target-libvtv)
36160
36161maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
36162clean-stage4: clean-stage4-target-libvtv
36163clean-stage4-target-libvtv:
36164 @if [ $(current_stage) = stage4 ]; then \
36165 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36166 else \
36167 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
36168 $(MAKE) stage4-start; \
36169 fi; \
36170 cd $(TARGET_SUBDIR)/libvtv && \
36171 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36172@endif target-libvtv-bootstrap
36173
36174
36175.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
36176.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
36177maybe-all-stageprofile-target-libvtv:
36178maybe-clean-stageprofile-target-libvtv:
36179@if target-libvtv-bootstrap
36180maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
36181all-stageprofile: all-stageprofile-target-libvtv
36182TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
36183all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
36184 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36185 @r=`${PWD_COMMAND}`; export r; \
36186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36187 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36188 $(RAW_CXX_TARGET_EXPORTS) \
36189 \
36190 cd $(TARGET_SUBDIR)/libvtv && \
36191 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36192 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36193 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36194 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36195 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36196 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36197 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36198 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36199 TFLAGS="$(STAGEprofile_TFLAGS)" \
36200 $(TARGET-stageprofile-target-libvtv)
36201
36202maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
36203clean-stageprofile: clean-stageprofile-target-libvtv
36204clean-stageprofile-target-libvtv:
36205 @if [ $(current_stage) = stageprofile ]; then \
36206 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36207 else \
36208 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
36209 $(MAKE) stageprofile-start; \
36210 fi; \
36211 cd $(TARGET_SUBDIR)/libvtv && \
36212 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36213@endif target-libvtv-bootstrap
36214
36215
36216.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
36217.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
36218maybe-all-stagefeedback-target-libvtv:
36219maybe-clean-stagefeedback-target-libvtv:
36220@if target-libvtv-bootstrap
36221maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
36222all-stagefeedback: all-stagefeedback-target-libvtv
36223TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
36224all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
36225 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36226 @r=`${PWD_COMMAND}`; export r; \
36227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36228 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36229 $(RAW_CXX_TARGET_EXPORTS) \
36230 \
36231 cd $(TARGET_SUBDIR)/libvtv && \
36232 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36233 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36234 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36235 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36236 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36237 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36238 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36239 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36240 TFLAGS="$(STAGEfeedback_TFLAGS)" \
36241 $(TARGET-stagefeedback-target-libvtv)
36242
36243maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
36244clean-stagefeedback: clean-stagefeedback-target-libvtv
36245clean-stagefeedback-target-libvtv:
36246 @if [ $(current_stage) = stagefeedback ]; then \
36247 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36248 else \
36249 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
36250 $(MAKE) stagefeedback-start; \
36251 fi; \
36252 cd $(TARGET_SUBDIR)/libvtv && \
36253 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36254@endif target-libvtv-bootstrap
36255
36256
36257
36258
36259
36260
36261.PHONY: check-target-libvtv maybe-check-target-libvtv
36262maybe-check-target-libvtv:
36263@if target-libvtv
36264maybe-check-target-libvtv: check-target-libvtv
36265
36266check-target-libvtv:
36267 @: $(MAKE); $(unstage)
36268 @r=`${PWD_COMMAND}`; export r; \
36269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36270 $(RAW_CXX_TARGET_EXPORTS) \
36271 (cd $(TARGET_SUBDIR)/libvtv && \
36272 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
36273
36274@endif target-libvtv
36275
36276.PHONY: install-target-libvtv maybe-install-target-libvtv
36277maybe-install-target-libvtv:
36278@if target-libvtv
36279maybe-install-target-libvtv: install-target-libvtv
36280
36281install-target-libvtv: installdirs
36282 @: $(MAKE); $(unstage)
36283 @r=`${PWD_COMMAND}`; export r; \
36284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36285 $(RAW_CXX_TARGET_EXPORTS) \
36286 (cd $(TARGET_SUBDIR)/libvtv && \
36287 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36288
36289@endif target-libvtv
36290
36291.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
36292maybe-install-strip-target-libvtv:
36293@if target-libvtv
36294maybe-install-strip-target-libvtv: install-strip-target-libvtv
36295
36296install-strip-target-libvtv: installdirs
36297 @: $(MAKE); $(unstage)
36298 @r=`${PWD_COMMAND}`; export r; \
36299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36300 $(RAW_CXX_TARGET_EXPORTS) \
36301 (cd $(TARGET_SUBDIR)/libvtv && \
36302 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36303
36304@endif target-libvtv
36305
36306# Other targets (info, dvi, pdf, etc.)
36307
36308.PHONY: maybe-info-target-libvtv info-target-libvtv
36309maybe-info-target-libvtv:
36310@if target-libvtv
36311maybe-info-target-libvtv: info-target-libvtv
36312
36313info-target-libvtv: \
36314 configure-target-libvtv
36315 @: $(MAKE); $(unstage)
22121df0 36316 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36317 r=`${PWD_COMMAND}`; export r; \
36318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36319 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36320 echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36321 for flag in $(EXTRA_TARGET_FLAGS); do \
36322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36323 done; \
36324 (cd $(TARGET_SUBDIR)/libvtv && \
36325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36327 "RANLIB=$${RANLIB}" \
36328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36329 info) \
36330 || exit 1
36331
36332@endif target-libvtv
36333
36334.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
36335maybe-dvi-target-libvtv:
36336@if target-libvtv
36337maybe-dvi-target-libvtv: dvi-target-libvtv
36338
36339dvi-target-libvtv: \
36340 configure-target-libvtv
36341 @: $(MAKE); $(unstage)
22121df0 36342 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36343 r=`${PWD_COMMAND}`; export r; \
36344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36345 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36346 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36347 for flag in $(EXTRA_TARGET_FLAGS); do \
36348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36349 done; \
36350 (cd $(TARGET_SUBDIR)/libvtv && \
36351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36353 "RANLIB=$${RANLIB}" \
36354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36355 dvi) \
36356 || exit 1
36357
36358@endif target-libvtv
36359
36360.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
36361maybe-pdf-target-libvtv:
36362@if target-libvtv
36363maybe-pdf-target-libvtv: pdf-target-libvtv
36364
36365pdf-target-libvtv: \
36366 configure-target-libvtv
36367 @: $(MAKE); $(unstage)
22121df0 36368 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36369 r=`${PWD_COMMAND}`; export r; \
36370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36371 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36372 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36373 for flag in $(EXTRA_TARGET_FLAGS); do \
36374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36375 done; \
36376 (cd $(TARGET_SUBDIR)/libvtv && \
36377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36379 "RANLIB=$${RANLIB}" \
36380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36381 pdf) \
36382 || exit 1
36383
36384@endif target-libvtv
36385
36386.PHONY: maybe-html-target-libvtv html-target-libvtv
36387maybe-html-target-libvtv:
36388@if target-libvtv
36389maybe-html-target-libvtv: html-target-libvtv
36390
36391html-target-libvtv: \
36392 configure-target-libvtv
36393 @: $(MAKE); $(unstage)
22121df0 36394 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36395 r=`${PWD_COMMAND}`; export r; \
36396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36397 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36398 echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36399 for flag in $(EXTRA_TARGET_FLAGS); do \
36400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36401 done; \
36402 (cd $(TARGET_SUBDIR)/libvtv && \
36403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36405 "RANLIB=$${RANLIB}" \
36406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36407 html) \
36408 || exit 1
36409
36410@endif target-libvtv
36411
36412.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
36413maybe-TAGS-target-libvtv:
36414@if target-libvtv
36415maybe-TAGS-target-libvtv: TAGS-target-libvtv
36416
36417TAGS-target-libvtv: \
36418 configure-target-libvtv
36419 @: $(MAKE); $(unstage)
22121df0 36420 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36421 r=`${PWD_COMMAND}`; export r; \
36422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36423 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36424 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36425 for flag in $(EXTRA_TARGET_FLAGS); do \
36426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36427 done; \
36428 (cd $(TARGET_SUBDIR)/libvtv && \
36429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36431 "RANLIB=$${RANLIB}" \
36432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36433 TAGS) \
36434 || exit 1
36435
36436@endif target-libvtv
36437
36438.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
36439maybe-install-info-target-libvtv:
36440@if target-libvtv
36441maybe-install-info-target-libvtv: install-info-target-libvtv
36442
36443install-info-target-libvtv: \
36444 configure-target-libvtv \
36445 info-target-libvtv
36446 @: $(MAKE); $(unstage)
22121df0 36447 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36448 r=`${PWD_COMMAND}`; export r; \
36449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36450 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36451 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36452 for flag in $(EXTRA_TARGET_FLAGS); do \
36453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36454 done; \
36455 (cd $(TARGET_SUBDIR)/libvtv && \
36456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36458 "RANLIB=$${RANLIB}" \
36459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36460 install-info) \
36461 || exit 1
36462
36463@endif target-libvtv
36464
36465.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
36466maybe-install-pdf-target-libvtv:
36467@if target-libvtv
36468maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
36469
36470install-pdf-target-libvtv: \
36471 configure-target-libvtv \
36472 pdf-target-libvtv
36473 @: $(MAKE); $(unstage)
22121df0 36474 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36475 r=`${PWD_COMMAND}`; export r; \
36476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36477 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36478 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36479 for flag in $(EXTRA_TARGET_FLAGS); do \
36480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36481 done; \
36482 (cd $(TARGET_SUBDIR)/libvtv && \
36483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36485 "RANLIB=$${RANLIB}" \
36486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36487 install-pdf) \
36488 || exit 1
36489
36490@endif target-libvtv
36491
36492.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
36493maybe-install-html-target-libvtv:
36494@if target-libvtv
36495maybe-install-html-target-libvtv: install-html-target-libvtv
36496
36497install-html-target-libvtv: \
36498 configure-target-libvtv \
36499 html-target-libvtv
36500 @: $(MAKE); $(unstage)
22121df0 36501 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36502 r=`${PWD_COMMAND}`; export r; \
36503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36504 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36505 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36506 for flag in $(EXTRA_TARGET_FLAGS); do \
36507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36508 done; \
36509 (cd $(TARGET_SUBDIR)/libvtv && \
36510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36512 "RANLIB=$${RANLIB}" \
36513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36514 install-html) \
36515 || exit 1
36516
36517@endif target-libvtv
36518
36519.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
36520maybe-installcheck-target-libvtv:
36521@if target-libvtv
36522maybe-installcheck-target-libvtv: installcheck-target-libvtv
36523
36524installcheck-target-libvtv: \
36525 configure-target-libvtv
36526 @: $(MAKE); $(unstage)
22121df0 36527 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36528 r=`${PWD_COMMAND}`; export r; \
36529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36530 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36531 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36532 for flag in $(EXTRA_TARGET_FLAGS); do \
36533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36534 done; \
36535 (cd $(TARGET_SUBDIR)/libvtv && \
36536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36538 "RANLIB=$${RANLIB}" \
36539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36540 installcheck) \
36541 || exit 1
36542
36543@endif target-libvtv
36544
36545.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
36546maybe-mostlyclean-target-libvtv:
36547@if target-libvtv
36548maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
36549
36550mostlyclean-target-libvtv:
36551 @: $(MAKE); $(unstage)
22121df0 36552 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36553 r=`${PWD_COMMAND}`; export r; \
36554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36555 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36556 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36557 for flag in $(EXTRA_TARGET_FLAGS); do \
36558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36559 done; \
36560 (cd $(TARGET_SUBDIR)/libvtv && \
36561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36563 "RANLIB=$${RANLIB}" \
36564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36565 mostlyclean) \
36566 || exit 1
36567
36568@endif target-libvtv
36569
36570.PHONY: maybe-clean-target-libvtv clean-target-libvtv
36571maybe-clean-target-libvtv:
36572@if target-libvtv
36573maybe-clean-target-libvtv: clean-target-libvtv
36574
36575clean-target-libvtv:
36576 @: $(MAKE); $(unstage)
22121df0 36577 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36578 r=`${PWD_COMMAND}`; export r; \
36579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36580 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36581 echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36582 for flag in $(EXTRA_TARGET_FLAGS); do \
36583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36584 done; \
36585 (cd $(TARGET_SUBDIR)/libvtv && \
36586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36588 "RANLIB=$${RANLIB}" \
36589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36590 clean) \
36591 || exit 1
36592
36593@endif target-libvtv
36594
36595.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
36596maybe-distclean-target-libvtv:
36597@if target-libvtv
36598maybe-distclean-target-libvtv: distclean-target-libvtv
36599
36600distclean-target-libvtv:
36601 @: $(MAKE); $(unstage)
22121df0 36602 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36603 r=`${PWD_COMMAND}`; export r; \
36604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36605 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36606 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36607 for flag in $(EXTRA_TARGET_FLAGS); do \
36608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36609 done; \
36610 (cd $(TARGET_SUBDIR)/libvtv && \
36611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36613 "RANLIB=$${RANLIB}" \
36614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36615 distclean) \
36616 || exit 1
36617
36618@endif target-libvtv
36619
36620.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
36621maybe-maintainer-clean-target-libvtv:
36622@if target-libvtv
36623maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
36624
36625maintainer-clean-target-libvtv:
36626 @: $(MAKE); $(unstage)
22121df0 36627 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36628 r=`${PWD_COMMAND}`; export r; \
36629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36630 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36631 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36632 for flag in $(EXTRA_TARGET_FLAGS); do \
36633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36634 done; \
36635 (cd $(TARGET_SUBDIR)/libvtv && \
36636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36638 "RANLIB=$${RANLIB}" \
36639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36640 maintainer-clean) \
36641 || exit 1
36642
36643@endif target-libvtv
36644
36645
36646
36647
36648
e78e02e6 36649.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
36650maybe-configure-target-libcilkrts:
36651@if gcc-bootstrap
36652configure-target-libcilkrts: stage_current
36653@endif gcc-bootstrap
36654@if target-libcilkrts
36655maybe-configure-target-libcilkrts: configure-target-libcilkrts
36656configure-target-libcilkrts:
36657 @: $(MAKE); $(unstage)
36658 @r=`${PWD_COMMAND}`; export r; \
36659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36660 echo "Checking multilib configuration for libcilkrts..."; \
22121df0
L
36661 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
36662 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null; \
e78e02e6 36663 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36664 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36665 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
36666 else \
36667 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
36668 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36669 fi; \
36670 else \
36671 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36672 fi; \
36673 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
22121df0 36674 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
e78e02e6 36675 $(NORMAL_TARGET_EXPORTS) \
36676 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
36677 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
36678 case $(srcdir) in \
36679 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36680 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
36681 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36682 esac; \
1b6c0831 36683 module_srcdir=libcilkrts; \
e78e02e6 36684 rm -f no-such-file || : ; \
1b6c0831
L
36685 CONFIG_SITE=no-such-file $(SHELL) \
36686 $$s/$$module_srcdir/configure \
36687 --srcdir=$${topdir}/$$module_srcdir \
e78e02e6 36688 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36689 --target=${target_alias} \
e78e02e6 36690 || exit 1
36691@endif target-libcilkrts
36692
36693
36694
36695
36696
36697.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
36698maybe-all-target-libcilkrts:
36699@if gcc-bootstrap
36700all-target-libcilkrts: stage_current
36701@endif gcc-bootstrap
36702@if target-libcilkrts
36703TARGET-target-libcilkrts=all
36704maybe-all-target-libcilkrts: all-target-libcilkrts
36705all-target-libcilkrts: configure-target-libcilkrts
36706 @: $(MAKE); $(unstage)
36707 @r=`${PWD_COMMAND}`; export r; \
36708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36709 $(NORMAL_TARGET_EXPORTS) \
36710 (cd $(TARGET_SUBDIR)/libcilkrts && \
36711 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36712 $(TARGET-target-libcilkrts))
36713@endif target-libcilkrts
36714
36715
36716
36717
36718
36719.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
36720maybe-check-target-libcilkrts:
36721@if target-libcilkrts
36722maybe-check-target-libcilkrts: check-target-libcilkrts
36723
36724check-target-libcilkrts:
36725 @: $(MAKE); $(unstage)
36726 @r=`${PWD_COMMAND}`; export r; \
36727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36728 $(NORMAL_TARGET_EXPORTS) \
36729 (cd $(TARGET_SUBDIR)/libcilkrts && \
36730 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
36731
36732@endif target-libcilkrts
36733
36734.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
36735maybe-install-target-libcilkrts:
36736@if target-libcilkrts
36737maybe-install-target-libcilkrts: install-target-libcilkrts
36738
36739install-target-libcilkrts: installdirs
36740 @: $(MAKE); $(unstage)
36741 @r=`${PWD_COMMAND}`; export r; \
36742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36743 $(NORMAL_TARGET_EXPORTS) \
36744 (cd $(TARGET_SUBDIR)/libcilkrts && \
36745 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36746
36747@endif target-libcilkrts
36748
36749.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
36750maybe-install-strip-target-libcilkrts:
36751@if target-libcilkrts
36752maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
36753
36754install-strip-target-libcilkrts: installdirs
36755 @: $(MAKE); $(unstage)
36756 @r=`${PWD_COMMAND}`; export r; \
36757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36758 $(NORMAL_TARGET_EXPORTS) \
36759 (cd $(TARGET_SUBDIR)/libcilkrts && \
36760 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36761
36762@endif target-libcilkrts
36763
36764# Other targets (info, dvi, pdf, etc.)
36765
36766.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
36767maybe-info-target-libcilkrts:
36768@if target-libcilkrts
36769maybe-info-target-libcilkrts: info-target-libcilkrts
36770
36771info-target-libcilkrts: \
36772 configure-target-libcilkrts
36773 @: $(MAKE); $(unstage)
22121df0 36774 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36775 r=`${PWD_COMMAND}`; export r; \
36776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36777 $(NORMAL_TARGET_EXPORTS) \
22121df0 36778 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36779 for flag in $(EXTRA_TARGET_FLAGS); do \
36780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36781 done; \
36782 (cd $(TARGET_SUBDIR)/libcilkrts && \
36783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36785 "RANLIB=$${RANLIB}" \
36786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36787 info) \
36788 || exit 1
36789
36790@endif target-libcilkrts
36791
36792.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
36793maybe-dvi-target-libcilkrts:
36794@if target-libcilkrts
36795maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
36796
36797dvi-target-libcilkrts: \
36798 configure-target-libcilkrts
36799 @: $(MAKE); $(unstage)
22121df0 36800 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36801 r=`${PWD_COMMAND}`; export r; \
36802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36803 $(NORMAL_TARGET_EXPORTS) \
22121df0 36804 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36805 for flag in $(EXTRA_TARGET_FLAGS); do \
36806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36807 done; \
36808 (cd $(TARGET_SUBDIR)/libcilkrts && \
36809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36811 "RANLIB=$${RANLIB}" \
36812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36813 dvi) \
36814 || exit 1
36815
36816@endif target-libcilkrts
36817
36818.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
36819maybe-pdf-target-libcilkrts:
36820@if target-libcilkrts
36821maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
36822
36823pdf-target-libcilkrts: \
36824 configure-target-libcilkrts
36825 @: $(MAKE); $(unstage)
22121df0 36826 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36827 r=`${PWD_COMMAND}`; export r; \
36828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36829 $(NORMAL_TARGET_EXPORTS) \
22121df0 36830 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36831 for flag in $(EXTRA_TARGET_FLAGS); do \
36832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36833 done; \
36834 (cd $(TARGET_SUBDIR)/libcilkrts && \
36835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36837 "RANLIB=$${RANLIB}" \
36838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36839 pdf) \
36840 || exit 1
36841
36842@endif target-libcilkrts
36843
36844.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
36845maybe-html-target-libcilkrts:
36846@if target-libcilkrts
36847maybe-html-target-libcilkrts: html-target-libcilkrts
36848
36849html-target-libcilkrts: \
36850 configure-target-libcilkrts
36851 @: $(MAKE); $(unstage)
22121df0 36852 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36853 r=`${PWD_COMMAND}`; export r; \
36854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36855 $(NORMAL_TARGET_EXPORTS) \
22121df0 36856 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36857 for flag in $(EXTRA_TARGET_FLAGS); do \
36858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36859 done; \
36860 (cd $(TARGET_SUBDIR)/libcilkrts && \
36861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36863 "RANLIB=$${RANLIB}" \
36864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36865 html) \
36866 || exit 1
36867
36868@endif target-libcilkrts
36869
36870.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
36871maybe-TAGS-target-libcilkrts:
36872@if target-libcilkrts
36873maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
36874
36875TAGS-target-libcilkrts: \
36876 configure-target-libcilkrts
36877 @: $(MAKE); $(unstage)
22121df0 36878 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36879 r=`${PWD_COMMAND}`; export r; \
36880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36881 $(NORMAL_TARGET_EXPORTS) \
22121df0 36882 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36883 for flag in $(EXTRA_TARGET_FLAGS); do \
36884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36885 done; \
36886 (cd $(TARGET_SUBDIR)/libcilkrts && \
36887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36889 "RANLIB=$${RANLIB}" \
36890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36891 TAGS) \
36892 || exit 1
36893
36894@endif target-libcilkrts
36895
36896.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
36897maybe-install-info-target-libcilkrts:
36898@if target-libcilkrts
36899maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
36900
36901install-info-target-libcilkrts: \
36902 configure-target-libcilkrts \
36903 info-target-libcilkrts
36904 @: $(MAKE); $(unstage)
22121df0 36905 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36906 r=`${PWD_COMMAND}`; export r; \
36907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36908 $(NORMAL_TARGET_EXPORTS) \
22121df0 36909 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36910 for flag in $(EXTRA_TARGET_FLAGS); do \
36911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36912 done; \
36913 (cd $(TARGET_SUBDIR)/libcilkrts && \
36914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36916 "RANLIB=$${RANLIB}" \
36917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36918 install-info) \
36919 || exit 1
36920
36921@endif target-libcilkrts
36922
36923.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
36924maybe-install-pdf-target-libcilkrts:
36925@if target-libcilkrts
36926maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
36927
36928install-pdf-target-libcilkrts: \
36929 configure-target-libcilkrts \
36930 pdf-target-libcilkrts
36931 @: $(MAKE); $(unstage)
22121df0 36932 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36933 r=`${PWD_COMMAND}`; export r; \
36934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36935 $(NORMAL_TARGET_EXPORTS) \
22121df0 36936 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36937 for flag in $(EXTRA_TARGET_FLAGS); do \
36938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36939 done; \
36940 (cd $(TARGET_SUBDIR)/libcilkrts && \
36941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36943 "RANLIB=$${RANLIB}" \
36944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36945 install-pdf) \
36946 || exit 1
36947
36948@endif target-libcilkrts
36949
36950.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
36951maybe-install-html-target-libcilkrts:
36952@if target-libcilkrts
36953maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
36954
36955install-html-target-libcilkrts: \
36956 configure-target-libcilkrts \
36957 html-target-libcilkrts
36958 @: $(MAKE); $(unstage)
22121df0 36959 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36960 r=`${PWD_COMMAND}`; export r; \
36961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36962 $(NORMAL_TARGET_EXPORTS) \
22121df0 36963 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36964 for flag in $(EXTRA_TARGET_FLAGS); do \
36965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36966 done; \
36967 (cd $(TARGET_SUBDIR)/libcilkrts && \
36968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36970 "RANLIB=$${RANLIB}" \
36971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36972 install-html) \
36973 || exit 1
36974
36975@endif target-libcilkrts
36976
36977.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
36978maybe-installcheck-target-libcilkrts:
36979@if target-libcilkrts
36980maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
36981
36982installcheck-target-libcilkrts: \
36983 configure-target-libcilkrts
36984 @: $(MAKE); $(unstage)
22121df0 36985 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36986 r=`${PWD_COMMAND}`; export r; \
36987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36988 $(NORMAL_TARGET_EXPORTS) \
22121df0 36989 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36990 for flag in $(EXTRA_TARGET_FLAGS); do \
36991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36992 done; \
36993 (cd $(TARGET_SUBDIR)/libcilkrts && \
36994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36996 "RANLIB=$${RANLIB}" \
36997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36998 installcheck) \
36999 || exit 1
37000
37001@endif target-libcilkrts
37002
37003.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
37004maybe-mostlyclean-target-libcilkrts:
37005@if target-libcilkrts
37006maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
37007
37008mostlyclean-target-libcilkrts:
37009 @: $(MAKE); $(unstage)
22121df0 37010 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37011 r=`${PWD_COMMAND}`; export r; \
37012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37013 $(NORMAL_TARGET_EXPORTS) \
22121df0 37014 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37015 for flag in $(EXTRA_TARGET_FLAGS); do \
37016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37017 done; \
37018 (cd $(TARGET_SUBDIR)/libcilkrts && \
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 mostlyclean) \
37024 || exit 1
37025
37026@endif target-libcilkrts
37027
37028.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
37029maybe-clean-target-libcilkrts:
37030@if target-libcilkrts
37031maybe-clean-target-libcilkrts: clean-target-libcilkrts
37032
37033clean-target-libcilkrts:
37034 @: $(MAKE); $(unstage)
22121df0 37035 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37036 r=`${PWD_COMMAND}`; export r; \
37037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37038 $(NORMAL_TARGET_EXPORTS) \
22121df0 37039 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37040 for flag in $(EXTRA_TARGET_FLAGS); do \
37041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37042 done; \
37043 (cd $(TARGET_SUBDIR)/libcilkrts && \
37044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37046 "RANLIB=$${RANLIB}" \
37047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37048 clean) \
37049 || exit 1
37050
37051@endif target-libcilkrts
37052
37053.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
37054maybe-distclean-target-libcilkrts:
37055@if target-libcilkrts
37056maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
37057
37058distclean-target-libcilkrts:
37059 @: $(MAKE); $(unstage)
22121df0 37060 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37061 r=`${PWD_COMMAND}`; export r; \
37062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37063 $(NORMAL_TARGET_EXPORTS) \
22121df0 37064 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37065 for flag in $(EXTRA_TARGET_FLAGS); do \
37066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37067 done; \
37068 (cd $(TARGET_SUBDIR)/libcilkrts && \
37069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37071 "RANLIB=$${RANLIB}" \
37072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37073 distclean) \
37074 || exit 1
37075
37076@endif target-libcilkrts
37077
37078.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
37079maybe-maintainer-clean-target-libcilkrts:
37080@if target-libcilkrts
37081maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
37082
37083maintainer-clean-target-libcilkrts:
37084 @: $(MAKE); $(unstage)
22121df0 37085 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37086 r=`${PWD_COMMAND}`; export r; \
37087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37088 $(NORMAL_TARGET_EXPORTS) \
22121df0 37089 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37090 for flag in $(EXTRA_TARGET_FLAGS); do \
37091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37092 done; \
37093 (cd $(TARGET_SUBDIR)/libcilkrts && \
37094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37096 "RANLIB=$${RANLIB}" \
37097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37098 maintainer-clean) \
37099 || exit 1
37100
37101@endif target-libcilkrts
37102
37103
37104
37105
37106
1b6c0831
L
37107.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
37108maybe-configure-target-liboffloadmic:
37109@if gcc-bootstrap
37110configure-target-liboffloadmic: stage_current
37111@endif gcc-bootstrap
37112@if target-liboffloadmic
37113maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
37114configure-target-liboffloadmic:
37115 @: $(MAKE); $(unstage)
37116 @r=`${PWD_COMMAND}`; export r; \
37117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37118 echo "Checking multilib configuration for liboffloadmic..."; \
22121df0
L
37119 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
37120 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \
1b6c0831
L
37121 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
37122 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
37123 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
37124 else \
37125 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
37126 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
37127 fi; \
37128 else \
37129 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
37130 fi; \
37131 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
22121df0 37132 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
1b6c0831
L
37133 $(NORMAL_TARGET_EXPORTS) \
37134 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
37135 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
37136 case $(srcdir) in \
37137 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37138 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
37139 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37140 esac; \
37141 module_srcdir=liboffloadmic; \
37142 rm -f no-such-file || : ; \
37143 CONFIG_SITE=no-such-file $(SHELL) \
37144 $$s/$$module_srcdir/configure \
37145 --srcdir=$${topdir}/$$module_srcdir \
37146 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
37147 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
37148 || exit 1
37149@endif target-liboffloadmic
37150
37151
37152
37153
37154
37155.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
37156maybe-all-target-liboffloadmic:
37157@if gcc-bootstrap
37158all-target-liboffloadmic: stage_current
37159@endif gcc-bootstrap
37160@if target-liboffloadmic
37161TARGET-target-liboffloadmic=all
37162maybe-all-target-liboffloadmic: all-target-liboffloadmic
37163all-target-liboffloadmic: configure-target-liboffloadmic
37164 @: $(MAKE); $(unstage)
37165 @r=`${PWD_COMMAND}`; export r; \
37166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37167 $(NORMAL_TARGET_EXPORTS) \
37168 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37169 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
37170 $(TARGET-target-liboffloadmic))
37171@endif target-liboffloadmic
37172
37173
37174
37175
37176
37177.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
37178maybe-check-target-liboffloadmic:
37179@if target-liboffloadmic
37180maybe-check-target-liboffloadmic: check-target-liboffloadmic
37181
37182check-target-liboffloadmic:
37183 @: $(MAKE); $(unstage)
37184 @r=`${PWD_COMMAND}`; export r; \
37185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37186 $(NORMAL_TARGET_EXPORTS) \
37187 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37188 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
37189
37190@endif target-liboffloadmic
37191
37192.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
37193maybe-install-target-liboffloadmic:
37194@if target-liboffloadmic
37195maybe-install-target-liboffloadmic: install-target-liboffloadmic
37196
37197install-target-liboffloadmic: installdirs
37198 @: $(MAKE); $(unstage)
37199 @r=`${PWD_COMMAND}`; export r; \
37200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37201 $(NORMAL_TARGET_EXPORTS) \
37202 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37203 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37204
37205@endif target-liboffloadmic
37206
37207.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
37208maybe-install-strip-target-liboffloadmic:
37209@if target-liboffloadmic
37210maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
37211
37212install-strip-target-liboffloadmic: installdirs
37213 @: $(MAKE); $(unstage)
37214 @r=`${PWD_COMMAND}`; export r; \
37215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37216 $(NORMAL_TARGET_EXPORTS) \
37217 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37218 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37219
37220@endif target-liboffloadmic
37221
37222# Other targets (info, dvi, pdf, etc.)
37223
37224.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
37225maybe-info-target-liboffloadmic:
37226@if target-liboffloadmic
37227maybe-info-target-liboffloadmic: info-target-liboffloadmic
37228
37229info-target-liboffloadmic: \
37230 configure-target-liboffloadmic
37231 @: $(MAKE); $(unstage)
22121df0 37232 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37233 r=`${PWD_COMMAND}`; export r; \
37234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37235 $(NORMAL_TARGET_EXPORTS) \
22121df0 37236 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37237 for flag in $(EXTRA_TARGET_FLAGS); do \
37238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37239 done; \
37240 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37243 "RANLIB=$${RANLIB}" \
37244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37245 info) \
37246 || exit 1
37247
37248@endif target-liboffloadmic
37249
37250.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
37251maybe-dvi-target-liboffloadmic:
37252@if target-liboffloadmic
37253maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
37254
37255dvi-target-liboffloadmic: \
37256 configure-target-liboffloadmic
37257 @: $(MAKE); $(unstage)
22121df0 37258 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37259 r=`${PWD_COMMAND}`; export r; \
37260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37261 $(NORMAL_TARGET_EXPORTS) \
22121df0 37262 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37263 for flag in $(EXTRA_TARGET_FLAGS); do \
37264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37265 done; \
37266 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37269 "RANLIB=$${RANLIB}" \
37270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37271 dvi) \
37272 || exit 1
37273
37274@endif target-liboffloadmic
37275
37276.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
37277maybe-pdf-target-liboffloadmic:
37278@if target-liboffloadmic
37279maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
37280
37281pdf-target-liboffloadmic: \
37282 configure-target-liboffloadmic
37283 @: $(MAKE); $(unstage)
22121df0 37284 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37285 r=`${PWD_COMMAND}`; export r; \
37286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37287 $(NORMAL_TARGET_EXPORTS) \
22121df0 37288 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37289 for flag in $(EXTRA_TARGET_FLAGS); do \
37290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37291 done; \
37292 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37295 "RANLIB=$${RANLIB}" \
37296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37297 pdf) \
37298 || exit 1
37299
37300@endif target-liboffloadmic
37301
37302.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
37303maybe-html-target-liboffloadmic:
37304@if target-liboffloadmic
37305maybe-html-target-liboffloadmic: html-target-liboffloadmic
37306
37307html-target-liboffloadmic: \
37308 configure-target-liboffloadmic
37309 @: $(MAKE); $(unstage)
22121df0 37310 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37311 r=`${PWD_COMMAND}`; export r; \
37312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37313 $(NORMAL_TARGET_EXPORTS) \
22121df0 37314 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37315 for flag in $(EXTRA_TARGET_FLAGS); do \
37316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37317 done; \
37318 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37321 "RANLIB=$${RANLIB}" \
37322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37323 html) \
37324 || exit 1
37325
37326@endif target-liboffloadmic
37327
37328.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
37329maybe-TAGS-target-liboffloadmic:
37330@if target-liboffloadmic
37331maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
37332
37333TAGS-target-liboffloadmic: \
37334 configure-target-liboffloadmic
37335 @: $(MAKE); $(unstage)
22121df0 37336 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37337 r=`${PWD_COMMAND}`; export r; \
37338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37339 $(NORMAL_TARGET_EXPORTS) \
22121df0 37340 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37341 for flag in $(EXTRA_TARGET_FLAGS); do \
37342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37343 done; \
37344 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37347 "RANLIB=$${RANLIB}" \
37348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37349 TAGS) \
37350 || exit 1
37351
37352@endif target-liboffloadmic
37353
37354.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
37355maybe-install-info-target-liboffloadmic:
37356@if target-liboffloadmic
37357maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
37358
37359install-info-target-liboffloadmic: \
37360 configure-target-liboffloadmic \
37361 info-target-liboffloadmic
37362 @: $(MAKE); $(unstage)
22121df0 37363 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37364 r=`${PWD_COMMAND}`; export r; \
37365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37366 $(NORMAL_TARGET_EXPORTS) \
22121df0 37367 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37368 for flag in $(EXTRA_TARGET_FLAGS); do \
37369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37370 done; \
37371 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37374 "RANLIB=$${RANLIB}" \
37375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37376 install-info) \
37377 || exit 1
37378
37379@endif target-liboffloadmic
37380
37381.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
37382maybe-install-pdf-target-liboffloadmic:
37383@if target-liboffloadmic
37384maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
37385
37386install-pdf-target-liboffloadmic: \
37387 configure-target-liboffloadmic \
37388 pdf-target-liboffloadmic
37389 @: $(MAKE); $(unstage)
22121df0 37390 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37391 r=`${PWD_COMMAND}`; export r; \
37392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37393 $(NORMAL_TARGET_EXPORTS) \
22121df0 37394 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37395 for flag in $(EXTRA_TARGET_FLAGS); do \
37396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37397 done; \
37398 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37401 "RANLIB=$${RANLIB}" \
37402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37403 install-pdf) \
37404 || exit 1
37405
37406@endif target-liboffloadmic
37407
37408.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
37409maybe-install-html-target-liboffloadmic:
37410@if target-liboffloadmic
37411maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
37412
37413install-html-target-liboffloadmic: \
37414 configure-target-liboffloadmic \
37415 html-target-liboffloadmic
37416 @: $(MAKE); $(unstage)
22121df0 37417 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37418 r=`${PWD_COMMAND}`; export r; \
37419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37420 $(NORMAL_TARGET_EXPORTS) \
22121df0 37421 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37422 for flag in $(EXTRA_TARGET_FLAGS); do \
37423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37424 done; \
37425 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37428 "RANLIB=$${RANLIB}" \
37429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37430 install-html) \
37431 || exit 1
37432
37433@endif target-liboffloadmic
37434
37435.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
37436maybe-installcheck-target-liboffloadmic:
37437@if target-liboffloadmic
37438maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
37439
37440installcheck-target-liboffloadmic: \
37441 configure-target-liboffloadmic
37442 @: $(MAKE); $(unstage)
22121df0 37443 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37444 r=`${PWD_COMMAND}`; export r; \
37445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37446 $(NORMAL_TARGET_EXPORTS) \
22121df0 37447 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37448 for flag in $(EXTRA_TARGET_FLAGS); do \
37449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37450 done; \
37451 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37454 "RANLIB=$${RANLIB}" \
37455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37456 installcheck) \
37457 || exit 1
37458
37459@endif target-liboffloadmic
37460
37461.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
37462maybe-mostlyclean-target-liboffloadmic:
37463@if target-liboffloadmic
37464maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
37465
37466mostlyclean-target-liboffloadmic:
37467 @: $(MAKE); $(unstage)
22121df0 37468 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37469 r=`${PWD_COMMAND}`; export r; \
37470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37471 $(NORMAL_TARGET_EXPORTS) \
22121df0 37472 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37473 for flag in $(EXTRA_TARGET_FLAGS); do \
37474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37475 done; \
37476 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37479 "RANLIB=$${RANLIB}" \
37480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37481 mostlyclean) \
37482 || exit 1
37483
37484@endif target-liboffloadmic
37485
37486.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
37487maybe-clean-target-liboffloadmic:
37488@if target-liboffloadmic
37489maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
37490
37491clean-target-liboffloadmic:
37492 @: $(MAKE); $(unstage)
22121df0 37493 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37494 r=`${PWD_COMMAND}`; export r; \
37495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37496 $(NORMAL_TARGET_EXPORTS) \
22121df0 37497 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37498 for flag in $(EXTRA_TARGET_FLAGS); do \
37499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37500 done; \
37501 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37504 "RANLIB=$${RANLIB}" \
37505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37506 clean) \
37507 || exit 1
37508
37509@endif target-liboffloadmic
37510
37511.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
37512maybe-distclean-target-liboffloadmic:
37513@if target-liboffloadmic
37514maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
37515
37516distclean-target-liboffloadmic:
37517 @: $(MAKE); $(unstage)
22121df0 37518 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37519 r=`${PWD_COMMAND}`; export r; \
37520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37521 $(NORMAL_TARGET_EXPORTS) \
22121df0 37522 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37523 for flag in $(EXTRA_TARGET_FLAGS); do \
37524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37525 done; \
37526 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37529 "RANLIB=$${RANLIB}" \
37530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37531 distclean) \
37532 || exit 1
37533
37534@endif target-liboffloadmic
37535
37536.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
37537maybe-maintainer-clean-target-liboffloadmic:
37538@if target-liboffloadmic
37539maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
37540
37541maintainer-clean-target-liboffloadmic:
37542 @: $(MAKE); $(unstage)
22121df0 37543 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37544 r=`${PWD_COMMAND}`; export r; \
37545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37546 $(NORMAL_TARGET_EXPORTS) \
22121df0 37547 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37548 for flag in $(EXTRA_TARGET_FLAGS); do \
37549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37550 done; \
37551 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37554 "RANLIB=$${RANLIB}" \
37555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37556 maintainer-clean) \
37557 || exit 1
37558
37559@endif target-liboffloadmic
37560
37561
37562
37563
37564
a90ef4bf
JM
37565.PHONY: configure-target-libssp maybe-configure-target-libssp
37566maybe-configure-target-libssp:
4f0ef2d8 37567@if gcc-bootstrap
a90ef4bf 37568configure-target-libssp: stage_current
4f0ef2d8 37569@endif gcc-bootstrap
a90ef4bf
JM
37570@if target-libssp
37571maybe-configure-target-libssp: configure-target-libssp
37572configure-target-libssp:
0aed8855
PB
37573 @: $(MAKE); $(unstage)
37574 @r=`${PWD_COMMAND}`; export r; \
37575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 37576 echo "Checking multilib configuration for libssp..."; \
22121df0
L
37577 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
37578 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
37579 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
37580 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
37581 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 37582 else \
a90ef4bf
JM
37583 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
37584 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
37585 fi; \
37586 else \
a90ef4bf 37587 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 37588 fi; \
a90ef4bf 37589 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
22121df0 37590 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
1f53ca9a 37591 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37592 echo Configuring in $(TARGET_SUBDIR)/libssp; \
37593 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 37594 case $(srcdir) in \
b00612cc 37595 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 37596 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 37597 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 37598 esac; \
1b6c0831 37599 module_srcdir=libssp; \
4b1cb4fe 37600 rm -f no-such-file || : ; \
1b6c0831
L
37601 CONFIG_SITE=no-such-file $(SHELL) \
37602 $$s/$$module_srcdir/configure \
37603 --srcdir=$${topdir}/$$module_srcdir \
4b900473 37604 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37605 --target=${target_alias} \
4b1cb4fe 37606 || exit 1
a90ef4bf 37607@endif target-libssp
4b1cb4fe 37608
a7254363
PB
37609
37610
d545f33b
PB
37611
37612
a90ef4bf
JM
37613.PHONY: all-target-libssp maybe-all-target-libssp
37614maybe-all-target-libssp:
4f0ef2d8 37615@if gcc-bootstrap
a90ef4bf 37616all-target-libssp: stage_current
4f0ef2d8 37617@endif gcc-bootstrap
a90ef4bf
JM
37618@if target-libssp
37619TARGET-target-libssp=all
37620maybe-all-target-libssp: all-target-libssp
37621all-target-libssp: configure-target-libssp
0aed8855 37622 @: $(MAKE); $(unstage)
4b1cb4fe
DD
37623 @r=`${PWD_COMMAND}`; export r; \
37624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 37625 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37626 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 37627 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37628 $(TARGET-target-libssp))
37629@endif target-libssp
4b1cb4fe 37630
a7254363
PB
37631
37632
d545f33b
PB
37633
37634
a90ef4bf
JM
37635.PHONY: check-target-libssp maybe-check-target-libssp
37636maybe-check-target-libssp:
37637@if target-libssp
37638maybe-check-target-libssp: check-target-libssp
4b1cb4fe 37639
a90ef4bf 37640check-target-libssp:
0aed8855 37641 @: $(MAKE); $(unstage)
b40e3958
L
37642 @r=`${PWD_COMMAND}`; export r; \
37643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37644 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37645 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37646 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 37647
a90ef4bf 37648@endif target-libssp
3866be5d 37649
a90ef4bf
JM
37650.PHONY: install-target-libssp maybe-install-target-libssp
37651maybe-install-target-libssp:
37652@if target-libssp
37653maybe-install-target-libssp: install-target-libssp
e2b9e2dc 37654
a90ef4bf 37655install-target-libssp: installdirs
0aed8855 37656 @: $(MAKE); $(unstage)
b40e3958
L
37657 @r=`${PWD_COMMAND}`; export r; \
37658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37659 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37660 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37661 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 37662
a90ef4bf 37663@endif target-libssp
3866be5d 37664
a90ef4bf
JM
37665.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
37666maybe-install-strip-target-libssp:
37667@if target-libssp
37668maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 37669
a90ef4bf 37670install-strip-target-libssp: installdirs
9b980aa1
RW
37671 @: $(MAKE); $(unstage)
37672 @r=`${PWD_COMMAND}`; export r; \
37673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37674 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37675 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
37676 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37677
a90ef4bf 37678@endif target-libssp
9b980aa1 37679
56a8fe78 37680# Other targets (info, dvi, pdf, etc.)
3866be5d 37681
a90ef4bf
JM
37682.PHONY: maybe-info-target-libssp info-target-libssp
37683maybe-info-target-libssp:
37684@if target-libssp
37685maybe-info-target-libssp: info-target-libssp
3866be5d 37686
a90ef4bf
JM
37687info-target-libssp: \
37688 configure-target-libssp
0aed8855 37689 @: $(MAKE); $(unstage)
22121df0 37690 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067
NN
37691 r=`${PWD_COMMAND}`; export r; \
37692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37693 $(NORMAL_TARGET_EXPORTS) \
22121df0 37694 echo "Doing info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37695 for flag in $(EXTRA_TARGET_FLAGS); do \
37696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37697 done; \
a90ef4bf 37698 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37701 "RANLIB=$${RANLIB}" \
0c24b341 37702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37703 info) \
4fa63067 37704 || exit 1
16ae0395 37705
a90ef4bf 37706@endif target-libssp
3866be5d 37707
a90ef4bf
JM
37708.PHONY: maybe-dvi-target-libssp dvi-target-libssp
37709maybe-dvi-target-libssp:
37710@if target-libssp
37711maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 37712
a90ef4bf
JM
37713dvi-target-libssp: \
37714 configure-target-libssp
0aed8855 37715 @: $(MAKE); $(unstage)
22121df0 37716 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
37717 r=`${PWD_COMMAND}`; export r; \
37718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37719 $(NORMAL_TARGET_EXPORTS) \
22121df0 37720 echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37721 for flag in $(EXTRA_TARGET_FLAGS); do \
37722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37723 done; \
a90ef4bf 37724 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37727 "RANLIB=$${RANLIB}" \
0c24b341 37728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37729 dvi) \
e2b9e2dc
NN
37730 || exit 1
37731
a90ef4bf 37732@endif target-libssp
3866be5d 37733
a90ef4bf
JM
37734.PHONY: maybe-pdf-target-libssp pdf-target-libssp
37735maybe-pdf-target-libssp:
37736@if target-libssp
37737maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 37738
a90ef4bf
JM
37739pdf-target-libssp: \
37740 configure-target-libssp
56a8fe78 37741 @: $(MAKE); $(unstage)
22121df0 37742 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
56a8fe78
DD
37743 r=`${PWD_COMMAND}`; export r; \
37744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37745 $(NORMAL_TARGET_EXPORTS) \
22121df0 37746 echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \
56a8fe78
DD
37747 for flag in $(EXTRA_TARGET_FLAGS); do \
37748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37749 done; \
a90ef4bf 37750 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
37751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37753 "RANLIB=$${RANLIB}" \
0c24b341 37754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
37755 pdf) \
37756 || exit 1
37757
a90ef4bf 37758@endif target-libssp
a3ca38d2 37759
a90ef4bf
JM
37760.PHONY: maybe-html-target-libssp html-target-libssp
37761maybe-html-target-libssp:
37762@if target-libssp
37763maybe-html-target-libssp: html-target-libssp
108a6f8e 37764
a90ef4bf
JM
37765html-target-libssp: \
37766 configure-target-libssp
108a6f8e 37767 @: $(MAKE); $(unstage)
22121df0 37768 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
108a6f8e
CD
37769 r=`${PWD_COMMAND}`; export r; \
37770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37771 $(NORMAL_TARGET_EXPORTS) \
22121df0 37772 echo "Doing html in $(TARGET_SUBDIR)/libssp"; \
108a6f8e
CD
37773 for flag in $(EXTRA_TARGET_FLAGS); do \
37774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37775 done; \
a90ef4bf 37776 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
37777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37779 "RANLIB=$${RANLIB}" \
0c24b341 37780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37781 html) \
108a6f8e
CD
37782 || exit 1
37783
a90ef4bf 37784@endif target-libssp
108a6f8e 37785
a90ef4bf
JM
37786.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
37787maybe-TAGS-target-libssp:
37788@if target-libssp
37789maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 37790
a90ef4bf
JM
37791TAGS-target-libssp: \
37792 configure-target-libssp
0aed8855 37793 @: $(MAKE); $(unstage)
22121df0 37794 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
37795 r=`${PWD_COMMAND}`; export r; \
37796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37797 $(NORMAL_TARGET_EXPORTS) \
22121df0 37798 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37799 for flag in $(EXTRA_TARGET_FLAGS); do \
37800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37801 done; \
a90ef4bf 37802 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37805 "RANLIB=$${RANLIB}" \
0c24b341 37806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37807 TAGS) \
e2b9e2dc
NN
37808 || exit 1
37809
a90ef4bf 37810@endif target-libssp
3866be5d 37811
a90ef4bf
JM
37812.PHONY: maybe-install-info-target-libssp install-info-target-libssp
37813maybe-install-info-target-libssp:
37814@if target-libssp
37815maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 37816
a90ef4bf
JM
37817install-info-target-libssp: \
37818 configure-target-libssp \
37819 info-target-libssp
0aed8855 37820 @: $(MAKE); $(unstage)
22121df0 37821 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 37822 r=`${PWD_COMMAND}`; export r; \
b40e3958 37823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37824 $(NORMAL_TARGET_EXPORTS) \
22121df0 37825 echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37826 for flag in $(EXTRA_TARGET_FLAGS); do \
37827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37828 done; \
a90ef4bf 37829 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37832 "RANLIB=$${RANLIB}" \
0c24b341 37833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37834 install-info) \
4fa63067 37835 || exit 1
3866be5d 37836
a90ef4bf 37837@endif target-libssp
3866be5d 37838
a90ef4bf
JM
37839.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
37840maybe-install-pdf-target-libssp:
37841@if target-libssp
37842maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 37843
a90ef4bf
JM
37844install-pdf-target-libssp: \
37845 configure-target-libssp \
37846 pdf-target-libssp
0aed8855 37847 @: $(MAKE); $(unstage)
22121df0 37848 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 37849 r=`${PWD_COMMAND}`; export r; \
b40e3958 37850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37851 $(NORMAL_TARGET_EXPORTS) \
22121df0 37852 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37853 for flag in $(EXTRA_TARGET_FLAGS); do \
37854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37855 done; \
a90ef4bf 37856 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37859 "RANLIB=$${RANLIB}" \
0c24b341 37860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37861 install-pdf) \
4fa63067 37862 || exit 1
3866be5d 37863
a90ef4bf 37864@endif target-libssp
3866be5d 37865
a90ef4bf
JM
37866.PHONY: maybe-install-html-target-libssp install-html-target-libssp
37867maybe-install-html-target-libssp:
37868@if target-libssp
37869maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 37870
a90ef4bf
JM
37871install-html-target-libssp: \
37872 configure-target-libssp \
37873 html-target-libssp
0aed8855 37874 @: $(MAKE); $(unstage)
22121df0 37875 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
37876 r=`${PWD_COMMAND}`; export r; \
37877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37878 $(NORMAL_TARGET_EXPORTS) \
22121df0 37879 echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37880 for flag in $(EXTRA_TARGET_FLAGS); do \
37881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37882 done; \
a90ef4bf 37883 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37886 "RANLIB=$${RANLIB}" \
0c24b341 37887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37888 install-html) \
e2b9e2dc
NN
37889 || exit 1
37890
a90ef4bf 37891@endif target-libssp
3866be5d 37892
a90ef4bf
JM
37893.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
37894maybe-installcheck-target-libssp:
37895@if target-libssp
37896maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 37897
a90ef4bf
JM
37898installcheck-target-libssp: \
37899 configure-target-libssp
0aed8855 37900 @: $(MAKE); $(unstage)
22121df0 37901 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 37902 r=`${PWD_COMMAND}`; export r; \
b40e3958 37903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37904 $(NORMAL_TARGET_EXPORTS) \
22121df0 37905 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37906 for flag in $(EXTRA_TARGET_FLAGS); do \
37907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37908 done; \
a90ef4bf 37909 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37912 "RANLIB=$${RANLIB}" \
0c24b341 37913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37914 installcheck) \
6aa8ef82 37915 || exit 1
6aa8ef82 37916
a90ef4bf 37917@endif target-libssp
6aa8ef82 37918
a90ef4bf
JM
37919.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
37920maybe-mostlyclean-target-libssp:
37921@if target-libssp
37922maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 37923
a90ef4bf
JM
37924mostlyclean-target-libssp:
37925 @: $(MAKE); $(unstage)
22121df0 37926 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 37927 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37929 $(NORMAL_TARGET_EXPORTS) \
22121df0 37930 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
37931 for flag in $(EXTRA_TARGET_FLAGS); do \
37932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37933 done; \
37934 (cd $(TARGET_SUBDIR)/libssp && \
37935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37937 "RANLIB=$${RANLIB}" \
37938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37939 mostlyclean) \
37940 || exit 1
6aa8ef82 37941
a90ef4bf 37942@endif target-libssp
6aa8ef82 37943
a90ef4bf
JM
37944.PHONY: maybe-clean-target-libssp clean-target-libssp
37945maybe-clean-target-libssp:
37946@if target-libssp
37947maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 37948
a90ef4bf
JM
37949clean-target-libssp:
37950 @: $(MAKE); $(unstage)
22121df0 37951 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 37952 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37954 $(NORMAL_TARGET_EXPORTS) \
22121df0 37955 echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
37956 for flag in $(EXTRA_TARGET_FLAGS); do \
37957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37958 done; \
37959 (cd $(TARGET_SUBDIR)/libssp && \
37960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37962 "RANLIB=$${RANLIB}" \
37963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37964 clean) \
37965 || exit 1
6aa8ef82 37966
a90ef4bf 37967@endif target-libssp
6aa8ef82 37968
a90ef4bf
JM
37969.PHONY: maybe-distclean-target-libssp distclean-target-libssp
37970maybe-distclean-target-libssp:
37971@if target-libssp
37972maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 37973
a90ef4bf
JM
37974distclean-target-libssp:
37975 @: $(MAKE); $(unstage)
22121df0 37976 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 37977 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37979 $(NORMAL_TARGET_EXPORTS) \
22121df0 37980 echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
37981 for flag in $(EXTRA_TARGET_FLAGS); do \
37982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37983 done; \
37984 (cd $(TARGET_SUBDIR)/libssp && \
37985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37987 "RANLIB=$${RANLIB}" \
37988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37989 distclean) \
37990 || exit 1
6aa8ef82 37991
a90ef4bf 37992@endif target-libssp
6aa8ef82 37993
a90ef4bf
JM
37994.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
37995maybe-maintainer-clean-target-libssp:
37996@if target-libssp
37997maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 37998
a90ef4bf
JM
37999maintainer-clean-target-libssp:
38000 @: $(MAKE); $(unstage)
22121df0 38001 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 38002 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
38003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38004 $(NORMAL_TARGET_EXPORTS) \
22121df0 38005 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
38006 for flag in $(EXTRA_TARGET_FLAGS); do \
38007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38008 done; \
38009 (cd $(TARGET_SUBDIR)/libssp && \
38010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38012 "RANLIB=$${RANLIB}" \
38013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38014 maintainer-clean) \
38015 || exit 1
6aa8ef82 38016
a90ef4bf 38017@endif target-libssp
6aa8ef82
DJ
38018
38019
a90ef4bf
JM
38020
38021
38022
38023.PHONY: configure-target-newlib maybe-configure-target-newlib
38024maybe-configure-target-newlib:
38025@if gcc-bootstrap
38026configure-target-newlib: stage_current
38027@endif gcc-bootstrap
38028@if target-newlib
38029maybe-configure-target-newlib: configure-target-newlib
38030configure-target-newlib:
38031 @: $(MAKE); $(unstage)
6aa8ef82
DJ
38032 @r=`${PWD_COMMAND}`; export r; \
38033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38034 echo "Checking multilib configuration for newlib..."; \
22121df0
L
38035 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
38036 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38037 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
38038 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
38039 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
38040 else \
38041 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
38042 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
38043 fi; \
6aa8ef82 38044 else \
a90ef4bf 38045 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 38046 fi; \
a90ef4bf 38047 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22121df0 38048 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
a90ef4bf
JM
38049 $(NORMAL_TARGET_EXPORTS) \
38050 echo Configuring in $(TARGET_SUBDIR)/newlib; \
38051 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
38052 case $(srcdir) in \
38053 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38054 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
38055 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38056 esac; \
1b6c0831 38057 module_srcdir=newlib; \
a90ef4bf 38058 rm -f no-such-file || : ; \
1b6c0831
L
38059 CONFIG_SITE=no-such-file $(SHELL) \
38060 $$s/$$module_srcdir/configure \
38061 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38062 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38063 --target=${target_alias} \
a90ef4bf
JM
38064 || exit 1
38065@endif target-newlib
6aa8ef82
DJ
38066
38067
38068
38069
38070
a90ef4bf
JM
38071.PHONY: all-target-newlib maybe-all-target-newlib
38072maybe-all-target-newlib:
38073@if gcc-bootstrap
38074all-target-newlib: stage_current
38075@endif gcc-bootstrap
38076@if target-newlib
38077TARGET-target-newlib=all
38078maybe-all-target-newlib: all-target-newlib
38079all-target-newlib: configure-target-newlib
38080 @: $(MAKE); $(unstage)
38081 @r=`${PWD_COMMAND}`; export r; \
38082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38083 $(NORMAL_TARGET_EXPORTS) \
38084 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 38085 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38086 $(TARGET-target-newlib))
38087@endif target-newlib
6aa8ef82 38088
6aa8ef82 38089
6aa8ef82 38090
6aa8ef82 38091
6aa8ef82 38092
a90ef4bf
JM
38093.PHONY: check-target-newlib maybe-check-target-newlib
38094maybe-check-target-newlib:
38095@if target-newlib
38096maybe-check-target-newlib: check-target-newlib
38097
38098check-target-newlib:
6aa8ef82
DJ
38099 @: $(MAKE); $(unstage)
38100 @r=`${PWD_COMMAND}`; export r; \
38101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38102 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38103 (cd $(TARGET_SUBDIR)/newlib && \
38104 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
38105
38106@endif target-newlib
38107
38108.PHONY: install-target-newlib maybe-install-target-newlib
38109maybe-install-target-newlib:
38110@if target-newlib
38111maybe-install-target-newlib: install-target-newlib
38112
38113install-target-newlib: installdirs
38114 @: $(MAKE); $(unstage)
38115 @r=`${PWD_COMMAND}`; export r; \
38116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38117 $(NORMAL_TARGET_EXPORTS) \
38118 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38119 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38120
a90ef4bf 38121@endif target-newlib
6aa8ef82 38122
a90ef4bf
JM
38123.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
38124maybe-install-strip-target-newlib:
38125@if target-newlib
38126maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 38127
a90ef4bf 38128install-strip-target-newlib: installdirs
9b980aa1
RW
38129 @: $(MAKE); $(unstage)
38130 @r=`${PWD_COMMAND}`; export r; \
38131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38132 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38133 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
38134 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38135
a90ef4bf 38136@endif target-newlib
9b980aa1 38137
6aa8ef82
DJ
38138# Other targets (info, dvi, pdf, etc.)
38139
a90ef4bf
JM
38140.PHONY: maybe-info-target-newlib info-target-newlib
38141maybe-info-target-newlib:
38142@if target-newlib
38143maybe-info-target-newlib: info-target-newlib
6aa8ef82 38144
a90ef4bf
JM
38145info-target-newlib: \
38146 configure-target-newlib
6aa8ef82 38147 @: $(MAKE); $(unstage)
22121df0 38148 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38149 r=`${PWD_COMMAND}`; export r; \
38150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38151 $(NORMAL_TARGET_EXPORTS) \
22121df0 38152 echo "Doing info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38153 for flag in $(EXTRA_TARGET_FLAGS); do \
38154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38155 done; \
a90ef4bf 38156 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38159 "RANLIB=$${RANLIB}" \
0c24b341 38160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38161 info) \
38162 || exit 1
38163
a90ef4bf 38164@endif target-newlib
6aa8ef82 38165
a90ef4bf
JM
38166.PHONY: maybe-dvi-target-newlib dvi-target-newlib
38167maybe-dvi-target-newlib:
38168@if target-newlib
38169maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 38170
a90ef4bf
JM
38171dvi-target-newlib: \
38172 configure-target-newlib
6aa8ef82 38173 @: $(MAKE); $(unstage)
22121df0 38174 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38175 r=`${PWD_COMMAND}`; export r; \
38176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38177 $(NORMAL_TARGET_EXPORTS) \
22121df0 38178 echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38179 for flag in $(EXTRA_TARGET_FLAGS); do \
38180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38181 done; \
a90ef4bf 38182 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38185 "RANLIB=$${RANLIB}" \
0c24b341 38186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38187 dvi) \
38188 || exit 1
38189
a90ef4bf 38190@endif target-newlib
6aa8ef82 38191
a90ef4bf
JM
38192.PHONY: maybe-pdf-target-newlib pdf-target-newlib
38193maybe-pdf-target-newlib:
38194@if target-newlib
38195maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 38196
a90ef4bf
JM
38197pdf-target-newlib: \
38198 configure-target-newlib
6aa8ef82 38199 @: $(MAKE); $(unstage)
22121df0 38200 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38201 r=`${PWD_COMMAND}`; export r; \
38202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38203 $(NORMAL_TARGET_EXPORTS) \
22121df0 38204 echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38205 for flag in $(EXTRA_TARGET_FLAGS); do \
38206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38207 done; \
a90ef4bf 38208 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38211 "RANLIB=$${RANLIB}" \
0c24b341 38212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38213 pdf) \
38214 || exit 1
38215
a90ef4bf 38216@endif target-newlib
6aa8ef82 38217
a90ef4bf
JM
38218.PHONY: maybe-html-target-newlib html-target-newlib
38219maybe-html-target-newlib:
38220@if target-newlib
38221maybe-html-target-newlib: html-target-newlib
6aa8ef82 38222
a90ef4bf
JM
38223html-target-newlib: \
38224 configure-target-newlib
6aa8ef82 38225 @: $(MAKE); $(unstage)
22121df0 38226 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38227 r=`${PWD_COMMAND}`; export r; \
38228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38229 $(NORMAL_TARGET_EXPORTS) \
22121df0 38230 echo "Doing html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38231 for flag in $(EXTRA_TARGET_FLAGS); do \
38232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38233 done; \
a90ef4bf 38234 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38237 "RANLIB=$${RANLIB}" \
0c24b341 38238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38239 html) \
38240 || exit 1
38241
a90ef4bf 38242@endif target-newlib
6aa8ef82 38243
a90ef4bf
JM
38244.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
38245maybe-TAGS-target-newlib:
38246@if target-newlib
38247maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 38248
a90ef4bf
JM
38249TAGS-target-newlib: \
38250 configure-target-newlib
6aa8ef82 38251 @: $(MAKE); $(unstage)
22121df0 38252 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38253 r=`${PWD_COMMAND}`; export r; \
38254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38255 $(NORMAL_TARGET_EXPORTS) \
22121df0 38256 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38257 for flag in $(EXTRA_TARGET_FLAGS); do \
38258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38259 done; \
a90ef4bf 38260 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38263 "RANLIB=$${RANLIB}" \
0c24b341 38264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38265 TAGS) \
38266 || exit 1
38267
a90ef4bf 38268@endif target-newlib
6aa8ef82 38269
a90ef4bf
JM
38270.PHONY: maybe-install-info-target-newlib install-info-target-newlib
38271maybe-install-info-target-newlib:
38272@if target-newlib
38273maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 38274
a90ef4bf
JM
38275install-info-target-newlib: \
38276 configure-target-newlib \
38277 info-target-newlib
6aa8ef82 38278 @: $(MAKE); $(unstage)
22121df0 38279 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38280 r=`${PWD_COMMAND}`; export r; \
38281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38282 $(NORMAL_TARGET_EXPORTS) \
22121df0 38283 echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38284 for flag in $(EXTRA_TARGET_FLAGS); do \
38285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38286 done; \
a90ef4bf 38287 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38290 "RANLIB=$${RANLIB}" \
0c24b341 38291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38292 install-info) \
38293 || exit 1
38294
a90ef4bf 38295@endif target-newlib
6aa8ef82 38296
a90ef4bf
JM
38297.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
38298maybe-install-pdf-target-newlib:
38299@if target-newlib
38300maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 38301
a90ef4bf
JM
38302install-pdf-target-newlib: \
38303 configure-target-newlib \
38304 pdf-target-newlib
a3ca38d2 38305 @: $(MAKE); $(unstage)
22121df0 38306 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
a3ca38d2
DD
38307 r=`${PWD_COMMAND}`; export r; \
38308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38309 $(NORMAL_TARGET_EXPORTS) \
22121df0 38310 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \
a3ca38d2
DD
38311 for flag in $(EXTRA_TARGET_FLAGS); do \
38312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38313 done; \
a90ef4bf 38314 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
38315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38317 "RANLIB=$${RANLIB}" \
0c24b341 38318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
38319 install-pdf) \
38320 || exit 1
38321
a90ef4bf 38322@endif target-newlib
a3ca38d2 38323
a90ef4bf
JM
38324.PHONY: maybe-install-html-target-newlib install-html-target-newlib
38325maybe-install-html-target-newlib:
38326@if target-newlib
38327maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 38328
a90ef4bf
JM
38329install-html-target-newlib: \
38330 configure-target-newlib \
38331 html-target-newlib
6aa8ef82 38332 @: $(MAKE); $(unstage)
22121df0 38333 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38334 r=`${PWD_COMMAND}`; export r; \
38335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38336 $(NORMAL_TARGET_EXPORTS) \
22121df0 38337 echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38338 for flag in $(EXTRA_TARGET_FLAGS); do \
38339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38340 done; \
a90ef4bf 38341 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38344 "RANLIB=$${RANLIB}" \
0c24b341 38345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38346 install-html) \
38347 || exit 1
38348
a90ef4bf 38349@endif target-newlib
6aa8ef82 38350
a90ef4bf
JM
38351.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
38352maybe-installcheck-target-newlib:
38353@if target-newlib
38354maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 38355
a90ef4bf
JM
38356installcheck-target-newlib: \
38357 configure-target-newlib
6aa8ef82 38358 @: $(MAKE); $(unstage)
22121df0 38359 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38360 r=`${PWD_COMMAND}`; export r; \
38361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38362 $(NORMAL_TARGET_EXPORTS) \
22121df0 38363 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38364 for flag in $(EXTRA_TARGET_FLAGS); do \
38365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38366 done; \
a90ef4bf 38367 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38370 "RANLIB=$${RANLIB}" \
0c24b341 38371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38372 installcheck) \
38373 || exit 1
38374
a90ef4bf 38375@endif target-newlib
6aa8ef82 38376
a90ef4bf
JM
38377.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
38378maybe-mostlyclean-target-newlib:
38379@if target-newlib
38380maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 38381
a90ef4bf 38382mostlyclean-target-newlib:
6aa8ef82 38383 @: $(MAKE); $(unstage)
22121df0 38384 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38385 r=`${PWD_COMMAND}`; export r; \
38386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38387 $(NORMAL_TARGET_EXPORTS) \
22121df0 38388 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38389 for flag in $(EXTRA_TARGET_FLAGS); do \
38390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38391 done; \
a90ef4bf 38392 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38395 "RANLIB=$${RANLIB}" \
0c24b341 38396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38397 mostlyclean) \
38398 || exit 1
38399
a90ef4bf 38400@endif target-newlib
6aa8ef82 38401
a90ef4bf
JM
38402.PHONY: maybe-clean-target-newlib clean-target-newlib
38403maybe-clean-target-newlib:
38404@if target-newlib
38405maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 38406
a90ef4bf 38407clean-target-newlib:
6aa8ef82 38408 @: $(MAKE); $(unstage)
22121df0 38409 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38410 r=`${PWD_COMMAND}`; export r; \
38411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38412 $(NORMAL_TARGET_EXPORTS) \
22121df0 38413 echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38414 for flag in $(EXTRA_TARGET_FLAGS); do \
38415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38416 done; \
a90ef4bf 38417 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38420 "RANLIB=$${RANLIB}" \
0c24b341 38421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38422 clean) \
38423 || exit 1
38424
a90ef4bf 38425@endif target-newlib
6aa8ef82 38426
a90ef4bf
JM
38427.PHONY: maybe-distclean-target-newlib distclean-target-newlib
38428maybe-distclean-target-newlib:
38429@if target-newlib
38430maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 38431
a90ef4bf 38432distclean-target-newlib:
6aa8ef82 38433 @: $(MAKE); $(unstage)
22121df0 38434 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38435 r=`${PWD_COMMAND}`; export r; \
38436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38437 $(NORMAL_TARGET_EXPORTS) \
22121df0 38438 echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38439 for flag in $(EXTRA_TARGET_FLAGS); do \
38440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38441 done; \
a90ef4bf 38442 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38445 "RANLIB=$${RANLIB}" \
0c24b341 38446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38447 distclean) \
38448 || exit 1
38449
a90ef4bf 38450@endif target-newlib
6aa8ef82 38451
a90ef4bf
JM
38452.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
38453maybe-maintainer-clean-target-newlib:
38454@if target-newlib
38455maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 38456
a90ef4bf 38457maintainer-clean-target-newlib:
6aa8ef82 38458 @: $(MAKE); $(unstage)
22121df0 38459 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38460 r=`${PWD_COMMAND}`; export r; \
38461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38462 $(NORMAL_TARGET_EXPORTS) \
22121df0 38463 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38464 for flag in $(EXTRA_TARGET_FLAGS); do \
38465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38466 done; \
a90ef4bf 38467 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38470 "RANLIB=$${RANLIB}" \
0c24b341 38471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38472 maintainer-clean) \
38473 || exit 1
38474
a90ef4bf 38475@endif target-newlib
6aa8ef82
DJ
38476
38477
38478
38479
38480
a90ef4bf
JM
38481.PHONY: configure-target-libgcc maybe-configure-target-libgcc
38482maybe-configure-target-libgcc:
e552509b 38483@if gcc-bootstrap
a90ef4bf 38484configure-target-libgcc: stage_current
e552509b 38485@endif gcc-bootstrap
a90ef4bf
JM
38486@if target-libgcc
38487maybe-configure-target-libgcc: configure-target-libgcc
38488configure-target-libgcc:
e552509b
ILT
38489 @r=`${PWD_COMMAND}`; export r; \
38490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38491 echo "Checking multilib configuration for libgcc..."; \
22121df0
L
38492 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
38493 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38494 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38495 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38496 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 38497 else \
a90ef4bf
JM
38498 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38499 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
38500 fi; \
38501 else \
a90ef4bf 38502 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 38503 fi; \
a90ef4bf 38504 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
22121df0 38505 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
e552509b 38506 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38507 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
38508 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
38509 case $(srcdir) in \
38510 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 38511 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
38512 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38513 esac; \
1b6c0831 38514 module_srcdir=libgcc; \
e552509b 38515 rm -f no-such-file || : ; \
1b6c0831
L
38516 CONFIG_SITE=no-such-file $(SHELL) \
38517 $$s/$$module_srcdir/configure \
38518 --srcdir=$${topdir}/$$module_srcdir \
e552509b 38519 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38520 --target=${target_alias} \
e552509b 38521 || exit 1
a90ef4bf 38522@endif target-libgcc
e552509b
ILT
38523
38524
e552509b 38525
a90ef4bf
JM
38526.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
38527maybe-configure-stage1-target-libgcc:
38528@if target-libgcc-bootstrap
38529maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
38530configure-stage1-target-libgcc:
38531 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38532 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38533 @r=`${PWD_COMMAND}`; export r; \
38534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38535 TFLAGS="$(STAGE1_TFLAGS)"; \
38536 echo "Checking multilib configuration for libgcc..."; \
22121df0 38537 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38538 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38539 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38540 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38541 else \
38542 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38543 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38544 fi; \
38545 else \
38546 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38547 fi; \
38548 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38549 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38550 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38551 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38552 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38553 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \
38554 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38555 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38556 case $(srcdir) in \
38557 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38558 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38559 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38560 esac; \
1b6c0831
L
38561 module_srcdir=libgcc; \
38562 $(SHELL) $$s/$$module_srcdir/configure \
38563 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38564 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38565 --target=${target_alias} \
38566 \
a90ef4bf
JM
38567 $(STAGE1_CONFIGURE_FLAGS)
38568@endif target-libgcc-bootstrap
e552509b 38569
a90ef4bf
JM
38570.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
38571maybe-configure-stage2-target-libgcc:
38572@if target-libgcc-bootstrap
38573maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
38574configure-stage2-target-libgcc:
38575 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38576 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38577 @r=`${PWD_COMMAND}`; export r; \
38578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38579 TFLAGS="$(STAGE2_TFLAGS)"; \
38580 echo "Checking multilib configuration for libgcc..."; \
22121df0 38581 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38582 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38583 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38584 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38585 else \
38586 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38587 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38588 fi; \
38589 else \
38590 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38591 fi; \
38592 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38593 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38594 \
38595 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38596 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38597 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38598 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \
38599 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38600 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38601 case $(srcdir) in \
38602 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38603 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38604 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38605 esac; \
1b6c0831
L
38606 module_srcdir=libgcc; \
38607 $(SHELL) $$s/$$module_srcdir/configure \
38608 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38609 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38610 --target=${target_alias} \
22121df0 38611 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38612 $(STAGE2_CONFIGURE_FLAGS)
38613@endif target-libgcc-bootstrap
9b980aa1 38614
a90ef4bf
JM
38615.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
38616maybe-configure-stage3-target-libgcc:
38617@if target-libgcc-bootstrap
38618maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
38619configure-stage3-target-libgcc:
38620 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38621 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
38622 @r=`${PWD_COMMAND}`; export r; \
38623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38624 TFLAGS="$(STAGE3_TFLAGS)"; \
38625 echo "Checking multilib configuration for libgcc..."; \
22121df0 38626 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38627 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38628 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38629 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38630 else \
38631 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38632 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38633 fi; \
38634 else \
38635 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38636 fi; \
38637 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 38638 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38639 \
38640 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38641 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38642 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38643 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \
38644 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38645 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38646 case $(srcdir) in \
38647 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38648 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38649 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38650 esac; \
1b6c0831
L
38651 module_srcdir=libgcc; \
38652 $(SHELL) $$s/$$module_srcdir/configure \
38653 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38654 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38655 --target=${target_alias} \
22121df0 38656 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38657 $(STAGE3_CONFIGURE_FLAGS)
38658@endif target-libgcc-bootstrap
e552509b 38659
a90ef4bf
JM
38660.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
38661maybe-configure-stage4-target-libgcc:
38662@if target-libgcc-bootstrap
38663maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
38664configure-stage4-target-libgcc:
38665 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38666 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38667 @r=`${PWD_COMMAND}`; export r; \
e552509b 38668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38669 TFLAGS="$(STAGE4_TFLAGS)"; \
38670 echo "Checking multilib configuration for libgcc..."; \
22121df0 38671 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38672 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38673 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38674 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38675 else \
38676 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38677 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38678 fi; \
38679 else \
38680 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38681 fi; \
38682 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38683 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38684 \
38685 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38686 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38687 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38688 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \
38689 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38690 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38691 case $(srcdir) in \
38692 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38693 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38694 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38695 esac; \
1b6c0831
L
38696 module_srcdir=libgcc; \
38697 $(SHELL) $$s/$$module_srcdir/configure \
38698 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38699 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38700 --target=${target_alias} \
22121df0 38701 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38702 $(STAGE4_CONFIGURE_FLAGS)
38703@endif target-libgcc-bootstrap
38704
38705.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
38706maybe-configure-stageprofile-target-libgcc:
38707@if target-libgcc-bootstrap
38708maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
38709configure-stageprofile-target-libgcc:
38710 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38711 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38712 @r=`${PWD_COMMAND}`; export r; \
e552509b 38713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38714 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38715 echo "Checking multilib configuration for libgcc..."; \
22121df0 38716 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38717 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38718 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38719 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38720 else \
38721 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38722 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38723 fi; \
38724 else \
38725 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38726 fi; \
38727 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38728 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38729 \
38730 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38731 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38732 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38733 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \
38734 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38735 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38736 case $(srcdir) in \
38737 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38738 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38739 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38740 esac; \
1b6c0831
L
38741 module_srcdir=libgcc; \
38742 $(SHELL) $$s/$$module_srcdir/configure \
38743 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38744 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38745 --target=${target_alias} \
22121df0 38746 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38747 $(STAGEprofile_CONFIGURE_FLAGS)
38748@endif target-libgcc-bootstrap
e552509b 38749
a90ef4bf
JM
38750.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
38751maybe-configure-stagefeedback-target-libgcc:
38752@if target-libgcc-bootstrap
38753maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
38754configure-stagefeedback-target-libgcc:
38755 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38756 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38757 @r=`${PWD_COMMAND}`; export r; \
e552509b 38758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38759 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38760 echo "Checking multilib configuration for libgcc..."; \
22121df0 38761 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38762 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38763 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38764 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38765 else \
38766 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38767 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38768 fi; \
38769 else \
38770 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38771 fi; \
38772 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38773 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38774 \
38775 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38776 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38777 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38778 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \
38779 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38780 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38781 case $(srcdir) in \
38782 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38783 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38784 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38785 esac; \
1b6c0831
L
38786 module_srcdir=libgcc; \
38787 $(SHELL) $$s/$$module_srcdir/configure \
38788 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38789 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38790 --target=${target_alias} \
22121df0 38791 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38792 $(STAGEfeedback_CONFIGURE_FLAGS)
38793@endif target-libgcc-bootstrap
e552509b 38794
e552509b 38795
e552509b 38796
e552509b 38797
e552509b 38798
a90ef4bf
JM
38799.PHONY: all-target-libgcc maybe-all-target-libgcc
38800maybe-all-target-libgcc:
38801@if gcc-bootstrap
38802all-target-libgcc: stage_current
38803@endif gcc-bootstrap
38804@if target-libgcc
38805TARGET-target-libgcc=all
38806maybe-all-target-libgcc: all-target-libgcc
38807all-target-libgcc: configure-target-libgcc
38808 @r=`${PWD_COMMAND}`; export r; \
e552509b 38809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38810 $(NORMAL_TARGET_EXPORTS) \
38811 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38812 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38813 $(TARGET-target-libgcc))
38814@endif target-libgcc
e552509b 38815
e552509b 38816
e552509b 38817
a90ef4bf
JM
38818.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
38819.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
38820maybe-all-stage1-target-libgcc:
38821maybe-clean-stage1-target-libgcc:
38822@if target-libgcc-bootstrap
38823maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
38824all-stage1: all-stage1-target-libgcc
38825TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
38826all-stage1-target-libgcc: configure-stage1-target-libgcc
38827 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38828 @r=`${PWD_COMMAND}`; export r; \
e552509b 38829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38830 TFLAGS="$(STAGE1_TFLAGS)"; \
38831 $(NORMAL_TARGET_EXPORTS) \
38832 cd $(TARGET_SUBDIR)/libgcc && \
38833 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38834 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38835 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38836 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38837 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38838 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38839 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
38840 $(EXTRA_TARGET_FLAGS) \
38841 \
a90ef4bf
JM
38842 TFLAGS="$(STAGE1_TFLAGS)" \
38843 $(TARGET-stage1-target-libgcc)
e552509b 38844
a90ef4bf
JM
38845maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
38846clean-stage1: clean-stage1-target-libgcc
38847clean-stage1-target-libgcc:
38848 @if [ $(current_stage) = stage1 ]; then \
38849 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38850 else \
38851 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
38852 $(MAKE) stage1-start; \
38853 fi; \
38854 cd $(TARGET_SUBDIR)/libgcc && \
38855 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 38856 clean
a90ef4bf 38857@endif target-libgcc-bootstrap
e552509b 38858
e552509b 38859
a90ef4bf
JM
38860.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
38861.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
38862maybe-all-stage2-target-libgcc:
38863maybe-clean-stage2-target-libgcc:
38864@if target-libgcc-bootstrap
38865maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
38866all-stage2: all-stage2-target-libgcc
38867TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
38868all-stage2-target-libgcc: configure-stage2-target-libgcc
38869 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38870 @r=`${PWD_COMMAND}`; export r; \
e552509b 38871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38872 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 38873 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38874 \
38875 cd $(TARGET_SUBDIR)/libgcc && \
38876 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38877 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38878 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38879 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38880 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38881 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38882 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38883 $(EXTRA_TARGET_FLAGS) \
38884 TFLAGS="$(STAGE2_TFLAGS)" \
38885 $(TARGET-stage2-target-libgcc)
e552509b 38886
a90ef4bf
JM
38887maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
38888clean-stage2: clean-stage2-target-libgcc
38889clean-stage2-target-libgcc:
38890 @if [ $(current_stage) = stage2 ]; then \
38891 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38892 else \
38893 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
38894 $(MAKE) stage2-start; \
38895 fi; \
38896 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38897 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38898@endif target-libgcc-bootstrap
e552509b 38899
e552509b 38900
a90ef4bf
JM
38901.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
38902.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
38903maybe-all-stage3-target-libgcc:
38904maybe-clean-stage3-target-libgcc:
38905@if target-libgcc-bootstrap
38906maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
38907all-stage3: all-stage3-target-libgcc
38908TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
38909all-stage3-target-libgcc: configure-stage3-target-libgcc
38910 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38911 @r=`${PWD_COMMAND}`; export r; \
e552509b 38912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38913 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 38914 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38915 \
38916 cd $(TARGET_SUBDIR)/libgcc && \
38917 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38918 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38919 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38920 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38921 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38922 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38923 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38924 $(EXTRA_TARGET_FLAGS) \
38925 TFLAGS="$(STAGE3_TFLAGS)" \
38926 $(TARGET-stage3-target-libgcc)
e552509b 38927
a90ef4bf
JM
38928maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
38929clean-stage3: clean-stage3-target-libgcc
38930clean-stage3-target-libgcc:
38931 @if [ $(current_stage) = stage3 ]; then \
38932 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38933 else \
38934 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
38935 $(MAKE) stage3-start; \
38936 fi; \
38937 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38938 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38939@endif target-libgcc-bootstrap
e552509b 38940
e552509b 38941
a90ef4bf
JM
38942.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
38943.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
38944maybe-all-stage4-target-libgcc:
38945maybe-clean-stage4-target-libgcc:
38946@if target-libgcc-bootstrap
38947maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
38948all-stage4: all-stage4-target-libgcc
38949TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
38950all-stage4-target-libgcc: configure-stage4-target-libgcc
38951 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38952 @r=`${PWD_COMMAND}`; export r; \
e552509b 38953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38954 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 38955 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38956 \
38957 cd $(TARGET_SUBDIR)/libgcc && \
38958 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38959 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38960 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38961 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38962 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38963 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38964 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38965 $(EXTRA_TARGET_FLAGS) \
38966 TFLAGS="$(STAGE4_TFLAGS)" \
38967 $(TARGET-stage4-target-libgcc)
e552509b 38968
a90ef4bf
JM
38969maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
38970clean-stage4: clean-stage4-target-libgcc
38971clean-stage4-target-libgcc:
38972 @if [ $(current_stage) = stage4 ]; then \
38973 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38974 else \
38975 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
38976 $(MAKE) stage4-start; \
38977 fi; \
38978 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38979 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38980@endif target-libgcc-bootstrap
e552509b
ILT
38981
38982
a90ef4bf
JM
38983.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
38984.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
38985maybe-all-stageprofile-target-libgcc:
38986maybe-clean-stageprofile-target-libgcc:
38987@if target-libgcc-bootstrap
38988maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
38989all-stageprofile: all-stageprofile-target-libgcc
38990TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
38991all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
38992 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
38993 @r=`${PWD_COMMAND}`; export r; \
38994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38995 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38996 $(NORMAL_TARGET_EXPORTS) \
38997 \
38998 cd $(TARGET_SUBDIR)/libgcc && \
38999 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39000 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39001 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39002 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39003 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39004 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39005 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39006 $(EXTRA_TARGET_FLAGS) \
39007 TFLAGS="$(STAGEprofile_TFLAGS)" \
39008 $(TARGET-stageprofile-target-libgcc)
39009
39010maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
39011clean-stageprofile: clean-stageprofile-target-libgcc
39012clean-stageprofile-target-libgcc:
39013 @if [ $(current_stage) = stageprofile ]; then \
39014 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 39015 else \
a90ef4bf
JM
39016 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
39017 $(MAKE) stageprofile-start; \
c52c6897 39018 fi; \
a90ef4bf 39019 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 39020 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 39021@endif target-libgcc-bootstrap
d545f33b
PB
39022
39023
a90ef4bf
JM
39024.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
39025.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
39026maybe-all-stagefeedback-target-libgcc:
39027maybe-clean-stagefeedback-target-libgcc:
39028@if target-libgcc-bootstrap
39029maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
39030all-stagefeedback: all-stagefeedback-target-libgcc
39031TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
39032all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
39033 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
39034 @r=`${PWD_COMMAND}`; export r; \
39035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39036 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
39037 $(NORMAL_TARGET_EXPORTS) \
39038 \
39039 cd $(TARGET_SUBDIR)/libgcc && \
39040 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39041 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39042 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39043 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39044 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39045 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39046 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39047 $(EXTRA_TARGET_FLAGS) \
39048 TFLAGS="$(STAGEfeedback_TFLAGS)" \
39049 $(TARGET-stagefeedback-target-libgcc)
39050
39051maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
39052clean-stagefeedback: clean-stagefeedback-target-libgcc
39053clean-stagefeedback-target-libgcc:
39054 @if [ $(current_stage) = stagefeedback ]; then \
39055 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
39056 else \
39057 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
39058 $(MAKE) stagefeedback-start; \
39059 fi; \
39060 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 39061 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 39062@endif target-libgcc-bootstrap
4b1cb4fe 39063
a7254363
PB
39064
39065
d545f33b
PB
39066
39067
4b1cb4fe 39068
a90ef4bf
JM
39069.PHONY: check-target-libgcc maybe-check-target-libgcc
39070maybe-check-target-libgcc:
39071@if target-libgcc
39072maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 39073
a90ef4bf
JM
39074# Dummy target for uncheckable module.
39075check-target-libgcc:
4b1cb4fe 39076
a90ef4bf 39077@endif target-libgcc
4b1cb4fe 39078
a90ef4bf
JM
39079.PHONY: install-target-libgcc maybe-install-target-libgcc
39080maybe-install-target-libgcc:
39081@if target-libgcc
39082maybe-install-target-libgcc: install-target-libgcc
39083
39084install-target-libgcc: installdirs
0aed8855 39085 @: $(MAKE); $(unstage)
4b1cb4fe
DD
39086 @r=`${PWD_COMMAND}`; export r; \
39087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39088 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39089 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 39090 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 39091
a90ef4bf 39092@endif target-libgcc
4b1cb4fe 39093
a90ef4bf
JM
39094.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
39095maybe-install-strip-target-libgcc:
39096@if target-libgcc
39097maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 39098
a90ef4bf 39099install-strip-target-libgcc: installdirs
9b980aa1
RW
39100 @: $(MAKE); $(unstage)
39101 @r=`${PWD_COMMAND}`; export r; \
39102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39103 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39104 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
39105 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39106
a90ef4bf 39107@endif target-libgcc
9b980aa1 39108
56a8fe78 39109# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 39110
a90ef4bf
JM
39111.PHONY: maybe-info-target-libgcc info-target-libgcc
39112maybe-info-target-libgcc:
39113@if target-libgcc
39114maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 39115
a90ef4bf
JM
39116info-target-libgcc: \
39117 configure-target-libgcc
0aed8855 39118 @: $(MAKE); $(unstage)
22121df0 39119 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39120 r=`${PWD_COMMAND}`; export r; \
39121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39122 $(NORMAL_TARGET_EXPORTS) \
22121df0 39123 echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39124 for flag in $(EXTRA_TARGET_FLAGS); do \
39125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39126 done; \
a90ef4bf 39127 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39130 "RANLIB=$${RANLIB}" \
0c24b341 39131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39132 info) \
4b1cb4fe
DD
39133 || exit 1
39134
a90ef4bf 39135@endif target-libgcc
4b1cb4fe 39136
a90ef4bf
JM
39137.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
39138maybe-dvi-target-libgcc:
39139@if target-libgcc
39140maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 39141
a90ef4bf
JM
39142dvi-target-libgcc: \
39143 configure-target-libgcc
0aed8855 39144 @: $(MAKE); $(unstage)
22121df0 39145 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39146 r=`${PWD_COMMAND}`; export r; \
39147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39148 $(NORMAL_TARGET_EXPORTS) \
22121df0 39149 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39150 for flag in $(EXTRA_TARGET_FLAGS); do \
39151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39152 done; \
a90ef4bf 39153 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39156 "RANLIB=$${RANLIB}" \
0c24b341 39157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39158 dvi) \
4b1cb4fe
DD
39159 || exit 1
39160
a90ef4bf 39161@endif target-libgcc
4b1cb4fe 39162
a90ef4bf
JM
39163.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
39164maybe-pdf-target-libgcc:
39165@if target-libgcc
39166maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 39167
a90ef4bf
JM
39168pdf-target-libgcc: \
39169 configure-target-libgcc
56a8fe78 39170 @: $(MAKE); $(unstage)
22121df0 39171 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
56a8fe78
DD
39172 r=`${PWD_COMMAND}`; export r; \
39173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39174 $(NORMAL_TARGET_EXPORTS) \
22121df0 39175 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \
56a8fe78
DD
39176 for flag in $(EXTRA_TARGET_FLAGS); do \
39177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39178 done; \
a90ef4bf 39179 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
39180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39182 "RANLIB=$${RANLIB}" \
0c24b341 39183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
39184 pdf) \
39185 || exit 1
39186
a90ef4bf 39187@endif target-libgcc
56a8fe78 39188
a90ef4bf
JM
39189.PHONY: maybe-html-target-libgcc html-target-libgcc
39190maybe-html-target-libgcc:
39191@if target-libgcc
39192maybe-html-target-libgcc: html-target-libgcc
6d389afc 39193
a90ef4bf
JM
39194html-target-libgcc: \
39195 configure-target-libgcc
0aed8855 39196 @: $(MAKE); $(unstage)
22121df0 39197 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
6d389afc
MS
39198 r=`${PWD_COMMAND}`; export r; \
39199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 39200 $(NORMAL_TARGET_EXPORTS) \
22121df0 39201 echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \
6d389afc
MS
39202 for flag in $(EXTRA_TARGET_FLAGS); do \
39203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39204 done; \
a90ef4bf 39205 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
39206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39208 "RANLIB=$${RANLIB}" \
0c24b341 39209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
39210 html) \
39211 || exit 1
39212
a90ef4bf 39213@endif target-libgcc
6d389afc 39214
a90ef4bf
JM
39215.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
39216maybe-TAGS-target-libgcc:
39217@if target-libgcc
39218maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 39219
a90ef4bf
JM
39220TAGS-target-libgcc: \
39221 configure-target-libgcc
0aed8855 39222 @: $(MAKE); $(unstage)
22121df0 39223 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39224 r=`${PWD_COMMAND}`; export r; \
39225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39226 $(NORMAL_TARGET_EXPORTS) \
22121df0 39227 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39228 for flag in $(EXTRA_TARGET_FLAGS); do \
39229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39230 done; \
a90ef4bf 39231 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39234 "RANLIB=$${RANLIB}" \
0c24b341 39235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39236 TAGS) \
4b1cb4fe
DD
39237 || exit 1
39238
a90ef4bf 39239@endif target-libgcc
4b1cb4fe 39240
a90ef4bf
JM
39241.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
39242maybe-install-info-target-libgcc:
39243@if target-libgcc
39244maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 39245
a90ef4bf
JM
39246install-info-target-libgcc: \
39247 configure-target-libgcc \
39248 info-target-libgcc
0aed8855 39249 @: $(MAKE); $(unstage)
22121df0 39250 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39251 r=`${PWD_COMMAND}`; export r; \
39252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39253 $(NORMAL_TARGET_EXPORTS) \
22121df0 39254 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39255 for flag in $(EXTRA_TARGET_FLAGS); do \
39256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39257 done; \
a90ef4bf 39258 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39261 "RANLIB=$${RANLIB}" \
0c24b341 39262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39263 install-info) \
4b1cb4fe
DD
39264 || exit 1
39265
a90ef4bf 39266@endif target-libgcc
4b1cb4fe 39267
a90ef4bf
JM
39268.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
39269maybe-install-pdf-target-libgcc:
39270@if target-libgcc
39271maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 39272
a90ef4bf
JM
39273install-pdf-target-libgcc: \
39274 configure-target-libgcc \
39275 pdf-target-libgcc
a3ca38d2 39276 @: $(MAKE); $(unstage)
22121df0 39277 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
a3ca38d2
DD
39278 r=`${PWD_COMMAND}`; export r; \
39279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39280 $(NORMAL_TARGET_EXPORTS) \
22121df0 39281 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \
a3ca38d2
DD
39282 for flag in $(EXTRA_TARGET_FLAGS); do \
39283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39284 done; \
a90ef4bf 39285 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
39286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39288 "RANLIB=$${RANLIB}" \
0c24b341 39289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
39290 install-pdf) \
39291 || exit 1
39292
a90ef4bf 39293@endif target-libgcc
a3ca38d2 39294
a90ef4bf
JM
39295.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
39296maybe-install-html-target-libgcc:
39297@if target-libgcc
39298maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 39299
a90ef4bf
JM
39300install-html-target-libgcc: \
39301 configure-target-libgcc \
39302 html-target-libgcc
108a6f8e 39303 @: $(MAKE); $(unstage)
22121df0 39304 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
108a6f8e
CD
39305 r=`${PWD_COMMAND}`; export r; \
39306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39307 $(NORMAL_TARGET_EXPORTS) \
22121df0 39308 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \
108a6f8e
CD
39309 for flag in $(EXTRA_TARGET_FLAGS); do \
39310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39311 done; \
a90ef4bf 39312 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
39313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39315 "RANLIB=$${RANLIB}" \
0c24b341 39316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
39317 install-html) \
39318 || exit 1
39319
a90ef4bf 39320@endif target-libgcc
108a6f8e 39321
a90ef4bf
JM
39322.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
39323maybe-installcheck-target-libgcc:
39324@if target-libgcc
39325maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 39326
a90ef4bf
JM
39327installcheck-target-libgcc: \
39328 configure-target-libgcc
0aed8855 39329 @: $(MAKE); $(unstage)
22121df0 39330 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39331 r=`${PWD_COMMAND}`; export r; \
39332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39333 $(NORMAL_TARGET_EXPORTS) \
22121df0 39334 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39335 for flag in $(EXTRA_TARGET_FLAGS); do \
39336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39337 done; \
a90ef4bf 39338 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39341 "RANLIB=$${RANLIB}" \
0c24b341 39342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39343 installcheck) \
4b1cb4fe
DD
39344 || exit 1
39345
a90ef4bf 39346@endif target-libgcc
4b1cb4fe 39347
a90ef4bf
JM
39348.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
39349maybe-mostlyclean-target-libgcc:
39350@if target-libgcc
39351maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 39352
a90ef4bf 39353mostlyclean-target-libgcc:
0aed8855 39354 @: $(MAKE); $(unstage)
22121df0 39355 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39356 r=`${PWD_COMMAND}`; export r; \
39357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39358 $(NORMAL_TARGET_EXPORTS) \
22121df0 39359 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39360 for flag in $(EXTRA_TARGET_FLAGS); do \
39361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39362 done; \
a90ef4bf 39363 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39366 "RANLIB=$${RANLIB}" \
0c24b341 39367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39368 mostlyclean) \
4b1cb4fe
DD
39369 || exit 1
39370
a90ef4bf 39371@endif target-libgcc
4b1cb4fe 39372
a90ef4bf
JM
39373.PHONY: maybe-clean-target-libgcc clean-target-libgcc
39374maybe-clean-target-libgcc:
39375@if target-libgcc
39376maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 39377
a90ef4bf 39378clean-target-libgcc:
0aed8855 39379 @: $(MAKE); $(unstage)
22121df0 39380 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39381 r=`${PWD_COMMAND}`; export r; \
39382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39383 $(NORMAL_TARGET_EXPORTS) \
22121df0 39384 echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39385 for flag in $(EXTRA_TARGET_FLAGS); do \
39386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39387 done; \
a90ef4bf 39388 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39391 "RANLIB=$${RANLIB}" \
0c24b341 39392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39393 clean) \
4b1cb4fe
DD
39394 || exit 1
39395
a90ef4bf 39396@endif target-libgcc
4b1cb4fe 39397
a90ef4bf
JM
39398.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
39399maybe-distclean-target-libgcc:
39400@if target-libgcc
39401maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 39402
a90ef4bf 39403distclean-target-libgcc:
0aed8855 39404 @: $(MAKE); $(unstage)
22121df0 39405 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39406 r=`${PWD_COMMAND}`; export r; \
39407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39408 $(NORMAL_TARGET_EXPORTS) \
22121df0 39409 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39410 for flag in $(EXTRA_TARGET_FLAGS); do \
39411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39412 done; \
a90ef4bf 39413 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39416 "RANLIB=$${RANLIB}" \
0c24b341 39417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39418 distclean) \
4b1cb4fe
DD
39419 || exit 1
39420
a90ef4bf 39421@endif target-libgcc
4b1cb4fe 39422
a90ef4bf
JM
39423.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
39424maybe-maintainer-clean-target-libgcc:
39425@if target-libgcc
39426maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 39427
a90ef4bf 39428maintainer-clean-target-libgcc:
0aed8855 39429 @: $(MAKE); $(unstage)
22121df0 39430 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39431 r=`${PWD_COMMAND}`; export r; \
39432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39433 $(NORMAL_TARGET_EXPORTS) \
22121df0 39434 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39435 for flag in $(EXTRA_TARGET_FLAGS); do \
39436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39437 done; \
a90ef4bf 39438 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39441 "RANLIB=$${RANLIB}" \
0c24b341 39442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39443 maintainer-clean) \
4b1cb4fe
DD
39444 || exit 1
39445
a90ef4bf 39446@endif target-libgcc
4b1cb4fe
DD
39447
39448
3866be5d 39449
a7254363 39450
e90269c8 39451
2bf680c4
ILT
39452.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
39453maybe-configure-target-libbacktrace:
39454@if gcc-bootstrap
39455configure-target-libbacktrace: stage_current
39456@endif gcc-bootstrap
39457@if target-libbacktrace
39458maybe-configure-target-libbacktrace: configure-target-libbacktrace
39459configure-target-libbacktrace:
39460 @: $(MAKE); $(unstage)
39461 @r=`${PWD_COMMAND}`; export r; \
39462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39463 echo "Checking multilib configuration for libbacktrace..."; \
22121df0
L
39464 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
39465 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \
2bf680c4
ILT
39466 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39467 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39468 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
39469 else \
39470 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
39471 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39472 fi; \
39473 else \
39474 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39475 fi; \
39476 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 39477 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
2bf680c4
ILT
39478 $(NORMAL_TARGET_EXPORTS) \
39479 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
39480 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
39481 case $(srcdir) in \
39482 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39483 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
39484 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39485 esac; \
1b6c0831 39486 module_srcdir=libbacktrace; \
2bf680c4 39487 rm -f no-such-file || : ; \
1b6c0831
L
39488 CONFIG_SITE=no-such-file $(SHELL) \
39489 $$s/$$module_srcdir/configure \
39490 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 39491 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39492 --target=${target_alias} \
2bf680c4
ILT
39493 || exit 1
39494@endif target-libbacktrace
39495
39496
39497
39498
39499
39500.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
39501maybe-all-target-libbacktrace:
39502@if gcc-bootstrap
39503all-target-libbacktrace: stage_current
39504@endif gcc-bootstrap
39505@if target-libbacktrace
39506TARGET-target-libbacktrace=all
39507maybe-all-target-libbacktrace: all-target-libbacktrace
39508all-target-libbacktrace: configure-target-libbacktrace
39509 @: $(MAKE); $(unstage)
39510 @r=`${PWD_COMMAND}`; export r; \
39511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39512 $(NORMAL_TARGET_EXPORTS) \
39513 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 39514 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
39515 $(TARGET-target-libbacktrace))
39516@endif target-libbacktrace
39517
39518
39519
39520
39521
39522.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
39523maybe-check-target-libbacktrace:
39524@if target-libbacktrace
39525maybe-check-target-libbacktrace: check-target-libbacktrace
39526
39527check-target-libbacktrace:
39528 @: $(MAKE); $(unstage)
39529 @r=`${PWD_COMMAND}`; export r; \
39530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39531 $(NORMAL_TARGET_EXPORTS) \
39532 (cd $(TARGET_SUBDIR)/libbacktrace && \
39533 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39534
39535@endif target-libbacktrace
39536
39537.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
39538maybe-install-target-libbacktrace:
39539@if target-libbacktrace
39540maybe-install-target-libbacktrace: install-target-libbacktrace
39541
39542install-target-libbacktrace: installdirs
39543 @: $(MAKE); $(unstage)
39544 @r=`${PWD_COMMAND}`; export r; \
39545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39546 $(NORMAL_TARGET_EXPORTS) \
39547 (cd $(TARGET_SUBDIR)/libbacktrace && \
39548 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39549
39550@endif target-libbacktrace
39551
39552.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
39553maybe-install-strip-target-libbacktrace:
39554@if target-libbacktrace
39555maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
39556
39557install-strip-target-libbacktrace: installdirs
39558 @: $(MAKE); $(unstage)
39559 @r=`${PWD_COMMAND}`; export r; \
39560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39561 $(NORMAL_TARGET_EXPORTS) \
39562 (cd $(TARGET_SUBDIR)/libbacktrace && \
39563 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39564
39565@endif target-libbacktrace
39566
39567# Other targets (info, dvi, pdf, etc.)
39568
39569.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
39570maybe-info-target-libbacktrace:
39571@if target-libbacktrace
39572maybe-info-target-libbacktrace: info-target-libbacktrace
39573
39574info-target-libbacktrace: \
39575 configure-target-libbacktrace
39576 @: $(MAKE); $(unstage)
22121df0 39577 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39578 r=`${PWD_COMMAND}`; export r; \
39579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39580 $(NORMAL_TARGET_EXPORTS) \
22121df0 39581 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39582 for flag in $(EXTRA_TARGET_FLAGS); do \
39583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39584 done; \
39585 (cd $(TARGET_SUBDIR)/libbacktrace && \
39586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39588 "RANLIB=$${RANLIB}" \
39589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39590 info) \
39591 || exit 1
39592
39593@endif target-libbacktrace
39594
39595.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
39596maybe-dvi-target-libbacktrace:
39597@if target-libbacktrace
39598maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
39599
39600dvi-target-libbacktrace: \
39601 configure-target-libbacktrace
39602 @: $(MAKE); $(unstage)
22121df0 39603 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39604 r=`${PWD_COMMAND}`; export r; \
39605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39606 $(NORMAL_TARGET_EXPORTS) \
22121df0 39607 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39608 for flag in $(EXTRA_TARGET_FLAGS); do \
39609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39610 done; \
39611 (cd $(TARGET_SUBDIR)/libbacktrace && \
39612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39614 "RANLIB=$${RANLIB}" \
39615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39616 dvi) \
39617 || exit 1
39618
39619@endif target-libbacktrace
39620
39621.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
39622maybe-pdf-target-libbacktrace:
39623@if target-libbacktrace
39624maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
39625
39626pdf-target-libbacktrace: \
39627 configure-target-libbacktrace
39628 @: $(MAKE); $(unstage)
22121df0 39629 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39630 r=`${PWD_COMMAND}`; export r; \
39631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39632 $(NORMAL_TARGET_EXPORTS) \
22121df0 39633 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39634 for flag in $(EXTRA_TARGET_FLAGS); do \
39635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39636 done; \
39637 (cd $(TARGET_SUBDIR)/libbacktrace && \
39638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39640 "RANLIB=$${RANLIB}" \
39641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39642 pdf) \
39643 || exit 1
39644
39645@endif target-libbacktrace
39646
39647.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
39648maybe-html-target-libbacktrace:
39649@if target-libbacktrace
39650maybe-html-target-libbacktrace: html-target-libbacktrace
39651
39652html-target-libbacktrace: \
39653 configure-target-libbacktrace
39654 @: $(MAKE); $(unstage)
22121df0 39655 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39656 r=`${PWD_COMMAND}`; export r; \
39657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39658 $(NORMAL_TARGET_EXPORTS) \
22121df0 39659 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39660 for flag in $(EXTRA_TARGET_FLAGS); do \
39661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39662 done; \
39663 (cd $(TARGET_SUBDIR)/libbacktrace && \
39664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39666 "RANLIB=$${RANLIB}" \
39667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39668 html) \
39669 || exit 1
39670
39671@endif target-libbacktrace
39672
39673.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
39674maybe-TAGS-target-libbacktrace:
39675@if target-libbacktrace
39676maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
39677
39678TAGS-target-libbacktrace: \
39679 configure-target-libbacktrace
39680 @: $(MAKE); $(unstage)
22121df0 39681 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39682 r=`${PWD_COMMAND}`; export r; \
39683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39684 $(NORMAL_TARGET_EXPORTS) \
22121df0 39685 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39686 for flag in $(EXTRA_TARGET_FLAGS); do \
39687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39688 done; \
39689 (cd $(TARGET_SUBDIR)/libbacktrace && \
39690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39692 "RANLIB=$${RANLIB}" \
39693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39694 TAGS) \
39695 || exit 1
39696
39697@endif target-libbacktrace
39698
39699.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
39700maybe-install-info-target-libbacktrace:
39701@if target-libbacktrace
39702maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
39703
39704install-info-target-libbacktrace: \
39705 configure-target-libbacktrace \
39706 info-target-libbacktrace
39707 @: $(MAKE); $(unstage)
22121df0 39708 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39709 r=`${PWD_COMMAND}`; export r; \
39710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39711 $(NORMAL_TARGET_EXPORTS) \
22121df0 39712 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39713 for flag in $(EXTRA_TARGET_FLAGS); do \
39714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39715 done; \
39716 (cd $(TARGET_SUBDIR)/libbacktrace && \
39717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39719 "RANLIB=$${RANLIB}" \
39720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39721 install-info) \
39722 || exit 1
39723
39724@endif target-libbacktrace
39725
39726.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
39727maybe-install-pdf-target-libbacktrace:
39728@if target-libbacktrace
39729maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
39730
39731install-pdf-target-libbacktrace: \
39732 configure-target-libbacktrace \
39733 pdf-target-libbacktrace
39734 @: $(MAKE); $(unstage)
22121df0 39735 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39736 r=`${PWD_COMMAND}`; export r; \
39737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39738 $(NORMAL_TARGET_EXPORTS) \
22121df0 39739 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39740 for flag in $(EXTRA_TARGET_FLAGS); do \
39741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39742 done; \
39743 (cd $(TARGET_SUBDIR)/libbacktrace && \
39744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39746 "RANLIB=$${RANLIB}" \
39747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39748 install-pdf) \
39749 || exit 1
39750
39751@endif target-libbacktrace
39752
39753.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
39754maybe-install-html-target-libbacktrace:
39755@if target-libbacktrace
39756maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
39757
39758install-html-target-libbacktrace: \
39759 configure-target-libbacktrace \
39760 html-target-libbacktrace
39761 @: $(MAKE); $(unstage)
22121df0 39762 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39763 r=`${PWD_COMMAND}`; export r; \
39764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39765 $(NORMAL_TARGET_EXPORTS) \
22121df0 39766 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39767 for flag in $(EXTRA_TARGET_FLAGS); do \
39768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39769 done; \
39770 (cd $(TARGET_SUBDIR)/libbacktrace && \
39771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39773 "RANLIB=$${RANLIB}" \
39774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39775 install-html) \
39776 || exit 1
39777
39778@endif target-libbacktrace
39779
39780.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
39781maybe-installcheck-target-libbacktrace:
39782@if target-libbacktrace
39783maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
39784
39785installcheck-target-libbacktrace: \
39786 configure-target-libbacktrace
39787 @: $(MAKE); $(unstage)
22121df0 39788 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39789 r=`${PWD_COMMAND}`; export r; \
39790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39791 $(NORMAL_TARGET_EXPORTS) \
22121df0 39792 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39793 for flag in $(EXTRA_TARGET_FLAGS); do \
39794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39795 done; \
39796 (cd $(TARGET_SUBDIR)/libbacktrace && \
39797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39799 "RANLIB=$${RANLIB}" \
39800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39801 installcheck) \
39802 || exit 1
39803
39804@endif target-libbacktrace
39805
39806.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
39807maybe-mostlyclean-target-libbacktrace:
39808@if target-libbacktrace
39809maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
39810
39811mostlyclean-target-libbacktrace:
39812 @: $(MAKE); $(unstage)
22121df0 39813 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39814 r=`${PWD_COMMAND}`; export r; \
39815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39816 $(NORMAL_TARGET_EXPORTS) \
22121df0 39817 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39818 for flag in $(EXTRA_TARGET_FLAGS); do \
39819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39820 done; \
39821 (cd $(TARGET_SUBDIR)/libbacktrace && \
39822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39824 "RANLIB=$${RANLIB}" \
39825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39826 mostlyclean) \
39827 || exit 1
39828
39829@endif target-libbacktrace
39830
39831.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
39832maybe-clean-target-libbacktrace:
39833@if target-libbacktrace
39834maybe-clean-target-libbacktrace: clean-target-libbacktrace
39835
39836clean-target-libbacktrace:
39837 @: $(MAKE); $(unstage)
22121df0 39838 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39839 r=`${PWD_COMMAND}`; export r; \
39840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39841 $(NORMAL_TARGET_EXPORTS) \
22121df0 39842 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39843 for flag in $(EXTRA_TARGET_FLAGS); do \
39844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39845 done; \
39846 (cd $(TARGET_SUBDIR)/libbacktrace && \
39847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39849 "RANLIB=$${RANLIB}" \
39850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39851 clean) \
39852 || exit 1
39853
39854@endif target-libbacktrace
39855
39856.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
39857maybe-distclean-target-libbacktrace:
39858@if target-libbacktrace
39859maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
39860
39861distclean-target-libbacktrace:
39862 @: $(MAKE); $(unstage)
22121df0 39863 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39864 r=`${PWD_COMMAND}`; export r; \
39865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39866 $(NORMAL_TARGET_EXPORTS) \
22121df0 39867 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39868 for flag in $(EXTRA_TARGET_FLAGS); do \
39869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39870 done; \
39871 (cd $(TARGET_SUBDIR)/libbacktrace && \
39872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39874 "RANLIB=$${RANLIB}" \
39875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39876 distclean) \
39877 || exit 1
39878
39879@endif target-libbacktrace
39880
39881.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
39882maybe-maintainer-clean-target-libbacktrace:
39883@if target-libbacktrace
39884maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
39885
39886maintainer-clean-target-libbacktrace:
39887 @: $(MAKE); $(unstage)
22121df0 39888 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39889 r=`${PWD_COMMAND}`; export r; \
39890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39891 $(NORMAL_TARGET_EXPORTS) \
22121df0 39892 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39893 for flag in $(EXTRA_TARGET_FLAGS); do \
39894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39895 done; \
39896 (cd $(TARGET_SUBDIR)/libbacktrace && \
39897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39899 "RANLIB=$${RANLIB}" \
39900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39901 maintainer-clean) \
39902 || exit 1
39903
39904@endif target-libbacktrace
39905
39906
39907
39908
39909
a90ef4bf
JM
39910.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
39911maybe-configure-target-libquadmath:
4f0ef2d8 39912@if gcc-bootstrap
a90ef4bf 39913configure-target-libquadmath: stage_current
4f0ef2d8 39914@endif gcc-bootstrap
a90ef4bf
JM
39915@if target-libquadmath
39916maybe-configure-target-libquadmath: configure-target-libquadmath
39917configure-target-libquadmath:
0aed8855
PB
39918 @: $(MAKE); $(unstage)
39919 @r=`${PWD_COMMAND}`; export r; \
39920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39921 echo "Checking multilib configuration for libquadmath..."; \
22121df0
L
39922 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
39923 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39924 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39925 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39926 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 39927 else \
a90ef4bf
JM
39928 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
39929 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
39930 fi; \
39931 else \
a90ef4bf 39932 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 39933 fi; \
a90ef4bf 39934 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
22121df0 39935 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
1f53ca9a 39936 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39937 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
39938 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 39939 case $(srcdir) in \
b00612cc 39940 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39941 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 39942 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 39943 esac; \
1b6c0831 39944 module_srcdir=libquadmath; \
4fa63067 39945 rm -f no-such-file || : ; \
1b6c0831
L
39946 CONFIG_SITE=no-such-file $(SHELL) \
39947 $$s/$$module_srcdir/configure \
39948 --srcdir=$${topdir}/$$module_srcdir \
4b900473 39949 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39950 --target=${target_alias} \
e2b9e2dc 39951 || exit 1
a90ef4bf 39952@endif target-libquadmath
e2b9e2dc 39953
a7254363
PB
39954
39955
d545f33b
PB
39956
39957
a90ef4bf
JM
39958.PHONY: all-target-libquadmath maybe-all-target-libquadmath
39959maybe-all-target-libquadmath:
4f0ef2d8 39960@if gcc-bootstrap
a90ef4bf 39961all-target-libquadmath: stage_current
4f0ef2d8 39962@endif gcc-bootstrap
a90ef4bf
JM
39963@if target-libquadmath
39964TARGET-target-libquadmath=all
39965maybe-all-target-libquadmath: all-target-libquadmath
39966all-target-libquadmath: configure-target-libquadmath
0aed8855 39967 @: $(MAKE); $(unstage)
b40e3958
L
39968 @r=`${PWD_COMMAND}`; export r; \
39969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 39970 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39971 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 39972 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39973 $(TARGET-target-libquadmath))
39974@endif target-libquadmath
3866be5d 39975
a7254363
PB
39976
39977
d545f33b
PB
39978
39979
a90ef4bf
JM
39980.PHONY: check-target-libquadmath maybe-check-target-libquadmath
39981maybe-check-target-libquadmath:
39982@if target-libquadmath
39983maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 39984
a90ef4bf 39985check-target-libquadmath:
0aed8855 39986 @: $(MAKE); $(unstage)
b40e3958
L
39987 @r=`${PWD_COMMAND}`; export r; \
39988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39989 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39990 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 39991 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 39992
a90ef4bf 39993@endif target-libquadmath
3866be5d 39994
a90ef4bf
JM
39995.PHONY: install-target-libquadmath maybe-install-target-libquadmath
39996maybe-install-target-libquadmath:
39997@if target-libquadmath
39998maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 39999
a90ef4bf 40000install-target-libquadmath: installdirs
0aed8855 40001 @: $(MAKE); $(unstage)
b40e3958
L
40002 @r=`${PWD_COMMAND}`; export r; \
40003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40004 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40005 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 40006 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40007
a90ef4bf 40008@endif target-libquadmath
3866be5d 40009
a90ef4bf
JM
40010.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
40011maybe-install-strip-target-libquadmath:
40012@if target-libquadmath
40013maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 40014
a90ef4bf 40015install-strip-target-libquadmath: installdirs
9b980aa1
RW
40016 @: $(MAKE); $(unstage)
40017 @r=`${PWD_COMMAND}`; export r; \
40018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40019 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40020 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
40021 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40022
a90ef4bf 40023@endif target-libquadmath
9b980aa1 40024
56a8fe78 40025# Other targets (info, dvi, pdf, etc.)
4fa63067 40026
a90ef4bf
JM
40027.PHONY: maybe-info-target-libquadmath info-target-libquadmath
40028maybe-info-target-libquadmath:
40029@if target-libquadmath
40030maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 40031
a90ef4bf
JM
40032info-target-libquadmath: \
40033 configure-target-libquadmath
0aed8855 40034 @: $(MAKE); $(unstage)
22121df0 40035 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40036 r=`${PWD_COMMAND}`; export r; \
b40e3958 40037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40038 $(NORMAL_TARGET_EXPORTS) \
22121df0 40039 echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40040 for flag in $(EXTRA_TARGET_FLAGS); do \
40041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40042 done; \
a90ef4bf 40043 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40046 "RANLIB=$${RANLIB}" \
0c24b341 40047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40048 info) \
4fa63067 40049 || exit 1
3866be5d 40050
a90ef4bf 40051@endif target-libquadmath
3866be5d 40052
a90ef4bf
JM
40053.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
40054maybe-dvi-target-libquadmath:
40055@if target-libquadmath
40056maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 40057
a90ef4bf
JM
40058dvi-target-libquadmath: \
40059 configure-target-libquadmath
0aed8855 40060 @: $(MAKE); $(unstage)
22121df0 40061 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40062 r=`${PWD_COMMAND}`; export r; \
b40e3958 40063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40064 $(NORMAL_TARGET_EXPORTS) \
22121df0 40065 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40066 for flag in $(EXTRA_TARGET_FLAGS); do \
40067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40068 done; \
a90ef4bf 40069 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40072 "RANLIB=$${RANLIB}" \
0c24b341 40073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40074 dvi) \
4fa63067 40075 || exit 1
3866be5d 40076
a90ef4bf 40077@endif target-libquadmath
3866be5d 40078
a90ef4bf
JM
40079.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
40080maybe-pdf-target-libquadmath:
40081@if target-libquadmath
40082maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 40083
a90ef4bf
JM
40084pdf-target-libquadmath: \
40085 configure-target-libquadmath
56a8fe78 40086 @: $(MAKE); $(unstage)
22121df0 40087 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
56a8fe78
DD
40088 r=`${PWD_COMMAND}`; export r; \
40089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40090 $(NORMAL_TARGET_EXPORTS) \
22121df0 40091 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \
56a8fe78
DD
40092 for flag in $(EXTRA_TARGET_FLAGS); do \
40093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40094 done; \
a90ef4bf 40095 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
40096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40098 "RANLIB=$${RANLIB}" \
0c24b341 40099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40100 pdf) \
40101 || exit 1
40102
a90ef4bf 40103@endif target-libquadmath
56a8fe78 40104
a90ef4bf
JM
40105.PHONY: maybe-html-target-libquadmath html-target-libquadmath
40106maybe-html-target-libquadmath:
40107@if target-libquadmath
40108maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 40109
a90ef4bf
JM
40110html-target-libquadmath: \
40111 configure-target-libquadmath
0aed8855 40112 @: $(MAKE); $(unstage)
22121df0 40113 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
6d389afc
MS
40114 r=`${PWD_COMMAND}`; export r; \
40115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40116 $(NORMAL_TARGET_EXPORTS) \
22121df0 40117 echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \
6d389afc
MS
40118 for flag in $(EXTRA_TARGET_FLAGS); do \
40119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40120 done; \
a90ef4bf 40121 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
40122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40124 "RANLIB=$${RANLIB}" \
0c24b341 40125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40126 html) \
40127 || exit 1
40128
a90ef4bf 40129@endif target-libquadmath
6d389afc 40130
a90ef4bf
JM
40131.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
40132maybe-TAGS-target-libquadmath:
40133@if target-libquadmath
40134maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 40135
a90ef4bf
JM
40136TAGS-target-libquadmath: \
40137 configure-target-libquadmath
0aed8855 40138 @: $(MAKE); $(unstage)
22121df0 40139 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
40140 r=`${PWD_COMMAND}`; export r; \
40141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40142 $(NORMAL_TARGET_EXPORTS) \
22121df0 40143 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40144 for flag in $(EXTRA_TARGET_FLAGS); do \
40145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40146 done; \
a90ef4bf 40147 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40150 "RANLIB=$${RANLIB}" \
0c24b341 40151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40152 TAGS) \
e2b9e2dc
NN
40153 || exit 1
40154
a90ef4bf 40155@endif target-libquadmath
4fa63067 40156
a90ef4bf
JM
40157.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
40158maybe-install-info-target-libquadmath:
40159@if target-libquadmath
40160maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 40161
a90ef4bf
JM
40162install-info-target-libquadmath: \
40163 configure-target-libquadmath \
40164 info-target-libquadmath
0aed8855 40165 @: $(MAKE); $(unstage)
22121df0 40166 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40167 r=`${PWD_COMMAND}`; export r; \
b40e3958 40168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40169 $(NORMAL_TARGET_EXPORTS) \
22121df0 40170 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40171 for flag in $(EXTRA_TARGET_FLAGS); do \
40172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40173 done; \
a90ef4bf 40174 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40177 "RANLIB=$${RANLIB}" \
0c24b341 40178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40179 install-info) \
4fa63067 40180 || exit 1
3866be5d 40181
a90ef4bf 40182@endif target-libquadmath
3866be5d 40183
a90ef4bf
JM
40184.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
40185maybe-install-pdf-target-libquadmath:
40186@if target-libquadmath
40187maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 40188
a90ef4bf
JM
40189install-pdf-target-libquadmath: \
40190 configure-target-libquadmath \
40191 pdf-target-libquadmath
a3ca38d2 40192 @: $(MAKE); $(unstage)
22121df0 40193 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
a3ca38d2
DD
40194 r=`${PWD_COMMAND}`; export r; \
40195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40196 $(NORMAL_TARGET_EXPORTS) \
22121df0 40197 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \
a3ca38d2
DD
40198 for flag in $(EXTRA_TARGET_FLAGS); do \
40199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40200 done; \
a90ef4bf 40201 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
40202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40204 "RANLIB=$${RANLIB}" \
0c24b341 40205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40206 install-pdf) \
40207 || exit 1
40208
a90ef4bf 40209@endif target-libquadmath
a3ca38d2 40210
a90ef4bf
JM
40211.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
40212maybe-install-html-target-libquadmath:
40213@if target-libquadmath
40214maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 40215
a90ef4bf
JM
40216install-html-target-libquadmath: \
40217 configure-target-libquadmath \
40218 html-target-libquadmath
108a6f8e 40219 @: $(MAKE); $(unstage)
22121df0 40220 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
108a6f8e
CD
40221 r=`${PWD_COMMAND}`; export r; \
40222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40223 $(NORMAL_TARGET_EXPORTS) \
22121df0 40224 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \
108a6f8e
CD
40225 for flag in $(EXTRA_TARGET_FLAGS); do \
40226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40227 done; \
a90ef4bf 40228 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
40229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40231 "RANLIB=$${RANLIB}" \
0c24b341 40232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
40233 install-html) \
40234 || exit 1
40235
a90ef4bf 40236@endif target-libquadmath
108a6f8e 40237
a90ef4bf
JM
40238.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
40239maybe-installcheck-target-libquadmath:
40240@if target-libquadmath
40241maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 40242
a90ef4bf
JM
40243installcheck-target-libquadmath: \
40244 configure-target-libquadmath
0aed8855 40245 @: $(MAKE); $(unstage)
22121df0 40246 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40247 r=`${PWD_COMMAND}`; export r; \
b40e3958 40248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40249 $(NORMAL_TARGET_EXPORTS) \
22121df0 40250 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40251 for flag in $(EXTRA_TARGET_FLAGS); do \
40252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40253 done; \
a90ef4bf 40254 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40257 "RANLIB=$${RANLIB}" \
0c24b341 40258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40259 installcheck) \
4fa63067 40260 || exit 1
3866be5d 40261
a90ef4bf 40262@endif target-libquadmath
3866be5d 40263
a90ef4bf
JM
40264.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
40265maybe-mostlyclean-target-libquadmath:
40266@if target-libquadmath
40267maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 40268
a90ef4bf 40269mostlyclean-target-libquadmath:
0aed8855 40270 @: $(MAKE); $(unstage)
22121df0 40271 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40272 r=`${PWD_COMMAND}`; export r; \
b40e3958 40273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40274 $(NORMAL_TARGET_EXPORTS) \
22121df0 40275 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40276 for flag in $(EXTRA_TARGET_FLAGS); do \
40277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40278 done; \
a90ef4bf 40279 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40282 "RANLIB=$${RANLIB}" \
0c24b341 40283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40284 mostlyclean) \
4fa63067 40285 || exit 1
3866be5d 40286
a90ef4bf 40287@endif target-libquadmath
3866be5d 40288
a90ef4bf
JM
40289.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
40290maybe-clean-target-libquadmath:
40291@if target-libquadmath
40292maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 40293
a90ef4bf 40294clean-target-libquadmath:
0aed8855 40295 @: $(MAKE); $(unstage)
22121df0 40296 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
40297 r=`${PWD_COMMAND}`; export r; \
40298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40299 $(NORMAL_TARGET_EXPORTS) \
22121df0 40300 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40301 for flag in $(EXTRA_TARGET_FLAGS); do \
40302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40303 done; \
a90ef4bf 40304 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40307 "RANLIB=$${RANLIB}" \
0c24b341 40308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40309 clean) \
e2b9e2dc
NN
40310 || exit 1
40311
a90ef4bf 40312@endif target-libquadmath
3866be5d 40313
a90ef4bf
JM
40314.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
40315maybe-distclean-target-libquadmath:
40316@if target-libquadmath
40317maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 40318
a90ef4bf 40319distclean-target-libquadmath:
0aed8855 40320 @: $(MAKE); $(unstage)
22121df0 40321 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40322 r=`${PWD_COMMAND}`; export r; \
b40e3958 40323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40324 $(NORMAL_TARGET_EXPORTS) \
22121df0 40325 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40326 for flag in $(EXTRA_TARGET_FLAGS); do \
40327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40328 done; \
a90ef4bf 40329 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40332 "RANLIB=$${RANLIB}" \
0c24b341 40333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40334 distclean) \
4fa63067 40335 || exit 1
3866be5d 40336
a90ef4bf 40337@endif target-libquadmath
3866be5d 40338
a90ef4bf
JM
40339.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
40340maybe-maintainer-clean-target-libquadmath:
40341@if target-libquadmath
40342maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 40343
a90ef4bf 40344maintainer-clean-target-libquadmath:
0aed8855 40345 @: $(MAKE); $(unstage)
22121df0 40346 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40347 r=`${PWD_COMMAND}`; export r; \
b40e3958 40348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40349 $(NORMAL_TARGET_EXPORTS) \
22121df0 40350 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40351 for flag in $(EXTRA_TARGET_FLAGS); do \
40352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40353 done; \
a90ef4bf 40354 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40357 "RANLIB=$${RANLIB}" \
0c24b341 40358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40359 maintainer-clean) \
4fa63067 40360 || exit 1
3866be5d 40361
a90ef4bf 40362@endif target-libquadmath
3866be5d 40363
4fa63067 40364
4fa63067 40365
a7254363 40366
e90269c8 40367
a90ef4bf
JM
40368.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
40369maybe-configure-target-libgfortran:
e552509b 40370@if gcc-bootstrap
a90ef4bf 40371configure-target-libgfortran: stage_current
e552509b 40372@endif gcc-bootstrap
a90ef4bf
JM
40373@if target-libgfortran
40374maybe-configure-target-libgfortran: configure-target-libgfortran
40375configure-target-libgfortran:
e552509b
ILT
40376 @: $(MAKE); $(unstage)
40377 @r=`${PWD_COMMAND}`; export r; \
40378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40379 echo "Checking multilib configuration for libgfortran..."; \
22121df0
L
40380 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
40381 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40382 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
40383 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
40384 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 40385 else \
a90ef4bf
JM
40386 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
40387 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
40388 fi; \
40389 else \
a90ef4bf 40390 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 40391 fi; \
a90ef4bf 40392 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
22121df0 40393 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
e552509b 40394 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40395 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
40396 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
40397 case $(srcdir) in \
40398 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40399 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
40400 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40401 esac; \
1b6c0831 40402 module_srcdir=libgfortran; \
e552509b 40403 rm -f no-such-file || : ; \
1b6c0831
L
40404 CONFIG_SITE=no-such-file $(SHELL) \
40405 $$s/$$module_srcdir/configure \
40406 --srcdir=$${topdir}/$$module_srcdir \
e552509b 40407 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40408 --target=${target_alias} \
e552509b 40409 || exit 1
a90ef4bf 40410@endif target-libgfortran
e552509b
ILT
40411
40412
40413
40414
40415
a90ef4bf
JM
40416.PHONY: all-target-libgfortran maybe-all-target-libgfortran
40417maybe-all-target-libgfortran:
e552509b 40418@if gcc-bootstrap
a90ef4bf 40419all-target-libgfortran: stage_current
e552509b 40420@endif gcc-bootstrap
a90ef4bf
JM
40421@if target-libgfortran
40422TARGET-target-libgfortran=all
40423maybe-all-target-libgfortran: all-target-libgfortran
40424all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
40425 @: $(MAKE); $(unstage)
40426 @r=`${PWD_COMMAND}`; export r; \
40427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40428 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40429 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 40430 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40431 $(TARGET-target-libgfortran))
40432@endif target-libgfortran
e552509b
ILT
40433
40434
40435
40436
40437
a90ef4bf
JM
40438.PHONY: check-target-libgfortran maybe-check-target-libgfortran
40439maybe-check-target-libgfortran:
40440@if target-libgfortran
40441maybe-check-target-libgfortran: check-target-libgfortran
e552509b 40442
a90ef4bf 40443check-target-libgfortran:
e552509b
ILT
40444 @: $(MAKE); $(unstage)
40445 @r=`${PWD_COMMAND}`; export r; \
40446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40447 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40448 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40449 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
40450
a90ef4bf 40451@endif target-libgfortran
e552509b 40452
a90ef4bf
JM
40453.PHONY: install-target-libgfortran maybe-install-target-libgfortran
40454maybe-install-target-libgfortran:
40455@if target-libgfortran
40456maybe-install-target-libgfortran: install-target-libgfortran
e552509b 40457
a90ef4bf 40458install-target-libgfortran: installdirs
e552509b
ILT
40459 @: $(MAKE); $(unstage)
40460 @r=`${PWD_COMMAND}`; export r; \
40461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40462 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40463 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40464 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40465
a90ef4bf 40466@endif target-libgfortran
e552509b 40467
a90ef4bf
JM
40468.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
40469maybe-install-strip-target-libgfortran:
40470@if target-libgfortran
40471maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 40472
a90ef4bf 40473install-strip-target-libgfortran: installdirs
9b980aa1
RW
40474 @: $(MAKE); $(unstage)
40475 @r=`${PWD_COMMAND}`; export r; \
40476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40477 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40478 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
40479 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40480
a90ef4bf 40481@endif target-libgfortran
9b980aa1 40482
e552509b
ILT
40483# Other targets (info, dvi, pdf, etc.)
40484
a90ef4bf
JM
40485.PHONY: maybe-info-target-libgfortran info-target-libgfortran
40486maybe-info-target-libgfortran:
40487@if target-libgfortran
40488maybe-info-target-libgfortran: info-target-libgfortran
e552509b 40489
a90ef4bf
JM
40490info-target-libgfortran: \
40491 configure-target-libgfortran
e552509b 40492 @: $(MAKE); $(unstage)
22121df0 40493 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40494 r=`${PWD_COMMAND}`; export r; \
40495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40496 $(NORMAL_TARGET_EXPORTS) \
22121df0 40497 echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40498 for flag in $(EXTRA_TARGET_FLAGS); do \
40499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40500 done; \
a90ef4bf 40501 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40504 "RANLIB=$${RANLIB}" \
40505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40506 info) \
40507 || exit 1
40508
a90ef4bf 40509@endif target-libgfortran
e552509b 40510
a90ef4bf
JM
40511.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
40512maybe-dvi-target-libgfortran:
40513@if target-libgfortran
40514maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 40515
a90ef4bf
JM
40516dvi-target-libgfortran: \
40517 configure-target-libgfortran
e552509b 40518 @: $(MAKE); $(unstage)
22121df0 40519 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40520 r=`${PWD_COMMAND}`; export r; \
40521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40522 $(NORMAL_TARGET_EXPORTS) \
22121df0 40523 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40524 for flag in $(EXTRA_TARGET_FLAGS); do \
40525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40526 done; \
a90ef4bf 40527 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40530 "RANLIB=$${RANLIB}" \
40531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40532 dvi) \
40533 || exit 1
40534
a90ef4bf 40535@endif target-libgfortran
e552509b 40536
a90ef4bf
JM
40537.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
40538maybe-pdf-target-libgfortran:
40539@if target-libgfortran
40540maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 40541
a90ef4bf
JM
40542pdf-target-libgfortran: \
40543 configure-target-libgfortran
e552509b 40544 @: $(MAKE); $(unstage)
22121df0 40545 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40546 r=`${PWD_COMMAND}`; export r; \
40547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40548 $(NORMAL_TARGET_EXPORTS) \
22121df0 40549 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40550 for flag in $(EXTRA_TARGET_FLAGS); do \
40551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40552 done; \
a90ef4bf 40553 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40556 "RANLIB=$${RANLIB}" \
40557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40558 pdf) \
40559 || exit 1
40560
a90ef4bf 40561@endif target-libgfortran
e552509b 40562
a90ef4bf
JM
40563.PHONY: maybe-html-target-libgfortran html-target-libgfortran
40564maybe-html-target-libgfortran:
40565@if target-libgfortran
40566maybe-html-target-libgfortran: html-target-libgfortran
e552509b 40567
a90ef4bf
JM
40568html-target-libgfortran: \
40569 configure-target-libgfortran
e552509b 40570 @: $(MAKE); $(unstage)
22121df0 40571 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40572 r=`${PWD_COMMAND}`; export r; \
40573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40574 $(NORMAL_TARGET_EXPORTS) \
22121df0 40575 echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40576 for flag in $(EXTRA_TARGET_FLAGS); do \
40577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40578 done; \
a90ef4bf 40579 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40582 "RANLIB=$${RANLIB}" \
40583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40584 html) \
40585 || exit 1
40586
a90ef4bf 40587@endif target-libgfortran
e552509b 40588
a90ef4bf
JM
40589.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
40590maybe-TAGS-target-libgfortran:
40591@if target-libgfortran
40592maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 40593
a90ef4bf
JM
40594TAGS-target-libgfortran: \
40595 configure-target-libgfortran
e552509b 40596 @: $(MAKE); $(unstage)
22121df0 40597 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40598 r=`${PWD_COMMAND}`; export r; \
40599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40600 $(NORMAL_TARGET_EXPORTS) \
22121df0 40601 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40602 for flag in $(EXTRA_TARGET_FLAGS); do \
40603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40604 done; \
a90ef4bf 40605 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40608 "RANLIB=$${RANLIB}" \
40609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40610 TAGS) \
40611 || exit 1
40612
a90ef4bf 40613@endif target-libgfortran
e552509b 40614
a90ef4bf
JM
40615.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
40616maybe-install-info-target-libgfortran:
40617@if target-libgfortran
40618maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 40619
a90ef4bf
JM
40620install-info-target-libgfortran: \
40621 configure-target-libgfortran \
40622 info-target-libgfortran
e552509b 40623 @: $(MAKE); $(unstage)
22121df0 40624 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40625 r=`${PWD_COMMAND}`; export r; \
40626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40627 $(NORMAL_TARGET_EXPORTS) \
22121df0 40628 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40629 for flag in $(EXTRA_TARGET_FLAGS); do \
40630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40631 done; \
a90ef4bf 40632 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40635 "RANLIB=$${RANLIB}" \
40636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40637 install-info) \
40638 || exit 1
40639
a90ef4bf 40640@endif target-libgfortran
e552509b 40641
a90ef4bf
JM
40642.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
40643maybe-install-pdf-target-libgfortran:
40644@if target-libgfortran
40645maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 40646
a90ef4bf
JM
40647install-pdf-target-libgfortran: \
40648 configure-target-libgfortran \
40649 pdf-target-libgfortran
e552509b 40650 @: $(MAKE); $(unstage)
22121df0 40651 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40652 r=`${PWD_COMMAND}`; export r; \
40653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40654 $(NORMAL_TARGET_EXPORTS) \
22121df0 40655 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40656 for flag in $(EXTRA_TARGET_FLAGS); do \
40657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40658 done; \
a90ef4bf 40659 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40662 "RANLIB=$${RANLIB}" \
40663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40664 install-pdf) \
40665 || exit 1
40666
a90ef4bf 40667@endif target-libgfortran
e552509b 40668
a90ef4bf
JM
40669.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
40670maybe-install-html-target-libgfortran:
40671@if target-libgfortran
40672maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 40673
a90ef4bf
JM
40674install-html-target-libgfortran: \
40675 configure-target-libgfortran \
40676 html-target-libgfortran
e552509b 40677 @: $(MAKE); $(unstage)
22121df0 40678 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40679 r=`${PWD_COMMAND}`; export r; \
40680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40681 $(NORMAL_TARGET_EXPORTS) \
22121df0 40682 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40683 for flag in $(EXTRA_TARGET_FLAGS); do \
40684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40685 done; \
a90ef4bf 40686 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40689 "RANLIB=$${RANLIB}" \
40690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40691 install-html) \
40692 || exit 1
40693
a90ef4bf 40694@endif target-libgfortran
e552509b 40695
a90ef4bf
JM
40696.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
40697maybe-installcheck-target-libgfortran:
40698@if target-libgfortran
40699maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 40700
a90ef4bf
JM
40701installcheck-target-libgfortran: \
40702 configure-target-libgfortran
e552509b 40703 @: $(MAKE); $(unstage)
22121df0 40704 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40705 r=`${PWD_COMMAND}`; export r; \
40706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40707 $(NORMAL_TARGET_EXPORTS) \
22121df0 40708 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40709 for flag in $(EXTRA_TARGET_FLAGS); do \
40710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40711 done; \
a90ef4bf 40712 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40715 "RANLIB=$${RANLIB}" \
40716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40717 installcheck) \
40718 || exit 1
40719
a90ef4bf 40720@endif target-libgfortran
e552509b 40721
a90ef4bf
JM
40722.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
40723maybe-mostlyclean-target-libgfortran:
40724@if target-libgfortran
40725maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 40726
a90ef4bf 40727mostlyclean-target-libgfortran:
e552509b 40728 @: $(MAKE); $(unstage)
22121df0 40729 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40730 r=`${PWD_COMMAND}`; export r; \
40731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40732 $(NORMAL_TARGET_EXPORTS) \
22121df0 40733 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40734 for flag in $(EXTRA_TARGET_FLAGS); do \
40735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40736 done; \
a90ef4bf 40737 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40740 "RANLIB=$${RANLIB}" \
40741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40742 mostlyclean) \
40743 || exit 1
40744
a90ef4bf 40745@endif target-libgfortran
e552509b 40746
a90ef4bf
JM
40747.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
40748maybe-clean-target-libgfortran:
40749@if target-libgfortran
40750maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 40751
a90ef4bf 40752clean-target-libgfortran:
e552509b 40753 @: $(MAKE); $(unstage)
22121df0 40754 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40755 r=`${PWD_COMMAND}`; export r; \
40756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40757 $(NORMAL_TARGET_EXPORTS) \
22121df0 40758 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40759 for flag in $(EXTRA_TARGET_FLAGS); do \
40760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40761 done; \
a90ef4bf 40762 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40765 "RANLIB=$${RANLIB}" \
40766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40767 clean) \
40768 || exit 1
40769
a90ef4bf 40770@endif target-libgfortran
e552509b 40771
a90ef4bf
JM
40772.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
40773maybe-distclean-target-libgfortran:
40774@if target-libgfortran
40775maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 40776
a90ef4bf 40777distclean-target-libgfortran:
e552509b 40778 @: $(MAKE); $(unstage)
22121df0 40779 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40780 r=`${PWD_COMMAND}`; export r; \
40781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40782 $(NORMAL_TARGET_EXPORTS) \
22121df0 40783 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40784 for flag in $(EXTRA_TARGET_FLAGS); do \
40785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40786 done; \
a90ef4bf 40787 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40790 "RANLIB=$${RANLIB}" \
40791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40792 distclean) \
40793 || exit 1
40794
a90ef4bf 40795@endif target-libgfortran
e552509b 40796
a90ef4bf
JM
40797.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
40798maybe-maintainer-clean-target-libgfortran:
40799@if target-libgfortran
40800maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 40801
a90ef4bf 40802maintainer-clean-target-libgfortran:
e552509b 40803 @: $(MAKE); $(unstage)
22121df0 40804 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40805 r=`${PWD_COMMAND}`; export r; \
40806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40807 $(NORMAL_TARGET_EXPORTS) \
22121df0 40808 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40809 for flag in $(EXTRA_TARGET_FLAGS); do \
40810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40811 done; \
a90ef4bf 40812 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40815 "RANLIB=$${RANLIB}" \
40816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40817 maintainer-clean) \
40818 || exit 1
40819
a90ef4bf 40820@endif target-libgfortran
e552509b
ILT
40821
40822
40823
40824
40825
a90ef4bf
JM
40826.PHONY: configure-target-libobjc maybe-configure-target-libobjc
40827maybe-configure-target-libobjc:
4f0ef2d8 40828@if gcc-bootstrap
a90ef4bf 40829configure-target-libobjc: stage_current
4f0ef2d8 40830@endif gcc-bootstrap
a90ef4bf
JM
40831@if target-libobjc
40832maybe-configure-target-libobjc: configure-target-libobjc
40833configure-target-libobjc:
0aed8855
PB
40834 @: $(MAKE); $(unstage)
40835 @r=`${PWD_COMMAND}`; export r; \
40836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40837 echo "Checking multilib configuration for libobjc..."; \
22121df0
L
40838 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
40839 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40840 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40841 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40842 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 40843 else \
a90ef4bf
JM
40844 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
40845 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
40846 fi; \
40847 else \
a90ef4bf 40848 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 40849 fi; \
a90ef4bf 40850 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
22121df0 40851 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
1f53ca9a 40852 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40853 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
40854 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 40855 case $(srcdir) in \
b00612cc 40856 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40857 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 40858 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 40859 esac; \
1b6c0831 40860 module_srcdir=libobjc; \
4fa63067 40861 rm -f no-such-file || : ; \
1b6c0831
L
40862 CONFIG_SITE=no-such-file $(SHELL) \
40863 $$s/$$module_srcdir/configure \
40864 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40865 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40866 --target=${target_alias} \
e2b9e2dc 40867 || exit 1
a90ef4bf 40868@endif target-libobjc
e2b9e2dc 40869
a7254363
PB
40870
40871
d545f33b
PB
40872
40873
a90ef4bf
JM
40874.PHONY: all-target-libobjc maybe-all-target-libobjc
40875maybe-all-target-libobjc:
4f0ef2d8 40876@if gcc-bootstrap
a90ef4bf 40877all-target-libobjc: stage_current
4f0ef2d8 40878@endif gcc-bootstrap
a90ef4bf
JM
40879@if target-libobjc
40880TARGET-target-libobjc=all
40881maybe-all-target-libobjc: all-target-libobjc
40882all-target-libobjc: configure-target-libobjc
0aed8855 40883 @: $(MAKE); $(unstage)
b40e3958
L
40884 @r=`${PWD_COMMAND}`; export r; \
40885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40886 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40887 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 40888 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40889 $(TARGET-target-libobjc))
40890@endif target-libobjc
3866be5d 40891
a7254363
PB
40892
40893
d545f33b
PB
40894
40895
a90ef4bf
JM
40896.PHONY: check-target-libobjc maybe-check-target-libobjc
40897maybe-check-target-libobjc:
40898@if target-libobjc
40899maybe-check-target-libobjc: check-target-libobjc
3866be5d 40900
a90ef4bf
JM
40901check-target-libobjc:
40902 @: $(MAKE); $(unstage)
40903 @r=`${PWD_COMMAND}`; export r; \
40904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40905 $(NORMAL_TARGET_EXPORTS) \
40906 (cd $(TARGET_SUBDIR)/libobjc && \
40907 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 40908
a90ef4bf 40909@endif target-libobjc
4fa63067 40910
a90ef4bf
JM
40911.PHONY: install-target-libobjc maybe-install-target-libobjc
40912maybe-install-target-libobjc:
40913@if target-libobjc
40914maybe-install-target-libobjc: install-target-libobjc
4fa63067 40915
a90ef4bf 40916install-target-libobjc: installdirs
0aed8855 40917 @: $(MAKE); $(unstage)
b40e3958
L
40918 @r=`${PWD_COMMAND}`; export r; \
40919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40920 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40921 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 40922 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40923
a90ef4bf 40924@endif target-libobjc
3866be5d 40925
a90ef4bf
JM
40926.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
40927maybe-install-strip-target-libobjc:
40928@if target-libobjc
40929maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 40930
a90ef4bf 40931install-strip-target-libobjc: installdirs
9b980aa1
RW
40932 @: $(MAKE); $(unstage)
40933 @r=`${PWD_COMMAND}`; export r; \
40934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40935 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40936 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
40937 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40938
a90ef4bf 40939@endif target-libobjc
9b980aa1 40940
56a8fe78 40941# Other targets (info, dvi, pdf, etc.)
16ae0395 40942
a90ef4bf
JM
40943.PHONY: maybe-info-target-libobjc info-target-libobjc
40944maybe-info-target-libobjc:
40945@if target-libobjc
40946maybe-info-target-libobjc: info-target-libobjc
6d389afc 40947
a90ef4bf
JM
40948info-target-libobjc: \
40949 configure-target-libobjc
0aed8855 40950 @: $(MAKE); $(unstage)
22121df0 40951 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
6d389afc
MS
40952 r=`${PWD_COMMAND}`; export r; \
40953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40954 $(NORMAL_TARGET_EXPORTS) \
22121df0 40955 echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \
6d389afc
MS
40956 for flag in $(EXTRA_TARGET_FLAGS); do \
40957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40958 done; \
a90ef4bf 40959 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
40960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40962 "RANLIB=$${RANLIB}" \
0c24b341 40963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40964 info) \
40965 || exit 1
40966
a90ef4bf 40967@endif target-libobjc
6d389afc 40968
a90ef4bf
JM
40969.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
40970maybe-dvi-target-libobjc:
40971@if target-libobjc
40972maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 40973
a90ef4bf
JM
40974dvi-target-libobjc: \
40975 configure-target-libobjc
0aed8855 40976 @: $(MAKE); $(unstage)
22121df0 40977 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 40978 r=`${PWD_COMMAND}`; export r; \
b40e3958 40979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40980 $(NORMAL_TARGET_EXPORTS) \
22121df0 40981 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
40982 for flag in $(EXTRA_TARGET_FLAGS); do \
40983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40984 done; \
a90ef4bf 40985 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40988 "RANLIB=$${RANLIB}" \
0c24b341 40989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 40990 dvi) \
4fa63067 40991 || exit 1
3866be5d 40992
a90ef4bf 40993@endif target-libobjc
3866be5d 40994
a90ef4bf
JM
40995.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
40996maybe-pdf-target-libobjc:
40997@if target-libobjc
40998maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 40999
a90ef4bf
JM
41000pdf-target-libobjc: \
41001 configure-target-libobjc
56a8fe78 41002 @: $(MAKE); $(unstage)
22121df0 41003 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
56a8fe78
DD
41004 r=`${PWD_COMMAND}`; export r; \
41005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41006 $(NORMAL_TARGET_EXPORTS) \
22121df0 41007 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \
56a8fe78
DD
41008 for flag in $(EXTRA_TARGET_FLAGS); do \
41009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41010 done; \
a90ef4bf 41011 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
41012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41014 "RANLIB=$${RANLIB}" \
0c24b341 41015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41016 pdf) \
41017 || exit 1
41018
a90ef4bf 41019@endif target-libobjc
56a8fe78 41020
a90ef4bf
JM
41021.PHONY: maybe-html-target-libobjc html-target-libobjc
41022maybe-html-target-libobjc:
41023@if target-libobjc
41024maybe-html-target-libobjc: html-target-libobjc
4fa63067 41025
a90ef4bf
JM
41026html-target-libobjc: \
41027 configure-target-libobjc
0aed8855 41028 @: $(MAKE); $(unstage)
22121df0 41029 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
b40e3958
L
41030 r=`${PWD_COMMAND}`; export r; \
41031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41032 $(NORMAL_TARGET_EXPORTS) \
22121df0 41033 echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41034 for flag in $(EXTRA_TARGET_FLAGS); do \
41035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41036 done; \
a90ef4bf 41037 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41040 "RANLIB=$${RANLIB}" \
0c24b341 41041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 41042 html) \
e2b9e2dc
NN
41043 || exit 1
41044
a90ef4bf 41045@endif target-libobjc
4fa63067 41046
a90ef4bf
JM
41047.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
41048maybe-TAGS-target-libobjc:
41049@if target-libobjc
41050maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 41051
a90ef4bf
JM
41052TAGS-target-libobjc: \
41053 configure-target-libobjc
0aed8855 41054 @: $(MAKE); $(unstage)
22121df0 41055 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 41056 r=`${PWD_COMMAND}`; export r; \
b40e3958 41057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41058 $(NORMAL_TARGET_EXPORTS) \
22121df0 41059 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41060 for flag in $(EXTRA_TARGET_FLAGS); do \
41061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41062 done; \
a90ef4bf 41063 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41066 "RANLIB=$${RANLIB}" \
0c24b341 41067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41068 TAGS) \
4fa63067 41069 || exit 1
3866be5d 41070
a90ef4bf 41071@endif target-libobjc
3866be5d 41072
a90ef4bf
JM
41073.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
41074maybe-install-info-target-libobjc:
41075@if target-libobjc
41076maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 41077
a90ef4bf
JM
41078install-info-target-libobjc: \
41079 configure-target-libobjc \
41080 info-target-libobjc
0aed8855 41081 @: $(MAKE); $(unstage)
22121df0 41082 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067
NN
41083 r=`${PWD_COMMAND}`; export r; \
41084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41085 $(NORMAL_TARGET_EXPORTS) \
22121df0 41086 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41087 for flag in $(EXTRA_TARGET_FLAGS); do \
41088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41089 done; \
a90ef4bf 41090 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41093 "RANLIB=$${RANLIB}" \
0c24b341 41094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41095 install-info) \
4fa63067 41096 || exit 1
3866be5d 41097
a90ef4bf 41098@endif target-libobjc
16ae0395 41099
a90ef4bf
JM
41100.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
41101maybe-install-pdf-target-libobjc:
41102@if target-libobjc
41103maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 41104
a90ef4bf
JM
41105install-pdf-target-libobjc: \
41106 configure-target-libobjc \
41107 pdf-target-libobjc
a3ca38d2 41108 @: $(MAKE); $(unstage)
22121df0 41109 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a3ca38d2
DD
41110 r=`${PWD_COMMAND}`; export r; \
41111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41112 $(NORMAL_TARGET_EXPORTS) \
22121df0 41113 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \
a3ca38d2
DD
41114 for flag in $(EXTRA_TARGET_FLAGS); do \
41115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41116 done; \
a90ef4bf 41117 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
41118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41120 "RANLIB=$${RANLIB}" \
0c24b341 41121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41122 install-pdf) \
41123 || exit 1
41124
a90ef4bf 41125@endif target-libobjc
a3ca38d2 41126
a90ef4bf
JM
41127.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
41128maybe-install-html-target-libobjc:
41129@if target-libobjc
41130maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 41131
a90ef4bf
JM
41132install-html-target-libobjc: \
41133 configure-target-libobjc \
41134 html-target-libobjc
108a6f8e 41135 @: $(MAKE); $(unstage)
22121df0 41136 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
108a6f8e
CD
41137 r=`${PWD_COMMAND}`; export r; \
41138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41139 $(NORMAL_TARGET_EXPORTS) \
22121df0 41140 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \
108a6f8e
CD
41141 for flag in $(EXTRA_TARGET_FLAGS); do \
41142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41143 done; \
a90ef4bf 41144 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
41145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41147 "RANLIB=$${RANLIB}" \
0c24b341 41148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41149 install-html) \
41150 || exit 1
41151
a90ef4bf 41152@endif target-libobjc
108a6f8e 41153
a90ef4bf
JM
41154.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
41155maybe-installcheck-target-libobjc:
41156@if target-libobjc
41157maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 41158
a90ef4bf
JM
41159installcheck-target-libobjc: \
41160 configure-target-libobjc
0aed8855 41161 @: $(MAKE); $(unstage)
22121df0 41162 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 41163 r=`${PWD_COMMAND}`; export r; \
b40e3958 41164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41165 $(NORMAL_TARGET_EXPORTS) \
22121df0 41166 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41167 for flag in $(EXTRA_TARGET_FLAGS); do \
41168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41169 done; \
a90ef4bf 41170 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41173 "RANLIB=$${RANLIB}" \
0c24b341 41174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41175 installcheck) \
4fa63067 41176 || exit 1
3866be5d 41177
a90ef4bf 41178@endif target-libobjc
3866be5d 41179
a90ef4bf
JM
41180.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
41181maybe-mostlyclean-target-libobjc:
41182@if target-libobjc
41183maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 41184
a90ef4bf
JM
41185mostlyclean-target-libobjc:
41186 @: $(MAKE); $(unstage)
22121df0 41187 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41188 r=`${PWD_COMMAND}`; export r; \
41189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41190 $(NORMAL_TARGET_EXPORTS) \
22121df0 41191 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41192 for flag in $(EXTRA_TARGET_FLAGS); do \
41193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41194 done; \
41195 (cd $(TARGET_SUBDIR)/libobjc && \
41196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41198 "RANLIB=$${RANLIB}" \
41199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41200 mostlyclean) \
41201 || exit 1
4fa63067 41202
a90ef4bf 41203@endif target-libobjc
4fa63067 41204
a90ef4bf
JM
41205.PHONY: maybe-clean-target-libobjc clean-target-libobjc
41206maybe-clean-target-libobjc:
41207@if target-libobjc
41208maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 41209
a90ef4bf
JM
41210clean-target-libobjc:
41211 @: $(MAKE); $(unstage)
22121df0 41212 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41213 r=`${PWD_COMMAND}`; export r; \
41214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41215 $(NORMAL_TARGET_EXPORTS) \
22121df0 41216 echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41217 for flag in $(EXTRA_TARGET_FLAGS); do \
41218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41219 done; \
41220 (cd $(TARGET_SUBDIR)/libobjc && \
41221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41223 "RANLIB=$${RANLIB}" \
41224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41225 clean) \
41226 || exit 1
4fa63067 41227
a90ef4bf 41228@endif target-libobjc
4fa63067 41229
a90ef4bf
JM
41230.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
41231maybe-distclean-target-libobjc:
41232@if target-libobjc
41233maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 41234
a90ef4bf
JM
41235distclean-target-libobjc:
41236 @: $(MAKE); $(unstage)
22121df0 41237 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41238 r=`${PWD_COMMAND}`; export r; \
41239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41240 $(NORMAL_TARGET_EXPORTS) \
22121df0 41241 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41242 for flag in $(EXTRA_TARGET_FLAGS); do \
41243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41244 done; \
41245 (cd $(TARGET_SUBDIR)/libobjc && \
41246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41248 "RANLIB=$${RANLIB}" \
41249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41250 distclean) \
41251 || exit 1
4fa63067 41252
a90ef4bf 41253@endif target-libobjc
4fa63067 41254
a90ef4bf
JM
41255.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
41256maybe-maintainer-clean-target-libobjc:
41257@if target-libobjc
41258maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 41259
a90ef4bf
JM
41260maintainer-clean-target-libobjc:
41261 @: $(MAKE); $(unstage)
22121df0 41262 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41263 r=`${PWD_COMMAND}`; export r; \
41264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41265 $(NORMAL_TARGET_EXPORTS) \
22121df0 41266 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41267 for flag in $(EXTRA_TARGET_FLAGS); do \
41268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41269 done; \
41270 (cd $(TARGET_SUBDIR)/libobjc && \
41271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41273 "RANLIB=$${RANLIB}" \
41274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41275 maintainer-clean) \
41276 || exit 1
4fa63067 41277
a90ef4bf 41278@endif target-libobjc
4fa63067
NN
41279
41280
4fa63067 41281
4fa63067 41282
a7254363 41283
a90ef4bf
JM
41284.PHONY: configure-target-libgo maybe-configure-target-libgo
41285maybe-configure-target-libgo:
4f0ef2d8 41286@if gcc-bootstrap
a90ef4bf 41287configure-target-libgo: stage_current
4f0ef2d8 41288@endif gcc-bootstrap
a90ef4bf
JM
41289@if target-libgo
41290maybe-configure-target-libgo: configure-target-libgo
41291configure-target-libgo:
0aed8855
PB
41292 @: $(MAKE); $(unstage)
41293 @r=`${PWD_COMMAND}`; export r; \
41294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41295 echo "Checking multilib configuration for libgo..."; \
22121df0
L
41296 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
41297 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41298 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
41299 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
41300 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 41301 else \
a90ef4bf
JM
41302 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
41303 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
41304 fi; \
41305 else \
a90ef4bf 41306 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 41307 fi; \
a90ef4bf 41308 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
22121df0 41309 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
1f53ca9a 41310 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41311 echo Configuring in $(TARGET_SUBDIR)/libgo; \
41312 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 41313 case $(srcdir) in \
b00612cc 41314 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41315 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 41316 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 41317 esac; \
1b6c0831 41318 module_srcdir=libgo; \
4fa63067 41319 rm -f no-such-file || : ; \
1b6c0831
L
41320 CONFIG_SITE=no-such-file $(SHELL) \
41321 $$s/$$module_srcdir/configure \
41322 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41323 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41324 --target=${target_alias} \
e2b9e2dc 41325 || exit 1
a90ef4bf 41326@endif target-libgo
e2b9e2dc 41327
a7254363
PB
41328
41329
d545f33b
PB
41330
41331
a90ef4bf
JM
41332.PHONY: all-target-libgo maybe-all-target-libgo
41333maybe-all-target-libgo:
4f0ef2d8 41334@if gcc-bootstrap
a90ef4bf 41335all-target-libgo: stage_current
4f0ef2d8 41336@endif gcc-bootstrap
a90ef4bf
JM
41337@if target-libgo
41338TARGET-target-libgo=all
41339maybe-all-target-libgo: all-target-libgo
41340all-target-libgo: configure-target-libgo
0aed8855 41341 @: $(MAKE); $(unstage)
b40e3958
L
41342 @r=`${PWD_COMMAND}`; export r; \
41343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41344 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41345 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 41346 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41347 $(TARGET-target-libgo))
41348@endif target-libgo
3866be5d 41349
a7254363
PB
41350
41351
d545f33b
PB
41352
41353
a90ef4bf
JM
41354.PHONY: check-target-libgo maybe-check-target-libgo
41355maybe-check-target-libgo:
41356@if target-libgo
41357maybe-check-target-libgo: check-target-libgo
3866be5d 41358
a90ef4bf 41359check-target-libgo:
0aed8855 41360 @: $(MAKE); $(unstage)
4fa63067
NN
41361 @r=`${PWD_COMMAND}`; export r; \
41362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41363 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41364 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 41365 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 41366
a90ef4bf 41367@endif target-libgo
3866be5d 41368
a90ef4bf
JM
41369.PHONY: install-target-libgo maybe-install-target-libgo
41370maybe-install-target-libgo:
41371@if target-libgo
41372maybe-install-target-libgo: install-target-libgo
16ae0395 41373
a90ef4bf 41374install-target-libgo: installdirs
0aed8855 41375 @: $(MAKE); $(unstage)
4fa63067
NN
41376 @r=`${PWD_COMMAND}`; export r; \
41377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41378 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41379 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 41380 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 41381
a90ef4bf 41382@endif target-libgo
3866be5d 41383
a90ef4bf
JM
41384.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
41385maybe-install-strip-target-libgo:
41386@if target-libgo
41387maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 41388
a90ef4bf 41389install-strip-target-libgo: installdirs
9b980aa1
RW
41390 @: $(MAKE); $(unstage)
41391 @r=`${PWD_COMMAND}`; export r; \
41392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41393 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41394 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
41395 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41396
a90ef4bf 41397@endif target-libgo
9b980aa1 41398
56a8fe78 41399# Other targets (info, dvi, pdf, etc.)
4fa63067 41400
a90ef4bf
JM
41401.PHONY: maybe-info-target-libgo info-target-libgo
41402maybe-info-target-libgo:
41403@if target-libgo
41404maybe-info-target-libgo: info-target-libgo
4fa63067 41405
a90ef4bf
JM
41406info-target-libgo: \
41407 configure-target-libgo
0aed8855 41408 @: $(MAKE); $(unstage)
22121df0 41409 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
41410 r=`${PWD_COMMAND}`; export r; \
41411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41412 $(NORMAL_TARGET_EXPORTS) \
22121df0 41413 echo "Doing info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41414 for flag in $(EXTRA_TARGET_FLAGS); do \
41415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41416 done; \
a90ef4bf 41417 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41420 "RANLIB=$${RANLIB}" \
0c24b341 41421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41422 info) \
e2b9e2dc
NN
41423 || exit 1
41424
a90ef4bf 41425@endif target-libgo
3866be5d 41426
a90ef4bf
JM
41427.PHONY: maybe-dvi-target-libgo dvi-target-libgo
41428maybe-dvi-target-libgo:
41429@if target-libgo
41430maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 41431
a90ef4bf
JM
41432dvi-target-libgo: \
41433 configure-target-libgo
0aed8855 41434 @: $(MAKE); $(unstage)
22121df0 41435 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41436 r=`${PWD_COMMAND}`; export r; \
b40e3958 41437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41438 $(NORMAL_TARGET_EXPORTS) \
22121df0 41439 echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41440 for flag in $(EXTRA_TARGET_FLAGS); do \
41441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41442 done; \
a90ef4bf 41443 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41446 "RANLIB=$${RANLIB}" \
0c24b341 41447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41448 dvi) \
4fa63067 41449 || exit 1
3866be5d 41450
a90ef4bf 41451@endif target-libgo
3866be5d 41452
a90ef4bf
JM
41453.PHONY: maybe-pdf-target-libgo pdf-target-libgo
41454maybe-pdf-target-libgo:
41455@if target-libgo
41456maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 41457
a90ef4bf
JM
41458pdf-target-libgo: \
41459 configure-target-libgo
56a8fe78 41460 @: $(MAKE); $(unstage)
22121df0 41461 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
56a8fe78
DD
41462 r=`${PWD_COMMAND}`; export r; \
41463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41464 $(NORMAL_TARGET_EXPORTS) \
22121df0 41465 echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \
56a8fe78
DD
41466 for flag in $(EXTRA_TARGET_FLAGS); do \
41467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41468 done; \
a90ef4bf 41469 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
41470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41472 "RANLIB=$${RANLIB}" \
0c24b341 41473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41474 pdf) \
41475 || exit 1
41476
a90ef4bf 41477@endif target-libgo
56a8fe78 41478
a90ef4bf
JM
41479.PHONY: maybe-html-target-libgo html-target-libgo
41480maybe-html-target-libgo:
41481@if target-libgo
41482maybe-html-target-libgo: html-target-libgo
6d389afc 41483
a90ef4bf
JM
41484html-target-libgo: \
41485 configure-target-libgo
0aed8855 41486 @: $(MAKE); $(unstage)
22121df0 41487 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
6d389afc
MS
41488 r=`${PWD_COMMAND}`; export r; \
41489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41490 $(NORMAL_TARGET_EXPORTS) \
22121df0 41491 echo "Doing html in $(TARGET_SUBDIR)/libgo"; \
6d389afc
MS
41492 for flag in $(EXTRA_TARGET_FLAGS); do \
41493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41494 done; \
a90ef4bf 41495 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
41496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41498 "RANLIB=$${RANLIB}" \
0c24b341 41499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41500 html) \
41501 || exit 1
41502
a90ef4bf 41503@endif target-libgo
6d389afc 41504
a90ef4bf
JM
41505.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
41506maybe-TAGS-target-libgo:
41507@if target-libgo
41508maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 41509
a90ef4bf
JM
41510TAGS-target-libgo: \
41511 configure-target-libgo
0aed8855 41512 @: $(MAKE); $(unstage)
22121df0 41513 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41514 r=`${PWD_COMMAND}`; export r; \
b40e3958 41515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41516 $(NORMAL_TARGET_EXPORTS) \
22121df0 41517 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41518 for flag in $(EXTRA_TARGET_FLAGS); do \
41519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41520 done; \
a90ef4bf 41521 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41524 "RANLIB=$${RANLIB}" \
0c24b341 41525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41526 TAGS) \
4fa63067 41527 || exit 1
3866be5d 41528
a90ef4bf 41529@endif target-libgo
3866be5d 41530
a90ef4bf
JM
41531.PHONY: maybe-install-info-target-libgo install-info-target-libgo
41532maybe-install-info-target-libgo:
41533@if target-libgo
41534maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 41535
a90ef4bf
JM
41536install-info-target-libgo: \
41537 configure-target-libgo \
41538 info-target-libgo
0aed8855 41539 @: $(MAKE); $(unstage)
22121df0 41540 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
41541 r=`${PWD_COMMAND}`; export r; \
41542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41543 $(NORMAL_TARGET_EXPORTS) \
22121df0 41544 echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41545 for flag in $(EXTRA_TARGET_FLAGS); do \
41546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41547 done; \
a90ef4bf 41548 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41551 "RANLIB=$${RANLIB}" \
0c24b341 41552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41553 install-info) \
e2b9e2dc
NN
41554 || exit 1
41555
a90ef4bf 41556@endif target-libgo
4fa63067 41557
a90ef4bf
JM
41558.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
41559maybe-install-pdf-target-libgo:
41560@if target-libgo
41561maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 41562
a90ef4bf
JM
41563install-pdf-target-libgo: \
41564 configure-target-libgo \
41565 pdf-target-libgo
a3ca38d2 41566 @: $(MAKE); $(unstage)
22121df0 41567 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
a3ca38d2
DD
41568 r=`${PWD_COMMAND}`; export r; \
41569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41570 $(NORMAL_TARGET_EXPORTS) \
22121df0 41571 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \
a3ca38d2
DD
41572 for flag in $(EXTRA_TARGET_FLAGS); do \
41573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41574 done; \
a90ef4bf 41575 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
41576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41578 "RANLIB=$${RANLIB}" \
0c24b341 41579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41580 install-pdf) \
41581 || exit 1
41582
a90ef4bf 41583@endif target-libgo
a3ca38d2 41584
a90ef4bf
JM
41585.PHONY: maybe-install-html-target-libgo install-html-target-libgo
41586maybe-install-html-target-libgo:
41587@if target-libgo
41588maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 41589
a90ef4bf
JM
41590install-html-target-libgo: \
41591 configure-target-libgo \
41592 html-target-libgo
108a6f8e 41593 @: $(MAKE); $(unstage)
22121df0 41594 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
108a6f8e
CD
41595 r=`${PWD_COMMAND}`; export r; \
41596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41597 $(NORMAL_TARGET_EXPORTS) \
22121df0 41598 echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \
108a6f8e
CD
41599 for flag in $(EXTRA_TARGET_FLAGS); do \
41600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41601 done; \
a90ef4bf 41602 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
41603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41605 "RANLIB=$${RANLIB}" \
0c24b341 41606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41607 install-html) \
41608 || exit 1
41609
a90ef4bf 41610@endif target-libgo
108a6f8e 41611
a90ef4bf
JM
41612.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
41613maybe-installcheck-target-libgo:
41614@if target-libgo
41615maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 41616
a90ef4bf
JM
41617installcheck-target-libgo: \
41618 configure-target-libgo
0aed8855 41619 @: $(MAKE); $(unstage)
22121df0 41620 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41621 r=`${PWD_COMMAND}`; export r; \
b40e3958 41622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41623 $(NORMAL_TARGET_EXPORTS) \
22121df0 41624 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41625 for flag in $(EXTRA_TARGET_FLAGS); do \
41626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41627 done; \
a90ef4bf 41628 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41631 "RANLIB=$${RANLIB}" \
0c24b341 41632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41633 installcheck) \
4fa63067 41634 || exit 1
3866be5d 41635
a90ef4bf 41636@endif target-libgo
3866be5d 41637
a90ef4bf
JM
41638.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
41639maybe-mostlyclean-target-libgo:
41640@if target-libgo
41641maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 41642
a90ef4bf 41643mostlyclean-target-libgo:
0aed8855 41644 @: $(MAKE); $(unstage)
22121df0 41645 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41646 r=`${PWD_COMMAND}`; export r; \
b40e3958 41647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41648 $(NORMAL_TARGET_EXPORTS) \
22121df0 41649 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41650 for flag in $(EXTRA_TARGET_FLAGS); do \
41651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41652 done; \
a90ef4bf 41653 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41656 "RANLIB=$${RANLIB}" \
0c24b341 41657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41658 mostlyclean) \
4fa63067 41659 || exit 1
3866be5d 41660
a90ef4bf 41661@endif target-libgo
3866be5d 41662
a90ef4bf
JM
41663.PHONY: maybe-clean-target-libgo clean-target-libgo
41664maybe-clean-target-libgo:
41665@if target-libgo
41666maybe-clean-target-libgo: clean-target-libgo
16ae0395 41667
a90ef4bf 41668clean-target-libgo:
0aed8855 41669 @: $(MAKE); $(unstage)
22121df0 41670 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41671 r=`${PWD_COMMAND}`; export r; \
b40e3958 41672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41673 $(NORMAL_TARGET_EXPORTS) \
22121df0 41674 echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41675 for flag in $(EXTRA_TARGET_FLAGS); do \
41676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41677 done; \
a90ef4bf 41678 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41681 "RANLIB=$${RANLIB}" \
0c24b341 41682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41683 clean) \
4fa63067 41684 || exit 1
3866be5d 41685
a90ef4bf 41686@endif target-libgo
3866be5d 41687
a90ef4bf
JM
41688.PHONY: maybe-distclean-target-libgo distclean-target-libgo
41689maybe-distclean-target-libgo:
41690@if target-libgo
41691maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 41692
a90ef4bf 41693distclean-target-libgo:
0aed8855 41694 @: $(MAKE); $(unstage)
22121df0 41695 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
41696 r=`${PWD_COMMAND}`; export r; \
41697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41698 $(NORMAL_TARGET_EXPORTS) \
22121df0 41699 echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41700 for flag in $(EXTRA_TARGET_FLAGS); do \
41701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41702 done; \
a90ef4bf 41703 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41706 "RANLIB=$${RANLIB}" \
0c24b341 41707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41708 distclean) \
e2b9e2dc
NN
41709 || exit 1
41710
a90ef4bf 41711@endif target-libgo
3866be5d 41712
a90ef4bf
JM
41713.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
41714maybe-maintainer-clean-target-libgo:
41715@if target-libgo
41716maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 41717
a90ef4bf 41718maintainer-clean-target-libgo:
0aed8855 41719 @: $(MAKE); $(unstage)
22121df0 41720 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41721 r=`${PWD_COMMAND}`; export r; \
b40e3958 41722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41723 $(NORMAL_TARGET_EXPORTS) \
22121df0 41724 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41725 for flag in $(EXTRA_TARGET_FLAGS); do \
41726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41727 done; \
a90ef4bf 41728 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41731 "RANLIB=$${RANLIB}" \
0c24b341 41732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41733 maintainer-clean) \
4fa63067 41734 || exit 1
3866be5d 41735
a90ef4bf 41736@endif target-libgo
3866be5d 41737
16ae0395 41738
3866be5d 41739
e90269c8 41740
a7254363 41741
a90ef4bf
JM
41742.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
41743maybe-configure-target-libtermcap:
4f0ef2d8 41744@if gcc-bootstrap
a90ef4bf 41745configure-target-libtermcap: stage_current
4f0ef2d8 41746@endif gcc-bootstrap
a90ef4bf
JM
41747@if target-libtermcap
41748maybe-configure-target-libtermcap: configure-target-libtermcap
41749configure-target-libtermcap:
0aed8855
PB
41750 @: $(MAKE); $(unstage)
41751 @r=`${PWD_COMMAND}`; export r; \
41752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41753 echo "Checking multilib configuration for libtermcap..."; \
22121df0
L
41754 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
41755 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41756 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41757 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41758 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 41759 else \
a90ef4bf
JM
41760 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
41761 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
41762 fi; \
41763 else \
a90ef4bf 41764 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 41765 fi; \
a90ef4bf 41766 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 41767 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
1f53ca9a 41768 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41769 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
41770 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 41771 case $(srcdir) in \
b00612cc 41772 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41773 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 41774 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 41775 esac; \
1b6c0831 41776 module_srcdir=libtermcap; \
4fa63067 41777 rm -f no-such-file || : ; \
1b6c0831
L
41778 CONFIG_SITE=no-such-file $(SHELL) \
41779 $$s/$$module_srcdir/configure \
41780 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41781 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41782 --target=${target_alias} \
e2b9e2dc 41783 || exit 1
a90ef4bf 41784@endif target-libtermcap
e2b9e2dc 41785
a7254363
PB
41786
41787
d545f33b
PB
41788
41789
a90ef4bf
JM
41790.PHONY: all-target-libtermcap maybe-all-target-libtermcap
41791maybe-all-target-libtermcap:
4f0ef2d8 41792@if gcc-bootstrap
a90ef4bf 41793all-target-libtermcap: stage_current
4f0ef2d8 41794@endif gcc-bootstrap
a90ef4bf
JM
41795@if target-libtermcap
41796TARGET-target-libtermcap=all
41797maybe-all-target-libtermcap: all-target-libtermcap
41798all-target-libtermcap: configure-target-libtermcap
0aed8855 41799 @: $(MAKE); $(unstage)
b40e3958
L
41800 @r=`${PWD_COMMAND}`; export r; \
41801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41802 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41803 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 41804 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41805 $(TARGET-target-libtermcap))
41806@endif target-libtermcap
e393202e 41807
a7254363
PB
41808
41809
d545f33b
PB
41810
41811
a90ef4bf
JM
41812.PHONY: check-target-libtermcap maybe-check-target-libtermcap
41813maybe-check-target-libtermcap:
41814@if target-libtermcap
41815maybe-check-target-libtermcap: check-target-libtermcap
e393202e 41816
4fa63067 41817# Dummy target for uncheckable module.
a90ef4bf 41818check-target-libtermcap:
e393202e 41819
a90ef4bf 41820@endif target-libtermcap
e393202e 41821
a90ef4bf
JM
41822.PHONY: install-target-libtermcap maybe-install-target-libtermcap
41823maybe-install-target-libtermcap:
41824@if target-libtermcap
41825maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 41826
a90ef4bf 41827install-target-libtermcap: installdirs
0aed8855 41828 @: $(MAKE); $(unstage)
b40e3958
L
41829 @r=`${PWD_COMMAND}`; export r; \
41830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41831 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41832 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 41833 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 41834
a90ef4bf 41835@endif target-libtermcap
56a8fe78 41836
a90ef4bf
JM
41837.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
41838maybe-install-strip-target-libtermcap:
41839@if target-libtermcap
41840maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 41841
a90ef4bf 41842install-strip-target-libtermcap: installdirs
0aed8855 41843 @: $(MAKE); $(unstage)
a90ef4bf 41844 @r=`${PWD_COMMAND}`; export r; \
6d389afc 41845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41846 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41847 (cd $(TARGET_SUBDIR)/libtermcap && \
41848 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 41849
a90ef4bf 41850@endif target-libtermcap
6d389afc 41851
a90ef4bf 41852# Other targets (info, dvi, pdf, etc.)
16ae0395 41853
a90ef4bf
JM
41854.PHONY: maybe-info-target-libtermcap info-target-libtermcap
41855maybe-info-target-libtermcap:
41856@if target-libtermcap
41857maybe-info-target-libtermcap: info-target-libtermcap
41858
41859info-target-libtermcap: \
41860 configure-target-libtermcap
0aed8855 41861 @: $(MAKE); $(unstage)
22121df0 41862 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 41863 r=`${PWD_COMMAND}`; export r; \
b40e3958 41864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41865 $(NORMAL_TARGET_EXPORTS) \
22121df0 41866 echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41867 for flag in $(EXTRA_TARGET_FLAGS); do \
41868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41869 done; \
a90ef4bf 41870 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41873 "RANLIB=$${RANLIB}" \
0c24b341 41874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41875 info) \
4fa63067 41876 || exit 1
ce5b542e 41877
a90ef4bf 41878@endif target-libtermcap
ce5b542e 41879
a90ef4bf
JM
41880.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
41881maybe-dvi-target-libtermcap:
41882@if target-libtermcap
41883maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 41884
a90ef4bf
JM
41885dvi-target-libtermcap: \
41886 configure-target-libtermcap
0aed8855 41887 @: $(MAKE); $(unstage)
22121df0 41888 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
41889 r=`${PWD_COMMAND}`; export r; \
41890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41891 $(NORMAL_TARGET_EXPORTS) \
22121df0 41892 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41893 for flag in $(EXTRA_TARGET_FLAGS); do \
41894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41895 done; \
a90ef4bf 41896 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41899 "RANLIB=$${RANLIB}" \
0c24b341 41900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41901 dvi) \
e2b9e2dc
NN
41902 || exit 1
41903
a90ef4bf 41904@endif target-libtermcap
e393202e 41905
a90ef4bf
JM
41906.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
41907maybe-pdf-target-libtermcap:
41908@if target-libtermcap
41909maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 41910
a90ef4bf
JM
41911pdf-target-libtermcap: \
41912 configure-target-libtermcap
a3ca38d2 41913 @: $(MAKE); $(unstage)
22121df0 41914 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
a3ca38d2
DD
41915 r=`${PWD_COMMAND}`; export r; \
41916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41917 $(NORMAL_TARGET_EXPORTS) \
22121df0 41918 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \
a3ca38d2
DD
41919 for flag in $(EXTRA_TARGET_FLAGS); do \
41920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41921 done; \
a90ef4bf 41922 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
41923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41925 "RANLIB=$${RANLIB}" \
0c24b341 41926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41927 pdf) \
a3ca38d2
DD
41928 || exit 1
41929
a90ef4bf 41930@endif target-libtermcap
a3ca38d2 41931
a90ef4bf
JM
41932.PHONY: maybe-html-target-libtermcap html-target-libtermcap
41933maybe-html-target-libtermcap:
41934@if target-libtermcap
41935maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 41936
a90ef4bf
JM
41937html-target-libtermcap: \
41938 configure-target-libtermcap
108a6f8e 41939 @: $(MAKE); $(unstage)
22121df0 41940 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
108a6f8e
CD
41941 r=`${PWD_COMMAND}`; export r; \
41942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41943 $(NORMAL_TARGET_EXPORTS) \
22121df0 41944 echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \
108a6f8e
CD
41945 for flag in $(EXTRA_TARGET_FLAGS); do \
41946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41947 done; \
a90ef4bf 41948 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
41949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41951 "RANLIB=$${RANLIB}" \
0c24b341 41952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41953 html) \
108a6f8e
CD
41954 || exit 1
41955
a90ef4bf 41956@endif target-libtermcap
108a6f8e 41957
a90ef4bf
JM
41958.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
41959maybe-TAGS-target-libtermcap:
41960@if target-libtermcap
41961maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 41962
a90ef4bf
JM
41963TAGS-target-libtermcap: \
41964 configure-target-libtermcap
0aed8855 41965 @: $(MAKE); $(unstage)
22121df0 41966 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
41967 r=`${PWD_COMMAND}`; export r; \
41968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41969 $(NORMAL_TARGET_EXPORTS) \
22121df0 41970 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41971 for flag in $(EXTRA_TARGET_FLAGS); do \
41972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41973 done; \
a90ef4bf 41974 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41977 "RANLIB=$${RANLIB}" \
0c24b341 41978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41979 TAGS) \
4fa63067 41980 || exit 1
3866be5d 41981
a90ef4bf 41982@endif target-libtermcap
3866be5d 41983
a90ef4bf
JM
41984.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
41985maybe-install-info-target-libtermcap:
41986@if target-libtermcap
41987maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 41988
a90ef4bf
JM
41989install-info-target-libtermcap: \
41990 configure-target-libtermcap \
41991 info-target-libtermcap
0aed8855 41992 @: $(MAKE); $(unstage)
22121df0 41993 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 41994 r=`${PWD_COMMAND}`; export r; \
b40e3958 41995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41996 $(NORMAL_TARGET_EXPORTS) \
22121df0 41997 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41998 for flag in $(EXTRA_TARGET_FLAGS); do \
41999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42000 done; \
a90ef4bf 42001 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42004 "RANLIB=$${RANLIB}" \
0c24b341 42005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42006 install-info) \
4fa63067 42007 || exit 1
e393202e 42008
a90ef4bf 42009@endif target-libtermcap
3866be5d 42010
a90ef4bf
JM
42011.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
42012maybe-install-pdf-target-libtermcap:
42013@if target-libtermcap
42014maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 42015
a90ef4bf
JM
42016install-pdf-target-libtermcap: \
42017 configure-target-libtermcap \
42018 pdf-target-libtermcap
0aed8855 42019 @: $(MAKE); $(unstage)
22121df0 42020 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
42021 r=`${PWD_COMMAND}`; export r; \
42022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42023 $(NORMAL_TARGET_EXPORTS) \
22121df0 42024 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42025 for flag in $(EXTRA_TARGET_FLAGS); do \
42026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42027 done; \
a90ef4bf 42028 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42031 "RANLIB=$${RANLIB}" \
0c24b341 42032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42033 install-pdf) \
e2b9e2dc
NN
42034 || exit 1
42035
a90ef4bf 42036@endif target-libtermcap
e393202e 42037
a90ef4bf
JM
42038.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
42039maybe-install-html-target-libtermcap:
42040@if target-libtermcap
42041maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 42042
a90ef4bf
JM
42043install-html-target-libtermcap: \
42044 configure-target-libtermcap \
42045 html-target-libtermcap
0aed8855 42046 @: $(MAKE); $(unstage)
22121df0 42047 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
42048 r=`${PWD_COMMAND}`; export r; \
42049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42050 $(NORMAL_TARGET_EXPORTS) \
22121df0 42051 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42052 for flag in $(EXTRA_TARGET_FLAGS); do \
42053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42054 done; \
a90ef4bf 42055 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42058 "RANLIB=$${RANLIB}" \
0c24b341 42059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42060 install-html) \
4fa63067 42061 || exit 1
3866be5d 42062
a90ef4bf 42063@endif target-libtermcap
3866be5d 42064
a90ef4bf
JM
42065.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
42066maybe-installcheck-target-libtermcap:
42067@if target-libtermcap
42068maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 42069
a90ef4bf
JM
42070installcheck-target-libtermcap: \
42071 configure-target-libtermcap
0aed8855 42072 @: $(MAKE); $(unstage)
22121df0 42073 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 42074 r=`${PWD_COMMAND}`; export r; \
b40e3958 42075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42076 $(NORMAL_TARGET_EXPORTS) \
22121df0 42077 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42078 for flag in $(EXTRA_TARGET_FLAGS); do \
42079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42080 done; \
a90ef4bf 42081 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42084 "RANLIB=$${RANLIB}" \
0c24b341 42085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42086 installcheck) \
4fa63067 42087 || exit 1
3866be5d 42088
a90ef4bf
JM
42089@endif target-libtermcap
42090
42091.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
42092maybe-mostlyclean-target-libtermcap:
42093@if target-libtermcap
42094maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
42095
42096# libtermcap doesn't support mostlyclean.
42097mostlyclean-target-libtermcap:
42098
42099@endif target-libtermcap
3866be5d 42100
a90ef4bf
JM
42101.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
42102maybe-clean-target-libtermcap:
42103@if target-libtermcap
42104maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 42105
a90ef4bf
JM
42106# libtermcap doesn't support clean.
42107clean-target-libtermcap:
15723a45 42108
a90ef4bf 42109@endif target-libtermcap
e90269c8 42110
a90ef4bf
JM
42111.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
42112maybe-distclean-target-libtermcap:
42113@if target-libtermcap
42114maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 42115
a90ef4bf
JM
42116# libtermcap doesn't support distclean.
42117distclean-target-libtermcap:
42118
42119@endif target-libtermcap
42120
42121.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
42122maybe-maintainer-clean-target-libtermcap:
42123@if target-libtermcap
42124maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
42125
42126# libtermcap doesn't support maintainer-clean.
42127maintainer-clean-target-libtermcap:
42128
42129@endif target-libtermcap
42130
42131
42132
42133
42134
42135.PHONY: configure-target-winsup maybe-configure-target-winsup
42136maybe-configure-target-winsup:
4f0ef2d8 42137@if gcc-bootstrap
a90ef4bf 42138configure-target-winsup: stage_current
4f0ef2d8 42139@endif gcc-bootstrap
a90ef4bf
JM
42140@if target-winsup
42141maybe-configure-target-winsup: configure-target-winsup
42142configure-target-winsup:
0aed8855
PB
42143 @: $(MAKE); $(unstage)
42144 @r=`${PWD_COMMAND}`; export r; \
42145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42146 echo "Checking multilib configuration for winsup..."; \
22121df0
L
42147 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
42148 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42149 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
42150 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
42151 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 42152 else \
a90ef4bf
JM
42153 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
42154 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
42155 fi; \
42156 else \
a90ef4bf 42157 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 42158 fi; \
a90ef4bf 42159 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
22121df0 42160 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
1f53ca9a 42161 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42162 echo Configuring in $(TARGET_SUBDIR)/winsup; \
42163 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 42164 case $(srcdir) in \
b00612cc 42165 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42166 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 42167 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42168 esac; \
1b6c0831 42169 module_srcdir=winsup; \
bba45b8b 42170 rm -f no-such-file || : ; \
1b6c0831
L
42171 CONFIG_SITE=no-such-file $(SHELL) \
42172 $$s/$$module_srcdir/configure \
42173 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42174 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42175 --target=${target_alias} \
bba45b8b 42176 || exit 1
a90ef4bf 42177@endif target-winsup
e393202e 42178
a7254363
PB
42179
42180
d545f33b
PB
42181
42182
a90ef4bf
JM
42183.PHONY: all-target-winsup maybe-all-target-winsup
42184maybe-all-target-winsup:
4f0ef2d8 42185@if gcc-bootstrap
a90ef4bf 42186all-target-winsup: stage_current
4f0ef2d8 42187@endif gcc-bootstrap
a90ef4bf
JM
42188@if target-winsup
42189TARGET-target-winsup=all
42190maybe-all-target-winsup: all-target-winsup
42191all-target-winsup: configure-target-winsup
0aed8855 42192 @: $(MAKE); $(unstage)
b40e3958
L
42193 @r=`${PWD_COMMAND}`; export r; \
42194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42195 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42196 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 42197 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42198 $(TARGET-target-winsup))
42199@endif target-winsup
e393202e 42200
a7254363
PB
42201
42202
d545f33b
PB
42203
42204
a90ef4bf
JM
42205.PHONY: check-target-winsup maybe-check-target-winsup
42206maybe-check-target-winsup:
42207@if target-winsup
42208maybe-check-target-winsup: check-target-winsup
16ae0395 42209
a90ef4bf 42210check-target-winsup:
0aed8855 42211 @: $(MAKE); $(unstage)
b40e3958
L
42212 @r=`${PWD_COMMAND}`; export r; \
42213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42214 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42215 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 42216 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 42217
a90ef4bf 42218@endif target-winsup
e393202e 42219
a90ef4bf
JM
42220.PHONY: install-target-winsup maybe-install-target-winsup
42221maybe-install-target-winsup:
42222@if target-winsup
42223maybe-install-target-winsup: install-target-winsup
4fa63067 42224
a90ef4bf 42225install-target-winsup: installdirs
0aed8855 42226 @: $(MAKE); $(unstage)
4fa63067
NN
42227 @r=`${PWD_COMMAND}`; export r; \
42228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42229 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42230 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 42231 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 42232
a90ef4bf 42233@endif target-winsup
4fa63067 42234
a90ef4bf
JM
42235.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
42236maybe-install-strip-target-winsup:
42237@if target-winsup
42238maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 42239
a90ef4bf 42240install-strip-target-winsup: installdirs
9b980aa1
RW
42241 @: $(MAKE); $(unstage)
42242 @r=`${PWD_COMMAND}`; export r; \
42243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42244 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42245 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
42246 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42247
a90ef4bf 42248@endif target-winsup
9b980aa1 42249
56a8fe78 42250# Other targets (info, dvi, pdf, etc.)
4fa63067 42251
a90ef4bf
JM
42252.PHONY: maybe-info-target-winsup info-target-winsup
42253maybe-info-target-winsup:
42254@if target-winsup
42255maybe-info-target-winsup: info-target-winsup
4fa63067 42256
a90ef4bf
JM
42257info-target-winsup: \
42258 configure-target-winsup
0aed8855 42259 @: $(MAKE); $(unstage)
22121df0 42260 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42261 r=`${PWD_COMMAND}`; export r; \
42262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42263 $(NORMAL_TARGET_EXPORTS) \
22121df0 42264 echo "Doing info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42265 for flag in $(EXTRA_TARGET_FLAGS); do \
42266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42267 done; \
a90ef4bf 42268 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42271 "RANLIB=$${RANLIB}" \
0c24b341 42272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42273 info) \
4fa63067
NN
42274 || exit 1
42275
a90ef4bf 42276@endif target-winsup
4fa63067 42277
a90ef4bf
JM
42278.PHONY: maybe-dvi-target-winsup dvi-target-winsup
42279maybe-dvi-target-winsup:
42280@if target-winsup
42281maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 42282
a90ef4bf
JM
42283dvi-target-winsup: \
42284 configure-target-winsup
0aed8855 42285 @: $(MAKE); $(unstage)
22121df0 42286 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42287 r=`${PWD_COMMAND}`; export r; \
42288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42289 $(NORMAL_TARGET_EXPORTS) \
22121df0 42290 echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42291 for flag in $(EXTRA_TARGET_FLAGS); do \
42292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42293 done; \
a90ef4bf 42294 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42297 "RANLIB=$${RANLIB}" \
0c24b341 42298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42299 dvi) \
4fa63067
NN
42300 || exit 1
42301
a90ef4bf 42302@endif target-winsup
4fa63067 42303
a90ef4bf
JM
42304.PHONY: maybe-pdf-target-winsup pdf-target-winsup
42305maybe-pdf-target-winsup:
42306@if target-winsup
42307maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 42308
a90ef4bf
JM
42309pdf-target-winsup: \
42310 configure-target-winsup
56a8fe78 42311 @: $(MAKE); $(unstage)
22121df0 42312 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
56a8fe78
DD
42313 r=`${PWD_COMMAND}`; export r; \
42314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42315 $(NORMAL_TARGET_EXPORTS) \
22121df0 42316 echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \
56a8fe78
DD
42317 for flag in $(EXTRA_TARGET_FLAGS); do \
42318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42319 done; \
a90ef4bf 42320 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
42321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42323 "RANLIB=$${RANLIB}" \
0c24b341 42324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42325 pdf) \
42326 || exit 1
42327
a90ef4bf 42328@endif target-winsup
56a8fe78 42329
a90ef4bf
JM
42330.PHONY: maybe-html-target-winsup html-target-winsup
42331maybe-html-target-winsup:
42332@if target-winsup
42333maybe-html-target-winsup: html-target-winsup
6d389afc 42334
a90ef4bf
JM
42335html-target-winsup: \
42336 configure-target-winsup
0aed8855 42337 @: $(MAKE); $(unstage)
22121df0 42338 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
6d389afc
MS
42339 r=`${PWD_COMMAND}`; export r; \
42340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42341 $(NORMAL_TARGET_EXPORTS) \
22121df0 42342 echo "Doing html in $(TARGET_SUBDIR)/winsup"; \
6d389afc
MS
42343 for flag in $(EXTRA_TARGET_FLAGS); do \
42344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42345 done; \
a90ef4bf 42346 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
42347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42349 "RANLIB=$${RANLIB}" \
0c24b341 42350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42351 html) \
42352 || exit 1
42353
a90ef4bf 42354@endif target-winsup
6d389afc 42355
a90ef4bf
JM
42356.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
42357maybe-TAGS-target-winsup:
42358@if target-winsup
42359maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 42360
a90ef4bf
JM
42361TAGS-target-winsup: \
42362 configure-target-winsup
0aed8855 42363 @: $(MAKE); $(unstage)
22121df0 42364 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42365 r=`${PWD_COMMAND}`; export r; \
42366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42367 $(NORMAL_TARGET_EXPORTS) \
22121df0 42368 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42369 for flag in $(EXTRA_TARGET_FLAGS); do \
42370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42371 done; \
a90ef4bf 42372 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42375 "RANLIB=$${RANLIB}" \
0c24b341 42376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42377 TAGS) \
4fa63067
NN
42378 || exit 1
42379
a90ef4bf 42380@endif target-winsup
4fa63067 42381
a90ef4bf
JM
42382.PHONY: maybe-install-info-target-winsup install-info-target-winsup
42383maybe-install-info-target-winsup:
42384@if target-winsup
42385maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 42386
a90ef4bf
JM
42387install-info-target-winsup: \
42388 configure-target-winsup \
42389 info-target-winsup
0aed8855 42390 @: $(MAKE); $(unstage)
22121df0 42391 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42392 r=`${PWD_COMMAND}`; export r; \
42393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42394 $(NORMAL_TARGET_EXPORTS) \
22121df0 42395 echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42396 for flag in $(EXTRA_TARGET_FLAGS); do \
42397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42398 done; \
a90ef4bf 42399 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42402 "RANLIB=$${RANLIB}" \
0c24b341 42403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42404 install-info) \
4fa63067
NN
42405 || exit 1
42406
a90ef4bf 42407@endif target-winsup
4fa63067 42408
a90ef4bf
JM
42409.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
42410maybe-install-pdf-target-winsup:
42411@if target-winsup
42412maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 42413
a90ef4bf
JM
42414install-pdf-target-winsup: \
42415 configure-target-winsup \
42416 pdf-target-winsup
a3ca38d2 42417 @: $(MAKE); $(unstage)
22121df0 42418 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
a3ca38d2
DD
42419 r=`${PWD_COMMAND}`; export r; \
42420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42421 $(NORMAL_TARGET_EXPORTS) \
22121df0 42422 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \
a3ca38d2
DD
42423 for flag in $(EXTRA_TARGET_FLAGS); do \
42424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42425 done; \
a90ef4bf 42426 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
42427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42429 "RANLIB=$${RANLIB}" \
0c24b341 42430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42431 install-pdf) \
42432 || exit 1
42433
a90ef4bf 42434@endif target-winsup
a3ca38d2 42435
a90ef4bf
JM
42436.PHONY: maybe-install-html-target-winsup install-html-target-winsup
42437maybe-install-html-target-winsup:
42438@if target-winsup
42439maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 42440
a90ef4bf
JM
42441install-html-target-winsup: \
42442 configure-target-winsup \
42443 html-target-winsup
108a6f8e 42444 @: $(MAKE); $(unstage)
22121df0 42445 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
108a6f8e
CD
42446 r=`${PWD_COMMAND}`; export r; \
42447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42448 $(NORMAL_TARGET_EXPORTS) \
22121df0 42449 echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \
108a6f8e
CD
42450 for flag in $(EXTRA_TARGET_FLAGS); do \
42451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42452 done; \
a90ef4bf 42453 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
42454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42456 "RANLIB=$${RANLIB}" \
0c24b341 42457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42458 install-html) \
42459 || exit 1
42460
a90ef4bf 42461@endif target-winsup
108a6f8e 42462
a90ef4bf
JM
42463.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
42464maybe-installcheck-target-winsup:
42465@if target-winsup
42466maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 42467
a90ef4bf
JM
42468installcheck-target-winsup: \
42469 configure-target-winsup
0aed8855 42470 @: $(MAKE); $(unstage)
22121df0 42471 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42472 r=`${PWD_COMMAND}`; export r; \
42473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42474 $(NORMAL_TARGET_EXPORTS) \
22121df0 42475 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42476 for flag in $(EXTRA_TARGET_FLAGS); do \
42477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42478 done; \
a90ef4bf 42479 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42482 "RANLIB=$${RANLIB}" \
0c24b341 42483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42484 installcheck) \
4fa63067
NN
42485 || exit 1
42486
a90ef4bf 42487@endif target-winsup
4fa63067 42488
a90ef4bf
JM
42489.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
42490maybe-mostlyclean-target-winsup:
42491@if target-winsup
42492maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 42493
a90ef4bf 42494mostlyclean-target-winsup:
0aed8855 42495 @: $(MAKE); $(unstage)
22121df0 42496 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42497 r=`${PWD_COMMAND}`; export r; \
42498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42499 $(NORMAL_TARGET_EXPORTS) \
22121df0 42500 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42501 for flag in $(EXTRA_TARGET_FLAGS); do \
42502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42503 done; \
a90ef4bf 42504 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42507 "RANLIB=$${RANLIB}" \
0c24b341 42508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42509 mostlyclean) \
4fa63067
NN
42510 || exit 1
42511
a90ef4bf 42512@endif target-winsup
4fa63067 42513
a90ef4bf
JM
42514.PHONY: maybe-clean-target-winsup clean-target-winsup
42515maybe-clean-target-winsup:
42516@if target-winsup
42517maybe-clean-target-winsup: clean-target-winsup
4fa63067 42518
a90ef4bf 42519clean-target-winsup:
0aed8855 42520 @: $(MAKE); $(unstage)
22121df0 42521 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42522 r=`${PWD_COMMAND}`; export r; \
42523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42524 $(NORMAL_TARGET_EXPORTS) \
22121df0 42525 echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42526 for flag in $(EXTRA_TARGET_FLAGS); do \
42527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42528 done; \
a90ef4bf 42529 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42532 "RANLIB=$${RANLIB}" \
0c24b341 42533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42534 clean) \
4fa63067
NN
42535 || exit 1
42536
a90ef4bf 42537@endif target-winsup
4fa63067 42538
a90ef4bf
JM
42539.PHONY: maybe-distclean-target-winsup distclean-target-winsup
42540maybe-distclean-target-winsup:
42541@if target-winsup
42542maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 42543
a90ef4bf 42544distclean-target-winsup:
0aed8855 42545 @: $(MAKE); $(unstage)
22121df0 42546 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42547 r=`${PWD_COMMAND}`; export r; \
42548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42549 $(NORMAL_TARGET_EXPORTS) \
22121df0 42550 echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42551 for flag in $(EXTRA_TARGET_FLAGS); do \
42552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42553 done; \
a90ef4bf 42554 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42557 "RANLIB=$${RANLIB}" \
0c24b341 42558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42559 distclean) \
4fa63067
NN
42560 || exit 1
42561
a90ef4bf 42562@endif target-winsup
4fa63067 42563
a90ef4bf
JM
42564.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
42565maybe-maintainer-clean-target-winsup:
42566@if target-winsup
42567maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 42568
a90ef4bf 42569maintainer-clean-target-winsup:
0aed8855 42570 @: $(MAKE); $(unstage)
22121df0 42571 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42572 r=`${PWD_COMMAND}`; export r; \
42573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42574 $(NORMAL_TARGET_EXPORTS) \
22121df0 42575 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42576 for flag in $(EXTRA_TARGET_FLAGS); do \
42577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42578 done; \
a90ef4bf 42579 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42582 "RANLIB=$${RANLIB}" \
0c24b341 42583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42584 maintainer-clean) \
4fa63067 42585 || exit 1
16ae0395 42586
a90ef4bf 42587@endif target-winsup
e393202e
NN
42588
42589
15723a45 42590
e90269c8 42591
a7254363 42592
a90ef4bf
JM
42593.PHONY: configure-target-libgloss maybe-configure-target-libgloss
42594maybe-configure-target-libgloss:
4f0ef2d8 42595@if gcc-bootstrap
a90ef4bf 42596configure-target-libgloss: stage_current
4f0ef2d8 42597@endif gcc-bootstrap
a90ef4bf
JM
42598@if target-libgloss
42599maybe-configure-target-libgloss: configure-target-libgloss
42600configure-target-libgloss:
0aed8855
PB
42601 @: $(MAKE); $(unstage)
42602 @r=`${PWD_COMMAND}`; export r; \
42603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42604 echo "Checking multilib configuration for libgloss..."; \
22121df0
L
42605 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
42606 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42607 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42608 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42609 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 42610 else \
a90ef4bf
JM
42611 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
42612 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
42613 fi; \
42614 else \
a90ef4bf 42615 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 42616 fi; \
a90ef4bf 42617 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
22121df0 42618 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
1f53ca9a 42619 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42620 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
42621 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 42622 case $(srcdir) in \
b00612cc 42623 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42624 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 42625 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42626 esac; \
1b6c0831 42627 module_srcdir=libgloss; \
bba45b8b 42628 rm -f no-such-file || : ; \
1b6c0831
L
42629 CONFIG_SITE=no-such-file $(SHELL) \
42630 $$s/$$module_srcdir/configure \
42631 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42632 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42633 --target=${target_alias} \
bba45b8b 42634 || exit 1
a90ef4bf 42635@endif target-libgloss
e393202e 42636
a7254363
PB
42637
42638
d545f33b
PB
42639
42640
a90ef4bf
JM
42641.PHONY: all-target-libgloss maybe-all-target-libgloss
42642maybe-all-target-libgloss:
4f0ef2d8 42643@if gcc-bootstrap
a90ef4bf 42644all-target-libgloss: stage_current
4f0ef2d8 42645@endif gcc-bootstrap
a90ef4bf
JM
42646@if target-libgloss
42647TARGET-target-libgloss=all
42648maybe-all-target-libgloss: all-target-libgloss
42649all-target-libgloss: configure-target-libgloss
0aed8855 42650 @: $(MAKE); $(unstage)
b40e3958
L
42651 @r=`${PWD_COMMAND}`; export r; \
42652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42653 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42654 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 42655 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42656 $(TARGET-target-libgloss))
42657@endif target-libgloss
e393202e 42658
a7254363
PB
42659
42660
d545f33b
PB
42661
42662
a90ef4bf
JM
42663.PHONY: check-target-libgloss maybe-check-target-libgloss
42664maybe-check-target-libgloss:
42665@if target-libgloss
42666maybe-check-target-libgloss: check-target-libgloss
16ae0395 42667
a90ef4bf
JM
42668# Dummy target for uncheckable module.
42669check-target-libgloss:
930314a4 42670
a90ef4bf 42671@endif target-libgloss
e393202e 42672
a90ef4bf
JM
42673.PHONY: install-target-libgloss maybe-install-target-libgloss
42674maybe-install-target-libgloss:
42675@if target-libgloss
42676maybe-install-target-libgloss: install-target-libgloss
4fa63067 42677
a90ef4bf 42678install-target-libgloss: installdirs
0aed8855 42679 @: $(MAKE); $(unstage)
4fa63067
NN
42680 @r=`${PWD_COMMAND}`; export r; \
42681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42682 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42683 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 42684 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 42685
a90ef4bf 42686@endif target-libgloss
4fa63067 42687
a90ef4bf
JM
42688.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
42689maybe-install-strip-target-libgloss:
42690@if target-libgloss
42691maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 42692
a90ef4bf 42693install-strip-target-libgloss: installdirs
9b980aa1
RW
42694 @: $(MAKE); $(unstage)
42695 @r=`${PWD_COMMAND}`; export r; \
42696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42697 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42698 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
42699 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42700
a90ef4bf 42701@endif target-libgloss
9b980aa1 42702
56a8fe78 42703# Other targets (info, dvi, pdf, etc.)
4fa63067 42704
a90ef4bf
JM
42705.PHONY: maybe-info-target-libgloss info-target-libgloss
42706maybe-info-target-libgloss:
42707@if target-libgloss
42708maybe-info-target-libgloss: info-target-libgloss
4fa63067 42709
a90ef4bf
JM
42710info-target-libgloss: \
42711 configure-target-libgloss
0aed8855 42712 @: $(MAKE); $(unstage)
22121df0 42713 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42714 r=`${PWD_COMMAND}`; export r; \
42715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42716 $(NORMAL_TARGET_EXPORTS) \
22121df0 42717 echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42718 for flag in $(EXTRA_TARGET_FLAGS); do \
42719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42720 done; \
a90ef4bf 42721 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42724 "RANLIB=$${RANLIB}" \
0c24b341 42725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42726 info) \
4fa63067
NN
42727 || exit 1
42728
a90ef4bf 42729@endif target-libgloss
4fa63067 42730
a90ef4bf
JM
42731.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
42732maybe-dvi-target-libgloss:
42733@if target-libgloss
42734maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 42735
a90ef4bf
JM
42736dvi-target-libgloss: \
42737 configure-target-libgloss
0aed8855 42738 @: $(MAKE); $(unstage)
22121df0 42739 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42740 r=`${PWD_COMMAND}`; export r; \
42741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42742 $(NORMAL_TARGET_EXPORTS) \
22121df0 42743 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42744 for flag in $(EXTRA_TARGET_FLAGS); do \
42745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42746 done; \
a90ef4bf 42747 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42750 "RANLIB=$${RANLIB}" \
0c24b341 42751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42752 dvi) \
4fa63067
NN
42753 || exit 1
42754
a90ef4bf 42755@endif target-libgloss
4fa63067 42756
a90ef4bf
JM
42757.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
42758maybe-pdf-target-libgloss:
42759@if target-libgloss
42760maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 42761
a90ef4bf
JM
42762pdf-target-libgloss: \
42763 configure-target-libgloss
56a8fe78 42764 @: $(MAKE); $(unstage)
22121df0 42765 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
56a8fe78
DD
42766 r=`${PWD_COMMAND}`; export r; \
42767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42768 $(NORMAL_TARGET_EXPORTS) \
22121df0 42769 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \
56a8fe78
DD
42770 for flag in $(EXTRA_TARGET_FLAGS); do \
42771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42772 done; \
a90ef4bf 42773 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
42774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42776 "RANLIB=$${RANLIB}" \
0c24b341 42777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42778 pdf) \
42779 || exit 1
42780
a90ef4bf 42781@endif target-libgloss
56a8fe78 42782
a90ef4bf
JM
42783.PHONY: maybe-html-target-libgloss html-target-libgloss
42784maybe-html-target-libgloss:
42785@if target-libgloss
42786maybe-html-target-libgloss: html-target-libgloss
6d389afc 42787
a90ef4bf
JM
42788html-target-libgloss: \
42789 configure-target-libgloss
0aed8855 42790 @: $(MAKE); $(unstage)
22121df0 42791 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
6d389afc
MS
42792 r=`${PWD_COMMAND}`; export r; \
42793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42794 $(NORMAL_TARGET_EXPORTS) \
22121df0 42795 echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \
6d389afc
MS
42796 for flag in $(EXTRA_TARGET_FLAGS); do \
42797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42798 done; \
a90ef4bf 42799 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
42800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42802 "RANLIB=$${RANLIB}" \
0c24b341 42803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42804 html) \
42805 || exit 1
42806
a90ef4bf 42807@endif target-libgloss
6d389afc 42808
a90ef4bf
JM
42809.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
42810maybe-TAGS-target-libgloss:
42811@if target-libgloss
42812maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 42813
a90ef4bf
JM
42814TAGS-target-libgloss: \
42815 configure-target-libgloss
0aed8855 42816 @: $(MAKE); $(unstage)
22121df0 42817 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42818 r=`${PWD_COMMAND}`; export r; \
42819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42820 $(NORMAL_TARGET_EXPORTS) \
22121df0 42821 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42822 for flag in $(EXTRA_TARGET_FLAGS); do \
42823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42824 done; \
a90ef4bf 42825 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42828 "RANLIB=$${RANLIB}" \
0c24b341 42829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42830 TAGS) \
4fa63067
NN
42831 || exit 1
42832
a90ef4bf 42833@endif target-libgloss
4fa63067 42834
a90ef4bf
JM
42835.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
42836maybe-install-info-target-libgloss:
42837@if target-libgloss
42838maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 42839
a90ef4bf
JM
42840install-info-target-libgloss: \
42841 configure-target-libgloss \
42842 info-target-libgloss
0aed8855 42843 @: $(MAKE); $(unstage)
22121df0 42844 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42845 r=`${PWD_COMMAND}`; export r; \
42846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42847 $(NORMAL_TARGET_EXPORTS) \
22121df0 42848 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42849 for flag in $(EXTRA_TARGET_FLAGS); do \
42850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42851 done; \
a90ef4bf 42852 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42855 "RANLIB=$${RANLIB}" \
0c24b341 42856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42857 install-info) \
4fa63067
NN
42858 || exit 1
42859
a90ef4bf 42860@endif target-libgloss
4fa63067 42861
a90ef4bf
JM
42862.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
42863maybe-install-pdf-target-libgloss:
42864@if target-libgloss
42865maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 42866
a90ef4bf
JM
42867install-pdf-target-libgloss: \
42868 configure-target-libgloss \
42869 pdf-target-libgloss
a3ca38d2 42870 @: $(MAKE); $(unstage)
22121df0 42871 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
a3ca38d2
DD
42872 r=`${PWD_COMMAND}`; export r; \
42873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42874 $(NORMAL_TARGET_EXPORTS) \
22121df0 42875 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \
a3ca38d2
DD
42876 for flag in $(EXTRA_TARGET_FLAGS); do \
42877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42878 done; \
a90ef4bf 42879 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
42880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42882 "RANLIB=$${RANLIB}" \
0c24b341 42883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42884 install-pdf) \
42885 || exit 1
42886
a90ef4bf 42887@endif target-libgloss
a3ca38d2 42888
a90ef4bf
JM
42889.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
42890maybe-install-html-target-libgloss:
42891@if target-libgloss
42892maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 42893
a90ef4bf
JM
42894install-html-target-libgloss: \
42895 configure-target-libgloss \
42896 html-target-libgloss
108a6f8e 42897 @: $(MAKE); $(unstage)
22121df0 42898 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
108a6f8e
CD
42899 r=`${PWD_COMMAND}`; export r; \
42900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42901 $(NORMAL_TARGET_EXPORTS) \
22121df0 42902 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \
108a6f8e
CD
42903 for flag in $(EXTRA_TARGET_FLAGS); do \
42904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42905 done; \
a90ef4bf 42906 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
42907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42909 "RANLIB=$${RANLIB}" \
0c24b341 42910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42911 install-html) \
42912 || exit 1
42913
a90ef4bf 42914@endif target-libgloss
108a6f8e 42915
a90ef4bf
JM
42916.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
42917maybe-installcheck-target-libgloss:
42918@if target-libgloss
42919maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 42920
a90ef4bf
JM
42921installcheck-target-libgloss: \
42922 configure-target-libgloss
0aed8855 42923 @: $(MAKE); $(unstage)
22121df0 42924 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42925 r=`${PWD_COMMAND}`; export r; \
42926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42927 $(NORMAL_TARGET_EXPORTS) \
22121df0 42928 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42929 for flag in $(EXTRA_TARGET_FLAGS); do \
42930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42931 done; \
a90ef4bf 42932 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42935 "RANLIB=$${RANLIB}" \
0c24b341 42936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42937 installcheck) \
4fa63067
NN
42938 || exit 1
42939
a90ef4bf 42940@endif target-libgloss
4fa63067 42941
a90ef4bf
JM
42942.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
42943maybe-mostlyclean-target-libgloss:
42944@if target-libgloss
42945maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 42946
a90ef4bf 42947mostlyclean-target-libgloss:
0aed8855 42948 @: $(MAKE); $(unstage)
22121df0 42949 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42950 r=`${PWD_COMMAND}`; export r; \
42951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42952 $(NORMAL_TARGET_EXPORTS) \
22121df0 42953 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42954 for flag in $(EXTRA_TARGET_FLAGS); do \
42955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42956 done; \
a90ef4bf 42957 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42960 "RANLIB=$${RANLIB}" \
0c24b341 42961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42962 mostlyclean) \
4fa63067
NN
42963 || exit 1
42964
a90ef4bf 42965@endif target-libgloss
4fa63067 42966
a90ef4bf
JM
42967.PHONY: maybe-clean-target-libgloss clean-target-libgloss
42968maybe-clean-target-libgloss:
42969@if target-libgloss
42970maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 42971
a90ef4bf 42972clean-target-libgloss:
0aed8855 42973 @: $(MAKE); $(unstage)
22121df0 42974 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42975 r=`${PWD_COMMAND}`; export r; \
42976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42977 $(NORMAL_TARGET_EXPORTS) \
22121df0 42978 echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42979 for flag in $(EXTRA_TARGET_FLAGS); do \
42980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42981 done; \
a90ef4bf 42982 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42985 "RANLIB=$${RANLIB}" \
0c24b341 42986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42987 clean) \
4fa63067
NN
42988 || exit 1
42989
a90ef4bf 42990@endif target-libgloss
4fa63067 42991
a90ef4bf
JM
42992.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
42993maybe-distclean-target-libgloss:
42994@if target-libgloss
42995maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 42996
a90ef4bf 42997distclean-target-libgloss:
0aed8855 42998 @: $(MAKE); $(unstage)
22121df0 42999 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43000 r=`${PWD_COMMAND}`; export r; \
43001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43002 $(NORMAL_TARGET_EXPORTS) \
22121df0 43003 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43004 for flag in $(EXTRA_TARGET_FLAGS); do \
43005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43006 done; \
a90ef4bf 43007 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43010 "RANLIB=$${RANLIB}" \
0c24b341 43011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43012 distclean) \
4fa63067
NN
43013 || exit 1
43014
a90ef4bf 43015@endif target-libgloss
4fa63067 43016
a90ef4bf
JM
43017.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
43018maybe-maintainer-clean-target-libgloss:
43019@if target-libgloss
43020maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 43021
a90ef4bf 43022maintainer-clean-target-libgloss:
0aed8855 43023 @: $(MAKE); $(unstage)
22121df0 43024 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43025 r=`${PWD_COMMAND}`; export r; \
43026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43027 $(NORMAL_TARGET_EXPORTS) \
22121df0 43028 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43029 for flag in $(EXTRA_TARGET_FLAGS); do \
43030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43031 done; \
a90ef4bf 43032 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43035 "RANLIB=$${RANLIB}" \
0c24b341 43036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43037 maintainer-clean) \
4fa63067 43038 || exit 1
16ae0395 43039
a90ef4bf 43040@endif target-libgloss
e393202e
NN
43041
43042
15723a45 43043
a7254363
PB
43044
43045
a7254363
PB
43046.PHONY: configure-target-libffi maybe-configure-target-libffi
43047maybe-configure-target-libffi:
4f0ef2d8
CD
43048@if gcc-bootstrap
43049configure-target-libffi: stage_current
43050@endif gcc-bootstrap
a7254363
PB
43051@if target-libffi
43052maybe-configure-target-libffi: configure-target-libffi
c52c6897 43053configure-target-libffi:
0aed8855
PB
43054 @: $(MAKE); $(unstage)
43055 @r=`${PWD_COMMAND}`; export r; \
43056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43057 echo "Checking multilib configuration for libffi..."; \
22121df0
L
43058 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
43059 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \
0aed8855
PB
43060 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
43061 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
43062 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
43063 else \
43064 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
43065 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
43066 fi; \
43067 else \
43068 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
43069 fi; \
43070 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22121df0 43071 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
1f53ca9a 43072 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43073 echo Configuring in $(TARGET_SUBDIR)/libffi; \
43074 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 43075 case $(srcdir) in \
b00612cc
PB
43076 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43077 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
43078 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43079 esac; \
1b6c0831 43080 module_srcdir=libffi; \
bba45b8b 43081 rm -f no-such-file || : ; \
1b6c0831
L
43082 CONFIG_SITE=no-such-file $(SHELL) \
43083 $$s/$$module_srcdir/configure \
43084 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43085 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43086 --target=${target_alias} \
bba45b8b 43087 || exit 1
6bd3dfaa 43088@endif target-libffi
e393202e 43089
a7254363
PB
43090
43091
d545f33b
PB
43092
43093
4fa63067
NN
43094.PHONY: all-target-libffi maybe-all-target-libffi
43095maybe-all-target-libffi:
4f0ef2d8
CD
43096@if gcc-bootstrap
43097all-target-libffi: stage_current
43098@endif gcc-bootstrap
6bd3dfaa 43099@if target-libffi
72b2455a 43100TARGET-target-libffi=all
6bd3dfaa 43101maybe-all-target-libffi: all-target-libffi
4fa63067 43102all-target-libffi: configure-target-libffi
0aed8855 43103 @: $(MAKE); $(unstage)
b40e3958
L
43104 @r=`${PWD_COMMAND}`; export r; \
43105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43106 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43107 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 43108 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 43109 $(TARGET-target-libffi))
6bd3dfaa 43110@endif target-libffi
e393202e 43111
a7254363
PB
43112
43113
d545f33b
PB
43114
43115
4fa63067
NN
43116.PHONY: check-target-libffi maybe-check-target-libffi
43117maybe-check-target-libffi:
6bd3dfaa
PB
43118@if target-libffi
43119maybe-check-target-libffi: check-target-libffi
16ae0395 43120
4fa63067 43121check-target-libffi:
0aed8855 43122 @: $(MAKE); $(unstage)
b40e3958
L
43123 @r=`${PWD_COMMAND}`; export r; \
43124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43125 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43126 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 43127 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 43128
6bd3dfaa 43129@endif target-libffi
e393202e 43130
4fa63067
NN
43131.PHONY: install-target-libffi maybe-install-target-libffi
43132maybe-install-target-libffi:
6bd3dfaa
PB
43133@if target-libffi
43134maybe-install-target-libffi: install-target-libffi
16ae0395 43135
b836cb18
JBG
43136# Dummy target for uninstallable.
43137install-target-libffi:
e393202e 43138
6bd3dfaa 43139@endif target-libffi
e393202e 43140
9b980aa1
RW
43141.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
43142maybe-install-strip-target-libffi:
43143@if target-libffi
43144maybe-install-strip-target-libffi: install-strip-target-libffi
43145
b836cb18
JBG
43146# Dummy target for uninstallable.
43147install-strip-target-libffi:
9b980aa1
RW
43148
43149@endif target-libffi
43150
56a8fe78 43151# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
43152
43153.PHONY: maybe-info-target-libffi info-target-libffi
43154maybe-info-target-libffi:
6bd3dfaa
PB
43155@if target-libffi
43156maybe-info-target-libffi: info-target-libffi
4fa63067
NN
43157
43158info-target-libffi: \
43159 configure-target-libffi
0aed8855 43160 @: $(MAKE); $(unstage)
22121df0 43161 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43162 r=`${PWD_COMMAND}`; export r; \
43163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43164 $(NORMAL_TARGET_EXPORTS) \
22121df0 43165 echo "Doing info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43166 for flag in $(EXTRA_TARGET_FLAGS); do \
43167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43168 done; \
43169 (cd $(TARGET_SUBDIR)/libffi && \
43170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43172 "RANLIB=$${RANLIB}" \
0c24b341 43173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43174 info) \
4fa63067
NN
43175 || exit 1
43176
6bd3dfaa 43177@endif target-libffi
4fa63067
NN
43178
43179.PHONY: maybe-dvi-target-libffi dvi-target-libffi
43180maybe-dvi-target-libffi:
6bd3dfaa
PB
43181@if target-libffi
43182maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
43183
43184dvi-target-libffi: \
43185 configure-target-libffi
0aed8855 43186 @: $(MAKE); $(unstage)
22121df0 43187 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43188 r=`${PWD_COMMAND}`; export r; \
43189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43190 $(NORMAL_TARGET_EXPORTS) \
22121df0 43191 echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43192 for flag in $(EXTRA_TARGET_FLAGS); do \
43193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43194 done; \
43195 (cd $(TARGET_SUBDIR)/libffi && \
43196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43198 "RANLIB=$${RANLIB}" \
0c24b341 43199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43200 dvi) \
4fa63067
NN
43201 || exit 1
43202
6bd3dfaa 43203@endif target-libffi
4fa63067 43204
56a8fe78
DD
43205.PHONY: maybe-pdf-target-libffi pdf-target-libffi
43206maybe-pdf-target-libffi:
43207@if target-libffi
43208maybe-pdf-target-libffi: pdf-target-libffi
43209
43210pdf-target-libffi: \
43211 configure-target-libffi
43212 @: $(MAKE); $(unstage)
22121df0 43213 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
56a8fe78
DD
43214 r=`${PWD_COMMAND}`; export r; \
43215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43216 $(NORMAL_TARGET_EXPORTS) \
22121df0 43217 echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \
56a8fe78
DD
43218 for flag in $(EXTRA_TARGET_FLAGS); do \
43219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43220 done; \
43221 (cd $(TARGET_SUBDIR)/libffi && \
43222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43224 "RANLIB=$${RANLIB}" \
0c24b341 43225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43226 pdf) \
43227 || exit 1
43228
43229@endif target-libffi
43230
6d389afc
MS
43231.PHONY: maybe-html-target-libffi html-target-libffi
43232maybe-html-target-libffi:
43233@if target-libffi
43234maybe-html-target-libffi: html-target-libffi
43235
43236html-target-libffi: \
43237 configure-target-libffi
0aed8855 43238 @: $(MAKE); $(unstage)
22121df0 43239 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
6d389afc
MS
43240 r=`${PWD_COMMAND}`; export r; \
43241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43242 $(NORMAL_TARGET_EXPORTS) \
22121df0 43243 echo "Doing html in $(TARGET_SUBDIR)/libffi"; \
6d389afc
MS
43244 for flag in $(EXTRA_TARGET_FLAGS); do \
43245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43246 done; \
43247 (cd $(TARGET_SUBDIR)/libffi && \
43248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43250 "RANLIB=$${RANLIB}" \
0c24b341 43251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43252 html) \
43253 || exit 1
43254
43255@endif target-libffi
43256
4fa63067
NN
43257.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
43258maybe-TAGS-target-libffi:
6bd3dfaa
PB
43259@if target-libffi
43260maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
43261
43262TAGS-target-libffi: \
43263 configure-target-libffi
0aed8855 43264 @: $(MAKE); $(unstage)
22121df0 43265 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43266 r=`${PWD_COMMAND}`; export r; \
43267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43268 $(NORMAL_TARGET_EXPORTS) \
22121df0 43269 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43270 for flag in $(EXTRA_TARGET_FLAGS); do \
43271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43272 done; \
43273 (cd $(TARGET_SUBDIR)/libffi && \
43274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43276 "RANLIB=$${RANLIB}" \
0c24b341 43277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43278 TAGS) \
4fa63067
NN
43279 || exit 1
43280
6bd3dfaa 43281@endif target-libffi
4fa63067
NN
43282
43283.PHONY: maybe-install-info-target-libffi install-info-target-libffi
43284maybe-install-info-target-libffi:
6bd3dfaa
PB
43285@if target-libffi
43286maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
43287
43288install-info-target-libffi: \
43289 configure-target-libffi \
43290 info-target-libffi
0aed8855 43291 @: $(MAKE); $(unstage)
22121df0 43292 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43293 r=`${PWD_COMMAND}`; export r; \
43294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43295 $(NORMAL_TARGET_EXPORTS) \
22121df0 43296 echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43297 for flag in $(EXTRA_TARGET_FLAGS); do \
43298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43299 done; \
43300 (cd $(TARGET_SUBDIR)/libffi && \
43301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43303 "RANLIB=$${RANLIB}" \
0c24b341 43304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43305 install-info) \
4fa63067
NN
43306 || exit 1
43307
6bd3dfaa 43308@endif target-libffi
4fa63067 43309
a3ca38d2
DD
43310.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
43311maybe-install-pdf-target-libffi:
43312@if target-libffi
43313maybe-install-pdf-target-libffi: install-pdf-target-libffi
43314
43315install-pdf-target-libffi: \
43316 configure-target-libffi \
43317 pdf-target-libffi
43318 @: $(MAKE); $(unstage)
22121df0 43319 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
a3ca38d2
DD
43320 r=`${PWD_COMMAND}`; export r; \
43321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43322 $(NORMAL_TARGET_EXPORTS) \
22121df0 43323 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \
a3ca38d2
DD
43324 for flag in $(EXTRA_TARGET_FLAGS); do \
43325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43326 done; \
43327 (cd $(TARGET_SUBDIR)/libffi && \
43328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43330 "RANLIB=$${RANLIB}" \
0c24b341 43331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43332 install-pdf) \
43333 || exit 1
43334
43335@endif target-libffi
43336
108a6f8e
CD
43337.PHONY: maybe-install-html-target-libffi install-html-target-libffi
43338maybe-install-html-target-libffi:
43339@if target-libffi
43340maybe-install-html-target-libffi: install-html-target-libffi
43341
43342install-html-target-libffi: \
43343 configure-target-libffi \
43344 html-target-libffi
43345 @: $(MAKE); $(unstage)
22121df0 43346 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
108a6f8e
CD
43347 r=`${PWD_COMMAND}`; export r; \
43348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43349 $(NORMAL_TARGET_EXPORTS) \
22121df0 43350 echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \
108a6f8e
CD
43351 for flag in $(EXTRA_TARGET_FLAGS); do \
43352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43353 done; \
43354 (cd $(TARGET_SUBDIR)/libffi && \
43355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43357 "RANLIB=$${RANLIB}" \
0c24b341 43358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43359 install-html) \
43360 || exit 1
43361
43362@endif target-libffi
43363
4fa63067
NN
43364.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
43365maybe-installcheck-target-libffi:
6bd3dfaa
PB
43366@if target-libffi
43367maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
43368
43369installcheck-target-libffi: \
43370 configure-target-libffi
0aed8855 43371 @: $(MAKE); $(unstage)
22121df0 43372 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43373 r=`${PWD_COMMAND}`; export r; \
43374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43375 $(NORMAL_TARGET_EXPORTS) \
22121df0 43376 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43377 for flag in $(EXTRA_TARGET_FLAGS); do \
43378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43379 done; \
43380 (cd $(TARGET_SUBDIR)/libffi && \
43381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43383 "RANLIB=$${RANLIB}" \
0c24b341 43384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43385 installcheck) \
4fa63067
NN
43386 || exit 1
43387
6bd3dfaa 43388@endif target-libffi
4fa63067
NN
43389
43390.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
43391maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
43392@if target-libffi
43393maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
43394
43395mostlyclean-target-libffi:
0aed8855 43396 @: $(MAKE); $(unstage)
22121df0 43397 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43398 r=`${PWD_COMMAND}`; export r; \
43399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43400 $(NORMAL_TARGET_EXPORTS) \
22121df0 43401 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43402 for flag in $(EXTRA_TARGET_FLAGS); do \
43403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43404 done; \
43405 (cd $(TARGET_SUBDIR)/libffi && \
43406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43408 "RANLIB=$${RANLIB}" \
0c24b341 43409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43410 mostlyclean) \
4fa63067
NN
43411 || exit 1
43412
6bd3dfaa 43413@endif target-libffi
4fa63067
NN
43414
43415.PHONY: maybe-clean-target-libffi clean-target-libffi
43416maybe-clean-target-libffi:
6bd3dfaa
PB
43417@if target-libffi
43418maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
43419
43420clean-target-libffi:
0aed8855 43421 @: $(MAKE); $(unstage)
22121df0 43422 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43423 r=`${PWD_COMMAND}`; export r; \
43424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43425 $(NORMAL_TARGET_EXPORTS) \
22121df0 43426 echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43427 for flag in $(EXTRA_TARGET_FLAGS); do \
43428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43429 done; \
43430 (cd $(TARGET_SUBDIR)/libffi && \
43431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43433 "RANLIB=$${RANLIB}" \
0c24b341 43434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43435 clean) \
4fa63067
NN
43436 || exit 1
43437
6bd3dfaa 43438@endif target-libffi
4fa63067
NN
43439
43440.PHONY: maybe-distclean-target-libffi distclean-target-libffi
43441maybe-distclean-target-libffi:
6bd3dfaa
PB
43442@if target-libffi
43443maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
43444
43445distclean-target-libffi:
0aed8855 43446 @: $(MAKE); $(unstage)
22121df0 43447 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43448 r=`${PWD_COMMAND}`; export r; \
43449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43450 $(NORMAL_TARGET_EXPORTS) \
22121df0 43451 echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43452 for flag in $(EXTRA_TARGET_FLAGS); do \
43453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43454 done; \
43455 (cd $(TARGET_SUBDIR)/libffi && \
43456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43458 "RANLIB=$${RANLIB}" \
0c24b341 43459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43460 distclean) \
4fa63067
NN
43461 || exit 1
43462
6bd3dfaa 43463@endif target-libffi
4fa63067
NN
43464
43465.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
43466maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
43467@if target-libffi
43468maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
43469
43470maintainer-clean-target-libffi:
0aed8855 43471 @: $(MAKE); $(unstage)
22121df0 43472 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43473 r=`${PWD_COMMAND}`; export r; \
43474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43475 $(NORMAL_TARGET_EXPORTS) \
22121df0 43476 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43477 for flag in $(EXTRA_TARGET_FLAGS); do \
43478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43479 done; \
43480 (cd $(TARGET_SUBDIR)/libffi && \
43481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43483 "RANLIB=$${RANLIB}" \
0c24b341 43484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43485 maintainer-clean) \
4fa63067
NN
43486 || exit 1
43487
6bd3dfaa 43488@endif target-libffi
4fa63067
NN
43489
43490
15723a45 43491
a7254363 43492
15723a45 43493
a7254363
PB
43494.PHONY: configure-target-libjava maybe-configure-target-libjava
43495maybe-configure-target-libjava:
4f0ef2d8
CD
43496@if gcc-bootstrap
43497configure-target-libjava: stage_current
43498@endif gcc-bootstrap
a7254363
PB
43499@if target-libjava
43500maybe-configure-target-libjava: configure-target-libjava
c52c6897 43501configure-target-libjava:
0aed8855
PB
43502 @: $(MAKE); $(unstage)
43503 @r=`${PWD_COMMAND}`; export r; \
43504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43505 echo "Checking multilib configuration for libjava..."; \
22121df0
L
43506 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava; \
43507 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null; \
0aed8855
PB
43508 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
43509 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
43510 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
43511 else \
43512 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
43513 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
43514 fi; \
43515 else \
43516 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
c52c6897
PB
43517 fi; \
43518 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
22121df0 43519 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava; \
1f53ca9a 43520 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43521 echo Configuring in $(TARGET_SUBDIR)/libjava; \
43522 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
bba45b8b 43523 case $(srcdir) in \
b00612cc
PB
43524 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43525 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
43526 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43527 esac; \
1b6c0831 43528 module_srcdir=libjava; \
bba45b8b 43529 rm -f no-such-file || : ; \
1b6c0831
L
43530 CONFIG_SITE=no-such-file $(SHELL) \
43531 $$s/$$module_srcdir/configure \
43532 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43533 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43534 --target=${target_alias} $(EXTRA_CONFIGARGS_LIBJAVA) \
bba45b8b 43535 || exit 1
6bd3dfaa 43536@endif target-libjava
e393202e 43537
a7254363
PB
43538
43539
d545f33b
PB
43540
43541
4fa63067
NN
43542.PHONY: all-target-libjava maybe-all-target-libjava
43543maybe-all-target-libjava:
4f0ef2d8
CD
43544@if gcc-bootstrap
43545all-target-libjava: stage_current
43546@endif gcc-bootstrap
6bd3dfaa 43547@if target-libjava
72b2455a 43548TARGET-target-libjava=all
6bd3dfaa 43549maybe-all-target-libjava: all-target-libjava
4fa63067 43550all-target-libjava: configure-target-libjava
0aed8855 43551 @: $(MAKE); $(unstage)
b40e3958
L
43552 @r=`${PWD_COMMAND}`; export r; \
43553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43554 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43555 (cd $(TARGET_SUBDIR)/libjava && \
b3676d82 43556 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
7f6ef0c0 43557 $(TARGET-target-libjava))
6bd3dfaa 43558@endif target-libjava
e393202e 43559
a7254363
PB
43560
43561
d545f33b
PB
43562
43563
4fa63067
NN
43564.PHONY: check-target-libjava maybe-check-target-libjava
43565maybe-check-target-libjava:
6bd3dfaa
PB
43566@if target-libjava
43567maybe-check-target-libjava: check-target-libjava
16ae0395 43568
4fa63067 43569check-target-libjava:
0aed8855 43570 @: $(MAKE); $(unstage)
4fa63067
NN
43571 @r=`${PWD_COMMAND}`; export r; \
43572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43573 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43574 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43575 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 43576
6bd3dfaa 43577@endif target-libjava
930314a4 43578
4fa63067
NN
43579.PHONY: install-target-libjava maybe-install-target-libjava
43580maybe-install-target-libjava:
6bd3dfaa
PB
43581@if target-libjava
43582maybe-install-target-libjava: install-target-libjava
16ae0395 43583
4fa63067 43584install-target-libjava: installdirs
0aed8855 43585 @: $(MAKE); $(unstage)
b40e3958
L
43586 @r=`${PWD_COMMAND}`; export r; \
43587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43588 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43589 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43590 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43591
6bd3dfaa 43592@endif target-libjava
e393202e 43593
9b980aa1
RW
43594.PHONY: install-strip-target-libjava maybe-install-strip-target-libjava
43595maybe-install-strip-target-libjava:
43596@if target-libjava
43597maybe-install-strip-target-libjava: install-strip-target-libjava
43598
43599install-strip-target-libjava: installdirs
43600 @: $(MAKE); $(unstage)
43601 @r=`${PWD_COMMAND}`; export r; \
43602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43603 $(RAW_CXX_TARGET_EXPORTS) \
43604 (cd $(TARGET_SUBDIR)/libjava && \
43605 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43606
43607@endif target-libjava
43608
56a8fe78 43609# Other targets (info, dvi, pdf, etc.)
15723a45 43610
4fa63067
NN
43611.PHONY: maybe-info-target-libjava info-target-libjava
43612maybe-info-target-libjava:
6bd3dfaa
PB
43613@if target-libjava
43614maybe-info-target-libjava: info-target-libjava
15723a45 43615
4fa63067
NN
43616info-target-libjava: \
43617 configure-target-libjava
0aed8855 43618 @: $(MAKE); $(unstage)
22121df0 43619 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
b40e3958
L
43620 r=`${PWD_COMMAND}`; export r; \
43621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43622 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43623 echo "Doing info in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43624 for flag in $(EXTRA_TARGET_FLAGS); do \
43625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43626 done; \
43627 (cd $(TARGET_SUBDIR)/libjava && \
43628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43630 "RANLIB=$${RANLIB}" \
0c24b341 43631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43632 info) \
bba45b8b 43633 || exit 1
e393202e 43634
6bd3dfaa 43635@endif target-libjava
4fa63067
NN
43636
43637.PHONY: maybe-dvi-target-libjava dvi-target-libjava
43638maybe-dvi-target-libjava:
6bd3dfaa
PB
43639@if target-libjava
43640maybe-dvi-target-libjava: dvi-target-libjava
4fa63067
NN
43641
43642dvi-target-libjava: \
43643 configure-target-libjava
0aed8855 43644 @: $(MAKE); $(unstage)
22121df0 43645 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43646 r=`${PWD_COMMAND}`; export r; \
b40e3958 43647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43648 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43649 echo "Doing dvi in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43650 for flag in $(EXTRA_TARGET_FLAGS); do \
43651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43652 done; \
43653 (cd $(TARGET_SUBDIR)/libjava && \
43654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43656 "RANLIB=$${RANLIB}" \
0c24b341 43657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43658 dvi) \
4fa63067 43659 || exit 1
e393202e 43660
6bd3dfaa 43661@endif target-libjava
16ae0395 43662
56a8fe78
DD
43663.PHONY: maybe-pdf-target-libjava pdf-target-libjava
43664maybe-pdf-target-libjava:
43665@if target-libjava
43666maybe-pdf-target-libjava: pdf-target-libjava
43667
43668pdf-target-libjava: \
43669 configure-target-libjava
43670 @: $(MAKE); $(unstage)
22121df0 43671 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
56a8fe78
DD
43672 r=`${PWD_COMMAND}`; export r; \
43673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43674 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43675 echo "Doing pdf in $(TARGET_SUBDIR)/libjava"; \
56a8fe78
DD
43676 for flag in $(EXTRA_TARGET_FLAGS); do \
43677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43678 done; \
43679 (cd $(TARGET_SUBDIR)/libjava && \
43680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43682 "RANLIB=$${RANLIB}" \
0c24b341 43683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43684 pdf) \
43685 || exit 1
43686
43687@endif target-libjava
43688
6d389afc
MS
43689.PHONY: maybe-html-target-libjava html-target-libjava
43690maybe-html-target-libjava:
43691@if target-libjava
43692maybe-html-target-libjava: html-target-libjava
43693
43694html-target-libjava: \
43695 configure-target-libjava
0aed8855 43696 @: $(MAKE); $(unstage)
22121df0 43697 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
6d389afc
MS
43698 r=`${PWD_COMMAND}`; export r; \
43699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43700 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43701 echo "Doing html in $(TARGET_SUBDIR)/libjava"; \
6d389afc
MS
43702 for flag in $(EXTRA_TARGET_FLAGS); do \
43703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43704 done; \
43705 (cd $(TARGET_SUBDIR)/libjava && \
43706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43708 "RANLIB=$${RANLIB}" \
0c24b341 43709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43710 html) \
43711 || exit 1
43712
43713@endif target-libjava
43714
4fa63067
NN
43715.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
43716maybe-TAGS-target-libjava:
6bd3dfaa
PB
43717@if target-libjava
43718maybe-TAGS-target-libjava: TAGS-target-libjava
4fa63067
NN
43719
43720TAGS-target-libjava: \
43721 configure-target-libjava
0aed8855 43722 @: $(MAKE); $(unstage)
22121df0 43723 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43724 r=`${PWD_COMMAND}`; export r; \
b40e3958 43725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43726 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43727 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43728 for flag in $(EXTRA_TARGET_FLAGS); do \
43729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43730 done; \
43731 (cd $(TARGET_SUBDIR)/libjava && \
43732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43734 "RANLIB=$${RANLIB}" \
0c24b341 43735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43736 TAGS) \
4fa63067 43737 || exit 1
e393202e 43738
6bd3dfaa 43739@endif target-libjava
930314a4 43740
4fa63067
NN
43741.PHONY: maybe-install-info-target-libjava install-info-target-libjava
43742maybe-install-info-target-libjava:
6bd3dfaa
PB
43743@if target-libjava
43744maybe-install-info-target-libjava: install-info-target-libjava
16ae0395 43745
4fa63067
NN
43746install-info-target-libjava: \
43747 configure-target-libjava \
43748 info-target-libjava
0aed8855 43749 @: $(MAKE); $(unstage)
22121df0 43750 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43751 r=`${PWD_COMMAND}`; export r; \
b40e3958 43752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43753 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43754 echo "Doing install-info in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43755 for flag in $(EXTRA_TARGET_FLAGS); do \
43756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43757 done; \
43758 (cd $(TARGET_SUBDIR)/libjava && \
43759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43761 "RANLIB=$${RANLIB}" \
0c24b341 43762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43763 install-info) \
4fa63067 43764 || exit 1
e393202e 43765
6bd3dfaa 43766@endif target-libjava
e393202e 43767
a3ca38d2
DD
43768.PHONY: maybe-install-pdf-target-libjava install-pdf-target-libjava
43769maybe-install-pdf-target-libjava:
43770@if target-libjava
43771maybe-install-pdf-target-libjava: install-pdf-target-libjava
43772
43773install-pdf-target-libjava: \
43774 configure-target-libjava \
43775 pdf-target-libjava
43776 @: $(MAKE); $(unstage)
22121df0 43777 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
a3ca38d2
DD
43778 r=`${PWD_COMMAND}`; export r; \
43779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43780 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43781 echo "Doing install-pdf in $(TARGET_SUBDIR)/libjava"; \
a3ca38d2
DD
43782 for flag in $(EXTRA_TARGET_FLAGS); do \
43783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43784 done; \
43785 (cd $(TARGET_SUBDIR)/libjava && \
43786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43788 "RANLIB=$${RANLIB}" \
0c24b341 43789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43790 install-pdf) \
43791 || exit 1
43792
43793@endif target-libjava
43794
108a6f8e
CD
43795.PHONY: maybe-install-html-target-libjava install-html-target-libjava
43796maybe-install-html-target-libjava:
43797@if target-libjava
43798maybe-install-html-target-libjava: install-html-target-libjava
43799
43800install-html-target-libjava: \
43801 configure-target-libjava \
43802 html-target-libjava
43803 @: $(MAKE); $(unstage)
22121df0 43804 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
108a6f8e
CD
43805 r=`${PWD_COMMAND}`; export r; \
43806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43807 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43808 echo "Doing install-html in $(TARGET_SUBDIR)/libjava"; \
108a6f8e
CD
43809 for flag in $(EXTRA_TARGET_FLAGS); do \
43810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43811 done; \
43812 (cd $(TARGET_SUBDIR)/libjava && \
43813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43815 "RANLIB=$${RANLIB}" \
0c24b341 43816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43817 install-html) \
43818 || exit 1
43819
43820@endif target-libjava
43821
4fa63067
NN
43822.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
43823maybe-installcheck-target-libjava:
6bd3dfaa
PB
43824@if target-libjava
43825maybe-installcheck-target-libjava: installcheck-target-libjava
15723a45 43826
4fa63067
NN
43827installcheck-target-libjava: \
43828 configure-target-libjava
0aed8855 43829 @: $(MAKE); $(unstage)
22121df0 43830 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067
NN
43831 r=`${PWD_COMMAND}`; export r; \
43832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43833 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43834 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43835 for flag in $(EXTRA_TARGET_FLAGS); do \
43836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43837 done; \
43838 (cd $(TARGET_SUBDIR)/libjava && \
43839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43841 "RANLIB=$${RANLIB}" \
0c24b341 43842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43843 installcheck) \
4fa63067 43844 || exit 1
15723a45 43845
6bd3dfaa 43846@endif target-libjava
4fa63067
NN
43847
43848.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
43849maybe-mostlyclean-target-libjava:
6bd3dfaa
PB
43850@if target-libjava
43851maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
4fa63067
NN
43852
43853mostlyclean-target-libjava:
0aed8855 43854 @: $(MAKE); $(unstage)
22121df0 43855 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067
NN
43856 r=`${PWD_COMMAND}`; export r; \
43857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43858 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43859 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43860 for flag in $(EXTRA_TARGET_FLAGS); do \
43861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43862 done; \
43863 (cd $(TARGET_SUBDIR)/libjava && \
43864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43866 "RANLIB=$${RANLIB}" \
0c24b341 43867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43868 mostlyclean) \
4fa63067
NN
43869 || exit 1
43870
6bd3dfaa 43871@endif target-libjava
4fa63067
NN
43872
43873.PHONY: maybe-clean-target-libjava clean-target-libjava
43874maybe-clean-target-libjava:
6bd3dfaa
PB
43875@if target-libjava
43876maybe-clean-target-libjava: clean-target-libjava
4fa63067
NN
43877
43878clean-target-libjava:
0aed8855 43879 @: $(MAKE); $(unstage)
22121df0 43880 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
b40e3958
L
43881 r=`${PWD_COMMAND}`; export r; \
43882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43883 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43884 echo "Doing clean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43885 for flag in $(EXTRA_TARGET_FLAGS); do \
43886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43887 done; \
43888 (cd $(TARGET_SUBDIR)/libjava && \
43889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43891 "RANLIB=$${RANLIB}" \
0c24b341 43892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43893 clean) \
bba45b8b 43894 || exit 1
e393202e 43895
6bd3dfaa 43896@endif target-libjava
e393202e 43897
4fa63067
NN
43898.PHONY: maybe-distclean-target-libjava distclean-target-libjava
43899maybe-distclean-target-libjava:
6bd3dfaa
PB
43900@if target-libjava
43901maybe-distclean-target-libjava: distclean-target-libjava
16ae0395 43902
4fa63067 43903distclean-target-libjava:
0aed8855 43904 @: $(MAKE); $(unstage)
22121df0 43905 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067
NN
43906 r=`${PWD_COMMAND}`; export r; \
43907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43908 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43909 echo "Doing distclean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43910 for flag in $(EXTRA_TARGET_FLAGS); do \
43911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43912 done; \
43913 (cd $(TARGET_SUBDIR)/libjava && \
43914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43916 "RANLIB=$${RANLIB}" \
0c24b341 43917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43918 distclean) \
4fa63067 43919 || exit 1
3866be5d 43920
6bd3dfaa 43921@endif target-libjava
930314a4 43922
4fa63067
NN
43923.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
43924maybe-maintainer-clean-target-libjava:
6bd3dfaa
PB
43925@if target-libjava
43926maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
16ae0395 43927
4fa63067 43928maintainer-clean-target-libjava:
0aed8855 43929 @: $(MAKE); $(unstage)
22121df0 43930 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43931 r=`${PWD_COMMAND}`; export r; \
b40e3958 43932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43933 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43934 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43935 for flag in $(EXTRA_TARGET_FLAGS); do \
43936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43937 done; \
43938 (cd $(TARGET_SUBDIR)/libjava && \
43939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43941 "RANLIB=$${RANLIB}" \
0c24b341 43942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43943 maintainer-clean) \
4fa63067 43944 || exit 1
e393202e 43945
6bd3dfaa 43946@endif target-libjava
e393202e 43947
4fa63067 43948
15723a45 43949
a7254363 43950
e90269c8 43951
a7254363
PB
43952.PHONY: configure-target-zlib maybe-configure-target-zlib
43953maybe-configure-target-zlib:
4f0ef2d8
CD
43954@if gcc-bootstrap
43955configure-target-zlib: stage_current
43956@endif gcc-bootstrap
a7254363
PB
43957@if target-zlib
43958maybe-configure-target-zlib: configure-target-zlib
c52c6897 43959configure-target-zlib:
0aed8855
PB
43960 @: $(MAKE); $(unstage)
43961 @r=`${PWD_COMMAND}`; export r; \
43962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43963 echo "Checking multilib configuration for zlib..."; \
22121df0
L
43964 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
43965 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \
0aed8855
PB
43966 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
43967 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
43968 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
43969 else \
43970 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
43971 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
43972 fi; \
43973 else \
43974 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
43975 fi; \
43976 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 43977 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
1f53ca9a 43978 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43979 echo Configuring in $(TARGET_SUBDIR)/zlib; \
43980 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 43981 case $(srcdir) in \
b00612cc
PB
43982 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43983 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
43984 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43985 esac; \
1b6c0831 43986 module_srcdir=zlib; \
bba45b8b 43987 rm -f no-such-file || : ; \
1b6c0831
L
43988 CONFIG_SITE=no-such-file $(SHELL) \
43989 $$s/$$module_srcdir/configure \
43990 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43991 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43992 --target=${target_alias} \
bba45b8b 43993 || exit 1
6bd3dfaa 43994@endif target-zlib
e393202e 43995
a7254363
PB
43996
43997
d545f33b
PB
43998
43999
4fa63067
NN
44000.PHONY: all-target-zlib maybe-all-target-zlib
44001maybe-all-target-zlib:
4f0ef2d8
CD
44002@if gcc-bootstrap
44003all-target-zlib: stage_current
44004@endif gcc-bootstrap
6bd3dfaa 44005@if target-zlib
72b2455a 44006TARGET-target-zlib=all
6bd3dfaa 44007maybe-all-target-zlib: all-target-zlib
4fa63067 44008all-target-zlib: configure-target-zlib
0aed8855 44009 @: $(MAKE); $(unstage)
b40e3958
L
44010 @r=`${PWD_COMMAND}`; export r; \
44011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44012 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44013 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 44014 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44015 $(TARGET-target-zlib))
6bd3dfaa 44016@endif target-zlib
e393202e 44017
a7254363
PB
44018
44019
d545f33b
PB
44020
44021
4fa63067
NN
44022.PHONY: check-target-zlib maybe-check-target-zlib
44023maybe-check-target-zlib:
6bd3dfaa
PB
44024@if target-zlib
44025maybe-check-target-zlib: check-target-zlib
16ae0395 44026
4fa63067 44027check-target-zlib:
0aed8855 44028 @: $(MAKE); $(unstage)
b40e3958
L
44029 @r=`${PWD_COMMAND}`; export r; \
44030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44031 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44032 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 44033 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 44034
6bd3dfaa 44035@endif target-zlib
930314a4 44036
4fa63067
NN
44037.PHONY: install-target-zlib maybe-install-target-zlib
44038maybe-install-target-zlib:
6bd3dfaa
PB
44039@if target-zlib
44040maybe-install-target-zlib: install-target-zlib
16ae0395 44041
4fa63067 44042install-target-zlib: installdirs
0aed8855 44043 @: $(MAKE); $(unstage)
b40e3958
L
44044 @r=`${PWD_COMMAND}`; export r; \
44045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44046 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44047 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 44048 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44049
6bd3dfaa 44050@endif target-zlib
e393202e 44051
9b980aa1
RW
44052.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
44053maybe-install-strip-target-zlib:
44054@if target-zlib
44055maybe-install-strip-target-zlib: install-strip-target-zlib
44056
44057install-strip-target-zlib: installdirs
44058 @: $(MAKE); $(unstage)
44059 @r=`${PWD_COMMAND}`; export r; \
44060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44061 $(NORMAL_TARGET_EXPORTS) \
44062 (cd $(TARGET_SUBDIR)/zlib && \
44063 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44064
44065@endif target-zlib
44066
56a8fe78 44067# Other targets (info, dvi, pdf, etc.)
15723a45 44068
4fa63067
NN
44069.PHONY: maybe-info-target-zlib info-target-zlib
44070maybe-info-target-zlib:
6bd3dfaa
PB
44071@if target-zlib
44072maybe-info-target-zlib: info-target-zlib
15723a45 44073
4fa63067
NN
44074info-target-zlib: \
44075 configure-target-zlib
0aed8855 44076 @: $(MAKE); $(unstage)
22121df0 44077 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44078 r=`${PWD_COMMAND}`; export r; \
44079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44080 $(NORMAL_TARGET_EXPORTS) \
22121df0 44081 echo "Doing info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44082 for flag in $(EXTRA_TARGET_FLAGS); do \
44083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44084 done; \
44085 (cd $(TARGET_SUBDIR)/zlib && \
44086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44088 "RANLIB=$${RANLIB}" \
0c24b341 44089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44090 info) \
bba45b8b 44091 || exit 1
e393202e 44092
6bd3dfaa 44093@endif target-zlib
e393202e 44094
4fa63067
NN
44095.PHONY: maybe-dvi-target-zlib dvi-target-zlib
44096maybe-dvi-target-zlib:
6bd3dfaa
PB
44097@if target-zlib
44098maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 44099
4fa63067
NN
44100dvi-target-zlib: \
44101 configure-target-zlib
0aed8855 44102 @: $(MAKE); $(unstage)
22121df0 44103 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44104 r=`${PWD_COMMAND}`; export r; \
b40e3958 44105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44106 $(NORMAL_TARGET_EXPORTS) \
22121df0 44107 echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44108 for flag in $(EXTRA_TARGET_FLAGS); do \
44109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44110 done; \
44111 (cd $(TARGET_SUBDIR)/zlib && \
44112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44114 "RANLIB=$${RANLIB}" \
0c24b341 44115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44116 dvi) \
4fa63067 44117 || exit 1
e393202e 44118
6bd3dfaa 44119@endif target-zlib
930314a4 44120
56a8fe78
DD
44121.PHONY: maybe-pdf-target-zlib pdf-target-zlib
44122maybe-pdf-target-zlib:
44123@if target-zlib
44124maybe-pdf-target-zlib: pdf-target-zlib
44125
44126pdf-target-zlib: \
44127 configure-target-zlib
44128 @: $(MAKE); $(unstage)
22121df0 44129 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
56a8fe78
DD
44130 r=`${PWD_COMMAND}`; export r; \
44131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44132 $(NORMAL_TARGET_EXPORTS) \
22121df0 44133 echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \
56a8fe78
DD
44134 for flag in $(EXTRA_TARGET_FLAGS); do \
44135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44136 done; \
44137 (cd $(TARGET_SUBDIR)/zlib && \
44138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44140 "RANLIB=$${RANLIB}" \
0c24b341 44141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44142 pdf) \
44143 || exit 1
44144
44145@endif target-zlib
44146
6d389afc
MS
44147.PHONY: maybe-html-target-zlib html-target-zlib
44148maybe-html-target-zlib:
44149@if target-zlib
44150maybe-html-target-zlib: html-target-zlib
44151
44152html-target-zlib: \
44153 configure-target-zlib
0aed8855 44154 @: $(MAKE); $(unstage)
22121df0 44155 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
6d389afc
MS
44156 r=`${PWD_COMMAND}`; export r; \
44157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44158 $(NORMAL_TARGET_EXPORTS) \
22121df0 44159 echo "Doing html in $(TARGET_SUBDIR)/zlib"; \
6d389afc
MS
44160 for flag in $(EXTRA_TARGET_FLAGS); do \
44161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44162 done; \
44163 (cd $(TARGET_SUBDIR)/zlib && \
44164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44166 "RANLIB=$${RANLIB}" \
0c24b341 44167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44168 html) \
44169 || exit 1
44170
44171@endif target-zlib
44172
4fa63067
NN
44173.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
44174maybe-TAGS-target-zlib:
6bd3dfaa
PB
44175@if target-zlib
44176maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 44177
4fa63067
NN
44178TAGS-target-zlib: \
44179 configure-target-zlib
0aed8855 44180 @: $(MAKE); $(unstage)
22121df0 44181 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44182 r=`${PWD_COMMAND}`; export r; \
b40e3958 44183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44184 $(NORMAL_TARGET_EXPORTS) \
22121df0 44185 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44186 for flag in $(EXTRA_TARGET_FLAGS); do \
44187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44188 done; \
44189 (cd $(TARGET_SUBDIR)/zlib && \
44190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44192 "RANLIB=$${RANLIB}" \
0c24b341 44193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44194 TAGS) \
4fa63067 44195 || exit 1
e393202e 44196
6bd3dfaa 44197@endif target-zlib
15723a45 44198
4fa63067
NN
44199.PHONY: maybe-install-info-target-zlib install-info-target-zlib
44200maybe-install-info-target-zlib:
6bd3dfaa
PB
44201@if target-zlib
44202maybe-install-info-target-zlib: install-info-target-zlib
15723a45 44203
4fa63067
NN
44204install-info-target-zlib: \
44205 configure-target-zlib \
44206 info-target-zlib
0aed8855 44207 @: $(MAKE); $(unstage)
22121df0 44208 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44209 r=`${PWD_COMMAND}`; export r; \
44210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44211 $(NORMAL_TARGET_EXPORTS) \
22121df0 44212 echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44213 for flag in $(EXTRA_TARGET_FLAGS); do \
44214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44215 done; \
44216 (cd $(TARGET_SUBDIR)/zlib && \
44217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44219 "RANLIB=$${RANLIB}" \
0c24b341 44220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44221 install-info) \
bba45b8b 44222 || exit 1
e393202e 44223
6bd3dfaa 44224@endif target-zlib
16ae0395 44225
a3ca38d2
DD
44226.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
44227maybe-install-pdf-target-zlib:
44228@if target-zlib
44229maybe-install-pdf-target-zlib: install-pdf-target-zlib
44230
44231install-pdf-target-zlib: \
44232 configure-target-zlib \
44233 pdf-target-zlib
44234 @: $(MAKE); $(unstage)
22121df0 44235 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
a3ca38d2
DD
44236 r=`${PWD_COMMAND}`; export r; \
44237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44238 $(NORMAL_TARGET_EXPORTS) \
22121df0 44239 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \
a3ca38d2
DD
44240 for flag in $(EXTRA_TARGET_FLAGS); do \
44241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44242 done; \
44243 (cd $(TARGET_SUBDIR)/zlib && \
44244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44246 "RANLIB=$${RANLIB}" \
0c24b341 44247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44248 install-pdf) \
44249 || exit 1
44250
44251@endif target-zlib
44252
108a6f8e
CD
44253.PHONY: maybe-install-html-target-zlib install-html-target-zlib
44254maybe-install-html-target-zlib:
44255@if target-zlib
44256maybe-install-html-target-zlib: install-html-target-zlib
44257
44258install-html-target-zlib: \
44259 configure-target-zlib \
44260 html-target-zlib
44261 @: $(MAKE); $(unstage)
22121df0 44262 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
108a6f8e
CD
44263 r=`${PWD_COMMAND}`; export r; \
44264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44265 $(NORMAL_TARGET_EXPORTS) \
22121df0 44266 echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \
108a6f8e
CD
44267 for flag in $(EXTRA_TARGET_FLAGS); do \
44268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44269 done; \
44270 (cd $(TARGET_SUBDIR)/zlib && \
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}" \
108a6f8e
CD
44275 install-html) \
44276 || exit 1
44277
44278@endif target-zlib
44279
4fa63067
NN
44280.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
44281maybe-installcheck-target-zlib:
6bd3dfaa
PB
44282@if target-zlib
44283maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 44284
4fa63067
NN
44285installcheck-target-zlib: \
44286 configure-target-zlib
0aed8855 44287 @: $(MAKE); $(unstage)
22121df0 44288 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
44289 r=`${PWD_COMMAND}`; export r; \
44290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44291 $(NORMAL_TARGET_EXPORTS) \
22121df0 44292 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44293 for flag in $(EXTRA_TARGET_FLAGS); do \
44294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44295 done; \
44296 (cd $(TARGET_SUBDIR)/zlib && \
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}" \
7ffa0b57 44301 installcheck) \
4fa63067 44302 || exit 1
e393202e 44303
6bd3dfaa 44304@endif target-zlib
16ae0395 44305
4fa63067
NN
44306.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
44307maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
44308@if target-zlib
44309maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 44310
4fa63067 44311mostlyclean-target-zlib:
0aed8855 44312 @: $(MAKE); $(unstage)
22121df0 44313 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
44314 r=`${PWD_COMMAND}`; export r; \
44315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44316 $(NORMAL_TARGET_EXPORTS) \
22121df0 44317 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44318 for flag in $(EXTRA_TARGET_FLAGS); do \
44319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44320 done; \
44321 (cd $(TARGET_SUBDIR)/zlib && \
44322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44324 "RANLIB=$${RANLIB}" \
0c24b341 44325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44326 mostlyclean) \
4fa63067 44327 || exit 1
e393202e 44328
6bd3dfaa 44329@endif target-zlib
15723a45 44330
4fa63067
NN
44331.PHONY: maybe-clean-target-zlib clean-target-zlib
44332maybe-clean-target-zlib:
6bd3dfaa
PB
44333@if target-zlib
44334maybe-clean-target-zlib: clean-target-zlib
15723a45 44335
4fa63067 44336clean-target-zlib:
0aed8855 44337 @: $(MAKE); $(unstage)
22121df0 44338 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44339 r=`${PWD_COMMAND}`; export r; \
44340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44341 $(NORMAL_TARGET_EXPORTS) \
22121df0 44342 echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44343 for flag in $(EXTRA_TARGET_FLAGS); do \
44344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44345 done; \
44346 (cd $(TARGET_SUBDIR)/zlib && \
44347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44349 "RANLIB=$${RANLIB}" \
0c24b341 44350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44351 clean) \
bba45b8b 44352 || exit 1
e393202e 44353
6bd3dfaa 44354@endif target-zlib
e393202e 44355
4fa63067
NN
44356.PHONY: maybe-distclean-target-zlib distclean-target-zlib
44357maybe-distclean-target-zlib:
6bd3dfaa
PB
44358@if target-zlib
44359maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 44360
4fa63067 44361distclean-target-zlib:
0aed8855 44362 @: $(MAKE); $(unstage)
22121df0 44363 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44364 r=`${PWD_COMMAND}`; export r; \
b40e3958 44365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44366 $(NORMAL_TARGET_EXPORTS) \
22121df0 44367 echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44368 for flag in $(EXTRA_TARGET_FLAGS); do \
44369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44370 done; \
44371 (cd $(TARGET_SUBDIR)/zlib && \
44372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44374 "RANLIB=$${RANLIB}" \
0c24b341 44375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44376 distclean) \
4fa63067 44377 || exit 1
e393202e 44378
6bd3dfaa 44379@endif target-zlib
e393202e 44380
4fa63067
NN
44381.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
44382maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
44383@if target-zlib
44384maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 44385
4fa63067 44386maintainer-clean-target-zlib:
0aed8855 44387 @: $(MAKE); $(unstage)
22121df0 44388 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44389 r=`${PWD_COMMAND}`; export r; \
b40e3958 44390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44391 $(NORMAL_TARGET_EXPORTS) \
22121df0 44392 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44393 for flag in $(EXTRA_TARGET_FLAGS); do \
44394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44395 done; \
44396 (cd $(TARGET_SUBDIR)/zlib && \
44397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44399 "RANLIB=$${RANLIB}" \
0c24b341 44400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44401 maintainer-clean) \
4fa63067 44402 || exit 1
e393202e 44403
6bd3dfaa 44404@endif target-zlib
930314a4 44405
4fa63067 44406
15723a45 44407
a7254363 44408
e90269c8 44409
a7254363
PB
44410.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
44411maybe-configure-target-boehm-gc:
4f0ef2d8
CD
44412@if gcc-bootstrap
44413configure-target-boehm-gc: stage_current
44414@endif gcc-bootstrap
a7254363
PB
44415@if target-boehm-gc
44416maybe-configure-target-boehm-gc: configure-target-boehm-gc
c52c6897 44417configure-target-boehm-gc:
0aed8855
PB
44418 @: $(MAKE); $(unstage)
44419 @r=`${PWD_COMMAND}`; export r; \
44420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44421 echo "Checking multilib configuration for boehm-gc..."; \
22121df0
L
44422 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc; \
44423 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null; \
0aed8855
PB
44424 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44425 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44426 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
44427 else \
44428 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
44429 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
44430 fi; \
44431 else \
44432 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
c52c6897
PB
44433 fi; \
44434 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
22121df0 44435 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc; \
1f53ca9a 44436 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44437 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
44438 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
bba45b8b 44439 case $(srcdir) in \
b00612cc
PB
44440 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44441 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
44442 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44443 esac; \
1b6c0831 44444 module_srcdir=boehm-gc; \
bba45b8b 44445 rm -f no-such-file || : ; \
1b6c0831
L
44446 CONFIG_SITE=no-such-file $(SHELL) \
44447 $$s/$$module_srcdir/configure \
44448 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44449 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44450 --target=${target_alias} \
bba45b8b 44451 || exit 1
6bd3dfaa 44452@endif target-boehm-gc
e393202e 44453
a7254363
PB
44454
44455
d545f33b
PB
44456
44457
4fa63067
NN
44458.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
44459maybe-all-target-boehm-gc:
4f0ef2d8
CD
44460@if gcc-bootstrap
44461all-target-boehm-gc: stage_current
44462@endif gcc-bootstrap
6bd3dfaa 44463@if target-boehm-gc
72b2455a 44464TARGET-target-boehm-gc=all
6bd3dfaa 44465maybe-all-target-boehm-gc: all-target-boehm-gc
4fa63067 44466all-target-boehm-gc: configure-target-boehm-gc
0aed8855 44467 @: $(MAKE); $(unstage)
b40e3958
L
44468 @r=`${PWD_COMMAND}`; export r; \
44469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44470 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44471 (cd $(TARGET_SUBDIR)/boehm-gc && \
b3676d82 44472 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44473 $(TARGET-target-boehm-gc))
6bd3dfaa 44474@endif target-boehm-gc
e393202e 44475
a7254363
PB
44476
44477
d545f33b
PB
44478
44479
4fa63067
NN
44480.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
44481maybe-check-target-boehm-gc:
6bd3dfaa
PB
44482@if target-boehm-gc
44483maybe-check-target-boehm-gc: check-target-boehm-gc
16ae0395 44484
4fa63067 44485check-target-boehm-gc:
0aed8855 44486 @: $(MAKE); $(unstage)
b40e3958
L
44487 @r=`${PWD_COMMAND}`; export r; \
44488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44489 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44490 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44491 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 44492
6bd3dfaa 44493@endif target-boehm-gc
930314a4 44494
4fa63067
NN
44495.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
44496maybe-install-target-boehm-gc:
6bd3dfaa
PB
44497@if target-boehm-gc
44498maybe-install-target-boehm-gc: install-target-boehm-gc
16ae0395 44499
4fa63067 44500install-target-boehm-gc: installdirs
0aed8855 44501 @: $(MAKE); $(unstage)
b40e3958
L
44502 @r=`${PWD_COMMAND}`; export r; \
44503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44504 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44505 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44506 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44507
6bd3dfaa 44508@endif target-boehm-gc
e393202e 44509
9b980aa1
RW
44510.PHONY: install-strip-target-boehm-gc maybe-install-strip-target-boehm-gc
44511maybe-install-strip-target-boehm-gc:
44512@if target-boehm-gc
44513maybe-install-strip-target-boehm-gc: install-strip-target-boehm-gc
44514
44515install-strip-target-boehm-gc: installdirs
44516 @: $(MAKE); $(unstage)
44517 @r=`${PWD_COMMAND}`; export r; \
44518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44519 $(NORMAL_TARGET_EXPORTS) \
44520 (cd $(TARGET_SUBDIR)/boehm-gc && \
44521 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44522
44523@endif target-boehm-gc
44524
56a8fe78 44525# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
44526
44527.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
44528maybe-info-target-boehm-gc:
6bd3dfaa
PB
44529@if target-boehm-gc
44530maybe-info-target-boehm-gc: info-target-boehm-gc
4fa63067
NN
44531
44532info-target-boehm-gc: \
44533 configure-target-boehm-gc
0aed8855 44534 @: $(MAKE); $(unstage)
22121df0 44535 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44536 r=`${PWD_COMMAND}`; export r; \
44537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44538 $(NORMAL_TARGET_EXPORTS) \
22121df0 44539 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44540 for flag in $(EXTRA_TARGET_FLAGS); do \
44541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44542 done; \
44543 (cd $(TARGET_SUBDIR)/boehm-gc && \
44544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44546 "RANLIB=$${RANLIB}" \
0c24b341 44547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44548 info) \
4fa63067
NN
44549 || exit 1
44550
6bd3dfaa 44551@endif target-boehm-gc
4fa63067
NN
44552
44553.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
44554maybe-dvi-target-boehm-gc:
6bd3dfaa
PB
44555@if target-boehm-gc
44556maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
4fa63067
NN
44557
44558dvi-target-boehm-gc: \
44559 configure-target-boehm-gc
0aed8855 44560 @: $(MAKE); $(unstage)
22121df0 44561 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44562 r=`${PWD_COMMAND}`; export r; \
44563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44564 $(NORMAL_TARGET_EXPORTS) \
22121df0 44565 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44566 for flag in $(EXTRA_TARGET_FLAGS); do \
44567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44568 done; \
44569 (cd $(TARGET_SUBDIR)/boehm-gc && \
44570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44572 "RANLIB=$${RANLIB}" \
0c24b341 44573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44574 dvi) \
4fa63067
NN
44575 || exit 1
44576
6bd3dfaa 44577@endif target-boehm-gc
4fa63067 44578
56a8fe78
DD
44579.PHONY: maybe-pdf-target-boehm-gc pdf-target-boehm-gc
44580maybe-pdf-target-boehm-gc:
44581@if target-boehm-gc
44582maybe-pdf-target-boehm-gc: pdf-target-boehm-gc
44583
44584pdf-target-boehm-gc: \
44585 configure-target-boehm-gc
44586 @: $(MAKE); $(unstage)
22121df0 44587 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
56a8fe78
DD
44588 r=`${PWD_COMMAND}`; export r; \
44589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44590 $(NORMAL_TARGET_EXPORTS) \
22121df0 44591 echo "Doing pdf in $(TARGET_SUBDIR)/boehm-gc"; \
56a8fe78
DD
44592 for flag in $(EXTRA_TARGET_FLAGS); do \
44593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44594 done; \
44595 (cd $(TARGET_SUBDIR)/boehm-gc && \
44596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44598 "RANLIB=$${RANLIB}" \
0c24b341 44599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44600 pdf) \
44601 || exit 1
44602
44603@endif target-boehm-gc
44604
6d389afc
MS
44605.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
44606maybe-html-target-boehm-gc:
44607@if target-boehm-gc
44608maybe-html-target-boehm-gc: html-target-boehm-gc
44609
44610html-target-boehm-gc: \
44611 configure-target-boehm-gc
0aed8855 44612 @: $(MAKE); $(unstage)
22121df0 44613 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
6d389afc
MS
44614 r=`${PWD_COMMAND}`; export r; \
44615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44616 $(NORMAL_TARGET_EXPORTS) \
22121df0 44617 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc"; \
6d389afc
MS
44618 for flag in $(EXTRA_TARGET_FLAGS); do \
44619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44620 done; \
44621 (cd $(TARGET_SUBDIR)/boehm-gc && \
44622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44624 "RANLIB=$${RANLIB}" \
0c24b341 44625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44626 html) \
44627 || exit 1
44628
44629@endif target-boehm-gc
44630
4fa63067
NN
44631.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
44632maybe-TAGS-target-boehm-gc:
6bd3dfaa
PB
44633@if target-boehm-gc
44634maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
4fa63067
NN
44635
44636TAGS-target-boehm-gc: \
44637 configure-target-boehm-gc
0aed8855 44638 @: $(MAKE); $(unstage)
22121df0 44639 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44640 r=`${PWD_COMMAND}`; export r; \
44641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44642 $(NORMAL_TARGET_EXPORTS) \
22121df0 44643 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44644 for flag in $(EXTRA_TARGET_FLAGS); do \
44645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44646 done; \
44647 (cd $(TARGET_SUBDIR)/boehm-gc && \
44648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44650 "RANLIB=$${RANLIB}" \
0c24b341 44651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44652 TAGS) \
4fa63067
NN
44653 || exit 1
44654
6bd3dfaa 44655@endif target-boehm-gc
4fa63067
NN
44656
44657.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
44658maybe-install-info-target-boehm-gc:
6bd3dfaa
PB
44659@if target-boehm-gc
44660maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
4fa63067
NN
44661
44662install-info-target-boehm-gc: \
44663 configure-target-boehm-gc \
44664 info-target-boehm-gc
0aed8855 44665 @: $(MAKE); $(unstage)
22121df0 44666 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44667 r=`${PWD_COMMAND}`; export r; \
44668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44669 $(NORMAL_TARGET_EXPORTS) \
22121df0 44670 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44671 for flag in $(EXTRA_TARGET_FLAGS); do \
44672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44673 done; \
44674 (cd $(TARGET_SUBDIR)/boehm-gc && \
44675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44677 "RANLIB=$${RANLIB}" \
0c24b341 44678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44679 install-info) \
4fa63067
NN
44680 || exit 1
44681
6bd3dfaa 44682@endif target-boehm-gc
4fa63067 44683
a3ca38d2
DD
44684.PHONY: maybe-install-pdf-target-boehm-gc install-pdf-target-boehm-gc
44685maybe-install-pdf-target-boehm-gc:
44686@if target-boehm-gc
44687maybe-install-pdf-target-boehm-gc: install-pdf-target-boehm-gc
44688
44689install-pdf-target-boehm-gc: \
44690 configure-target-boehm-gc \
44691 pdf-target-boehm-gc
44692 @: $(MAKE); $(unstage)
22121df0 44693 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
a3ca38d2
DD
44694 r=`${PWD_COMMAND}`; export r; \
44695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44696 $(NORMAL_TARGET_EXPORTS) \
22121df0 44697 echo "Doing install-pdf in $(TARGET_SUBDIR)/boehm-gc"; \
a3ca38d2
DD
44698 for flag in $(EXTRA_TARGET_FLAGS); do \
44699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44700 done; \
44701 (cd $(TARGET_SUBDIR)/boehm-gc && \
44702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44704 "RANLIB=$${RANLIB}" \
0c24b341 44705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44706 install-pdf) \
44707 || exit 1
44708
44709@endif target-boehm-gc
44710
108a6f8e
CD
44711.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
44712maybe-install-html-target-boehm-gc:
44713@if target-boehm-gc
44714maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
44715
44716install-html-target-boehm-gc: \
44717 configure-target-boehm-gc \
44718 html-target-boehm-gc
44719 @: $(MAKE); $(unstage)
22121df0 44720 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
108a6f8e
CD
44721 r=`${PWD_COMMAND}`; export r; \
44722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44723 $(NORMAL_TARGET_EXPORTS) \
22121df0 44724 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc"; \
108a6f8e
CD
44725 for flag in $(EXTRA_TARGET_FLAGS); do \
44726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44727 done; \
44728 (cd $(TARGET_SUBDIR)/boehm-gc && \
44729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44731 "RANLIB=$${RANLIB}" \
0c24b341 44732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44733 install-html) \
44734 || exit 1
44735
44736@endif target-boehm-gc
44737
4fa63067
NN
44738.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
44739maybe-installcheck-target-boehm-gc:
6bd3dfaa
PB
44740@if target-boehm-gc
44741maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
4fa63067
NN
44742
44743installcheck-target-boehm-gc: \
44744 configure-target-boehm-gc
0aed8855 44745 @: $(MAKE); $(unstage)
22121df0 44746 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44747 r=`${PWD_COMMAND}`; export r; \
44748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44749 $(NORMAL_TARGET_EXPORTS) \
22121df0 44750 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44751 for flag in $(EXTRA_TARGET_FLAGS); do \
44752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44753 done; \
44754 (cd $(TARGET_SUBDIR)/boehm-gc && \
44755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44757 "RANLIB=$${RANLIB}" \
0c24b341 44758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44759 installcheck) \
4fa63067
NN
44760 || exit 1
44761
6bd3dfaa 44762@endif target-boehm-gc
4fa63067
NN
44763
44764.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
44765maybe-mostlyclean-target-boehm-gc:
6bd3dfaa
PB
44766@if target-boehm-gc
44767maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
4fa63067
NN
44768
44769mostlyclean-target-boehm-gc:
0aed8855 44770 @: $(MAKE); $(unstage)
22121df0 44771 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44772 r=`${PWD_COMMAND}`; export r; \
44773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44774 $(NORMAL_TARGET_EXPORTS) \
22121df0 44775 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44776 for flag in $(EXTRA_TARGET_FLAGS); do \
44777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44778 done; \
44779 (cd $(TARGET_SUBDIR)/boehm-gc && \
44780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44782 "RANLIB=$${RANLIB}" \
0c24b341 44783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44784 mostlyclean) \
4fa63067
NN
44785 || exit 1
44786
6bd3dfaa 44787@endif target-boehm-gc
4fa63067
NN
44788
44789.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
44790maybe-clean-target-boehm-gc:
6bd3dfaa
PB
44791@if target-boehm-gc
44792maybe-clean-target-boehm-gc: clean-target-boehm-gc
4fa63067
NN
44793
44794clean-target-boehm-gc:
0aed8855 44795 @: $(MAKE); $(unstage)
22121df0 44796 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44797 r=`${PWD_COMMAND}`; export r; \
44798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44799 $(NORMAL_TARGET_EXPORTS) \
22121df0 44800 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44801 for flag in $(EXTRA_TARGET_FLAGS); do \
44802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44803 done; \
44804 (cd $(TARGET_SUBDIR)/boehm-gc && \
44805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44807 "RANLIB=$${RANLIB}" \
0c24b341 44808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44809 clean) \
4fa63067
NN
44810 || exit 1
44811
6bd3dfaa 44812@endif target-boehm-gc
4fa63067
NN
44813
44814.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
44815maybe-distclean-target-boehm-gc:
6bd3dfaa
PB
44816@if target-boehm-gc
44817maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
4fa63067
NN
44818
44819distclean-target-boehm-gc:
0aed8855 44820 @: $(MAKE); $(unstage)
22121df0 44821 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44822 r=`${PWD_COMMAND}`; export r; \
44823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44824 $(NORMAL_TARGET_EXPORTS) \
22121df0 44825 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44826 for flag in $(EXTRA_TARGET_FLAGS); do \
44827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44828 done; \
44829 (cd $(TARGET_SUBDIR)/boehm-gc && \
44830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44832 "RANLIB=$${RANLIB}" \
0c24b341 44833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44834 distclean) \
4fa63067
NN
44835 || exit 1
44836
6bd3dfaa 44837@endif target-boehm-gc
4fa63067
NN
44838
44839.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
44840maybe-maintainer-clean-target-boehm-gc:
6bd3dfaa
PB
44841@if target-boehm-gc
44842maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
4fa63067
NN
44843
44844maintainer-clean-target-boehm-gc:
0aed8855 44845 @: $(MAKE); $(unstage)
22121df0 44846 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44847 r=`${PWD_COMMAND}`; export r; \
44848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44849 $(NORMAL_TARGET_EXPORTS) \
22121df0 44850 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44851 for flag in $(EXTRA_TARGET_FLAGS); do \
44852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44853 done; \
44854 (cd $(TARGET_SUBDIR)/boehm-gc && \
44855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44857 "RANLIB=$${RANLIB}" \
0c24b341 44858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44859 maintainer-clean) \
4fa63067
NN
44860 || exit 1
44861
6bd3dfaa 44862@endif target-boehm-gc
4fa63067
NN
44863
44864
15723a45 44865
15723a45 44866
a7254363 44867
a7254363
PB
44868.PHONY: configure-target-rda maybe-configure-target-rda
44869maybe-configure-target-rda:
4f0ef2d8
CD
44870@if gcc-bootstrap
44871configure-target-rda: stage_current
44872@endif gcc-bootstrap
a7254363
PB
44873@if target-rda
44874maybe-configure-target-rda: configure-target-rda
c52c6897 44875configure-target-rda:
0aed8855
PB
44876 @: $(MAKE); $(unstage)
44877 @r=`${PWD_COMMAND}`; export r; \
44878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44879 echo "Checking multilib configuration for rda..."; \
22121df0
L
44880 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
44881 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \
0aed8855
PB
44882 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
44883 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
44884 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
44885 else \
44886 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
44887 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
44888 fi; \
44889 else \
44890 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
44891 fi; \
44892 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
22121df0 44893 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
1f53ca9a 44894 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44895 echo Configuring in $(TARGET_SUBDIR)/rda; \
44896 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 44897 case $(srcdir) in \
b00612cc
PB
44898 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44899 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
44900 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44901 esac; \
1b6c0831 44902 module_srcdir=rda; \
bba45b8b 44903 rm -f no-such-file || : ; \
1b6c0831
L
44904 CONFIG_SITE=no-such-file $(SHELL) \
44905 $$s/$$module_srcdir/configure \
44906 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44907 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44908 --target=${target_alias} \
bba45b8b 44909 || exit 1
6bd3dfaa 44910@endif target-rda
49b7683b 44911
a7254363
PB
44912
44913
d545f33b
PB
44914
44915
4fa63067
NN
44916.PHONY: all-target-rda maybe-all-target-rda
44917maybe-all-target-rda:
4f0ef2d8
CD
44918@if gcc-bootstrap
44919all-target-rda: stage_current
44920@endif gcc-bootstrap
6bd3dfaa 44921@if target-rda
72b2455a 44922TARGET-target-rda=all
6bd3dfaa 44923maybe-all-target-rda: all-target-rda
4fa63067 44924all-target-rda: configure-target-rda
0aed8855 44925 @: $(MAKE); $(unstage)
b40e3958
L
44926 @r=`${PWD_COMMAND}`; export r; \
44927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44928 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44929 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 44930 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44931 $(TARGET-target-rda))
6bd3dfaa 44932@endif target-rda
252b5132 44933
a7254363
PB
44934
44935
d545f33b
PB
44936
44937
4fa63067
NN
44938.PHONY: check-target-rda maybe-check-target-rda
44939maybe-check-target-rda:
6bd3dfaa
PB
44940@if target-rda
44941maybe-check-target-rda: check-target-rda
16ae0395 44942
4fa63067 44943check-target-rda:
0aed8855 44944 @: $(MAKE); $(unstage)
b40e3958
L
44945 @r=`${PWD_COMMAND}`; export r; \
44946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44947 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44948 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44949 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 44950
6bd3dfaa 44951@endif target-rda
930314a4 44952
4fa63067
NN
44953.PHONY: install-target-rda maybe-install-target-rda
44954maybe-install-target-rda:
6bd3dfaa
PB
44955@if target-rda
44956maybe-install-target-rda: install-target-rda
16ae0395 44957
4fa63067 44958install-target-rda: installdirs
0aed8855 44959 @: $(MAKE); $(unstage)
b40e3958
L
44960 @r=`${PWD_COMMAND}`; export r; \
44961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44962 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44963 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44964 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44965
6bd3dfaa 44966@endif target-rda
e393202e 44967
9b980aa1
RW
44968.PHONY: install-strip-target-rda maybe-install-strip-target-rda
44969maybe-install-strip-target-rda:
44970@if target-rda
44971maybe-install-strip-target-rda: install-strip-target-rda
44972
44973install-strip-target-rda: installdirs
44974 @: $(MAKE); $(unstage)
44975 @r=`${PWD_COMMAND}`; export r; \
44976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44977 $(NORMAL_TARGET_EXPORTS) \
44978 (cd $(TARGET_SUBDIR)/rda && \
44979 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44980
44981@endif target-rda
44982
56a8fe78 44983# Other targets (info, dvi, pdf, etc.)
15723a45 44984
4fa63067
NN
44985.PHONY: maybe-info-target-rda info-target-rda
44986maybe-info-target-rda:
6bd3dfaa
PB
44987@if target-rda
44988maybe-info-target-rda: info-target-rda
15723a45 44989
4fa63067
NN
44990info-target-rda: \
44991 configure-target-rda
0aed8855 44992 @: $(MAKE); $(unstage)
22121df0 44993 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
44994 r=`${PWD_COMMAND}`; export r; \
44995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44996 $(NORMAL_TARGET_EXPORTS) \
22121df0 44997 echo "Doing info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
44998 for flag in $(EXTRA_TARGET_FLAGS); do \
44999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45000 done; \
45001 (cd $(TARGET_SUBDIR)/rda && \
45002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45004 "RANLIB=$${RANLIB}" \
0c24b341 45005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45006 info) \
bba45b8b 45007 || exit 1
252b5132 45008
6bd3dfaa 45009@endif target-rda
4fa63067
NN
45010
45011.PHONY: maybe-dvi-target-rda dvi-target-rda
45012maybe-dvi-target-rda:
6bd3dfaa
PB
45013@if target-rda
45014maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
45015
45016dvi-target-rda: \
45017 configure-target-rda
0aed8855 45018 @: $(MAKE); $(unstage)
22121df0 45019 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45020 r=`${PWD_COMMAND}`; export r; \
b40e3958 45021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45022 $(NORMAL_TARGET_EXPORTS) \
22121df0 45023 echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45024 for flag in $(EXTRA_TARGET_FLAGS); do \
45025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45026 done; \
45027 (cd $(TARGET_SUBDIR)/rda && \
45028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45030 "RANLIB=$${RANLIB}" \
0c24b341 45031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45032 dvi) \
4fa63067 45033 || exit 1
252b5132 45034
6bd3dfaa 45035@endif target-rda
16ae0395 45036
56a8fe78
DD
45037.PHONY: maybe-pdf-target-rda pdf-target-rda
45038maybe-pdf-target-rda:
45039@if target-rda
45040maybe-pdf-target-rda: pdf-target-rda
45041
45042pdf-target-rda: \
45043 configure-target-rda
45044 @: $(MAKE); $(unstage)
22121df0 45045 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
56a8fe78
DD
45046 r=`${PWD_COMMAND}`; export r; \
45047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45048 $(NORMAL_TARGET_EXPORTS) \
22121df0 45049 echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \
56a8fe78
DD
45050 for flag in $(EXTRA_TARGET_FLAGS); do \
45051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45052 done; \
45053 (cd $(TARGET_SUBDIR)/rda && \
45054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45056 "RANLIB=$${RANLIB}" \
0c24b341 45057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45058 pdf) \
45059 || exit 1
45060
45061@endif target-rda
45062
6d389afc
MS
45063.PHONY: maybe-html-target-rda html-target-rda
45064maybe-html-target-rda:
45065@if target-rda
45066maybe-html-target-rda: html-target-rda
45067
45068html-target-rda: \
45069 configure-target-rda
0aed8855 45070 @: $(MAKE); $(unstage)
22121df0 45071 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
6d389afc
MS
45072 r=`${PWD_COMMAND}`; export r; \
45073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45074 $(NORMAL_TARGET_EXPORTS) \
22121df0 45075 echo "Doing html in $(TARGET_SUBDIR)/rda"; \
6d389afc
MS
45076 for flag in $(EXTRA_TARGET_FLAGS); do \
45077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45078 done; \
45079 (cd $(TARGET_SUBDIR)/rda && \
45080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45082 "RANLIB=$${RANLIB}" \
0c24b341 45083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45084 html) \
45085 || exit 1
45086
45087@endif target-rda
45088
4fa63067
NN
45089.PHONY: maybe-TAGS-target-rda TAGS-target-rda
45090maybe-TAGS-target-rda:
6bd3dfaa
PB
45091@if target-rda
45092maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
45093
45094TAGS-target-rda: \
45095 configure-target-rda
0aed8855 45096 @: $(MAKE); $(unstage)
22121df0 45097 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45098 r=`${PWD_COMMAND}`; export r; \
b40e3958 45099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45100 $(NORMAL_TARGET_EXPORTS) \
22121df0 45101 echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45102 for flag in $(EXTRA_TARGET_FLAGS); do \
45103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45104 done; \
45105 (cd $(TARGET_SUBDIR)/rda && \
45106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45108 "RANLIB=$${RANLIB}" \
0c24b341 45109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45110 TAGS) \
4fa63067 45111 || exit 1
e393202e 45112
6bd3dfaa 45113@endif target-rda
930314a4 45114
4fa63067
NN
45115.PHONY: maybe-install-info-target-rda install-info-target-rda
45116maybe-install-info-target-rda:
6bd3dfaa
PB
45117@if target-rda
45118maybe-install-info-target-rda: install-info-target-rda
16ae0395 45119
4fa63067
NN
45120install-info-target-rda: \
45121 configure-target-rda \
45122 info-target-rda
0aed8855 45123 @: $(MAKE); $(unstage)
22121df0 45124 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45125 r=`${PWD_COMMAND}`; export r; \
b40e3958 45126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45127 $(NORMAL_TARGET_EXPORTS) \
22121df0 45128 echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45129 for flag in $(EXTRA_TARGET_FLAGS); do \
45130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45131 done; \
45132 (cd $(TARGET_SUBDIR)/rda && \
45133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45135 "RANLIB=$${RANLIB}" \
0c24b341 45136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45137 install-info) \
4fa63067 45138 || exit 1
252b5132 45139
6bd3dfaa 45140@endif target-rda
e393202e 45141
a3ca38d2
DD
45142.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
45143maybe-install-pdf-target-rda:
45144@if target-rda
45145maybe-install-pdf-target-rda: install-pdf-target-rda
45146
45147install-pdf-target-rda: \
45148 configure-target-rda \
45149 pdf-target-rda
45150 @: $(MAKE); $(unstage)
22121df0 45151 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
a3ca38d2
DD
45152 r=`${PWD_COMMAND}`; export r; \
45153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45154 $(NORMAL_TARGET_EXPORTS) \
22121df0 45155 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \
a3ca38d2
DD
45156 for flag in $(EXTRA_TARGET_FLAGS); do \
45157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45158 done; \
45159 (cd $(TARGET_SUBDIR)/rda && \
45160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45162 "RANLIB=$${RANLIB}" \
0c24b341 45163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45164 install-pdf) \
45165 || exit 1
45166
45167@endif target-rda
45168
108a6f8e
CD
45169.PHONY: maybe-install-html-target-rda install-html-target-rda
45170maybe-install-html-target-rda:
45171@if target-rda
45172maybe-install-html-target-rda: install-html-target-rda
45173
45174install-html-target-rda: \
45175 configure-target-rda \
45176 html-target-rda
45177 @: $(MAKE); $(unstage)
22121df0 45178 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
108a6f8e
CD
45179 r=`${PWD_COMMAND}`; export r; \
45180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45181 $(NORMAL_TARGET_EXPORTS) \
22121df0 45182 echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \
108a6f8e
CD
45183 for flag in $(EXTRA_TARGET_FLAGS); do \
45184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45185 done; \
45186 (cd $(TARGET_SUBDIR)/rda && \
45187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45189 "RANLIB=$${RANLIB}" \
0c24b341 45190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45191 install-html) \
45192 || exit 1
45193
45194@endif target-rda
45195
4fa63067
NN
45196.PHONY: maybe-installcheck-target-rda installcheck-target-rda
45197maybe-installcheck-target-rda:
6bd3dfaa
PB
45198@if target-rda
45199maybe-installcheck-target-rda: installcheck-target-rda
15723a45 45200
4fa63067
NN
45201installcheck-target-rda: \
45202 configure-target-rda
0aed8855 45203 @: $(MAKE); $(unstage)
22121df0 45204 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067
NN
45205 r=`${PWD_COMMAND}`; export r; \
45206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45207 $(NORMAL_TARGET_EXPORTS) \
22121df0 45208 echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45209 for flag in $(EXTRA_TARGET_FLAGS); do \
45210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45211 done; \
45212 (cd $(TARGET_SUBDIR)/rda && \
45213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45215 "RANLIB=$${RANLIB}" \
0c24b341 45216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45217 installcheck) \
4fa63067 45218 || exit 1
15723a45 45219
6bd3dfaa 45220@endif target-rda
4fa63067
NN
45221
45222.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
45223maybe-mostlyclean-target-rda:
6bd3dfaa
PB
45224@if target-rda
45225maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
45226
45227mostlyclean-target-rda:
0aed8855 45228 @: $(MAKE); $(unstage)
22121df0 45229 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45230 r=`${PWD_COMMAND}`; export r; \
45231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45232 $(NORMAL_TARGET_EXPORTS) \
22121df0 45233 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45234 for flag in $(EXTRA_TARGET_FLAGS); do \
45235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45236 done; \
45237 (cd $(TARGET_SUBDIR)/rda && \
45238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45240 "RANLIB=$${RANLIB}" \
0c24b341 45241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45242 mostlyclean) \
bba45b8b 45243 || exit 1
252b5132 45244
6bd3dfaa 45245@endif target-rda
4fa63067
NN
45246
45247.PHONY: maybe-clean-target-rda clean-target-rda
45248maybe-clean-target-rda:
6bd3dfaa
PB
45249@if target-rda
45250maybe-clean-target-rda: clean-target-rda
4fa63067
NN
45251
45252clean-target-rda:
0aed8855 45253 @: $(MAKE); $(unstage)
22121df0 45254 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45255 r=`${PWD_COMMAND}`; export r; \
b40e3958 45256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45257 $(NORMAL_TARGET_EXPORTS) \
22121df0 45258 echo "Doing clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45259 for flag in $(EXTRA_TARGET_FLAGS); do \
45260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45261 done; \
bba45b8b 45262 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45265 "RANLIB=$${RANLIB}" \
0c24b341 45266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45267 clean) \
4fa63067 45268 || exit 1
252b5132 45269
6bd3dfaa 45270@endif target-rda
16ae0395 45271
4fa63067
NN
45272.PHONY: maybe-distclean-target-rda distclean-target-rda
45273maybe-distclean-target-rda:
6bd3dfaa
PB
45274@if target-rda
45275maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
45276
45277distclean-target-rda:
0aed8855 45278 @: $(MAKE); $(unstage)
22121df0 45279 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45280 r=`${PWD_COMMAND}`; export r; \
b40e3958 45281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45282 $(NORMAL_TARGET_EXPORTS) \
22121df0 45283 echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45284 for flag in $(EXTRA_TARGET_FLAGS); do \
45285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45286 done; \
bba45b8b 45287 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45290 "RANLIB=$${RANLIB}" \
0c24b341 45291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45292 distclean) \
4fa63067 45293 || exit 1
252b5132 45294
6bd3dfaa 45295@endif target-rda
930314a4 45296
4fa63067
NN
45297.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
45298maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
45299@if target-rda
45300maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 45301
4fa63067 45302maintainer-clean-target-rda:
0aed8855 45303 @: $(MAKE); $(unstage)
22121df0 45304 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45305 r=`${PWD_COMMAND}`; export r; \
b40e3958 45306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45307 $(NORMAL_TARGET_EXPORTS) \
22121df0 45308 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45309 for flag in $(EXTRA_TARGET_FLAGS); do \
45310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45311 done; \
bba45b8b 45312 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45315 "RANLIB=$${RANLIB}" \
0c24b341 45316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45317 maintainer-clean) \
4fa63067
NN
45318 || exit 1
45319
6bd3dfaa 45320@endif target-rda
252b5132 45321
e393202e 45322
a2592b1b 45323
a7254363
PB
45324
45325
45326.PHONY: configure-target-libada maybe-configure-target-libada
45327maybe-configure-target-libada:
4f0ef2d8
CD
45328@if gcc-bootstrap
45329configure-target-libada: stage_current
45330@endif gcc-bootstrap
a7254363
PB
45331@if target-libada
45332maybe-configure-target-libada: configure-target-libada
c52c6897 45333configure-target-libada:
0aed8855
PB
45334 @: $(MAKE); $(unstage)
45335 @r=`${PWD_COMMAND}`; export r; \
45336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45337 echo "Checking multilib configuration for libada..."; \
22121df0
L
45338 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
45339 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \
0aed8855
PB
45340 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
45341 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
45342 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
45343 else \
45344 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
45345 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
45346 fi; \
45347 else \
45348 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
45349 fi; \
45350 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
22121df0 45351 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
1f53ca9a 45352 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
45353 echo Configuring in $(TARGET_SUBDIR)/libada; \
45354 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
45355 case $(srcdir) in \
b00612cc
PB
45356 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45357 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
45358 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 45359 esac; \
1b6c0831 45360 module_srcdir=libada; \
a2592b1b 45361 rm -f no-such-file || : ; \
1b6c0831
L
45362 CONFIG_SITE=no-such-file $(SHELL) \
45363 $$s/$$module_srcdir/configure \
45364 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45365 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45366 --target=${target_alias} \
a2592b1b 45367 || exit 1
6bd3dfaa 45368@endif target-libada
a2592b1b 45369
a7254363
PB
45370
45371
d545f33b
PB
45372
45373
4fa63067
NN
45374.PHONY: all-target-libada maybe-all-target-libada
45375maybe-all-target-libada:
4f0ef2d8
CD
45376@if gcc-bootstrap
45377all-target-libada: stage_current
45378@endif gcc-bootstrap
6bd3dfaa 45379@if target-libada
72b2455a 45380TARGET-target-libada=all
6bd3dfaa 45381maybe-all-target-libada: all-target-libada
4fa63067 45382all-target-libada: configure-target-libada
0aed8855 45383 @: $(MAKE); $(unstage)
4fa63067
NN
45384 @r=`${PWD_COMMAND}`; export r; \
45385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45386 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45387 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 45388 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45389 $(TARGET-target-libada))
6bd3dfaa 45390@endif target-libada
4fa63067 45391
a7254363
PB
45392
45393
d545f33b
PB
45394
45395
4fa63067
NN
45396.PHONY: check-target-libada maybe-check-target-libada
45397maybe-check-target-libada:
6bd3dfaa
PB
45398@if target-libada
45399maybe-check-target-libada: check-target-libada
4fa63067
NN
45400
45401check-target-libada:
0aed8855 45402 @: $(MAKE); $(unstage)
4fa63067
NN
45403 @r=`${PWD_COMMAND}`; export r; \
45404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45405 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45406 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45407 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 45408
6bd3dfaa 45409@endif target-libada
4fa63067
NN
45410
45411.PHONY: install-target-libada maybe-install-target-libada
45412maybe-install-target-libada:
6bd3dfaa
PB
45413@if target-libada
45414maybe-install-target-libada: install-target-libada
4fa63067
NN
45415
45416install-target-libada: installdirs
0aed8855 45417 @: $(MAKE); $(unstage)
4fa63067
NN
45418 @r=`${PWD_COMMAND}`; export r; \
45419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45420 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45421 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45422 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 45423
6bd3dfaa 45424@endif target-libada
4fa63067 45425
9b980aa1
RW
45426.PHONY: install-strip-target-libada maybe-install-strip-target-libada
45427maybe-install-strip-target-libada:
45428@if target-libada
45429maybe-install-strip-target-libada: install-strip-target-libada
45430
45431install-strip-target-libada: installdirs
45432 @: $(MAKE); $(unstage)
45433 @r=`${PWD_COMMAND}`; export r; \
45434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45435 $(NORMAL_TARGET_EXPORTS) \
45436 (cd $(TARGET_SUBDIR)/libada && \
45437 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45438
45439@endif target-libada
45440
56a8fe78 45441# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
45442
45443.PHONY: maybe-info-target-libada info-target-libada
45444maybe-info-target-libada:
6bd3dfaa
PB
45445@if target-libada
45446maybe-info-target-libada: info-target-libada
4fa63067
NN
45447
45448info-target-libada: \
45449 configure-target-libada
0aed8855 45450 @: $(MAKE); $(unstage)
22121df0 45451 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45452 r=`${PWD_COMMAND}`; export r; \
45453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45454 $(NORMAL_TARGET_EXPORTS) \
22121df0 45455 echo "Doing info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45456 for flag in $(EXTRA_TARGET_FLAGS); do \
45457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45458 done; \
45459 (cd $(TARGET_SUBDIR)/libada && \
45460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45462 "RANLIB=$${RANLIB}" \
0c24b341 45463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45464 info) \
4fa63067
NN
45465 || exit 1
45466
6bd3dfaa 45467@endif target-libada
4fa63067
NN
45468
45469.PHONY: maybe-dvi-target-libada dvi-target-libada
45470maybe-dvi-target-libada:
6bd3dfaa
PB
45471@if target-libada
45472maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
45473
45474dvi-target-libada: \
45475 configure-target-libada
0aed8855 45476 @: $(MAKE); $(unstage)
22121df0 45477 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45478 r=`${PWD_COMMAND}`; export r; \
45479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45480 $(NORMAL_TARGET_EXPORTS) \
22121df0 45481 echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45482 for flag in $(EXTRA_TARGET_FLAGS); do \
45483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45484 done; \
45485 (cd $(TARGET_SUBDIR)/libada && \
45486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45488 "RANLIB=$${RANLIB}" \
0c24b341 45489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45490 dvi) \
4fa63067
NN
45491 || exit 1
45492
6bd3dfaa 45493@endif target-libada
4fa63067 45494
56a8fe78
DD
45495.PHONY: maybe-pdf-target-libada pdf-target-libada
45496maybe-pdf-target-libada:
45497@if target-libada
45498maybe-pdf-target-libada: pdf-target-libada
45499
45500pdf-target-libada: \
45501 configure-target-libada
45502 @: $(MAKE); $(unstage)
22121df0 45503 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
56a8fe78
DD
45504 r=`${PWD_COMMAND}`; export r; \
45505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45506 $(NORMAL_TARGET_EXPORTS) \
22121df0 45507 echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \
56a8fe78
DD
45508 for flag in $(EXTRA_TARGET_FLAGS); do \
45509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45510 done; \
45511 (cd $(TARGET_SUBDIR)/libada && \
45512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45514 "RANLIB=$${RANLIB}" \
0c24b341 45515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45516 pdf) \
45517 || exit 1
45518
45519@endif target-libada
45520
6d389afc
MS
45521.PHONY: maybe-html-target-libada html-target-libada
45522maybe-html-target-libada:
45523@if target-libada
45524maybe-html-target-libada: html-target-libada
45525
45526html-target-libada: \
45527 configure-target-libada
0aed8855 45528 @: $(MAKE); $(unstage)
22121df0 45529 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
6d389afc
MS
45530 r=`${PWD_COMMAND}`; export r; \
45531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45532 $(NORMAL_TARGET_EXPORTS) \
22121df0 45533 echo "Doing html in $(TARGET_SUBDIR)/libada"; \
6d389afc
MS
45534 for flag in $(EXTRA_TARGET_FLAGS); do \
45535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45536 done; \
45537 (cd $(TARGET_SUBDIR)/libada && \
45538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45540 "RANLIB=$${RANLIB}" \
0c24b341 45541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45542 html) \
45543 || exit 1
45544
45545@endif target-libada
45546
4fa63067
NN
45547.PHONY: maybe-TAGS-target-libada TAGS-target-libada
45548maybe-TAGS-target-libada:
6bd3dfaa
PB
45549@if target-libada
45550maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
45551
45552TAGS-target-libada: \
45553 configure-target-libada
0aed8855 45554 @: $(MAKE); $(unstage)
22121df0 45555 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45556 r=`${PWD_COMMAND}`; export r; \
45557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45558 $(NORMAL_TARGET_EXPORTS) \
22121df0 45559 echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45560 for flag in $(EXTRA_TARGET_FLAGS); do \
45561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45562 done; \
45563 (cd $(TARGET_SUBDIR)/libada && \
45564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45566 "RANLIB=$${RANLIB}" \
0c24b341 45567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45568 TAGS) \
4fa63067
NN
45569 || exit 1
45570
6bd3dfaa 45571@endif target-libada
4fa63067
NN
45572
45573.PHONY: maybe-install-info-target-libada install-info-target-libada
45574maybe-install-info-target-libada:
6bd3dfaa
PB
45575@if target-libada
45576maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
45577
45578install-info-target-libada: \
45579 configure-target-libada \
45580 info-target-libada
0aed8855 45581 @: $(MAKE); $(unstage)
22121df0 45582 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45583 r=`${PWD_COMMAND}`; export r; \
45584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45585 $(NORMAL_TARGET_EXPORTS) \
22121df0 45586 echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45587 for flag in $(EXTRA_TARGET_FLAGS); do \
45588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45589 done; \
45590 (cd $(TARGET_SUBDIR)/libada && \
45591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45593 "RANLIB=$${RANLIB}" \
0c24b341 45594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45595 install-info) \
4fa63067
NN
45596 || exit 1
45597
6bd3dfaa 45598@endif target-libada
4fa63067 45599
a3ca38d2
DD
45600.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
45601maybe-install-pdf-target-libada:
45602@if target-libada
45603maybe-install-pdf-target-libada: install-pdf-target-libada
45604
45605install-pdf-target-libada: \
45606 configure-target-libada \
45607 pdf-target-libada
45608 @: $(MAKE); $(unstage)
22121df0 45609 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
a3ca38d2
DD
45610 r=`${PWD_COMMAND}`; export r; \
45611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45612 $(NORMAL_TARGET_EXPORTS) \
22121df0 45613 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \
a3ca38d2
DD
45614 for flag in $(EXTRA_TARGET_FLAGS); do \
45615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45616 done; \
45617 (cd $(TARGET_SUBDIR)/libada && \
45618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45620 "RANLIB=$${RANLIB}" \
0c24b341 45621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45622 install-pdf) \
45623 || exit 1
45624
45625@endif target-libada
45626
108a6f8e
CD
45627.PHONY: maybe-install-html-target-libada install-html-target-libada
45628maybe-install-html-target-libada:
45629@if target-libada
45630maybe-install-html-target-libada: install-html-target-libada
45631
45632install-html-target-libada: \
45633 configure-target-libada \
45634 html-target-libada
45635 @: $(MAKE); $(unstage)
22121df0 45636 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
108a6f8e
CD
45637 r=`${PWD_COMMAND}`; export r; \
45638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45639 $(NORMAL_TARGET_EXPORTS) \
22121df0 45640 echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \
108a6f8e
CD
45641 for flag in $(EXTRA_TARGET_FLAGS); do \
45642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45643 done; \
45644 (cd $(TARGET_SUBDIR)/libada && \
45645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45647 "RANLIB=$${RANLIB}" \
0c24b341 45648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45649 install-html) \
45650 || exit 1
45651
45652@endif target-libada
45653
4fa63067
NN
45654.PHONY: maybe-installcheck-target-libada installcheck-target-libada
45655maybe-installcheck-target-libada:
6bd3dfaa
PB
45656@if target-libada
45657maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
45658
45659installcheck-target-libada: \
45660 configure-target-libada
0aed8855 45661 @: $(MAKE); $(unstage)
22121df0 45662 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45663 r=`${PWD_COMMAND}`; export r; \
45664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45665 $(NORMAL_TARGET_EXPORTS) \
22121df0 45666 echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45667 for flag in $(EXTRA_TARGET_FLAGS); do \
45668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45669 done; \
45670 (cd $(TARGET_SUBDIR)/libada && \
45671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45673 "RANLIB=$${RANLIB}" \
0c24b341 45674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45675 installcheck) \
4fa63067
NN
45676 || exit 1
45677
6bd3dfaa 45678@endif target-libada
4fa63067
NN
45679
45680.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
45681maybe-mostlyclean-target-libada:
6bd3dfaa
PB
45682@if target-libada
45683maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
45684
45685mostlyclean-target-libada:
0aed8855 45686 @: $(MAKE); $(unstage)
22121df0 45687 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45688 r=`${PWD_COMMAND}`; export r; \
45689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45690 $(NORMAL_TARGET_EXPORTS) \
22121df0 45691 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45692 for flag in $(EXTRA_TARGET_FLAGS); do \
45693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45694 done; \
45695 (cd $(TARGET_SUBDIR)/libada && \
45696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45698 "RANLIB=$${RANLIB}" \
0c24b341 45699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45700 mostlyclean) \
4fa63067
NN
45701 || exit 1
45702
6bd3dfaa 45703@endif target-libada
4fa63067
NN
45704
45705.PHONY: maybe-clean-target-libada clean-target-libada
45706maybe-clean-target-libada:
6bd3dfaa
PB
45707@if target-libada
45708maybe-clean-target-libada: clean-target-libada
4fa63067
NN
45709
45710clean-target-libada:
0aed8855 45711 @: $(MAKE); $(unstage)
22121df0 45712 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45713 r=`${PWD_COMMAND}`; export r; \
45714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45715 $(NORMAL_TARGET_EXPORTS) \
22121df0 45716 echo "Doing clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45717 for flag in $(EXTRA_TARGET_FLAGS); do \
45718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45719 done; \
45720 (cd $(TARGET_SUBDIR)/libada && \
45721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45723 "RANLIB=$${RANLIB}" \
0c24b341 45724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45725 clean) \
4fa63067
NN
45726 || exit 1
45727
6bd3dfaa 45728@endif target-libada
a2592b1b 45729
4fa63067
NN
45730.PHONY: maybe-distclean-target-libada distclean-target-libada
45731maybe-distclean-target-libada:
6bd3dfaa
PB
45732@if target-libada
45733maybe-distclean-target-libada: distclean-target-libada
a2592b1b 45734
4fa63067 45735distclean-target-libada:
0aed8855 45736 @: $(MAKE); $(unstage)
22121df0 45737 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 45738 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45740 $(NORMAL_TARGET_EXPORTS) \
22121df0 45741 echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45742 for flag in $(EXTRA_TARGET_FLAGS); do \
45743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45744 done; \
a2592b1b 45745 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45748 "RANLIB=$${RANLIB}" \
0c24b341 45749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45750 distclean) \
4fa63067 45751 || exit 1
a2592b1b 45752
6bd3dfaa 45753@endif target-libada
a2592b1b 45754
4fa63067
NN
45755.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
45756maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
45757@if target-libada
45758maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 45759
4fa63067 45760maintainer-clean-target-libada:
0aed8855 45761 @: $(MAKE); $(unstage)
22121df0 45762 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 45763 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45765 $(NORMAL_TARGET_EXPORTS) \
22121df0 45766 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45767 for flag in $(EXTRA_TARGET_FLAGS); do \
45768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45769 done; \
a2592b1b 45770 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45773 "RANLIB=$${RANLIB}" \
0c24b341 45774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45775 maintainer-clean) \
4fa63067
NN
45776 || exit 1
45777
6bd3dfaa 45778@endif target-libada
a2592b1b
DD
45779
45780
e393202e 45781
b3ded179
PB
45782
45783
45784.PHONY: configure-target-libgomp maybe-configure-target-libgomp
45785maybe-configure-target-libgomp:
4f0ef2d8
CD
45786@if gcc-bootstrap
45787configure-target-libgomp: stage_current
45788@endif gcc-bootstrap
b3ded179
PB
45789@if target-libgomp
45790maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 45791configure-target-libgomp:
b3ded179
PB
45792 @r=`${PWD_COMMAND}`; export r; \
45793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45794 echo "Checking multilib configuration for libgomp..."; \
22121df0
L
45795 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
45796 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
b3ded179
PB
45797 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45798 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45799 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45800 else \
45801 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45802 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45803 fi; \
45804 else \
45805 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
45806 fi; \
45807 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
22121df0 45808 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
1f53ca9a 45809 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
45810 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
45811 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
45812 case $(srcdir) in \
45813 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45814 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45815 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45816 esac; \
1b6c0831 45817 module_srcdir=libgomp; \
b3ded179 45818 rm -f no-such-file || : ; \
1b6c0831
L
45819 CONFIG_SITE=no-such-file $(SHELL) \
45820 $$s/$$module_srcdir/configure \
45821 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45822 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45823 --target=${target_alias} \
b3ded179
PB
45824 || exit 1
45825@endif target-libgomp
45826
45827
45828
911e63d0
JR
45829.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
45830maybe-configure-stage1-target-libgomp:
45831@if target-libgomp-bootstrap
45832maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
45833configure-stage1-target-libgomp:
45834 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45835 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45836 @r=`${PWD_COMMAND}`; export r; \
45837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45838 TFLAGS="$(STAGE1_TFLAGS)"; \
45839 echo "Checking multilib configuration for libgomp..."; \
22121df0 45840 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45841 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45842 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45843 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45844 else \
45845 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45846 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45847 fi; \
45848 else \
45849 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45850 fi; \
45851 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45852 $(NORMAL_TARGET_EXPORTS) \
45853 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45854 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45855 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45856 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \
45857 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45858 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45859 case $(srcdir) in \
45860 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45861 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45862 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45863 esac; \
1b6c0831
L
45864 module_srcdir=libgomp; \
45865 $(SHELL) $$s/$$module_srcdir/configure \
45866 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45867 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45868 --target=${target_alias} \
45869 \
911e63d0
JR
45870 $(STAGE1_CONFIGURE_FLAGS)
45871@endif target-libgomp-bootstrap
45872
45873.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
45874maybe-configure-stage2-target-libgomp:
45875@if target-libgomp-bootstrap
45876maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
45877configure-stage2-target-libgomp:
45878 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45879 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45880 @r=`${PWD_COMMAND}`; export r; \
45881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45882 TFLAGS="$(STAGE2_TFLAGS)"; \
45883 echo "Checking multilib configuration for libgomp..."; \
22121df0 45884 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45885 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45886 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45887 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45888 else \
45889 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45890 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45891 fi; \
45892 else \
45893 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45894 fi; \
45895 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45896 $(NORMAL_TARGET_EXPORTS) \
45897 \
45898 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45899 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45900 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45901 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \
45902 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45903 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45904 case $(srcdir) in \
45905 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45906 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45907 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45908 esac; \
1b6c0831
L
45909 module_srcdir=libgomp; \
45910 $(SHELL) $$s/$$module_srcdir/configure \
45911 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45912 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45913 --target=${target_alias} \
22121df0 45914 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45915 $(STAGE2_CONFIGURE_FLAGS)
45916@endif target-libgomp-bootstrap
45917
45918.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
45919maybe-configure-stage3-target-libgomp:
45920@if target-libgomp-bootstrap
45921maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
45922configure-stage3-target-libgomp:
45923 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
45924 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45925 @r=`${PWD_COMMAND}`; export r; \
45926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45927 TFLAGS="$(STAGE3_TFLAGS)"; \
45928 echo "Checking multilib configuration for libgomp..."; \
22121df0 45929 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45930 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45931 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45932 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45933 else \
45934 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45935 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45936 fi; \
45937 else \
45938 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45939 fi; \
45940 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45941 $(NORMAL_TARGET_EXPORTS) \
45942 \
45943 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45944 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45945 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45946 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \
45947 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45948 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45949 case $(srcdir) in \
45950 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45951 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45952 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45953 esac; \
1b6c0831
L
45954 module_srcdir=libgomp; \
45955 $(SHELL) $$s/$$module_srcdir/configure \
45956 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45957 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45958 --target=${target_alias} \
22121df0 45959 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45960 $(STAGE3_CONFIGURE_FLAGS)
45961@endif target-libgomp-bootstrap
45962
45963.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
45964maybe-configure-stage4-target-libgomp:
45965@if target-libgomp-bootstrap
45966maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
45967configure-stage4-target-libgomp:
45968 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45969 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45970 @r=`${PWD_COMMAND}`; export r; \
45971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45972 TFLAGS="$(STAGE4_TFLAGS)"; \
45973 echo "Checking multilib configuration for libgomp..."; \
22121df0 45974 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45975 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45976 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45977 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45978 else \
45979 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45980 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45981 fi; \
45982 else \
45983 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45984 fi; \
45985 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45986 $(NORMAL_TARGET_EXPORTS) \
45987 \
45988 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45989 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45990 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45991 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \
45992 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45993 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45994 case $(srcdir) in \
45995 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45996 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45997 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45998 esac; \
1b6c0831
L
45999 module_srcdir=libgomp; \
46000 $(SHELL) $$s/$$module_srcdir/configure \
46001 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46002 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46003 --target=${target_alias} \
22121df0 46004 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46005 $(STAGE4_CONFIGURE_FLAGS)
46006@endif target-libgomp-bootstrap
46007
46008.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
46009maybe-configure-stageprofile-target-libgomp:
46010@if target-libgomp-bootstrap
46011maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46012configure-stageprofile-target-libgomp:
46013 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46014 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46015 @r=`${PWD_COMMAND}`; export r; \
46016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46017 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46018 echo "Checking multilib configuration for libgomp..."; \
22121df0 46019 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46020 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46021 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46022 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46023 else \
46024 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46025 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46026 fi; \
46027 else \
46028 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46029 fi; \
46030 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46031 $(NORMAL_TARGET_EXPORTS) \
46032 \
46033 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46034 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46035 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46036 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \
46037 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46038 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46039 case $(srcdir) in \
46040 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46041 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46042 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46043 esac; \
1b6c0831
L
46044 module_srcdir=libgomp; \
46045 $(SHELL) $$s/$$module_srcdir/configure \
46046 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46047 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46048 --target=${target_alias} \
22121df0 46049 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46050 $(STAGEprofile_CONFIGURE_FLAGS)
46051@endif target-libgomp-bootstrap
46052
46053.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
46054maybe-configure-stagefeedback-target-libgomp:
46055@if target-libgomp-bootstrap
46056maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46057configure-stagefeedback-target-libgomp:
46058 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46059 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46060 @r=`${PWD_COMMAND}`; export r; \
46061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46062 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46063 echo "Checking multilib configuration for libgomp..."; \
22121df0 46064 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46065 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46066 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46067 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46068 else \
46069 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46070 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46071 fi; \
46072 else \
46073 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46074 fi; \
46075 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46076 $(NORMAL_TARGET_EXPORTS) \
46077 \
46078 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46079 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46080 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46081 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \
46082 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46083 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46084 case $(srcdir) in \
46085 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46086 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46087 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46088 esac; \
1b6c0831
L
46089 module_srcdir=libgomp; \
46090 $(SHELL) $$s/$$module_srcdir/configure \
46091 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46092 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46093 --target=${target_alias} \
22121df0 46094 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46095 $(STAGEfeedback_CONFIGURE_FLAGS)
46096@endif target-libgomp-bootstrap
46097
46098
46099
b3ded179
PB
46100
46101
46102.PHONY: all-target-libgomp maybe-all-target-libgomp
46103maybe-all-target-libgomp:
4f0ef2d8
CD
46104@if gcc-bootstrap
46105all-target-libgomp: stage_current
46106@endif gcc-bootstrap
b3ded179
PB
46107@if target-libgomp
46108TARGET-target-libgomp=all
46109maybe-all-target-libgomp: all-target-libgomp
46110all-target-libgomp: configure-target-libgomp
b3ded179
PB
46111 @r=`${PWD_COMMAND}`; export r; \
46112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46113 $(NORMAL_TARGET_EXPORTS) \
b3ded179 46114 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46115 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46116 $(TARGET-target-libgomp))
b3ded179
PB
46117@endif target-libgomp
46118
46119
46120
911e63d0
JR
46121.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
46122.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
46123maybe-all-stage1-target-libgomp:
46124maybe-clean-stage1-target-libgomp:
46125@if target-libgomp-bootstrap
46126maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
46127all-stage1: all-stage1-target-libgomp
46128TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
46129all-stage1-target-libgomp: configure-stage1-target-libgomp
46130 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
46131 @r=`${PWD_COMMAND}`; export r; \
46132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46133 TFLAGS="$(STAGE1_TFLAGS)"; \
46134 $(NORMAL_TARGET_EXPORTS) \
46135 cd $(TARGET_SUBDIR)/libgomp && \
46136 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46137 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46138 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46139 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46140 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46141 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46142 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
46143 $(EXTRA_TARGET_FLAGS) \
46144 \
911e63d0
JR
46145 TFLAGS="$(STAGE1_TFLAGS)" \
46146 $(TARGET-stage1-target-libgomp)
46147
46148maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
46149clean-stage1: clean-stage1-target-libgomp
46150clean-stage1-target-libgomp:
46151 @if [ $(current_stage) = stage1 ]; then \
46152 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46153 else \
46154 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
46155 $(MAKE) stage1-start; \
46156 fi; \
46157 cd $(TARGET_SUBDIR)/libgomp && \
46158 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 46159 clean
911e63d0
JR
46160@endif target-libgomp-bootstrap
46161
46162
46163.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
46164.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
46165maybe-all-stage2-target-libgomp:
46166maybe-clean-stage2-target-libgomp:
46167@if target-libgomp-bootstrap
46168maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
46169all-stage2: all-stage2-target-libgomp
46170TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
46171all-stage2-target-libgomp: configure-stage2-target-libgomp
46172 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
46173 @r=`${PWD_COMMAND}`; export r; \
46174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46175 TFLAGS="$(STAGE2_TFLAGS)"; \
46176 $(NORMAL_TARGET_EXPORTS) \
46177 \
46178 cd $(TARGET_SUBDIR)/libgomp && \
46179 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46180 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46181 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46182 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46183 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46184 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46185 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46186 $(EXTRA_TARGET_FLAGS) \
46187 TFLAGS="$(STAGE2_TFLAGS)" \
46188 $(TARGET-stage2-target-libgomp)
46189
46190maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
46191clean-stage2: clean-stage2-target-libgomp
46192clean-stage2-target-libgomp:
46193 @if [ $(current_stage) = stage2 ]; then \
46194 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46195 else \
46196 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
46197 $(MAKE) stage2-start; \
46198 fi; \
46199 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46200 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46201@endif target-libgomp-bootstrap
46202
46203
46204.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
46205.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
46206maybe-all-stage3-target-libgomp:
46207maybe-clean-stage3-target-libgomp:
46208@if target-libgomp-bootstrap
46209maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
46210all-stage3: all-stage3-target-libgomp
46211TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
46212all-stage3-target-libgomp: configure-stage3-target-libgomp
46213 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
46214 @r=`${PWD_COMMAND}`; export r; \
46215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46216 TFLAGS="$(STAGE3_TFLAGS)"; \
46217 $(NORMAL_TARGET_EXPORTS) \
46218 \
46219 cd $(TARGET_SUBDIR)/libgomp && \
46220 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46221 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46222 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46223 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46224 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46225 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46226 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46227 $(EXTRA_TARGET_FLAGS) \
46228 TFLAGS="$(STAGE3_TFLAGS)" \
46229 $(TARGET-stage3-target-libgomp)
46230
46231maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
46232clean-stage3: clean-stage3-target-libgomp
46233clean-stage3-target-libgomp:
46234 @if [ $(current_stage) = stage3 ]; then \
46235 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46236 else \
46237 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
46238 $(MAKE) stage3-start; \
46239 fi; \
46240 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46241 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46242@endif target-libgomp-bootstrap
46243
46244
46245.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
46246.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
46247maybe-all-stage4-target-libgomp:
46248maybe-clean-stage4-target-libgomp:
46249@if target-libgomp-bootstrap
46250maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
46251all-stage4: all-stage4-target-libgomp
46252TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
46253all-stage4-target-libgomp: configure-stage4-target-libgomp
46254 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
46255 @r=`${PWD_COMMAND}`; export r; \
46256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46257 TFLAGS="$(STAGE4_TFLAGS)"; \
46258 $(NORMAL_TARGET_EXPORTS) \
46259 \
46260 cd $(TARGET_SUBDIR)/libgomp && \
46261 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46262 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46263 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46264 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46265 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46266 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46267 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46268 $(EXTRA_TARGET_FLAGS) \
46269 TFLAGS="$(STAGE4_TFLAGS)" \
46270 $(TARGET-stage4-target-libgomp)
46271
46272maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
46273clean-stage4: clean-stage4-target-libgomp
46274clean-stage4-target-libgomp:
46275 @if [ $(current_stage) = stage4 ]; then \
46276 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46277 else \
46278 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
46279 $(MAKE) stage4-start; \
46280 fi; \
46281 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46282 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46283@endif target-libgomp-bootstrap
46284
46285
46286.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
46287.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
46288maybe-all-stageprofile-target-libgomp:
46289maybe-clean-stageprofile-target-libgomp:
46290@if target-libgomp-bootstrap
46291maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
46292all-stageprofile: all-stageprofile-target-libgomp
46293TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
46294all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46295 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46296 @r=`${PWD_COMMAND}`; export r; \
46297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46298 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46299 $(NORMAL_TARGET_EXPORTS) \
46300 \
46301 cd $(TARGET_SUBDIR)/libgomp && \
46302 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46303 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46304 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46305 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46306 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46307 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46308 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46309 $(EXTRA_TARGET_FLAGS) \
46310 TFLAGS="$(STAGEprofile_TFLAGS)" \
46311 $(TARGET-stageprofile-target-libgomp)
46312
46313maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
46314clean-stageprofile: clean-stageprofile-target-libgomp
46315clean-stageprofile-target-libgomp:
46316 @if [ $(current_stage) = stageprofile ]; then \
46317 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46318 else \
46319 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
46320 $(MAKE) stageprofile-start; \
46321 fi; \
46322 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46323 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46324@endif target-libgomp-bootstrap
46325
46326
46327.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
46328.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
46329maybe-all-stagefeedback-target-libgomp:
46330maybe-clean-stagefeedback-target-libgomp:
46331@if target-libgomp-bootstrap
46332maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
46333all-stagefeedback: all-stagefeedback-target-libgomp
46334TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
46335all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46336 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46337 @r=`${PWD_COMMAND}`; export r; \
46338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46339 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46340 $(NORMAL_TARGET_EXPORTS) \
46341 \
46342 cd $(TARGET_SUBDIR)/libgomp && \
46343 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46344 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46345 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46346 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46347 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46348 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46349 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46350 $(EXTRA_TARGET_FLAGS) \
46351 TFLAGS="$(STAGEfeedback_TFLAGS)" \
46352 $(TARGET-stagefeedback-target-libgomp)
46353
46354maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
46355clean-stagefeedback: clean-stagefeedback-target-libgomp
46356clean-stagefeedback-target-libgomp:
46357 @if [ $(current_stage) = stagefeedback ]; then \
46358 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46359 else \
46360 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
46361 $(MAKE) stagefeedback-start; \
46362 fi; \
46363 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46364 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46365@endif target-libgomp-bootstrap
46366
46367
46368
46369
b3ded179
PB
46370
46371
46372.PHONY: check-target-libgomp maybe-check-target-libgomp
46373maybe-check-target-libgomp:
46374@if target-libgomp
46375maybe-check-target-libgomp: check-target-libgomp
46376
46377check-target-libgomp:
46378 @: $(MAKE); $(unstage)
46379 @r=`${PWD_COMMAND}`; export r; \
46380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46381 $(NORMAL_TARGET_EXPORTS) \
46382 (cd $(TARGET_SUBDIR)/libgomp && \
46383 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46384
46385@endif target-libgomp
46386
46387.PHONY: install-target-libgomp maybe-install-target-libgomp
46388maybe-install-target-libgomp:
46389@if target-libgomp
46390maybe-install-target-libgomp: install-target-libgomp
46391
46392install-target-libgomp: installdirs
46393 @: $(MAKE); $(unstage)
46394 @r=`${PWD_COMMAND}`; export r; \
46395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46396 $(NORMAL_TARGET_EXPORTS) \
46397 (cd $(TARGET_SUBDIR)/libgomp && \
46398 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46399
46400@endif target-libgomp
46401
9b980aa1
RW
46402.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
46403maybe-install-strip-target-libgomp:
46404@if target-libgomp
46405maybe-install-strip-target-libgomp: install-strip-target-libgomp
46406
46407install-strip-target-libgomp: installdirs
46408 @: $(MAKE); $(unstage)
46409 @r=`${PWD_COMMAND}`; export r; \
46410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46411 $(NORMAL_TARGET_EXPORTS) \
46412 (cd $(TARGET_SUBDIR)/libgomp && \
46413 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46414
46415@endif target-libgomp
46416
56a8fe78 46417# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
46418
46419.PHONY: maybe-info-target-libgomp info-target-libgomp
46420maybe-info-target-libgomp:
46421@if target-libgomp
46422maybe-info-target-libgomp: info-target-libgomp
46423
46424info-target-libgomp: \
46425 configure-target-libgomp
46426 @: $(MAKE); $(unstage)
22121df0 46427 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46428 r=`${PWD_COMMAND}`; export r; \
46429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46430 $(NORMAL_TARGET_EXPORTS) \
22121df0 46431 echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46432 for flag in $(EXTRA_TARGET_FLAGS); do \
46433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46434 done; \
46435 (cd $(TARGET_SUBDIR)/libgomp && \
46436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46438 "RANLIB=$${RANLIB}" \
0c24b341 46439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46440 info) \
46441 || exit 1
46442
46443@endif target-libgomp
46444
46445.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
46446maybe-dvi-target-libgomp:
46447@if target-libgomp
46448maybe-dvi-target-libgomp: dvi-target-libgomp
46449
46450dvi-target-libgomp: \
46451 configure-target-libgomp
46452 @: $(MAKE); $(unstage)
22121df0 46453 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46454 r=`${PWD_COMMAND}`; export r; \
46455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46456 $(NORMAL_TARGET_EXPORTS) \
22121df0 46457 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46458 for flag in $(EXTRA_TARGET_FLAGS); do \
46459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46460 done; \
46461 (cd $(TARGET_SUBDIR)/libgomp && \
46462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46464 "RANLIB=$${RANLIB}" \
0c24b341 46465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46466 dvi) \
46467 || exit 1
46468
46469@endif target-libgomp
46470
56a8fe78
DD
46471.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
46472maybe-pdf-target-libgomp:
46473@if target-libgomp
46474maybe-pdf-target-libgomp: pdf-target-libgomp
46475
46476pdf-target-libgomp: \
46477 configure-target-libgomp
46478 @: $(MAKE); $(unstage)
22121df0 46479 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
56a8fe78
DD
46480 r=`${PWD_COMMAND}`; export r; \
46481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46482 $(NORMAL_TARGET_EXPORTS) \
22121df0 46483 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \
56a8fe78
DD
46484 for flag in $(EXTRA_TARGET_FLAGS); do \
46485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46486 done; \
46487 (cd $(TARGET_SUBDIR)/libgomp && \
46488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46490 "RANLIB=$${RANLIB}" \
0c24b341 46491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46492 pdf) \
46493 || exit 1
46494
46495@endif target-libgomp
46496
b3ded179
PB
46497.PHONY: maybe-html-target-libgomp html-target-libgomp
46498maybe-html-target-libgomp:
46499@if target-libgomp
46500maybe-html-target-libgomp: html-target-libgomp
46501
46502html-target-libgomp: \
46503 configure-target-libgomp
46504 @: $(MAKE); $(unstage)
22121df0 46505 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46506 r=`${PWD_COMMAND}`; export r; \
46507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46508 $(NORMAL_TARGET_EXPORTS) \
22121df0 46509 echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46510 for flag in $(EXTRA_TARGET_FLAGS); do \
46511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46512 done; \
46513 (cd $(TARGET_SUBDIR)/libgomp && \
46514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46516 "RANLIB=$${RANLIB}" \
0c24b341 46517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46518 html) \
46519 || exit 1
46520
46521@endif target-libgomp
46522
46523.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
46524maybe-TAGS-target-libgomp:
46525@if target-libgomp
46526maybe-TAGS-target-libgomp: TAGS-target-libgomp
46527
46528TAGS-target-libgomp: \
46529 configure-target-libgomp
46530 @: $(MAKE); $(unstage)
22121df0 46531 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46532 r=`${PWD_COMMAND}`; export r; \
46533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46534 $(NORMAL_TARGET_EXPORTS) \
22121df0 46535 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46536 for flag in $(EXTRA_TARGET_FLAGS); do \
46537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46538 done; \
46539 (cd $(TARGET_SUBDIR)/libgomp && \
46540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46542 "RANLIB=$${RANLIB}" \
0c24b341 46543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46544 TAGS) \
46545 || exit 1
46546
46547@endif target-libgomp
46548
46549.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
46550maybe-install-info-target-libgomp:
46551@if target-libgomp
46552maybe-install-info-target-libgomp: install-info-target-libgomp
46553
46554install-info-target-libgomp: \
46555 configure-target-libgomp \
46556 info-target-libgomp
46557 @: $(MAKE); $(unstage)
22121df0 46558 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46559 r=`${PWD_COMMAND}`; export r; \
46560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46561 $(NORMAL_TARGET_EXPORTS) \
22121df0 46562 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46563 for flag in $(EXTRA_TARGET_FLAGS); do \
46564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46565 done; \
46566 (cd $(TARGET_SUBDIR)/libgomp && \
46567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46569 "RANLIB=$${RANLIB}" \
0c24b341 46570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46571 install-info) \
46572 || exit 1
46573
46574@endif target-libgomp
46575
a3ca38d2
DD
46576.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
46577maybe-install-pdf-target-libgomp:
46578@if target-libgomp
46579maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
46580
46581install-pdf-target-libgomp: \
46582 configure-target-libgomp \
46583 pdf-target-libgomp
46584 @: $(MAKE); $(unstage)
22121df0 46585 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
a3ca38d2
DD
46586 r=`${PWD_COMMAND}`; export r; \
46587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46588 $(NORMAL_TARGET_EXPORTS) \
22121df0 46589 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \
a3ca38d2
DD
46590 for flag in $(EXTRA_TARGET_FLAGS); do \
46591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46592 done; \
46593 (cd $(TARGET_SUBDIR)/libgomp && \
46594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46596 "RANLIB=$${RANLIB}" \
0c24b341 46597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46598 install-pdf) \
46599 || exit 1
46600
46601@endif target-libgomp
46602
108a6f8e
CD
46603.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
46604maybe-install-html-target-libgomp:
46605@if target-libgomp
46606maybe-install-html-target-libgomp: install-html-target-libgomp
46607
46608install-html-target-libgomp: \
46609 configure-target-libgomp \
46610 html-target-libgomp
46611 @: $(MAKE); $(unstage)
22121df0 46612 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
108a6f8e
CD
46613 r=`${PWD_COMMAND}`; export r; \
46614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46615 $(NORMAL_TARGET_EXPORTS) \
22121df0 46616 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \
108a6f8e
CD
46617 for flag in $(EXTRA_TARGET_FLAGS); do \
46618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46619 done; \
46620 (cd $(TARGET_SUBDIR)/libgomp && \
46621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46623 "RANLIB=$${RANLIB}" \
0c24b341 46624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46625 install-html) \
46626 || exit 1
46627
46628@endif target-libgomp
46629
b3ded179
PB
46630.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
46631maybe-installcheck-target-libgomp:
46632@if target-libgomp
46633maybe-installcheck-target-libgomp: installcheck-target-libgomp
46634
46635installcheck-target-libgomp: \
46636 configure-target-libgomp
46637 @: $(MAKE); $(unstage)
22121df0 46638 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46639 r=`${PWD_COMMAND}`; export r; \
46640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46641 $(NORMAL_TARGET_EXPORTS) \
22121df0 46642 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46643 for flag in $(EXTRA_TARGET_FLAGS); do \
46644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46645 done; \
46646 (cd $(TARGET_SUBDIR)/libgomp && \
46647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46649 "RANLIB=$${RANLIB}" \
0c24b341 46650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46651 installcheck) \
46652 || exit 1
46653
46654@endif target-libgomp
46655
46656.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
46657maybe-mostlyclean-target-libgomp:
46658@if target-libgomp
46659maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
46660
46661mostlyclean-target-libgomp:
46662 @: $(MAKE); $(unstage)
22121df0 46663 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46664 r=`${PWD_COMMAND}`; export r; \
46665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46666 $(NORMAL_TARGET_EXPORTS) \
22121df0 46667 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46668 for flag in $(EXTRA_TARGET_FLAGS); do \
46669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46670 done; \
46671 (cd $(TARGET_SUBDIR)/libgomp && \
46672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46674 "RANLIB=$${RANLIB}" \
0c24b341 46675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46676 mostlyclean) \
46677 || exit 1
46678
46679@endif target-libgomp
46680
46681.PHONY: maybe-clean-target-libgomp clean-target-libgomp
46682maybe-clean-target-libgomp:
46683@if target-libgomp
46684maybe-clean-target-libgomp: clean-target-libgomp
46685
46686clean-target-libgomp:
46687 @: $(MAKE); $(unstage)
22121df0 46688 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46689 r=`${PWD_COMMAND}`; export r; \
46690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46691 $(NORMAL_TARGET_EXPORTS) \
22121df0 46692 echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46693 for flag in $(EXTRA_TARGET_FLAGS); do \
46694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46695 done; \
46696 (cd $(TARGET_SUBDIR)/libgomp && \
46697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46699 "RANLIB=$${RANLIB}" \
0c24b341 46700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46701 clean) \
46702 || exit 1
46703
46704@endif target-libgomp
46705
46706.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
46707maybe-distclean-target-libgomp:
46708@if target-libgomp
46709maybe-distclean-target-libgomp: distclean-target-libgomp
46710
46711distclean-target-libgomp:
46712 @: $(MAKE); $(unstage)
22121df0 46713 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46714 r=`${PWD_COMMAND}`; export r; \
46715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46716 $(NORMAL_TARGET_EXPORTS) \
22121df0 46717 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46718 for flag in $(EXTRA_TARGET_FLAGS); do \
46719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46720 done; \
46721 (cd $(TARGET_SUBDIR)/libgomp && \
46722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46724 "RANLIB=$${RANLIB}" \
0c24b341 46725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46726 distclean) \
46727 || exit 1
46728
46729@endif target-libgomp
46730
46731.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
46732maybe-maintainer-clean-target-libgomp:
46733@if target-libgomp
46734maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
46735
46736maintainer-clean-target-libgomp:
46737 @: $(MAKE); $(unstage)
22121df0 46738 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46739 r=`${PWD_COMMAND}`; export r; \
46740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46741 $(NORMAL_TARGET_EXPORTS) \
22121df0 46742 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46743 for flag in $(EXTRA_TARGET_FLAGS); do \
46744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46745 done; \
46746 (cd $(TARGET_SUBDIR)/libgomp && \
46747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46749 "RANLIB=$${RANLIB}" \
0c24b341 46750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46751 maintainer-clean) \
46752 || exit 1
46753
46754@endif target-libgomp
46755
46756
46757
7ec59b9e
L
46758
46759
46760.PHONY: configure-target-libitm maybe-configure-target-libitm
46761maybe-configure-target-libitm:
46762@if gcc-bootstrap
46763configure-target-libitm: stage_current
46764@endif gcc-bootstrap
46765@if target-libitm
46766maybe-configure-target-libitm: configure-target-libitm
46767configure-target-libitm:
46768 @: $(MAKE); $(unstage)
46769 @r=`${PWD_COMMAND}`; export r; \
46770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46771 echo "Checking multilib configuration for libitm..."; \
22121df0
L
46772 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
46773 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \
7ec59b9e
L
46774 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
46775 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
46776 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
46777 else \
46778 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
46779 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46780 fi; \
46781 else \
46782 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46783 fi; \
46784 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
22121df0 46785 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
7ec59b9e
L
46786 $(NORMAL_TARGET_EXPORTS) \
46787 echo Configuring in $(TARGET_SUBDIR)/libitm; \
46788 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
46789 case $(srcdir) in \
46790 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46791 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
46792 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46793 esac; \
1b6c0831 46794 module_srcdir=libitm; \
7ec59b9e 46795 rm -f no-such-file || : ; \
1b6c0831
L
46796 CONFIG_SITE=no-such-file $(SHELL) \
46797 $$s/$$module_srcdir/configure \
46798 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 46799 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46800 --target=${target_alias} \
7ec59b9e
L
46801 || exit 1
46802@endif target-libitm
46803
46804
46805
46806
46807
46808.PHONY: all-target-libitm maybe-all-target-libitm
46809maybe-all-target-libitm:
46810@if gcc-bootstrap
46811all-target-libitm: stage_current
46812@endif gcc-bootstrap
46813@if target-libitm
46814TARGET-target-libitm=all
46815maybe-all-target-libitm: all-target-libitm
46816all-target-libitm: configure-target-libitm
46817 @: $(MAKE); $(unstage)
46818 @r=`${PWD_COMMAND}`; export r; \
46819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46820 $(NORMAL_TARGET_EXPORTS) \
46821 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 46822 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
46823 $(TARGET-target-libitm))
46824@endif target-libitm
46825
46826
46827
46828
46829
46830.PHONY: check-target-libitm maybe-check-target-libitm
46831maybe-check-target-libitm:
46832@if target-libitm
46833maybe-check-target-libitm: check-target-libitm
46834
46835check-target-libitm:
46836 @: $(MAKE); $(unstage)
46837 @r=`${PWD_COMMAND}`; export r; \
46838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46839 $(NORMAL_TARGET_EXPORTS) \
46840 (cd $(TARGET_SUBDIR)/libitm && \
46841 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46842
46843@endif target-libitm
46844
46845.PHONY: install-target-libitm maybe-install-target-libitm
46846maybe-install-target-libitm:
46847@if target-libitm
46848maybe-install-target-libitm: install-target-libitm
46849
46850install-target-libitm: installdirs
46851 @: $(MAKE); $(unstage)
46852 @r=`${PWD_COMMAND}`; export r; \
46853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46854 $(NORMAL_TARGET_EXPORTS) \
46855 (cd $(TARGET_SUBDIR)/libitm && \
46856 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46857
46858@endif target-libitm
46859
46860.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
46861maybe-install-strip-target-libitm:
46862@if target-libitm
46863maybe-install-strip-target-libitm: install-strip-target-libitm
46864
46865install-strip-target-libitm: installdirs
46866 @: $(MAKE); $(unstage)
46867 @r=`${PWD_COMMAND}`; export r; \
46868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46869 $(NORMAL_TARGET_EXPORTS) \
46870 (cd $(TARGET_SUBDIR)/libitm && \
46871 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46872
46873@endif target-libitm
46874
46875# Other targets (info, dvi, pdf, etc.)
46876
46877.PHONY: maybe-info-target-libitm info-target-libitm
46878maybe-info-target-libitm:
46879@if target-libitm
46880maybe-info-target-libitm: info-target-libitm
46881
46882info-target-libitm: \
46883 configure-target-libitm
46884 @: $(MAKE); $(unstage)
22121df0 46885 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46886 r=`${PWD_COMMAND}`; export r; \
46887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46888 $(NORMAL_TARGET_EXPORTS) \
22121df0 46889 echo "Doing info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46890 for flag in $(EXTRA_TARGET_FLAGS); do \
46891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46892 done; \
46893 (cd $(TARGET_SUBDIR)/libitm && \
46894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46896 "RANLIB=$${RANLIB}" \
46897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46898 info) \
46899 || exit 1
46900
46901@endif target-libitm
46902
46903.PHONY: maybe-dvi-target-libitm dvi-target-libitm
46904maybe-dvi-target-libitm:
46905@if target-libitm
46906maybe-dvi-target-libitm: dvi-target-libitm
46907
46908dvi-target-libitm: \
46909 configure-target-libitm
46910 @: $(MAKE); $(unstage)
22121df0 46911 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46912 r=`${PWD_COMMAND}`; export r; \
46913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46914 $(NORMAL_TARGET_EXPORTS) \
22121df0 46915 echo "Doing dvi in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46916 for flag in $(EXTRA_TARGET_FLAGS); do \
46917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46918 done; \
46919 (cd $(TARGET_SUBDIR)/libitm && \
46920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46922 "RANLIB=$${RANLIB}" \
46923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46924 dvi) \
46925 || exit 1
46926
46927@endif target-libitm
46928
46929.PHONY: maybe-pdf-target-libitm pdf-target-libitm
46930maybe-pdf-target-libitm:
46931@if target-libitm
46932maybe-pdf-target-libitm: pdf-target-libitm
46933
46934pdf-target-libitm: \
46935 configure-target-libitm
46936 @: $(MAKE); $(unstage)
22121df0 46937 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46938 r=`${PWD_COMMAND}`; export r; \
46939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46940 $(NORMAL_TARGET_EXPORTS) \
22121df0 46941 echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46942 for flag in $(EXTRA_TARGET_FLAGS); do \
46943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46944 done; \
46945 (cd $(TARGET_SUBDIR)/libitm && \
46946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46948 "RANLIB=$${RANLIB}" \
46949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46950 pdf) \
46951 || exit 1
46952
46953@endif target-libitm
46954
46955.PHONY: maybe-html-target-libitm html-target-libitm
46956maybe-html-target-libitm:
46957@if target-libitm
46958maybe-html-target-libitm: html-target-libitm
46959
46960html-target-libitm: \
46961 configure-target-libitm
46962 @: $(MAKE); $(unstage)
22121df0 46963 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46964 r=`${PWD_COMMAND}`; export r; \
46965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46966 $(NORMAL_TARGET_EXPORTS) \
22121df0 46967 echo "Doing html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46968 for flag in $(EXTRA_TARGET_FLAGS); do \
46969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46970 done; \
46971 (cd $(TARGET_SUBDIR)/libitm && \
46972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46974 "RANLIB=$${RANLIB}" \
46975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46976 html) \
46977 || exit 1
46978
46979@endif target-libitm
46980
46981.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
46982maybe-TAGS-target-libitm:
46983@if target-libitm
46984maybe-TAGS-target-libitm: TAGS-target-libitm
46985
46986TAGS-target-libitm: \
46987 configure-target-libitm
46988 @: $(MAKE); $(unstage)
22121df0 46989 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46990 r=`${PWD_COMMAND}`; export r; \
46991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46992 $(NORMAL_TARGET_EXPORTS) \
22121df0 46993 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46994 for flag in $(EXTRA_TARGET_FLAGS); do \
46995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46996 done; \
46997 (cd $(TARGET_SUBDIR)/libitm && \
46998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47000 "RANLIB=$${RANLIB}" \
47001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47002 TAGS) \
47003 || exit 1
47004
47005@endif target-libitm
47006
47007.PHONY: maybe-install-info-target-libitm install-info-target-libitm
47008maybe-install-info-target-libitm:
47009@if target-libitm
47010maybe-install-info-target-libitm: install-info-target-libitm
47011
47012install-info-target-libitm: \
47013 configure-target-libitm \
47014 info-target-libitm
47015 @: $(MAKE); $(unstage)
22121df0 47016 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47017 r=`${PWD_COMMAND}`; export r; \
47018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47019 $(NORMAL_TARGET_EXPORTS) \
22121df0 47020 echo "Doing install-info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47021 for flag in $(EXTRA_TARGET_FLAGS); do \
47022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47023 done; \
47024 (cd $(TARGET_SUBDIR)/libitm && \
47025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47027 "RANLIB=$${RANLIB}" \
47028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47029 install-info) \
47030 || exit 1
47031
47032@endif target-libitm
47033
47034.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
47035maybe-install-pdf-target-libitm:
47036@if target-libitm
47037maybe-install-pdf-target-libitm: install-pdf-target-libitm
47038
47039install-pdf-target-libitm: \
47040 configure-target-libitm \
47041 pdf-target-libitm
47042 @: $(MAKE); $(unstage)
22121df0 47043 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47044 r=`${PWD_COMMAND}`; export r; \
47045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47046 $(NORMAL_TARGET_EXPORTS) \
22121df0 47047 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47048 for flag in $(EXTRA_TARGET_FLAGS); do \
47049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47050 done; \
47051 (cd $(TARGET_SUBDIR)/libitm && \
47052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47054 "RANLIB=$${RANLIB}" \
47055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47056 install-pdf) \
47057 || exit 1
47058
47059@endif target-libitm
47060
47061.PHONY: maybe-install-html-target-libitm install-html-target-libitm
47062maybe-install-html-target-libitm:
47063@if target-libitm
47064maybe-install-html-target-libitm: install-html-target-libitm
47065
47066install-html-target-libitm: \
47067 configure-target-libitm \
47068 html-target-libitm
47069 @: $(MAKE); $(unstage)
22121df0 47070 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47071 r=`${PWD_COMMAND}`; export r; \
47072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47073 $(NORMAL_TARGET_EXPORTS) \
22121df0 47074 echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47075 for flag in $(EXTRA_TARGET_FLAGS); do \
47076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47077 done; \
47078 (cd $(TARGET_SUBDIR)/libitm && \
47079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47081 "RANLIB=$${RANLIB}" \
47082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47083 install-html) \
47084 || exit 1
47085
47086@endif target-libitm
47087
47088.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
47089maybe-installcheck-target-libitm:
47090@if target-libitm
47091maybe-installcheck-target-libitm: installcheck-target-libitm
47092
47093installcheck-target-libitm: \
47094 configure-target-libitm
47095 @: $(MAKE); $(unstage)
22121df0 47096 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47097 r=`${PWD_COMMAND}`; export r; \
47098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47099 $(NORMAL_TARGET_EXPORTS) \
22121df0 47100 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47101 for flag in $(EXTRA_TARGET_FLAGS); do \
47102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47103 done; \
47104 (cd $(TARGET_SUBDIR)/libitm && \
47105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47107 "RANLIB=$${RANLIB}" \
47108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47109 installcheck) \
47110 || exit 1
47111
47112@endif target-libitm
47113
47114.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
47115maybe-mostlyclean-target-libitm:
47116@if target-libitm
47117maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
47118
47119mostlyclean-target-libitm:
47120 @: $(MAKE); $(unstage)
22121df0 47121 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47122 r=`${PWD_COMMAND}`; export r; \
47123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47124 $(NORMAL_TARGET_EXPORTS) \
22121df0 47125 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47126 for flag in $(EXTRA_TARGET_FLAGS); do \
47127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47128 done; \
47129 (cd $(TARGET_SUBDIR)/libitm && \
47130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47132 "RANLIB=$${RANLIB}" \
47133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47134 mostlyclean) \
47135 || exit 1
47136
47137@endif target-libitm
47138
47139.PHONY: maybe-clean-target-libitm clean-target-libitm
47140maybe-clean-target-libitm:
47141@if target-libitm
47142maybe-clean-target-libitm: clean-target-libitm
47143
47144clean-target-libitm:
47145 @: $(MAKE); $(unstage)
22121df0 47146 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47147 r=`${PWD_COMMAND}`; export r; \
47148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47149 $(NORMAL_TARGET_EXPORTS) \
22121df0 47150 echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47151 for flag in $(EXTRA_TARGET_FLAGS); do \
47152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47153 done; \
47154 (cd $(TARGET_SUBDIR)/libitm && \
47155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47157 "RANLIB=$${RANLIB}" \
47158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47159 clean) \
47160 || exit 1
47161
47162@endif target-libitm
47163
47164.PHONY: maybe-distclean-target-libitm distclean-target-libitm
47165maybe-distclean-target-libitm:
47166@if target-libitm
47167maybe-distclean-target-libitm: distclean-target-libitm
47168
47169distclean-target-libitm:
47170 @: $(MAKE); $(unstage)
22121df0 47171 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47172 r=`${PWD_COMMAND}`; export r; \
47173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47174 $(NORMAL_TARGET_EXPORTS) \
22121df0 47175 echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47176 for flag in $(EXTRA_TARGET_FLAGS); do \
47177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47178 done; \
47179 (cd $(TARGET_SUBDIR)/libitm && \
47180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47182 "RANLIB=$${RANLIB}" \
47183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47184 distclean) \
47185 || exit 1
47186
47187@endif target-libitm
47188
47189.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
47190maybe-maintainer-clean-target-libitm:
47191@if target-libitm
47192maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
47193
47194maintainer-clean-target-libitm:
47195 @: $(MAKE); $(unstage)
22121df0 47196 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47197 r=`${PWD_COMMAND}`; export r; \
47198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47199 $(NORMAL_TARGET_EXPORTS) \
22121df0 47200 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47201 for flag in $(EXTRA_TARGET_FLAGS); do \
47202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47203 done; \
47204 (cd $(TARGET_SUBDIR)/libitm && \
47205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47207 "RANLIB=$${RANLIB}" \
47208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47209 maintainer-clean) \
47210 || exit 1
47211
47212@endif target-libitm
47213
47214
47215
47216
47217
47218.PHONY: configure-target-libatomic maybe-configure-target-libatomic
47219maybe-configure-target-libatomic:
47220@if gcc-bootstrap
47221configure-target-libatomic: stage_current
47222@endif gcc-bootstrap
47223@if target-libatomic
47224maybe-configure-target-libatomic: configure-target-libatomic
47225configure-target-libatomic:
47226 @: $(MAKE); $(unstage)
47227 @r=`${PWD_COMMAND}`; export r; \
47228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47229 echo "Checking multilib configuration for libatomic..."; \
22121df0
L
47230 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
47231 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \
7ec59b9e
L
47232 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47233 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47234 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
47235 else \
47236 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
47237 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47238 fi; \
47239 else \
47240 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47241 fi; \
47242 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
22121df0 47243 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
7ec59b9e
L
47244 $(NORMAL_TARGET_EXPORTS) \
47245 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
47246 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
47247 case $(srcdir) in \
47248 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47249 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
47250 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47251 esac; \
1b6c0831 47252 module_srcdir=libatomic; \
7ec59b9e 47253 rm -f no-such-file || : ; \
1b6c0831
L
47254 CONFIG_SITE=no-such-file $(SHELL) \
47255 $$s/$$module_srcdir/configure \
47256 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 47257 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47258 --target=${target_alias} \
7ec59b9e
L
47259 || exit 1
47260@endif target-libatomic
47261
47262
47263
47264
47265
47266.PHONY: all-target-libatomic maybe-all-target-libatomic
47267maybe-all-target-libatomic:
47268@if gcc-bootstrap
47269all-target-libatomic: stage_current
47270@endif gcc-bootstrap
47271@if target-libatomic
47272TARGET-target-libatomic=all
47273maybe-all-target-libatomic: all-target-libatomic
47274all-target-libatomic: configure-target-libatomic
47275 @: $(MAKE); $(unstage)
47276 @r=`${PWD_COMMAND}`; export r; \
47277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47278 $(NORMAL_TARGET_EXPORTS) \
47279 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 47280 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
47281 $(TARGET-target-libatomic))
47282@endif target-libatomic
47283
47284
47285
47286
47287
47288.PHONY: check-target-libatomic maybe-check-target-libatomic
47289maybe-check-target-libatomic:
47290@if target-libatomic
47291maybe-check-target-libatomic: check-target-libatomic
47292
47293check-target-libatomic:
47294 @: $(MAKE); $(unstage)
47295 @r=`${PWD_COMMAND}`; export r; \
47296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47297 $(NORMAL_TARGET_EXPORTS) \
47298 (cd $(TARGET_SUBDIR)/libatomic && \
47299 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47300
47301@endif target-libatomic
47302
47303.PHONY: install-target-libatomic maybe-install-target-libatomic
47304maybe-install-target-libatomic:
47305@if target-libatomic
47306maybe-install-target-libatomic: install-target-libatomic
47307
47308install-target-libatomic: installdirs
47309 @: $(MAKE); $(unstage)
47310 @r=`${PWD_COMMAND}`; export r; \
47311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47312 $(NORMAL_TARGET_EXPORTS) \
47313 (cd $(TARGET_SUBDIR)/libatomic && \
47314 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47315
47316@endif target-libatomic
47317
47318.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
47319maybe-install-strip-target-libatomic:
47320@if target-libatomic
47321maybe-install-strip-target-libatomic: install-strip-target-libatomic
47322
47323install-strip-target-libatomic: installdirs
47324 @: $(MAKE); $(unstage)
47325 @r=`${PWD_COMMAND}`; export r; \
47326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47327 $(NORMAL_TARGET_EXPORTS) \
47328 (cd $(TARGET_SUBDIR)/libatomic && \
47329 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47330
47331@endif target-libatomic
47332
47333# Other targets (info, dvi, pdf, etc.)
47334
47335.PHONY: maybe-info-target-libatomic info-target-libatomic
47336maybe-info-target-libatomic:
47337@if target-libatomic
47338maybe-info-target-libatomic: info-target-libatomic
47339
47340info-target-libatomic: \
47341 configure-target-libatomic
47342 @: $(MAKE); $(unstage)
22121df0 47343 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47344 r=`${PWD_COMMAND}`; export r; \
47345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47346 $(NORMAL_TARGET_EXPORTS) \
22121df0 47347 echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47348 for flag in $(EXTRA_TARGET_FLAGS); do \
47349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47350 done; \
47351 (cd $(TARGET_SUBDIR)/libatomic && \
47352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47354 "RANLIB=$${RANLIB}" \
47355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47356 info) \
47357 || exit 1
47358
47359@endif target-libatomic
47360
47361.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
47362maybe-dvi-target-libatomic:
47363@if target-libatomic
47364maybe-dvi-target-libatomic: dvi-target-libatomic
47365
47366dvi-target-libatomic: \
47367 configure-target-libatomic
47368 @: $(MAKE); $(unstage)
22121df0 47369 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47370 r=`${PWD_COMMAND}`; export r; \
47371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47372 $(NORMAL_TARGET_EXPORTS) \
22121df0 47373 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47374 for flag in $(EXTRA_TARGET_FLAGS); do \
47375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47376 done; \
47377 (cd $(TARGET_SUBDIR)/libatomic && \
47378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47380 "RANLIB=$${RANLIB}" \
47381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47382 dvi) \
47383 || exit 1
47384
47385@endif target-libatomic
47386
47387.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
47388maybe-pdf-target-libatomic:
47389@if target-libatomic
47390maybe-pdf-target-libatomic: pdf-target-libatomic
47391
47392pdf-target-libatomic: \
47393 configure-target-libatomic
47394 @: $(MAKE); $(unstage)
22121df0 47395 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47396 r=`${PWD_COMMAND}`; export r; \
47397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47398 $(NORMAL_TARGET_EXPORTS) \
22121df0 47399 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47400 for flag in $(EXTRA_TARGET_FLAGS); do \
47401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47402 done; \
47403 (cd $(TARGET_SUBDIR)/libatomic && \
47404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47406 "RANLIB=$${RANLIB}" \
47407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47408 pdf) \
47409 || exit 1
47410
47411@endif target-libatomic
47412
47413.PHONY: maybe-html-target-libatomic html-target-libatomic
47414maybe-html-target-libatomic:
47415@if target-libatomic
47416maybe-html-target-libatomic: html-target-libatomic
47417
47418html-target-libatomic: \
47419 configure-target-libatomic
47420 @: $(MAKE); $(unstage)
22121df0 47421 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47422 r=`${PWD_COMMAND}`; export r; \
47423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47424 $(NORMAL_TARGET_EXPORTS) \
22121df0 47425 echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47426 for flag in $(EXTRA_TARGET_FLAGS); do \
47427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47428 done; \
47429 (cd $(TARGET_SUBDIR)/libatomic && \
47430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47432 "RANLIB=$${RANLIB}" \
47433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47434 html) \
47435 || exit 1
47436
47437@endif target-libatomic
47438
47439.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
47440maybe-TAGS-target-libatomic:
47441@if target-libatomic
47442maybe-TAGS-target-libatomic: TAGS-target-libatomic
47443
47444TAGS-target-libatomic: \
47445 configure-target-libatomic
47446 @: $(MAKE); $(unstage)
22121df0 47447 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47448 r=`${PWD_COMMAND}`; export r; \
47449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47450 $(NORMAL_TARGET_EXPORTS) \
22121df0 47451 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47452 for flag in $(EXTRA_TARGET_FLAGS); do \
47453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47454 done; \
47455 (cd $(TARGET_SUBDIR)/libatomic && \
47456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47458 "RANLIB=$${RANLIB}" \
47459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47460 TAGS) \
47461 || exit 1
47462
47463@endif target-libatomic
47464
47465.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
47466maybe-install-info-target-libatomic:
47467@if target-libatomic
47468maybe-install-info-target-libatomic: install-info-target-libatomic
47469
47470install-info-target-libatomic: \
47471 configure-target-libatomic \
47472 info-target-libatomic
47473 @: $(MAKE); $(unstage)
22121df0 47474 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47475 r=`${PWD_COMMAND}`; export r; \
47476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47477 $(NORMAL_TARGET_EXPORTS) \
22121df0 47478 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47479 for flag in $(EXTRA_TARGET_FLAGS); do \
47480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47481 done; \
47482 (cd $(TARGET_SUBDIR)/libatomic && \
47483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47485 "RANLIB=$${RANLIB}" \
47486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47487 install-info) \
47488 || exit 1
47489
47490@endif target-libatomic
47491
47492.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
47493maybe-install-pdf-target-libatomic:
47494@if target-libatomic
47495maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
47496
47497install-pdf-target-libatomic: \
47498 configure-target-libatomic \
47499 pdf-target-libatomic
47500 @: $(MAKE); $(unstage)
22121df0 47501 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47502 r=`${PWD_COMMAND}`; export r; \
47503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47504 $(NORMAL_TARGET_EXPORTS) \
22121df0 47505 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47506 for flag in $(EXTRA_TARGET_FLAGS); do \
47507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47508 done; \
47509 (cd $(TARGET_SUBDIR)/libatomic && \
47510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47512 "RANLIB=$${RANLIB}" \
47513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47514 install-pdf) \
47515 || exit 1
47516
47517@endif target-libatomic
47518
47519.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
47520maybe-install-html-target-libatomic:
47521@if target-libatomic
47522maybe-install-html-target-libatomic: install-html-target-libatomic
47523
47524install-html-target-libatomic: \
47525 configure-target-libatomic \
47526 html-target-libatomic
47527 @: $(MAKE); $(unstage)
22121df0 47528 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47529 r=`${PWD_COMMAND}`; export r; \
47530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47531 $(NORMAL_TARGET_EXPORTS) \
22121df0 47532 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47533 for flag in $(EXTRA_TARGET_FLAGS); do \
47534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47535 done; \
47536 (cd $(TARGET_SUBDIR)/libatomic && \
47537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47539 "RANLIB=$${RANLIB}" \
47540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47541 install-html) \
47542 || exit 1
47543
47544@endif target-libatomic
47545
47546.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
47547maybe-installcheck-target-libatomic:
47548@if target-libatomic
47549maybe-installcheck-target-libatomic: installcheck-target-libatomic
47550
47551installcheck-target-libatomic: \
47552 configure-target-libatomic
47553 @: $(MAKE); $(unstage)
22121df0 47554 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47555 r=`${PWD_COMMAND}`; export r; \
47556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47557 $(NORMAL_TARGET_EXPORTS) \
22121df0 47558 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47559 for flag in $(EXTRA_TARGET_FLAGS); do \
47560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47561 done; \
47562 (cd $(TARGET_SUBDIR)/libatomic && \
47563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47565 "RANLIB=$${RANLIB}" \
47566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47567 installcheck) \
47568 || exit 1
47569
47570@endif target-libatomic
47571
47572.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
47573maybe-mostlyclean-target-libatomic:
47574@if target-libatomic
47575maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
47576
47577mostlyclean-target-libatomic:
47578 @: $(MAKE); $(unstage)
22121df0 47579 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47580 r=`${PWD_COMMAND}`; export r; \
47581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47582 $(NORMAL_TARGET_EXPORTS) \
22121df0 47583 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47584 for flag in $(EXTRA_TARGET_FLAGS); do \
47585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47586 done; \
47587 (cd $(TARGET_SUBDIR)/libatomic && \
47588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47590 "RANLIB=$${RANLIB}" \
47591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47592 mostlyclean) \
47593 || exit 1
47594
47595@endif target-libatomic
47596
47597.PHONY: maybe-clean-target-libatomic clean-target-libatomic
47598maybe-clean-target-libatomic:
47599@if target-libatomic
47600maybe-clean-target-libatomic: clean-target-libatomic
47601
47602clean-target-libatomic:
47603 @: $(MAKE); $(unstage)
22121df0 47604 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47605 r=`${PWD_COMMAND}`; export r; \
47606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47607 $(NORMAL_TARGET_EXPORTS) \
22121df0 47608 echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47609 for flag in $(EXTRA_TARGET_FLAGS); do \
47610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47611 done; \
47612 (cd $(TARGET_SUBDIR)/libatomic && \
47613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47615 "RANLIB=$${RANLIB}" \
47616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47617 clean) \
47618 || exit 1
47619
47620@endif target-libatomic
47621
47622.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
47623maybe-distclean-target-libatomic:
47624@if target-libatomic
47625maybe-distclean-target-libatomic: distclean-target-libatomic
47626
47627distclean-target-libatomic:
47628 @: $(MAKE); $(unstage)
22121df0 47629 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47630 r=`${PWD_COMMAND}`; export r; \
47631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47632 $(NORMAL_TARGET_EXPORTS) \
22121df0 47633 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47634 for flag in $(EXTRA_TARGET_FLAGS); do \
47635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47636 done; \
47637 (cd $(TARGET_SUBDIR)/libatomic && \
47638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47640 "RANLIB=$${RANLIB}" \
47641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47642 distclean) \
47643 || exit 1
47644
47645@endif target-libatomic
47646
47647.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
47648maybe-maintainer-clean-target-libatomic:
47649@if target-libatomic
47650maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
47651
47652maintainer-clean-target-libatomic:
47653 @: $(MAKE); $(unstage)
22121df0 47654 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47655 r=`${PWD_COMMAND}`; export r; \
47656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47657 $(NORMAL_TARGET_EXPORTS) \
22121df0 47658 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47659 for flag in $(EXTRA_TARGET_FLAGS); do \
47660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47661 done; \
47662 (cd $(TARGET_SUBDIR)/libatomic && \
47663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47665 "RANLIB=$${RANLIB}" \
47666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47667 maintainer-clean) \
47668 || exit 1
47669
47670@endif target-libatomic
47671
47672
47673
7ec59b9e
L
47674@if target-libgomp
47675.PHONY: check-target-libgomp-c++
47676check-target-libgomp-c++:
47677 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
47678
47679@endif target-libgomp
47680
47681@if target-libitm
47682.PHONY: check-target-libitm-c++
47683check-target-libitm-c++:
47684 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
47685
47686@endif target-libitm
47687
15723a45
NN
47688# ----------
47689# GCC module
47690# ----------
47691
319cab08 47692@if gcc-no-bootstrap
252b5132 47693.PHONY: cross
72b2455a 47694cross: all-build all-gas all-ld
b40e3958
L
47695 @r=`${PWD_COMMAND}`; export r; \
47696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47697 $(HOST_EXPORTS) \
252b5132 47698 echo "Building the C and C++ compiler"; \
5cec67bf 47699 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958 47700 @r=`${PWD_COMMAND}`; export r; \
22121df0 47701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 47702 echo "Building runtime libraries"; \
656fdd47 47703 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 47704@endif gcc-no-bootstrap
252b5132 47705
6bd3dfaa 47706@if gcc
c50523ce
L
47707
47708.PHONY: check-gcc-c check-c
47709check-gcc-c:
47710 r=`${PWD_COMMAND}`; export r; \
47711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47712 $(HOST_EXPORTS) \
47713 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
47714check-c: check-gcc-c
47715
47716.PHONY: check-gcc-c++ check-c++
7d695d07 47717check-gcc-c++:
c50523ce
L
47718 r=`${PWD_COMMAND}`; export r; \
47719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47720 $(HOST_EXPORTS) \
7ec59b9e 47721 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 47722check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
47723
47724.PHONY: check-gcc-fortran check-fortran
47725check-gcc-fortran:
47726 r=`${PWD_COMMAND}`; export r; \
47727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47728 $(HOST_EXPORTS) \
47729 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e552509b 47730check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran
c50523ce
L
47731
47732.PHONY: check-gcc-java check-java
47733check-gcc-java:
47734 r=`${PWD_COMMAND}`; export r; \
47735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47736 $(HOST_EXPORTS) \
47737 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-java);
47738check-java: check-gcc-java check-target-libjava
47739
47740.PHONY: check-gcc-ada check-ada
47741check-gcc-ada:
47742 r=`${PWD_COMMAND}`; export r; \
47743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47744 $(HOST_EXPORTS) \
47745 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
47746check-ada: check-gcc-ada check-target-libada
47747
47748.PHONY: check-gcc-objc check-objc
47749check-gcc-objc:
47750 r=`${PWD_COMMAND}`; export r; \
47751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47752 $(HOST_EXPORTS) \
47753 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
47754check-objc: check-gcc-objc check-target-libobjc
47755
47756.PHONY: check-gcc-obj-c++ check-obj-c++
47757check-gcc-obj-c++:
47758 r=`${PWD_COMMAND}`; export r; \
47759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47760 $(HOST_EXPORTS) \
47761 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
47762check-obj-c++: check-gcc-obj-c++
7d695d07 47763
e552509b
ILT
47764.PHONY: check-gcc-go check-go
47765check-gcc-go:
47766 r=`${PWD_COMMAND}`; export r; \
47767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47768 $(HOST_EXPORTS) \
47769 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
47770check-go: check-gcc-go check-target-libgo
47771
252b5132 47772
7ec59b9e
L
47773# The gcc part of install-no-fixedincludes, which relies on an intimate
47774# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
47775.PHONY: gcc-install-no-fixedincludes
47776gcc-install-no-fixedincludes:
15723a45 47777 @if [ -f ./gcc/Makefile ]; then \
b40e3958 47778 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 47779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47780 $(HOST_EXPORTS) \
7ec59b9e
L
47781 (cd ./gcc \
47782 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 47783 else true; fi
6bd3dfaa 47784@endif gcc
4fa63067 47785
b813574b
PB
47786# ---------------------
47787# GCC bootstrap support
47788# ---------------------
4fa63067 47789
b813574b
PB
47790# We track the current stage (the one in 'gcc') in the stage_current file.
47791# stage_last instead tracks the stage that was built last. These targets
47792# are dummy when toplevel bootstrap is not active.
4fa63067 47793
f70224b5 47794# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
47795# there, so $(unstage) should be run at various points. To avoid excessive
47796# recursive invocations of make, we "inline" them using a variable. These
47797# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
47798# to avoid warnings from the GNU Make job server.
f70224b5
PB
47799
47800unstage = :
47801stage = :
c52c6897 47802current_stage = ""
f70224b5 47803
b813574b 47804@if gcc-bootstrap
9daf3993 47805unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 47806stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 47807current_stage = "`cat stage_current 2> /dev/null`"
b813574b 47808@endif gcc-bootstrap
4fa63067 47809
f70224b5
PB
47810.PHONY: unstage stage
47811unstage:
0aed8855 47812 @: $(MAKE); $(unstage)
b813574b 47813stage:
0aed8855 47814 @: $(MAKE); $(stage)
1d39f329 47815
80911fe1
PB
47816# Disable commands for lean bootstrap.
47817LEAN = false
47818
dfdffa2c
PB
47819# We name the build directories for the various stages "stage1-gcc",
47820# "stage2-gcc","stage3-gcc", etc.
47821
47822# Since the 'compare' process will fail (on debugging information) if any
47823# directory names are different, we need to link the gcc directory for
0aed8855 47824# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
47825# the build directories constant as well. For the latter, we use naked names
47826# like 'gcc', because the scripts in that directory assume it. We use
47827# mv on platforms where symlinks to directories do not work or are not
47828# reliable.
47829
1d39f329
NN
47830# 'touch' doesn't work right on some platforms.
47831STAMP = echo timestamp >
47832
dfdffa2c
PB
47833# We only want to compare .o files, so set this!
47834objext = .o
47835
dfdffa2c 47836
319cab08 47837.PHONY: stage1-start stage1-end
dfdffa2c 47838
656fdd47 47839stage1-start::
0aed8855 47840 @: $(MAKE); $(stage); \
22121df0 47841 echo stage1 > stage_current; \
b00612cc 47842 echo stage1 > stage_last; \
0aed8855 47843 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 47844@if bfd
b00612cc
PB
47845 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
47846 mkdir stage1-bfd; \
22121df0 47847 mv stage1-bfd bfd
72b2455a
PB
47848@endif bfd
47849@if opcodes
b00612cc
PB
47850 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
47851 mkdir stage1-opcodes; \
22121df0 47852 mv stage1-opcodes opcodes
72b2455a
PB
47853@endif opcodes
47854@if binutils
b00612cc
PB
47855 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
47856 mkdir stage1-binutils; \
22121df0 47857 mv stage1-binutils binutils
72b2455a 47858@endif binutils
201f096f 47859@if fixincludes
47860 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
47861 mkdir stage1-fixincludes; \
22121df0 47862 mv stage1-fixincludes fixincludes
201f096f 47863@endif fixincludes
72b2455a 47864@if gas
b00612cc
PB
47865 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
47866 mkdir stage1-gas; \
22121df0 47867 mv stage1-gas gas
72b2455a
PB
47868@endif gas
47869@if gcc
b00612cc
PB
47870 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
47871 mkdir stage1-gcc; \
22121df0 47872 mv stage1-gcc gcc
72b2455a 47873@endif gcc
4b900473
PB
47874@if gmp
47875 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
47876 mkdir stage1-gmp; \
22121df0 47877 mv stage1-gmp gmp
4b900473
PB
47878@endif gmp
47879@if mpfr
47880 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
47881 mkdir stage1-mpfr; \
22121df0 47882 mv stage1-mpfr mpfr
4b900473 47883@endif mpfr
e8a5fa9c
RW
47884@if mpc
47885 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
47886 mkdir stage1-mpc; \
22121df0 47887 mv stage1-mpc mpc
e8a5fa9c 47888@endif mpc
7ec59b9e
L
47889@if isl
47890 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
47891 mkdir stage1-isl; \
22121df0 47892 mv stage1-isl isl
7ec59b9e 47893@endif isl
1f53ca9a
AO
47894@if libelf
47895 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
47896 mkdir stage1-libelf; \
22121df0 47897 mv stage1-libelf libelf
1f53ca9a 47898@endif libelf
93f9b408
ILT
47899@if gold
47900 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
47901 mkdir stage1-gold; \
22121df0 47902 mv stage1-gold gold
93f9b408 47903@endif gold
72b2455a 47904@if intl
b00612cc
PB
47905 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
47906 mkdir stage1-intl; \
22121df0 47907 mv stage1-intl intl
72b2455a
PB
47908@endif intl
47909@if ld
b00612cc
PB
47910 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
47911 mkdir stage1-ld; \
22121df0 47912 mv stage1-ld ld
72b2455a 47913@endif ld
2bf680c4
ILT
47914@if libbacktrace
47915 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
47916 mkdir stage1-libbacktrace; \
22121df0 47917 mv stage1-libbacktrace libbacktrace
2bf680c4 47918@endif libbacktrace
72b2455a 47919@if libcpp
b00612cc
PB
47920 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
47921 mkdir stage1-libcpp; \
22121df0 47922 mv stage1-libcpp libcpp
72b2455a 47923@endif libcpp
be01d343
PB
47924@if libdecnumber
47925 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
47926 mkdir stage1-libdecnumber; \
22121df0 47927 mv stage1-libdecnumber libdecnumber
be01d343 47928@endif libdecnumber
72b2455a 47929@if libiberty
b00612cc
PB
47930 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
47931 mkdir stage1-libiberty; \
22121df0 47932 mv stage1-libiberty libiberty
72b2455a 47933@endif libiberty
1b6c0831
L
47934@if libiberty-linker-plugin
47935 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
47936 mkdir stage1-libiberty-linker-plugin; \
22121df0 47937 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
1b6c0831 47938@endif libiberty-linker-plugin
016a3251
DD
47939@if libiconv
47940 @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \
47941 mkdir stage1-libiconv; \
47942 mv stage1-libiconv libiconv
47943@endif libiconv
72b2455a 47944@if zlib
b00612cc
PB
47945 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
47946 mkdir stage1-zlib; \
22121df0 47947 mv stage1-zlib zlib
72b2455a 47948@endif zlib
700d40ca
ILT
47949@if lto-plugin
47950 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
47951 mkdir stage1-lto-plugin; \
22121df0 47952 mv stage1-lto-plugin lto-plugin
700d40ca 47953@endif lto-plugin
0aed8855
PB
47954 @[ -d stage1-$(TARGET_SUBDIR) ] || \
47955 mkdir stage1-$(TARGET_SUBDIR); \
22121df0 47956 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 47957
80911fe1 47958stage1-end::
72b2455a 47959@if bfd
22121df0
L
47960 @if test -d $(HOST_SUBDIR)/bfd; then \
47961 cd $(HOST_SUBDIR); mv bfd stage1-bfd; \
0aed8855 47962 fi
72b2455a
PB
47963@endif bfd
47964@if opcodes
22121df0
L
47965 @if test -d $(HOST_SUBDIR)/opcodes; then \
47966 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \
0aed8855 47967 fi
72b2455a
PB
47968@endif opcodes
47969@if binutils
22121df0
L
47970 @if test -d $(HOST_SUBDIR)/binutils; then \
47971 cd $(HOST_SUBDIR); mv binutils stage1-binutils; \
0aed8855 47972 fi
72b2455a 47973@endif binutils
201f096f 47974@if fixincludes
22121df0
L
47975 @if test -d $(HOST_SUBDIR)/fixincludes; then \
47976 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \
201f096f 47977 fi
47978@endif fixincludes
72b2455a 47979@if gas
22121df0
L
47980 @if test -d $(HOST_SUBDIR)/gas; then \
47981 cd $(HOST_SUBDIR); mv gas stage1-gas; \
0aed8855 47982 fi
72b2455a
PB
47983@endif gas
47984@if gcc
22121df0
L
47985 @if test -d $(HOST_SUBDIR)/gcc; then \
47986 cd $(HOST_SUBDIR); mv gcc stage1-gcc; \
0aed8855 47987 fi
72b2455a 47988@endif gcc
4b900473 47989@if gmp
22121df0
L
47990 @if test -d $(HOST_SUBDIR)/gmp; then \
47991 cd $(HOST_SUBDIR); mv gmp stage1-gmp; \
4b900473
PB
47992 fi
47993@endif gmp
47994@if mpfr
22121df0
L
47995 @if test -d $(HOST_SUBDIR)/mpfr; then \
47996 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \
4b900473
PB
47997 fi
47998@endif mpfr
e8a5fa9c 47999@if mpc
22121df0
L
48000 @if test -d $(HOST_SUBDIR)/mpc; then \
48001 cd $(HOST_SUBDIR); mv mpc stage1-mpc; \
e8a5fa9c
RW
48002 fi
48003@endif mpc
7ec59b9e 48004@if isl
22121df0
L
48005 @if test -d $(HOST_SUBDIR)/isl; then \
48006 cd $(HOST_SUBDIR); mv isl stage1-isl; \
e28c595f 48007 fi
7ec59b9e 48008@endif isl
1f53ca9a 48009@if libelf
22121df0
L
48010 @if test -d $(HOST_SUBDIR)/libelf; then \
48011 cd $(HOST_SUBDIR); mv libelf stage1-libelf; \
1f53ca9a
AO
48012 fi
48013@endif libelf
93f9b408 48014@if gold
22121df0
L
48015 @if test -d $(HOST_SUBDIR)/gold; then \
48016 cd $(HOST_SUBDIR); mv gold stage1-gold; \
93f9b408
ILT
48017 fi
48018@endif gold
72b2455a 48019@if intl
22121df0
L
48020 @if test -d $(HOST_SUBDIR)/intl; then \
48021 cd $(HOST_SUBDIR); mv intl stage1-intl; \
0aed8855 48022 fi
72b2455a
PB
48023@endif intl
48024@if ld
22121df0
L
48025 @if test -d $(HOST_SUBDIR)/ld; then \
48026 cd $(HOST_SUBDIR); mv ld stage1-ld; \
0aed8855 48027 fi
72b2455a 48028@endif ld
2bf680c4 48029@if libbacktrace
22121df0
L
48030 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48031 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \
2bf680c4
ILT
48032 fi
48033@endif libbacktrace
72b2455a 48034@if libcpp
22121df0
L
48035 @if test -d $(HOST_SUBDIR)/libcpp; then \
48036 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \
0aed8855 48037 fi
72b2455a 48038@endif libcpp
be01d343 48039@if libdecnumber
22121df0
L
48040 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48041 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \
0aed8855 48042 fi
be01d343 48043@endif libdecnumber
72b2455a 48044@if libiberty
22121df0
L
48045 @if test -d $(HOST_SUBDIR)/libiberty; then \
48046 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \
0aed8855 48047 fi
72b2455a 48048@endif libiberty
1b6c0831 48049@if libiberty-linker-plugin
22121df0
L
48050 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48051 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \
1b6c0831
L
48052 fi
48053@endif libiberty-linker-plugin
016a3251
DD
48054@if libiconv
48055 @if test -d $(HOST_SUBDIR)/libiconv; then \
48056 cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \
48057 fi
48058@endif libiconv
72b2455a 48059@if zlib
22121df0
L
48060 @if test -d $(HOST_SUBDIR)/zlib; then \
48061 cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
0aed8855 48062 fi
72b2455a 48063@endif zlib
700d40ca 48064@if lto-plugin
22121df0
L
48065 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48066 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
700d40ca
ILT
48067 fi
48068@endif lto-plugin
22121df0
L
48069 @if test -d $(TARGET_SUBDIR); then \
48070 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \
0aed8855 48071 fi
80911fe1 48072 rm -f stage_current
dfdffa2c 48073
973601e1 48074# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 48075# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48076# reconfigured either.
319cab08 48077.PHONY: stage1-bubble
656fdd47 48078stage1-bubble::
e360f423
PB
48079 @r=`${PWD_COMMAND}`; export r; \
48080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48081 if test -f stage1-lean ; then \
48082 echo Skipping rebuild of stage1; \
9cb3fa6f 48083 else \
f70224b5
PB
48084 $(MAKE) stage1-start; \
48085 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 48086 fi
72b2455a 48087
0df3d27f 48088.PHONY: all-stage1 clean-stage1
0df3d27f 48089do-clean: clean-stage1
0df3d27f 48090
72b2455a
PB
48091# FIXME: Will not need to be conditional when toplevel bootstrap is the
48092# only possibility, but now it conflicts with no-bootstrap rules
48093@if gcc-bootstrap
48094
48095
48096
48097
0df3d27f 48098# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48099
0df3d27f 48100.PHONY: distclean-stage1
72b2455a 48101distclean-stage1::
0aed8855 48102 @: $(MAKE); $(stage)
e00a73e3 48103 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 48104 rm -rf stage1-*
72b2455a
PB
48105
48106
48107@endif gcc-bootstrap
48108
48109
48110.PHONY: stage2-start stage2-end
48111
48112stage2-start::
0aed8855 48113 @: $(MAKE); $(stage); \
22121df0 48114 echo stage2 > stage_current; \
b00612cc 48115 echo stage2 > stage_last; \
0aed8855 48116 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48117@if bfd
b00612cc
PB
48118 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
48119 mkdir stage2-bfd; \
22121df0 48120 mv stage2-bfd bfd; \
80911fe1 48121 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
48122@endif bfd
48123@if opcodes
b00612cc
PB
48124 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
48125 mkdir stage2-opcodes; \
22121df0 48126 mv stage2-opcodes opcodes; \
80911fe1 48127 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
48128@endif opcodes
48129@if binutils
b00612cc
PB
48130 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
48131 mkdir stage2-binutils; \
22121df0 48132 mv stage2-binutils binutils; \
80911fe1 48133 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 48134@endif binutils
201f096f 48135@if fixincludes
48136 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
48137 mkdir stage2-fixincludes; \
22121df0 48138 mv stage2-fixincludes fixincludes; \
201f096f 48139 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
48140@endif fixincludes
72b2455a 48141@if gas
b00612cc
PB
48142 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
48143 mkdir stage2-gas; \
22121df0 48144 mv stage2-gas gas; \
80911fe1 48145 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
48146@endif gas
48147@if gcc
b00612cc
PB
48148 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
48149 mkdir stage2-gcc; \
22121df0 48150 mv stage2-gcc gcc; \
80911fe1 48151 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 48152@endif gcc
4b900473
PB
48153@if gmp
48154 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
48155 mkdir stage2-gmp; \
22121df0 48156 mv stage2-gmp gmp; \
4b900473
PB
48157 mv stage1-gmp prev-gmp || test -f stage1-lean
48158@endif gmp
48159@if mpfr
48160 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
48161 mkdir stage2-mpfr; \
22121df0 48162 mv stage2-mpfr mpfr; \
4b900473
PB
48163 mv stage1-mpfr prev-mpfr || test -f stage1-lean
48164@endif mpfr
e8a5fa9c
RW
48165@if mpc
48166 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
48167 mkdir stage2-mpc; \
22121df0 48168 mv stage2-mpc mpc; \
e8a5fa9c
RW
48169 mv stage1-mpc prev-mpc || test -f stage1-lean
48170@endif mpc
7ec59b9e
L
48171@if isl
48172 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
48173 mkdir stage2-isl; \
22121df0 48174 mv stage2-isl isl; \
7ec59b9e
L
48175 mv stage1-isl prev-isl || test -f stage1-lean
48176@endif isl
1f53ca9a
AO
48177@if libelf
48178 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
48179 mkdir stage2-libelf; \
22121df0 48180 mv stage2-libelf libelf; \
1f53ca9a
AO
48181 mv stage1-libelf prev-libelf || test -f stage1-lean
48182@endif libelf
93f9b408
ILT
48183@if gold
48184 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
48185 mkdir stage2-gold; \
22121df0 48186 mv stage2-gold gold; \
93f9b408
ILT
48187 mv stage1-gold prev-gold || test -f stage1-lean
48188@endif gold
72b2455a 48189@if intl
b00612cc
PB
48190 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
48191 mkdir stage2-intl; \
22121df0 48192 mv stage2-intl intl; \
80911fe1 48193 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
48194@endif intl
48195@if ld
b00612cc
PB
48196 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
48197 mkdir stage2-ld; \
22121df0 48198 mv stage2-ld ld; \
80911fe1 48199 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 48200@endif ld
2bf680c4
ILT
48201@if libbacktrace
48202 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
48203 mkdir stage2-libbacktrace; \
22121df0 48204 mv stage2-libbacktrace libbacktrace; \
2bf680c4
ILT
48205 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
48206@endif libbacktrace
72b2455a 48207@if libcpp
b00612cc
PB
48208 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
48209 mkdir stage2-libcpp; \
22121df0 48210 mv stage2-libcpp libcpp; \
80911fe1 48211 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 48212@endif libcpp
be01d343
PB
48213@if libdecnumber
48214 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
48215 mkdir stage2-libdecnumber; \
22121df0 48216 mv stage2-libdecnumber libdecnumber; \
80911fe1 48217 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 48218@endif libdecnumber
72b2455a 48219@if libiberty
b00612cc
PB
48220 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
48221 mkdir stage2-libiberty; \
22121df0 48222 mv stage2-libiberty libiberty; \
80911fe1 48223 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 48224@endif libiberty
1b6c0831
L
48225@if libiberty-linker-plugin
48226 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
48227 mkdir stage2-libiberty-linker-plugin; \
22121df0 48228 mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48229 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
48230@endif libiberty-linker-plugin
016a3251
DD
48231@if libiconv
48232 @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \
48233 mkdir stage2-libiconv; \
48234 mv stage2-libiconv libiconv; \
48235 mv stage1-libiconv prev-libiconv || test -f stage1-lean
48236@endif libiconv
72b2455a 48237@if zlib
b00612cc
PB
48238 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
48239 mkdir stage2-zlib; \
22121df0 48240 mv stage2-zlib zlib; \
80911fe1 48241 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 48242@endif zlib
700d40ca
ILT
48243@if lto-plugin
48244 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
48245 mkdir stage2-lto-plugin; \
22121df0 48246 mv stage2-lto-plugin lto-plugin; \
700d40ca
ILT
48247 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
48248@endif lto-plugin
0aed8855
PB
48249 @[ -d stage2-$(TARGET_SUBDIR) ] || \
48250 mkdir stage2-$(TARGET_SUBDIR); \
22121df0 48251 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48252 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 48253
80911fe1 48254stage2-end::
72b2455a 48255@if bfd
22121df0
L
48256 @if test -d $(HOST_SUBDIR)/bfd; then \
48257 cd $(HOST_SUBDIR); mv bfd stage2-bfd; \
48258 mv prev-bfd stage1-bfd; : ; \
0aed8855 48259 fi
72b2455a
PB
48260@endif bfd
48261@if opcodes
22121df0
L
48262 @if test -d $(HOST_SUBDIR)/opcodes; then \
48263 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \
48264 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 48265 fi
72b2455a
PB
48266@endif opcodes
48267@if binutils
22121df0
L
48268 @if test -d $(HOST_SUBDIR)/binutils; then \
48269 cd $(HOST_SUBDIR); mv binutils stage2-binutils; \
48270 mv prev-binutils stage1-binutils; : ; \
0aed8855 48271 fi
72b2455a 48272@endif binutils
201f096f 48273@if fixincludes
22121df0
L
48274 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48275 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \
48276 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 48277 fi
48278@endif fixincludes
72b2455a 48279@if gas
22121df0
L
48280 @if test -d $(HOST_SUBDIR)/gas; then \
48281 cd $(HOST_SUBDIR); mv gas stage2-gas; \
48282 mv prev-gas stage1-gas; : ; \
0aed8855 48283 fi
72b2455a
PB
48284@endif gas
48285@if gcc
22121df0
L
48286 @if test -d $(HOST_SUBDIR)/gcc; then \
48287 cd $(HOST_SUBDIR); mv gcc stage2-gcc; \
48288 mv prev-gcc stage1-gcc; : ; \
0aed8855 48289 fi
72b2455a 48290@endif gcc
4b900473 48291@if gmp
22121df0
L
48292 @if test -d $(HOST_SUBDIR)/gmp; then \
48293 cd $(HOST_SUBDIR); mv gmp stage2-gmp; \
48294 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
48295 fi
48296@endif gmp
48297@if mpfr
22121df0
L
48298 @if test -d $(HOST_SUBDIR)/mpfr; then \
48299 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \
48300 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
48301 fi
48302@endif mpfr
e8a5fa9c 48303@if mpc
22121df0
L
48304 @if test -d $(HOST_SUBDIR)/mpc; then \
48305 cd $(HOST_SUBDIR); mv mpc stage2-mpc; \
48306 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
48307 fi
48308@endif mpc
7ec59b9e 48309@if isl
22121df0
L
48310 @if test -d $(HOST_SUBDIR)/isl; then \
48311 cd $(HOST_SUBDIR); mv isl stage2-isl; \
48312 mv prev-isl stage1-isl; : ; \
e28c595f 48313 fi
7ec59b9e 48314@endif isl
1f53ca9a 48315@if libelf
22121df0
L
48316 @if test -d $(HOST_SUBDIR)/libelf; then \
48317 cd $(HOST_SUBDIR); mv libelf stage2-libelf; \
48318 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
48319 fi
48320@endif libelf
93f9b408 48321@if gold
22121df0
L
48322 @if test -d $(HOST_SUBDIR)/gold; then \
48323 cd $(HOST_SUBDIR); mv gold stage2-gold; \
48324 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
48325 fi
48326@endif gold
72b2455a 48327@if intl
22121df0
L
48328 @if test -d $(HOST_SUBDIR)/intl; then \
48329 cd $(HOST_SUBDIR); mv intl stage2-intl; \
48330 mv prev-intl stage1-intl; : ; \
0aed8855 48331 fi
72b2455a
PB
48332@endif intl
48333@if ld
22121df0
L
48334 @if test -d $(HOST_SUBDIR)/ld; then \
48335 cd $(HOST_SUBDIR); mv ld stage2-ld; \
48336 mv prev-ld stage1-ld; : ; \
0aed8855 48337 fi
72b2455a 48338@endif ld
2bf680c4 48339@if libbacktrace
22121df0
L
48340 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48341 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \
48342 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
48343 fi
48344@endif libbacktrace
72b2455a 48345@if libcpp
22121df0
L
48346 @if test -d $(HOST_SUBDIR)/libcpp; then \
48347 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \
48348 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 48349 fi
72b2455a 48350@endif libcpp
be01d343 48351@if libdecnumber
22121df0
L
48352 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48353 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \
48354 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 48355 fi
be01d343 48356@endif libdecnumber
72b2455a 48357@if libiberty
22121df0
L
48358 @if test -d $(HOST_SUBDIR)/libiberty; then \
48359 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \
48360 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 48361 fi
72b2455a 48362@endif libiberty
1b6c0831 48363@if libiberty-linker-plugin
22121df0
L
48364 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48365 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \
48366 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
48367 fi
48368@endif libiberty-linker-plugin
016a3251
DD
48369@if libiconv
48370 @if test -d $(HOST_SUBDIR)/libiconv; then \
48371 cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \
48372 mv prev-libiconv stage1-libiconv; : ; \
48373 fi
48374@endif libiconv
72b2455a 48375@if zlib
22121df0
L
48376 @if test -d $(HOST_SUBDIR)/zlib; then \
48377 cd $(HOST_SUBDIR); mv zlib stage2-zlib; \
48378 mv prev-zlib stage1-zlib; : ; \
0aed8855 48379 fi
72b2455a 48380@endif zlib
700d40ca 48381@if lto-plugin
22121df0
L
48382 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48383 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
48384 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
48385 fi
48386@endif lto-plugin
22121df0
L
48387 @if test -d $(TARGET_SUBDIR); then \
48388 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \
48389 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 48390 fi
80911fe1 48391 rm -f stage_current
72b2455a 48392
973601e1 48393# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 48394# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48395# reconfigured either.
72b2455a
PB
48396.PHONY: stage2-bubble
48397stage2-bubble:: stage1-bubble
e360f423
PB
48398 @r=`${PWD_COMMAND}`; export r; \
48399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48400 if test -f stage2-lean || test -f stage1-lean ; then \
48401 echo Skipping rebuild of stage2; \
9cb3fa6f 48402 else \
f70224b5
PB
48403 $(MAKE) stage2-start; \
48404 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 48405 fi
72b2455a 48406
0df3d27f 48407.PHONY: all-stage2 clean-stage2
0df3d27f 48408do-clean: clean-stage2
0df3d27f 48409
72b2455a
PB
48410# FIXME: Will not need to be conditional when toplevel bootstrap is the
48411# only possibility, but now it conflicts with no-bootstrap rules
48412@if gcc-bootstrap
48413
48414
48415
80911fe1 48416.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
48417bootstrap2:
48418 echo stage2 > stage_final
48419 @r=`${PWD_COMMAND}`; export r; \
48420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48421 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 48422 @: $(MAKE); $(unstage)
be01d343
PB
48423 @r=`${PWD_COMMAND}`; export r; \
48424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48425 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 48426 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 48427
80911fe1
PB
48428bootstrap2-lean:
48429 echo stage2 > stage_final
48430 @r=`${PWD_COMMAND}`; export r; \
48431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48432 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
48433 @: $(MAKE); $(unstage)
48434 @r=`${PWD_COMMAND}`; export r; \
48435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48436 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
48437 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48438
72b2455a 48439
0df3d27f 48440# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48441distclean-stage1:: distclean-stage2
0df3d27f 48442.PHONY: distclean-stage2
72b2455a 48443distclean-stage2::
0aed8855 48444 @: $(MAKE); $(stage)
e00a73e3 48445 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 48446 rm -rf stage2-*
72b2455a
PB
48447
48448
48449@endif gcc-bootstrap
48450
48451
48452.PHONY: stage3-start stage3-end
48453
48454stage3-start::
0aed8855 48455 @: $(MAKE); $(stage); \
22121df0 48456 echo stage3 > stage_current; \
b00612cc 48457 echo stage3 > stage_last; \
0aed8855 48458 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48459@if bfd
b00612cc
PB
48460 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
48461 mkdir stage3-bfd; \
22121df0 48462 mv stage3-bfd bfd; \
80911fe1 48463 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
48464@endif bfd
48465@if opcodes
b00612cc
PB
48466 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
48467 mkdir stage3-opcodes; \
22121df0 48468 mv stage3-opcodes opcodes; \
80911fe1 48469 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
48470@endif opcodes
48471@if binutils
b00612cc
PB
48472 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
48473 mkdir stage3-binutils; \
22121df0 48474 mv stage3-binutils binutils; \
80911fe1 48475 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 48476@endif binutils
201f096f 48477@if fixincludes
48478 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
48479 mkdir stage3-fixincludes; \
22121df0 48480 mv stage3-fixincludes fixincludes; \
201f096f 48481 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
48482@endif fixincludes
72b2455a 48483@if gas
b00612cc
PB
48484 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
48485 mkdir stage3-gas; \
22121df0 48486 mv stage3-gas gas; \
80911fe1 48487 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
48488@endif gas
48489@if gcc
b00612cc
PB
48490 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
48491 mkdir stage3-gcc; \
22121df0 48492 mv stage3-gcc gcc; \
80911fe1 48493 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 48494@endif gcc
4b900473
PB
48495@if gmp
48496 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
48497 mkdir stage3-gmp; \
22121df0 48498 mv stage3-gmp gmp; \
4b900473
PB
48499 mv stage2-gmp prev-gmp || test -f stage2-lean
48500@endif gmp
48501@if mpfr
48502 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
48503 mkdir stage3-mpfr; \
22121df0 48504 mv stage3-mpfr mpfr; \
4b900473
PB
48505 mv stage2-mpfr prev-mpfr || test -f stage2-lean
48506@endif mpfr
e8a5fa9c
RW
48507@if mpc
48508 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
48509 mkdir stage3-mpc; \
22121df0 48510 mv stage3-mpc mpc; \
e8a5fa9c
RW
48511 mv stage2-mpc prev-mpc || test -f stage2-lean
48512@endif mpc
7ec59b9e
L
48513@if isl
48514 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
48515 mkdir stage3-isl; \
22121df0 48516 mv stage3-isl isl; \
7ec59b9e
L
48517 mv stage2-isl prev-isl || test -f stage2-lean
48518@endif isl
1f53ca9a
AO
48519@if libelf
48520 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
48521 mkdir stage3-libelf; \
22121df0 48522 mv stage3-libelf libelf; \
1f53ca9a
AO
48523 mv stage2-libelf prev-libelf || test -f stage2-lean
48524@endif libelf
93f9b408
ILT
48525@if gold
48526 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
48527 mkdir stage3-gold; \
22121df0 48528 mv stage3-gold gold; \
93f9b408
ILT
48529 mv stage2-gold prev-gold || test -f stage2-lean
48530@endif gold
72b2455a 48531@if intl
b00612cc
PB
48532 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
48533 mkdir stage3-intl; \
22121df0 48534 mv stage3-intl intl; \
80911fe1 48535 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
48536@endif intl
48537@if ld
b00612cc
PB
48538 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
48539 mkdir stage3-ld; \
22121df0 48540 mv stage3-ld ld; \
80911fe1 48541 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 48542@endif ld
2bf680c4
ILT
48543@if libbacktrace
48544 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
48545 mkdir stage3-libbacktrace; \
22121df0 48546 mv stage3-libbacktrace libbacktrace; \
2bf680c4
ILT
48547 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
48548@endif libbacktrace
72b2455a 48549@if libcpp
b00612cc
PB
48550 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
48551 mkdir stage3-libcpp; \
22121df0 48552 mv stage3-libcpp libcpp; \
80911fe1 48553 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 48554@endif libcpp
be01d343
PB
48555@if libdecnumber
48556 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
48557 mkdir stage3-libdecnumber; \
22121df0 48558 mv stage3-libdecnumber libdecnumber; \
80911fe1 48559 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 48560@endif libdecnumber
72b2455a 48561@if libiberty
b00612cc
PB
48562 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
48563 mkdir stage3-libiberty; \
22121df0 48564 mv stage3-libiberty libiberty; \
80911fe1 48565 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 48566@endif libiberty
1b6c0831
L
48567@if libiberty-linker-plugin
48568 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
48569 mkdir stage3-libiberty-linker-plugin; \
22121df0 48570 mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48571 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
48572@endif libiberty-linker-plugin
016a3251
DD
48573@if libiconv
48574 @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \
48575 mkdir stage3-libiconv; \
48576 mv stage3-libiconv libiconv; \
48577 mv stage2-libiconv prev-libiconv || test -f stage2-lean
48578@endif libiconv
72b2455a 48579@if zlib
b00612cc
PB
48580 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
48581 mkdir stage3-zlib; \
22121df0 48582 mv stage3-zlib zlib; \
80911fe1 48583 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 48584@endif zlib
700d40ca
ILT
48585@if lto-plugin
48586 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
48587 mkdir stage3-lto-plugin; \
22121df0 48588 mv stage3-lto-plugin lto-plugin; \
700d40ca
ILT
48589 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
48590@endif lto-plugin
0aed8855
PB
48591 @[ -d stage3-$(TARGET_SUBDIR) ] || \
48592 mkdir stage3-$(TARGET_SUBDIR); \
22121df0 48593 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48594 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 48595
80911fe1 48596stage3-end::
72b2455a 48597@if bfd
22121df0
L
48598 @if test -d $(HOST_SUBDIR)/bfd; then \
48599 cd $(HOST_SUBDIR); mv bfd stage3-bfd; \
48600 mv prev-bfd stage2-bfd; : ; \
0aed8855 48601 fi
72b2455a
PB
48602@endif bfd
48603@if opcodes
22121df0
L
48604 @if test -d $(HOST_SUBDIR)/opcodes; then \
48605 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \
48606 mv prev-opcodes stage2-opcodes; : ; \
0aed8855 48607 fi
72b2455a
PB
48608@endif opcodes
48609@if binutils
22121df0
L
48610 @if test -d $(HOST_SUBDIR)/binutils; then \
48611 cd $(HOST_SUBDIR); mv binutils stage3-binutils; \
48612 mv prev-binutils stage2-binutils; : ; \
0aed8855 48613 fi
72b2455a 48614@endif binutils
201f096f 48615@if fixincludes
22121df0
L
48616 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48617 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \
48618 mv prev-fixincludes stage2-fixincludes; : ; \
201f096f 48619 fi
48620@endif fixincludes
72b2455a 48621@if gas
22121df0
L
48622 @if test -d $(HOST_SUBDIR)/gas; then \
48623 cd $(HOST_SUBDIR); mv gas stage3-gas; \
48624 mv prev-gas stage2-gas; : ; \
0aed8855 48625 fi
72b2455a
PB
48626@endif gas
48627@if gcc
22121df0
L
48628 @if test -d $(HOST_SUBDIR)/gcc; then \
48629 cd $(HOST_SUBDIR); mv gcc stage3-gcc; \
48630 mv prev-gcc stage2-gcc; : ; \
0aed8855 48631 fi
72b2455a 48632@endif gcc
4b900473 48633@if gmp
22121df0
L
48634 @if test -d $(HOST_SUBDIR)/gmp; then \
48635 cd $(HOST_SUBDIR); mv gmp stage3-gmp; \
48636 mv prev-gmp stage2-gmp; : ; \
4b900473
PB
48637 fi
48638@endif gmp
48639@if mpfr
22121df0
L
48640 @if test -d $(HOST_SUBDIR)/mpfr; then \
48641 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \
48642 mv prev-mpfr stage2-mpfr; : ; \
4b900473
PB
48643 fi
48644@endif mpfr
e8a5fa9c 48645@if mpc
22121df0
L
48646 @if test -d $(HOST_SUBDIR)/mpc; then \
48647 cd $(HOST_SUBDIR); mv mpc stage3-mpc; \
48648 mv prev-mpc stage2-mpc; : ; \
e8a5fa9c
RW
48649 fi
48650@endif mpc
7ec59b9e 48651@if isl
22121df0
L
48652 @if test -d $(HOST_SUBDIR)/isl; then \
48653 cd $(HOST_SUBDIR); mv isl stage3-isl; \
48654 mv prev-isl stage2-isl; : ; \
e28c595f 48655 fi
7ec59b9e 48656@endif isl
1f53ca9a 48657@if libelf
22121df0
L
48658 @if test -d $(HOST_SUBDIR)/libelf; then \
48659 cd $(HOST_SUBDIR); mv libelf stage3-libelf; \
48660 mv prev-libelf stage2-libelf; : ; \
1f53ca9a
AO
48661 fi
48662@endif libelf
93f9b408 48663@if gold
22121df0
L
48664 @if test -d $(HOST_SUBDIR)/gold; then \
48665 cd $(HOST_SUBDIR); mv gold stage3-gold; \
48666 mv prev-gold stage2-gold; : ; \
93f9b408
ILT
48667 fi
48668@endif gold
72b2455a 48669@if intl
22121df0
L
48670 @if test -d $(HOST_SUBDIR)/intl; then \
48671 cd $(HOST_SUBDIR); mv intl stage3-intl; \
48672 mv prev-intl stage2-intl; : ; \
0aed8855 48673 fi
72b2455a
PB
48674@endif intl
48675@if ld
22121df0
L
48676 @if test -d $(HOST_SUBDIR)/ld; then \
48677 cd $(HOST_SUBDIR); mv ld stage3-ld; \
48678 mv prev-ld stage2-ld; : ; \
0aed8855 48679 fi
72b2455a 48680@endif ld
2bf680c4 48681@if libbacktrace
22121df0
L
48682 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48683 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \
48684 mv prev-libbacktrace stage2-libbacktrace; : ; \
2bf680c4
ILT
48685 fi
48686@endif libbacktrace
72b2455a 48687@if libcpp
22121df0
L
48688 @if test -d $(HOST_SUBDIR)/libcpp; then \
48689 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \
48690 mv prev-libcpp stage2-libcpp; : ; \
0aed8855 48691 fi
72b2455a 48692@endif libcpp
be01d343 48693@if libdecnumber
22121df0
L
48694 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48695 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \
48696 mv prev-libdecnumber stage2-libdecnumber; : ; \
0aed8855 48697 fi
be01d343 48698@endif libdecnumber
72b2455a 48699@if libiberty
22121df0
L
48700 @if test -d $(HOST_SUBDIR)/libiberty; then \
48701 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \
48702 mv prev-libiberty stage2-libiberty; : ; \
0aed8855 48703 fi
72b2455a 48704@endif libiberty
1b6c0831 48705@if libiberty-linker-plugin
22121df0
L
48706 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48707 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \
48708 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \
1b6c0831
L
48709 fi
48710@endif libiberty-linker-plugin
016a3251
DD
48711@if libiconv
48712 @if test -d $(HOST_SUBDIR)/libiconv; then \
48713 cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \
48714 mv prev-libiconv stage2-libiconv; : ; \
48715 fi
48716@endif libiconv
72b2455a 48717@if zlib
22121df0
L
48718 @if test -d $(HOST_SUBDIR)/zlib; then \
48719 cd $(HOST_SUBDIR); mv zlib stage3-zlib; \
48720 mv prev-zlib stage2-zlib; : ; \
0aed8855 48721 fi
72b2455a 48722@endif zlib
700d40ca 48723@if lto-plugin
22121df0
L
48724 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48725 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
48726 mv prev-lto-plugin stage2-lto-plugin; : ; \
700d40ca
ILT
48727 fi
48728@endif lto-plugin
22121df0
L
48729 @if test -d $(TARGET_SUBDIR); then \
48730 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \
48731 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \
0aed8855 48732 fi
80911fe1 48733 rm -f stage_current
72b2455a 48734
973601e1 48735# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 48736# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48737# reconfigured either.
72b2455a
PB
48738.PHONY: stage3-bubble
48739stage3-bubble:: stage2-bubble
e360f423
PB
48740 @r=`${PWD_COMMAND}`; export r; \
48741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48742 if test -f stage3-lean || test -f stage2-lean ; then \
48743 echo Skipping rebuild of stage3; \
9cb3fa6f 48744 else \
f70224b5 48745 $(MAKE) stage3-start; \
80911fe1 48746 if $(LEAN); then \
22121df0
L
48747 rm -rf stage1-*; \
48748 $(STAMP) stage1-lean; \
80911fe1 48749 fi; \
f70224b5 48750 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 48751 fi
f6d183c0 48752 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 48753
0df3d27f 48754.PHONY: all-stage3 clean-stage3
0df3d27f 48755do-clean: clean-stage3
0df3d27f 48756
d545f33b
PB
48757# FIXME: Will not need to be conditional when toplevel bootstrap is the
48758# only possibility, but now it conflicts with no-bootstrap rules
48759@if gcc-bootstrap
72b2455a 48760
d545f33b 48761compare:
e360f423
PB
48762 @r=`${PWD_COMMAND}`; export r; \
48763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48764 if test -f stage2-lean; then \
22121df0
L
48765 echo Cannot compare object files as stage 2 was deleted.; \
48766 exit 0; \
d545f33b 48767 fi; \
0aed8855 48768 : $(MAKE); $(stage); \
22121df0
L
48769 rm -f .bad_compare; \
48770 echo Comparing stages 2 and 3; \
fda13ee8
AO
48771 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
48772 files=`find stage3-* -name "*$(objext)" -print | \
22121df0
L
48773 sed -n s,^stage$$sed-,,p`; \
48774 for file in $${files}; do \
fda13ee8
AO
48775 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
48776 if test ! -f $$f1; then continue; fi; \
8520c408 48777 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
48778 if test $$? -eq 1; then \
48779 case $$file in \
e8a5fa9c 48780 @compare_exclusions@) \
f70224b5
PB
48781 echo warning: $$file differs ;; \
48782 *) \
48783 echo $$file differs >> .bad_compare ;; \
22121df0
L
48784 esac; \
48785 fi; \
48786 done; \
d545f33b
PB
48787 if [ -f .bad_compare ]; then \
48788 echo "Bootstrap comparison failure!"; \
48789 cat .bad_compare; \
48790 exit 1; \
48791 else \
c52c6897 48792 echo Comparison successful.; \
22121df0 48793 fi; \
d545f33b 48794 $(STAMP) compare
80911fe1
PB
48795 if $(LEAN); then \
48796 rm -rf stage2-*; \
48797 $(STAMP) stage2-lean; \
48798 fi
9cb3fa6f 48799
72b2455a 48800
72b2455a 48801
80911fe1 48802.PHONY: bootstrap bootstrap-lean
be01d343
PB
48803bootstrap:
48804 echo stage3 > stage_final
48805 @r=`${PWD_COMMAND}`; export r; \
48806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48807 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 48808 @: $(MAKE); $(unstage)
be01d343
PB
48809 @r=`${PWD_COMMAND}`; export r; \
48810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48811 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 48812 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 48813
80911fe1
PB
48814bootstrap-lean:
48815 echo stage3 > stage_final
48816 @r=`${PWD_COMMAND}`; export r; \
48817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48818 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
48819 @: $(MAKE); $(unstage)
48820 @r=`${PWD_COMMAND}`; export r; \
48821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48822 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
48823 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48824
72b2455a 48825
d545f33b
PB
48826# Rules to wipe a stage and all the following ones, also used for cleanstrap
48827distclean-stage2:: distclean-stage3
48828.PHONY: distclean-stage3
48829distclean-stage3::
0aed8855 48830 @: $(MAKE); $(stage)
e00a73e3 48831 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 48832 rm -rf stage3-* compare
0df3d27f 48833
9cb3fa6f 48834
d545f33b 48835.PHONY: cleanstrap
e00a73e3
PB
48836cleanstrap: do-distclean local-clean
48837 echo stage3 > stage_final
48838 @r=`${PWD_COMMAND}`; export r; \
48839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48840 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
48841 @: $(MAKE); $(unstage)
48842 @r=`${PWD_COMMAND}`; export r; \
48843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48844 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
48845 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48846
48847@endif gcc-bootstrap
48848
48849
72b2455a
PB
48850.PHONY: stage4-start stage4-end
48851
48852stage4-start::
0aed8855 48853 @: $(MAKE); $(stage); \
22121df0 48854 echo stage4 > stage_current; \
b00612cc 48855 echo stage4 > stage_last; \
0aed8855 48856 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48857@if bfd
b00612cc
PB
48858 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
48859 mkdir stage4-bfd; \
22121df0 48860 mv stage4-bfd bfd; \
80911fe1 48861 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
48862@endif bfd
48863@if opcodes
b00612cc
PB
48864 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
48865 mkdir stage4-opcodes; \
22121df0 48866 mv stage4-opcodes opcodes; \
80911fe1 48867 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
48868@endif opcodes
48869@if binutils
b00612cc
PB
48870 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
48871 mkdir stage4-binutils; \
22121df0 48872 mv stage4-binutils binutils; \
80911fe1 48873 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 48874@endif binutils
201f096f 48875@if fixincludes
48876 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
48877 mkdir stage4-fixincludes; \
22121df0 48878 mv stage4-fixincludes fixincludes; \
201f096f 48879 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
48880@endif fixincludes
72b2455a 48881@if gas
b00612cc
PB
48882 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
48883 mkdir stage4-gas; \
22121df0 48884 mv stage4-gas gas; \
80911fe1 48885 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
48886@endif gas
48887@if gcc
b00612cc
PB
48888 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
48889 mkdir stage4-gcc; \
22121df0 48890 mv stage4-gcc gcc; \
80911fe1 48891 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 48892@endif gcc
4b900473
PB
48893@if gmp
48894 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
48895 mkdir stage4-gmp; \
22121df0 48896 mv stage4-gmp gmp; \
4b900473
PB
48897 mv stage3-gmp prev-gmp || test -f stage3-lean
48898@endif gmp
48899@if mpfr
48900 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
48901 mkdir stage4-mpfr; \
22121df0 48902 mv stage4-mpfr mpfr; \
4b900473
PB
48903 mv stage3-mpfr prev-mpfr || test -f stage3-lean
48904@endif mpfr
e8a5fa9c
RW
48905@if mpc
48906 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
48907 mkdir stage4-mpc; \
22121df0 48908 mv stage4-mpc mpc; \
e8a5fa9c
RW
48909 mv stage3-mpc prev-mpc || test -f stage3-lean
48910@endif mpc
7ec59b9e
L
48911@if isl
48912 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
48913 mkdir stage4-isl; \
22121df0 48914 mv stage4-isl isl; \
7ec59b9e
L
48915 mv stage3-isl prev-isl || test -f stage3-lean
48916@endif isl
1f53ca9a
AO
48917@if libelf
48918 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
48919 mkdir stage4-libelf; \
22121df0 48920 mv stage4-libelf libelf; \
1f53ca9a
AO
48921 mv stage3-libelf prev-libelf || test -f stage3-lean
48922@endif libelf
93f9b408
ILT
48923@if gold
48924 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
48925 mkdir stage4-gold; \
22121df0 48926 mv stage4-gold gold; \
93f9b408
ILT
48927 mv stage3-gold prev-gold || test -f stage3-lean
48928@endif gold
72b2455a 48929@if intl
b00612cc
PB
48930 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
48931 mkdir stage4-intl; \
22121df0 48932 mv stage4-intl intl; \
80911fe1 48933 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
48934@endif intl
48935@if ld
b00612cc
PB
48936 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
48937 mkdir stage4-ld; \
22121df0 48938 mv stage4-ld ld; \
80911fe1 48939 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 48940@endif ld
2bf680c4
ILT
48941@if libbacktrace
48942 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
48943 mkdir stage4-libbacktrace; \
22121df0 48944 mv stage4-libbacktrace libbacktrace; \
2bf680c4
ILT
48945 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
48946@endif libbacktrace
72b2455a 48947@if libcpp
b00612cc
PB
48948 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
48949 mkdir stage4-libcpp; \
22121df0 48950 mv stage4-libcpp libcpp; \
80911fe1 48951 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 48952@endif libcpp
be01d343
PB
48953@if libdecnumber
48954 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
48955 mkdir stage4-libdecnumber; \
22121df0 48956 mv stage4-libdecnumber libdecnumber; \
80911fe1 48957 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 48958@endif libdecnumber
72b2455a 48959@if libiberty
b00612cc
PB
48960 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
48961 mkdir stage4-libiberty; \
22121df0 48962 mv stage4-libiberty libiberty; \
80911fe1 48963 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 48964@endif libiberty
1b6c0831
L
48965@if libiberty-linker-plugin
48966 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
48967 mkdir stage4-libiberty-linker-plugin; \
22121df0 48968 mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48969 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
48970@endif libiberty-linker-plugin
016a3251
DD
48971@if libiconv
48972 @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \
48973 mkdir stage4-libiconv; \
48974 mv stage4-libiconv libiconv; \
48975 mv stage3-libiconv prev-libiconv || test -f stage3-lean
48976@endif libiconv
72b2455a 48977@if zlib
b00612cc
PB
48978 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
48979 mkdir stage4-zlib; \
22121df0 48980 mv stage4-zlib zlib; \
80911fe1 48981 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 48982@endif zlib
700d40ca
ILT
48983@if lto-plugin
48984 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
48985 mkdir stage4-lto-plugin; \
22121df0 48986 mv stage4-lto-plugin lto-plugin; \
700d40ca
ILT
48987 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
48988@endif lto-plugin
0aed8855
PB
48989 @[ -d stage4-$(TARGET_SUBDIR) ] || \
48990 mkdir stage4-$(TARGET_SUBDIR); \
22121df0 48991 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48992 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 48993
80911fe1 48994stage4-end::
72b2455a 48995@if bfd
22121df0
L
48996 @if test -d $(HOST_SUBDIR)/bfd; then \
48997 cd $(HOST_SUBDIR); mv bfd stage4-bfd; \
48998 mv prev-bfd stage3-bfd; : ; \
0aed8855 48999 fi
72b2455a
PB
49000@endif bfd
49001@if opcodes
22121df0
L
49002 @if test -d $(HOST_SUBDIR)/opcodes; then \
49003 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \
49004 mv prev-opcodes stage3-opcodes; : ; \
0aed8855 49005 fi
72b2455a
PB
49006@endif opcodes
49007@if binutils
22121df0
L
49008 @if test -d $(HOST_SUBDIR)/binutils; then \
49009 cd $(HOST_SUBDIR); mv binutils stage4-binutils; \
49010 mv prev-binutils stage3-binutils; : ; \
0aed8855 49011 fi
72b2455a 49012@endif binutils
201f096f 49013@if fixincludes
22121df0
L
49014 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49015 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \
49016 mv prev-fixincludes stage3-fixincludes; : ; \
201f096f 49017 fi
49018@endif fixincludes
72b2455a 49019@if gas
22121df0
L
49020 @if test -d $(HOST_SUBDIR)/gas; then \
49021 cd $(HOST_SUBDIR); mv gas stage4-gas; \
49022 mv prev-gas stage3-gas; : ; \
0aed8855 49023 fi
72b2455a
PB
49024@endif gas
49025@if gcc
22121df0
L
49026 @if test -d $(HOST_SUBDIR)/gcc; then \
49027 cd $(HOST_SUBDIR); mv gcc stage4-gcc; \
49028 mv prev-gcc stage3-gcc; : ; \
0aed8855 49029 fi
72b2455a 49030@endif gcc
4b900473 49031@if gmp
22121df0
L
49032 @if test -d $(HOST_SUBDIR)/gmp; then \
49033 cd $(HOST_SUBDIR); mv gmp stage4-gmp; \
49034 mv prev-gmp stage3-gmp; : ; \
4b900473
PB
49035 fi
49036@endif gmp
49037@if mpfr
22121df0
L
49038 @if test -d $(HOST_SUBDIR)/mpfr; then \
49039 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \
49040 mv prev-mpfr stage3-mpfr; : ; \
4b900473
PB
49041 fi
49042@endif mpfr
e8a5fa9c 49043@if mpc
22121df0
L
49044 @if test -d $(HOST_SUBDIR)/mpc; then \
49045 cd $(HOST_SUBDIR); mv mpc stage4-mpc; \
49046 mv prev-mpc stage3-mpc; : ; \
e8a5fa9c
RW
49047 fi
49048@endif mpc
7ec59b9e 49049@if isl
22121df0
L
49050 @if test -d $(HOST_SUBDIR)/isl; then \
49051 cd $(HOST_SUBDIR); mv isl stage4-isl; \
49052 mv prev-isl stage3-isl; : ; \
e28c595f 49053 fi
7ec59b9e 49054@endif isl
1f53ca9a 49055@if libelf
22121df0
L
49056 @if test -d $(HOST_SUBDIR)/libelf; then \
49057 cd $(HOST_SUBDIR); mv libelf stage4-libelf; \
49058 mv prev-libelf stage3-libelf; : ; \
1f53ca9a
AO
49059 fi
49060@endif libelf
93f9b408 49061@if gold
22121df0
L
49062 @if test -d $(HOST_SUBDIR)/gold; then \
49063 cd $(HOST_SUBDIR); mv gold stage4-gold; \
49064 mv prev-gold stage3-gold; : ; \
93f9b408
ILT
49065 fi
49066@endif gold
72b2455a 49067@if intl
22121df0
L
49068 @if test -d $(HOST_SUBDIR)/intl; then \
49069 cd $(HOST_SUBDIR); mv intl stage4-intl; \
49070 mv prev-intl stage3-intl; : ; \
0aed8855 49071 fi
72b2455a
PB
49072@endif intl
49073@if ld
22121df0
L
49074 @if test -d $(HOST_SUBDIR)/ld; then \
49075 cd $(HOST_SUBDIR); mv ld stage4-ld; \
49076 mv prev-ld stage3-ld; : ; \
0aed8855 49077 fi
72b2455a 49078@endif ld
2bf680c4 49079@if libbacktrace
22121df0
L
49080 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49081 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \
49082 mv prev-libbacktrace stage3-libbacktrace; : ; \
2bf680c4
ILT
49083 fi
49084@endif libbacktrace
72b2455a 49085@if libcpp
22121df0
L
49086 @if test -d $(HOST_SUBDIR)/libcpp; then \
49087 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \
49088 mv prev-libcpp stage3-libcpp; : ; \
0aed8855 49089 fi
72b2455a 49090@endif libcpp
be01d343 49091@if libdecnumber
22121df0
L
49092 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49093 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \
49094 mv prev-libdecnumber stage3-libdecnumber; : ; \
0aed8855 49095 fi
be01d343 49096@endif libdecnumber
72b2455a 49097@if libiberty
22121df0
L
49098 @if test -d $(HOST_SUBDIR)/libiberty; then \
49099 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \
49100 mv prev-libiberty stage3-libiberty; : ; \
0aed8855 49101 fi
72b2455a 49102@endif libiberty
1b6c0831 49103@if libiberty-linker-plugin
22121df0
L
49104 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49105 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \
49106 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \
1b6c0831
L
49107 fi
49108@endif libiberty-linker-plugin
016a3251
DD
49109@if libiconv
49110 @if test -d $(HOST_SUBDIR)/libiconv; then \
49111 cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \
49112 mv prev-libiconv stage3-libiconv; : ; \
49113 fi
49114@endif libiconv
72b2455a 49115@if zlib
22121df0
L
49116 @if test -d $(HOST_SUBDIR)/zlib; then \
49117 cd $(HOST_SUBDIR); mv zlib stage4-zlib; \
49118 mv prev-zlib stage3-zlib; : ; \
0aed8855 49119 fi
72b2455a 49120@endif zlib
700d40ca 49121@if lto-plugin
22121df0
L
49122 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49123 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
49124 mv prev-lto-plugin stage3-lto-plugin; : ; \
700d40ca
ILT
49125 fi
49126@endif lto-plugin
22121df0
L
49127 @if test -d $(TARGET_SUBDIR); then \
49128 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \
49129 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \
0aed8855 49130 fi
80911fe1 49131 rm -f stage_current
72b2455a 49132
973601e1 49133# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 49134# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49135# reconfigured either.
72b2455a
PB
49136.PHONY: stage4-bubble
49137stage4-bubble:: stage3-bubble
e360f423
PB
49138 @r=`${PWD_COMMAND}`; export r; \
49139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49140 if test -f stage4-lean || test -f stage3-lean ; then \
49141 echo Skipping rebuild of stage4; \
9cb3fa6f 49142 else \
f70224b5 49143 $(MAKE) stage4-start; \
80911fe1 49144 if $(LEAN); then \
22121df0
L
49145 rm -rf stage2-*; \
49146 $(STAMP) stage2-lean; \
80911fe1 49147 fi; \
f70224b5 49148 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 49149 fi
f6d183c0 49150 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 49151
0df3d27f 49152.PHONY: all-stage4 clean-stage4
0df3d27f 49153do-clean: clean-stage4
0df3d27f 49154
d545f33b
PB
49155# FIXME: Will not need to be conditional when toplevel bootstrap is the
49156# only possibility, but now it conflicts with no-bootstrap rules
49157@if gcc-bootstrap
72b2455a 49158
d545f33b 49159compare3:
e360f423
PB
49160 @r=`${PWD_COMMAND}`; export r; \
49161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49162 if test -f stage3-lean; then \
22121df0
L
49163 echo Cannot compare object files as stage 3 was deleted.; \
49164 exit 0; \
d545f33b 49165 fi; \
0aed8855 49166 : $(MAKE); $(stage); \
22121df0
L
49167 rm -f .bad_compare; \
49168 echo Comparing stages 3 and 4; \
fda13ee8
AO
49169 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
49170 files=`find stage4-* -name "*$(objext)" -print | \
22121df0
L
49171 sed -n s,^stage$$sed-,,p`; \
49172 for file in $${files}; do \
fda13ee8
AO
49173 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
49174 if test ! -f $$f1; then continue; fi; \
8520c408 49175 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
49176 if test $$? -eq 1; then \
49177 case $$file in \
e8a5fa9c 49178 @compare_exclusions@) \
f70224b5
PB
49179 echo warning: $$file differs ;; \
49180 *) \
49181 echo $$file differs >> .bad_compare ;; \
22121df0
L
49182 esac; \
49183 fi; \
49184 done; \
d545f33b
PB
49185 if [ -f .bad_compare ]; then \
49186 echo "Bootstrap comparison failure!"; \
49187 cat .bad_compare; \
49188 exit 1; \
49189 else \
c52c6897 49190 echo Comparison successful.; \
22121df0 49191 fi; \
d545f33b 49192 $(STAMP) compare3
80911fe1
PB
49193 if $(LEAN); then \
49194 rm -rf stage3-*; \
49195 $(STAMP) stage3-lean; \
49196 fi
9cb3fa6f 49197
72b2455a 49198
72b2455a 49199
80911fe1 49200.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
49201bootstrap4:
49202 echo stage4 > stage_final
49203 @r=`${PWD_COMMAND}`; export r; \
49204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49205 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 49206 @: $(MAKE); $(unstage)
be01d343
PB
49207 @r=`${PWD_COMMAND}`; export r; \
49208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49209 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 49210 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 49211
80911fe1
PB
49212bootstrap4-lean:
49213 echo stage4 > stage_final
49214 @r=`${PWD_COMMAND}`; export r; \
49215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49216 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
49217 @: $(MAKE); $(unstage)
49218 @r=`${PWD_COMMAND}`; export r; \
49219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49220 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
49221 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49222
72b2455a 49223
d545f33b
PB
49224# Rules to wipe a stage and all the following ones, also used for cleanstrap
49225distclean-stage3:: distclean-stage4
49226.PHONY: distclean-stage4
49227distclean-stage4::
0aed8855 49228 @: $(MAKE); $(stage)
e00a73e3 49229 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 49230 rm -rf stage4-* compare3
0df3d27f 49231
9cb3fa6f 49232
d545f33b 49233@endif gcc-bootstrap
72b2455a
PB
49234
49235
49236.PHONY: stageprofile-start stageprofile-end
49237
49238stageprofile-start::
0aed8855 49239 @: $(MAKE); $(stage); \
22121df0 49240 echo stageprofile > stage_current; \
b00612cc 49241 echo stageprofile > stage_last; \
0aed8855 49242 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49243@if bfd
b00612cc
PB
49244 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
49245 mkdir stageprofile-bfd; \
22121df0 49246 mv stageprofile-bfd bfd; \
80911fe1 49247 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
49248@endif bfd
49249@if opcodes
b00612cc
PB
49250 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
49251 mkdir stageprofile-opcodes; \
22121df0 49252 mv stageprofile-opcodes opcodes; \
80911fe1 49253 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
49254@endif opcodes
49255@if binutils
b00612cc
PB
49256 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
49257 mkdir stageprofile-binutils; \
22121df0 49258 mv stageprofile-binutils binutils; \
80911fe1 49259 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 49260@endif binutils
201f096f 49261@if fixincludes
49262 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
49263 mkdir stageprofile-fixincludes; \
22121df0 49264 mv stageprofile-fixincludes fixincludes; \
201f096f 49265 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
49266@endif fixincludes
72b2455a 49267@if gas
b00612cc
PB
49268 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
49269 mkdir stageprofile-gas; \
22121df0 49270 mv stageprofile-gas gas; \
80911fe1 49271 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
49272@endif gas
49273@if gcc
b00612cc
PB
49274 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
49275 mkdir stageprofile-gcc; \
22121df0 49276 mv stageprofile-gcc gcc; \
80911fe1 49277 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 49278@endif gcc
4b900473
PB
49279@if gmp
49280 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
49281 mkdir stageprofile-gmp; \
22121df0 49282 mv stageprofile-gmp gmp; \
4b900473
PB
49283 mv stage1-gmp prev-gmp || test -f stage1-lean
49284@endif gmp
49285@if mpfr
49286 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
49287 mkdir stageprofile-mpfr; \
22121df0 49288 mv stageprofile-mpfr mpfr; \
4b900473
PB
49289 mv stage1-mpfr prev-mpfr || test -f stage1-lean
49290@endif mpfr
e8a5fa9c
RW
49291@if mpc
49292 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
49293 mkdir stageprofile-mpc; \
22121df0 49294 mv stageprofile-mpc mpc; \
e8a5fa9c
RW
49295 mv stage1-mpc prev-mpc || test -f stage1-lean
49296@endif mpc
7ec59b9e
L
49297@if isl
49298 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
49299 mkdir stageprofile-isl; \
22121df0 49300 mv stageprofile-isl isl; \
7ec59b9e
L
49301 mv stage1-isl prev-isl || test -f stage1-lean
49302@endif isl
1f53ca9a
AO
49303@if libelf
49304 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
49305 mkdir stageprofile-libelf; \
22121df0 49306 mv stageprofile-libelf libelf; \
1f53ca9a
AO
49307 mv stage1-libelf prev-libelf || test -f stage1-lean
49308@endif libelf
93f9b408
ILT
49309@if gold
49310 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
49311 mkdir stageprofile-gold; \
22121df0 49312 mv stageprofile-gold gold; \
93f9b408
ILT
49313 mv stage1-gold prev-gold || test -f stage1-lean
49314@endif gold
72b2455a 49315@if intl
b00612cc
PB
49316 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
49317 mkdir stageprofile-intl; \
22121df0 49318 mv stageprofile-intl intl; \
80911fe1 49319 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
49320@endif intl
49321@if ld
b00612cc
PB
49322 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
49323 mkdir stageprofile-ld; \
22121df0 49324 mv stageprofile-ld ld; \
80911fe1 49325 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 49326@endif ld
2bf680c4
ILT
49327@if libbacktrace
49328 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
49329 mkdir stageprofile-libbacktrace; \
22121df0 49330 mv stageprofile-libbacktrace libbacktrace; \
2bf680c4
ILT
49331 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
49332@endif libbacktrace
72b2455a 49333@if libcpp
b00612cc
PB
49334 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
49335 mkdir stageprofile-libcpp; \
22121df0 49336 mv stageprofile-libcpp libcpp; \
80911fe1 49337 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 49338@endif libcpp
be01d343
PB
49339@if libdecnumber
49340 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
49341 mkdir stageprofile-libdecnumber; \
22121df0 49342 mv stageprofile-libdecnumber libdecnumber; \
80911fe1 49343 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 49344@endif libdecnumber
72b2455a 49345@if libiberty
b00612cc
PB
49346 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
49347 mkdir stageprofile-libiberty; \
22121df0 49348 mv stageprofile-libiberty libiberty; \
80911fe1 49349 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 49350@endif libiberty
1b6c0831
L
49351@if libiberty-linker-plugin
49352 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
49353 mkdir stageprofile-libiberty-linker-plugin; \
22121df0 49354 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49355 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
49356@endif libiberty-linker-plugin
016a3251
DD
49357@if libiconv
49358 @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \
49359 mkdir stageprofile-libiconv; \
49360 mv stageprofile-libiconv libiconv; \
49361 mv stage1-libiconv prev-libiconv || test -f stage1-lean
49362@endif libiconv
72b2455a 49363@if zlib
d545f33b
PB
49364 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
49365 mkdir stageprofile-zlib; \
22121df0 49366 mv stageprofile-zlib zlib; \
80911fe1 49367 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 49368@endif zlib
700d40ca
ILT
49369@if lto-plugin
49370 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
49371 mkdir stageprofile-lto-plugin; \
22121df0 49372 mv stageprofile-lto-plugin lto-plugin; \
700d40ca
ILT
49373 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
49374@endif lto-plugin
0aed8855
PB
49375 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
49376 mkdir stageprofile-$(TARGET_SUBDIR); \
22121df0 49377 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49378 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 49379
80911fe1 49380stageprofile-end::
d545f33b 49381@if bfd
22121df0
L
49382 @if test -d $(HOST_SUBDIR)/bfd; then \
49383 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \
49384 mv prev-bfd stage1-bfd; : ; \
0aed8855 49385 fi
d545f33b
PB
49386@endif bfd
49387@if opcodes
22121df0
L
49388 @if test -d $(HOST_SUBDIR)/opcodes; then \
49389 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \
49390 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 49391 fi
d545f33b
PB
49392@endif opcodes
49393@if binutils
22121df0
L
49394 @if test -d $(HOST_SUBDIR)/binutils; then \
49395 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \
49396 mv prev-binutils stage1-binutils; : ; \
0aed8855 49397 fi
d545f33b 49398@endif binutils
201f096f 49399@if fixincludes
22121df0
L
49400 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49401 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \
49402 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 49403 fi
49404@endif fixincludes
d545f33b 49405@if gas
22121df0
L
49406 @if test -d $(HOST_SUBDIR)/gas; then \
49407 cd $(HOST_SUBDIR); mv gas stageprofile-gas; \
49408 mv prev-gas stage1-gas; : ; \
0aed8855 49409 fi
d545f33b
PB
49410@endif gas
49411@if gcc
22121df0
L
49412 @if test -d $(HOST_SUBDIR)/gcc; then \
49413 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \
49414 mv prev-gcc stage1-gcc; : ; \
0aed8855 49415 fi
d545f33b 49416@endif gcc
4b900473 49417@if gmp
22121df0
L
49418 @if test -d $(HOST_SUBDIR)/gmp; then \
49419 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \
49420 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
49421 fi
49422@endif gmp
49423@if mpfr
22121df0
L
49424 @if test -d $(HOST_SUBDIR)/mpfr; then \
49425 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \
49426 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
49427 fi
49428@endif mpfr
e8a5fa9c 49429@if mpc
22121df0
L
49430 @if test -d $(HOST_SUBDIR)/mpc; then \
49431 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \
49432 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
49433 fi
49434@endif mpc
7ec59b9e 49435@if isl
22121df0
L
49436 @if test -d $(HOST_SUBDIR)/isl; then \
49437 cd $(HOST_SUBDIR); mv isl stageprofile-isl; \
49438 mv prev-isl stage1-isl; : ; \
e28c595f 49439 fi
7ec59b9e 49440@endif isl
1f53ca9a 49441@if libelf
22121df0
L
49442 @if test -d $(HOST_SUBDIR)/libelf; then \
49443 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \
49444 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
49445 fi
49446@endif libelf
93f9b408 49447@if gold
22121df0
L
49448 @if test -d $(HOST_SUBDIR)/gold; then \
49449 cd $(HOST_SUBDIR); mv gold stageprofile-gold; \
49450 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
49451 fi
49452@endif gold
d545f33b 49453@if intl
22121df0
L
49454 @if test -d $(HOST_SUBDIR)/intl; then \
49455 cd $(HOST_SUBDIR); mv intl stageprofile-intl; \
49456 mv prev-intl stage1-intl; : ; \
0aed8855 49457 fi
d545f33b
PB
49458@endif intl
49459@if ld
22121df0
L
49460 @if test -d $(HOST_SUBDIR)/ld; then \
49461 cd $(HOST_SUBDIR); mv ld stageprofile-ld; \
49462 mv prev-ld stage1-ld; : ; \
0aed8855 49463 fi
d545f33b 49464@endif ld
2bf680c4 49465@if libbacktrace
22121df0
L
49466 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49467 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \
49468 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
49469 fi
49470@endif libbacktrace
d545f33b 49471@if libcpp
22121df0
L
49472 @if test -d $(HOST_SUBDIR)/libcpp; then \
49473 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \
49474 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 49475 fi
d545f33b 49476@endif libcpp
be01d343 49477@if libdecnumber
22121df0
L
49478 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49479 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \
49480 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 49481 fi
be01d343 49482@endif libdecnumber
d545f33b 49483@if libiberty
22121df0
L
49484 @if test -d $(HOST_SUBDIR)/libiberty; then \
49485 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \
49486 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 49487 fi
d545f33b 49488@endif libiberty
1b6c0831 49489@if libiberty-linker-plugin
22121df0
L
49490 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49491 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \
49492 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
49493 fi
49494@endif libiberty-linker-plugin
016a3251
DD
49495@if libiconv
49496 @if test -d $(HOST_SUBDIR)/libiconv; then \
49497 cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \
49498 mv prev-libiconv stage1-libiconv; : ; \
49499 fi
49500@endif libiconv
d545f33b 49501@if zlib
22121df0
L
49502 @if test -d $(HOST_SUBDIR)/zlib; then \
49503 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \
49504 mv prev-zlib stage1-zlib; : ; \
0aed8855 49505 fi
d545f33b 49506@endif zlib
700d40ca 49507@if lto-plugin
22121df0
L
49508 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49509 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
49510 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
49511 fi
49512@endif lto-plugin
22121df0
L
49513 @if test -d $(TARGET_SUBDIR); then \
49514 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \
49515 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 49516 fi
80911fe1 49517 rm -f stage_current
72b2455a 49518
973601e1 49519# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 49520# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49521# reconfigured either.
d545f33b
PB
49522.PHONY: stageprofile-bubble
49523stageprofile-bubble:: stage1-bubble
e360f423
PB
49524 @r=`${PWD_COMMAND}`; export r; \
49525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49526 if test -f stageprofile-lean || test -f stage1-lean ; then \
49527 echo Skipping rebuild of stageprofile; \
d545f33b 49528 else \
f70224b5
PB
49529 $(MAKE) stageprofile-start; \
49530 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 49531 fi
72b2455a 49532
d545f33b
PB
49533.PHONY: all-stageprofile clean-stageprofile
49534do-clean: clean-stageprofile
0df3d27f 49535
72b2455a
PB
49536# FIXME: Will not need to be conditional when toplevel bootstrap is the
49537# only possibility, but now it conflicts with no-bootstrap rules
49538@if gcc-bootstrap
49539
49540
49541
49542
0df3d27f 49543# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49544distclean-stage1:: distclean-stageprofile
0df3d27f 49545.PHONY: distclean-stageprofile
72b2455a 49546distclean-stageprofile::
0aed8855 49547 @: $(MAKE); $(stage)
e00a73e3 49548 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 49549 rm -rf stageprofile-*
dfdffa2c
PB
49550
49551
72b2455a 49552@endif gcc-bootstrap
dfdffa2c
PB
49553
49554
72b2455a 49555.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 49556
72b2455a 49557stagefeedback-start::
0aed8855 49558 @: $(MAKE); $(stage); \
22121df0 49559 echo stagefeedback > stage_current; \
b00612cc 49560 echo stagefeedback > stage_last; \
0aed8855 49561 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49562@if bfd
b00612cc
PB
49563 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
49564 mkdir stagefeedback-bfd; \
22121df0 49565 mv stagefeedback-bfd bfd; \
80911fe1 49566 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
49567@endif bfd
49568@if opcodes
b00612cc
PB
49569 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
49570 mkdir stagefeedback-opcodes; \
22121df0 49571 mv stagefeedback-opcodes opcodes; \
80911fe1 49572 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
49573@endif opcodes
49574@if binutils
b00612cc
PB
49575 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
49576 mkdir stagefeedback-binutils; \
22121df0 49577 mv stagefeedback-binutils binutils; \
80911fe1 49578 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 49579@endif binutils
201f096f 49580@if fixincludes
49581 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
49582 mkdir stagefeedback-fixincludes; \
22121df0 49583 mv stagefeedback-fixincludes fixincludes; \
201f096f 49584 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
49585@endif fixincludes
72b2455a 49586@if gas
b00612cc
PB
49587 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
49588 mkdir stagefeedback-gas; \
22121df0 49589 mv stagefeedback-gas gas; \
80911fe1 49590 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
49591@endif gas
49592@if gcc
b00612cc
PB
49593 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
49594 mkdir stagefeedback-gcc; \
22121df0 49595 mv stagefeedback-gcc gcc; \
80911fe1 49596 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 49597@endif gcc
4b900473
PB
49598@if gmp
49599 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
49600 mkdir stagefeedback-gmp; \
22121df0 49601 mv stagefeedback-gmp gmp; \
4b900473
PB
49602 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
49603@endif gmp
49604@if mpfr
49605 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
49606 mkdir stagefeedback-mpfr; \
22121df0 49607 mv stagefeedback-mpfr mpfr; \
4b900473
PB
49608 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
49609@endif mpfr
e8a5fa9c
RW
49610@if mpc
49611 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
49612 mkdir stagefeedback-mpc; \
22121df0 49613 mv stagefeedback-mpc mpc; \
e8a5fa9c
RW
49614 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
49615@endif mpc
7ec59b9e
L
49616@if isl
49617 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
49618 mkdir stagefeedback-isl; \
22121df0 49619 mv stagefeedback-isl isl; \
7ec59b9e
L
49620 mv stageprofile-isl prev-isl || test -f stageprofile-lean
49621@endif isl
1f53ca9a
AO
49622@if libelf
49623 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
49624 mkdir stagefeedback-libelf; \
22121df0 49625 mv stagefeedback-libelf libelf; \
1f53ca9a
AO
49626 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
49627@endif libelf
93f9b408
ILT
49628@if gold
49629 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
49630 mkdir stagefeedback-gold; \
22121df0 49631 mv stagefeedback-gold gold; \
93f9b408
ILT
49632 mv stageprofile-gold prev-gold || test -f stageprofile-lean
49633@endif gold
72b2455a 49634@if intl
b00612cc
PB
49635 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
49636 mkdir stagefeedback-intl; \
22121df0 49637 mv stagefeedback-intl intl; \
80911fe1 49638 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
49639@endif intl
49640@if ld
b00612cc
PB
49641 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
49642 mkdir stagefeedback-ld; \
22121df0 49643 mv stagefeedback-ld ld; \
80911fe1 49644 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 49645@endif ld
2bf680c4
ILT
49646@if libbacktrace
49647 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
49648 mkdir stagefeedback-libbacktrace; \
22121df0 49649 mv stagefeedback-libbacktrace libbacktrace; \
2bf680c4
ILT
49650 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
49651@endif libbacktrace
72b2455a 49652@if libcpp
b00612cc
PB
49653 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
49654 mkdir stagefeedback-libcpp; \
22121df0 49655 mv stagefeedback-libcpp libcpp; \
80911fe1 49656 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 49657@endif libcpp
be01d343
PB
49658@if libdecnumber
49659 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
49660 mkdir stagefeedback-libdecnumber; \
22121df0 49661 mv stagefeedback-libdecnumber libdecnumber; \
80911fe1 49662 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 49663@endif libdecnumber
72b2455a 49664@if libiberty
b00612cc
PB
49665 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
49666 mkdir stagefeedback-libiberty; \
22121df0 49667 mv stagefeedback-libiberty libiberty; \
80911fe1 49668 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 49669@endif libiberty
1b6c0831
L
49670@if libiberty-linker-plugin
49671 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
49672 mkdir stagefeedback-libiberty-linker-plugin; \
22121df0 49673 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49674 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
49675@endif libiberty-linker-plugin
016a3251
DD
49676@if libiconv
49677 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \
49678 mkdir stagefeedback-libiconv; \
49679 mv stagefeedback-libiconv libiconv; \
49680 mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean
49681@endif libiconv
72b2455a 49682@if zlib
b00612cc
PB
49683 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
49684 mkdir stagefeedback-zlib; \
22121df0 49685 mv stagefeedback-zlib zlib; \
80911fe1 49686 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 49687@endif zlib
700d40ca
ILT
49688@if lto-plugin
49689 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
49690 mkdir stagefeedback-lto-plugin; \
22121df0 49691 mv stagefeedback-lto-plugin lto-plugin; \
700d40ca
ILT
49692 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
49693@endif lto-plugin
0aed8855
PB
49694 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
49695 mkdir stagefeedback-$(TARGET_SUBDIR); \
22121df0 49696 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49697 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 49698
80911fe1 49699stagefeedback-end::
72b2455a 49700@if bfd
22121df0
L
49701 @if test -d $(HOST_SUBDIR)/bfd; then \
49702 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \
49703 mv prev-bfd stageprofile-bfd; : ; \
0aed8855 49704 fi
72b2455a
PB
49705@endif bfd
49706@if opcodes
22121df0
L
49707 @if test -d $(HOST_SUBDIR)/opcodes; then \
49708 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \
49709 mv prev-opcodes stageprofile-opcodes; : ; \
0aed8855 49710 fi
72b2455a
PB
49711@endif opcodes
49712@if binutils
22121df0
L
49713 @if test -d $(HOST_SUBDIR)/binutils; then \
49714 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \
49715 mv prev-binutils stageprofile-binutils; : ; \
0aed8855 49716 fi
72b2455a 49717@endif binutils
201f096f 49718@if fixincludes
22121df0
L
49719 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49720 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \
49721 mv prev-fixincludes stageprofile-fixincludes; : ; \
201f096f 49722 fi
49723@endif fixincludes
72b2455a 49724@if gas
22121df0
L
49725 @if test -d $(HOST_SUBDIR)/gas; then \
49726 cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \
49727 mv prev-gas stageprofile-gas; : ; \
0aed8855 49728 fi
72b2455a
PB
49729@endif gas
49730@if gcc
22121df0
L
49731 @if test -d $(HOST_SUBDIR)/gcc; then \
49732 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \
49733 mv prev-gcc stageprofile-gcc; : ; \
0aed8855 49734 fi
72b2455a 49735@endif gcc
4b900473 49736@if gmp
22121df0
L
49737 @if test -d $(HOST_SUBDIR)/gmp; then \
49738 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \
49739 mv prev-gmp stageprofile-gmp; : ; \
4b900473
PB
49740 fi
49741@endif gmp
49742@if mpfr
22121df0
L
49743 @if test -d $(HOST_SUBDIR)/mpfr; then \
49744 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \
49745 mv prev-mpfr stageprofile-mpfr; : ; \
4b900473
PB
49746 fi
49747@endif mpfr
e8a5fa9c 49748@if mpc
22121df0
L
49749 @if test -d $(HOST_SUBDIR)/mpc; then \
49750 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \
49751 mv prev-mpc stageprofile-mpc; : ; \
e8a5fa9c
RW
49752 fi
49753@endif mpc
7ec59b9e 49754@if isl
22121df0
L
49755 @if test -d $(HOST_SUBDIR)/isl; then \
49756 cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \
49757 mv prev-isl stageprofile-isl; : ; \
e28c595f 49758 fi
7ec59b9e 49759@endif isl
1f53ca9a 49760@if libelf
22121df0
L
49761 @if test -d $(HOST_SUBDIR)/libelf; then \
49762 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \
49763 mv prev-libelf stageprofile-libelf; : ; \
1f53ca9a
AO
49764 fi
49765@endif libelf
93f9b408 49766@if gold
22121df0
L
49767 @if test -d $(HOST_SUBDIR)/gold; then \
49768 cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \
49769 mv prev-gold stageprofile-gold; : ; \
93f9b408
ILT
49770 fi
49771@endif gold
72b2455a 49772@if intl
22121df0
L
49773 @if test -d $(HOST_SUBDIR)/intl; then \
49774 cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \
49775 mv prev-intl stageprofile-intl; : ; \
0aed8855 49776 fi
72b2455a
PB
49777@endif intl
49778@if ld
22121df0
L
49779 @if test -d $(HOST_SUBDIR)/ld; then \
49780 cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \
49781 mv prev-ld stageprofile-ld; : ; \
0aed8855 49782 fi
72b2455a 49783@endif ld
2bf680c4 49784@if libbacktrace
22121df0
L
49785 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49786 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \
49787 mv prev-libbacktrace stageprofile-libbacktrace; : ; \
2bf680c4
ILT
49788 fi
49789@endif libbacktrace
72b2455a 49790@if libcpp
22121df0
L
49791 @if test -d $(HOST_SUBDIR)/libcpp; then \
49792 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \
49793 mv prev-libcpp stageprofile-libcpp; : ; \
0aed8855 49794 fi
72b2455a 49795@endif libcpp
be01d343 49796@if libdecnumber
22121df0
L
49797 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49798 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \
49799 mv prev-libdecnumber stageprofile-libdecnumber; : ; \
0aed8855 49800 fi
be01d343 49801@endif libdecnumber
72b2455a 49802@if libiberty
22121df0
L
49803 @if test -d $(HOST_SUBDIR)/libiberty; then \
49804 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \
49805 mv prev-libiberty stageprofile-libiberty; : ; \
0aed8855 49806 fi
72b2455a 49807@endif libiberty
1b6c0831 49808@if libiberty-linker-plugin
22121df0
L
49809 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49810 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \
49811 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \
1b6c0831
L
49812 fi
49813@endif libiberty-linker-plugin
016a3251
DD
49814@if libiconv
49815 @if test -d $(HOST_SUBDIR)/libiconv; then \
49816 cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \
49817 mv prev-libiconv stageprofile-libiconv; : ; \
49818 fi
49819@endif libiconv
72b2455a 49820@if zlib
22121df0
L
49821 @if test -d $(HOST_SUBDIR)/zlib; then \
49822 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \
49823 mv prev-zlib stageprofile-zlib; : ; \
0aed8855 49824 fi
72b2455a 49825@endif zlib
700d40ca 49826@if lto-plugin
22121df0
L
49827 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49828 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
49829 mv prev-lto-plugin stageprofile-lto-plugin; : ; \
700d40ca
ILT
49830 fi
49831@endif lto-plugin
22121df0
L
49832 @if test -d $(TARGET_SUBDIR); then \
49833 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \
49834 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \
0aed8855 49835 fi
80911fe1 49836 rm -f stage_current
dfdffa2c 49837
973601e1 49838# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 49839# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49840# reconfigured either.
72b2455a 49841.PHONY: stagefeedback-bubble
7d329e61 49842stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
49843 @r=`${PWD_COMMAND}`; export r; \
49844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49845 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
49846 echo Skipping rebuild of stagefeedback; \
9cb3fa6f 49847 else \
f70224b5
PB
49848 $(MAKE) stagefeedback-start; \
49849 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 49850 fi
72b2455a 49851
0df3d27f 49852.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 49853do-clean: clean-stagefeedback
0df3d27f 49854
72b2455a
PB
49855# FIXME: Will not need to be conditional when toplevel bootstrap is the
49856# only possibility, but now it conflicts with no-bootstrap rules
49857@if gcc-bootstrap
656fdd47
PB
49858
49859
49860
80911fe1 49861.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
49862profiledbootstrap:
49863 echo stagefeedback > stage_final
49864 @r=`${PWD_COMMAND}`; export r; \
49865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49866 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 49867 @: $(MAKE); $(unstage)
be01d343
PB
49868 @r=`${PWD_COMMAND}`; export r; \
49869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49870 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 49871 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 49872
80911fe1
PB
49873profiledbootstrap-lean:
49874 echo stagefeedback > stage_final
49875 @r=`${PWD_COMMAND}`; export r; \
49876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49877 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
49878 @: $(MAKE); $(unstage)
49879 @r=`${PWD_COMMAND}`; export r; \
49880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49881 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
49882 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49883
656fdd47 49884
0df3d27f 49885# Rules to wipe a stage and all the following ones, also used for cleanstrap
7d329e61 49886distclean-stageprofile:: distclean-stagefeedback
0df3d27f 49887.PHONY: distclean-stagefeedback
656fdd47 49888distclean-stagefeedback::
0aed8855 49889 @: $(MAKE); $(stage)
e00a73e3 49890 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 49891 rm -rf stagefeedback-*
656fdd47
PB
49892
49893
72b2455a 49894@endif gcc-bootstrap
656fdd47
PB
49895
49896
49897
7d329e61
PB
49898stageprofile-end::
49899 $(MAKE) distclean-stagefeedback
656fdd47 49900
7d329e61 49901stagefeedback-start::
656fdd47
PB
49902 @r=`${PWD_COMMAND}`; export r; \
49903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61 49904 for i in prev-*; do \
22121df0 49905 j=`echo $$i | sed s/^prev-//`; \
7d329e61 49906 cd $$r/$$i && \
22121df0
L
49907 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \
49908 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \
7d329e61 49909 done
b8908782 49910
0df3d27f 49911@if gcc-bootstrap
0df3d27f 49912do-distclean: distclean-stage1
c52c6897
PB
49913
49914# Provide a GCC build when we're building target libraries. This does
49915# not work as a dependency, just as the minimum necessary to avoid errors.
49916stage_last:
314b2e66
AS
49917 @r=`${PWD_COMMAND}`; export r; \
49918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 49919 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 49920
4f0ef2d8
CD
49921# Same as unstage, but not phony and defaulting to stage1-start. We place
49922# it in the dependency so that for example `make -j3 all-gcc' works.
49923stage_current:
49924 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
49925
c52c6897 49926.PHONY: restrap
266df637 49927restrap::
c52c6897 49928 @: $(MAKE); $(stage)
1b05fbbd 49929 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 49930restrap:: all
c380fdd8 49931@endif gcc-bootstrap
c52c6897 49932
ae831be5
NN
49933# --------------------------------------
49934# Dependencies between different modules
49935# --------------------------------------
252b5132 49936
9e6ce191 49937# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 49938@if gcc-bootstrap
e8a5fa9c
RW
49939configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
49940configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
49941configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
49942configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
49943configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
49944configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
49945configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
49946configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
49947configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
49948configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
49949configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
49950configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
49951configure-stage1-target-libmpx: maybe-all-stage1-gcc
49952configure-stage2-target-libmpx: maybe-all-stage2-gcc
49953configure-stage3-target-libmpx: maybe-all-stage3-gcc
49954configure-stage4-target-libmpx: maybe-all-stage4-gcc
49955configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
49956configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
49957configure-stage1-target-libvtv: maybe-all-stage1-gcc
49958configure-stage2-target-libvtv: maybe-all-stage2-gcc
49959configure-stage3-target-libvtv: maybe-all-stage3-gcc
49960configure-stage4-target-libvtv: maybe-all-stage4-gcc
49961configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
49962configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
522e3d71 49963configure-target-libcilkrts: stage_last
1b6c0831 49964configure-target-liboffloadmic: stage_last
c52c6897 49965configure-target-libssp: stage_last
c52c6897 49966configure-target-newlib: stage_last
6aa8ef82
DJ
49967configure-stage1-target-libgcc: maybe-all-stage1-gcc
49968configure-stage2-target-libgcc: maybe-all-stage2-gcc
49969configure-stage3-target-libgcc: maybe-all-stage3-gcc
49970configure-stage4-target-libgcc: maybe-all-stage4-gcc
49971configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
49972configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 49973configure-target-libbacktrace: stage_last
e552509b 49974configure-target-libquadmath: stage_last
c52c6897
PB
49975configure-target-libgfortran: stage_last
49976configure-target-libobjc: stage_last
e552509b 49977configure-target-libgo: stage_last
c52c6897
PB
49978configure-target-libtermcap: stage_last
49979configure-target-winsup: stage_last
49980configure-target-libgloss: stage_last
c52c6897
PB
49981configure-target-libffi: stage_last
49982configure-target-libjava: stage_last
49983configure-target-zlib: stage_last
49984configure-target-boehm-gc: stage_last
c52c6897
PB
49985configure-target-rda: stage_last
49986configure-target-libada: stage_last
911e63d0
JR
49987configure-stage1-target-libgomp: maybe-all-stage1-gcc
49988configure-stage2-target-libgomp: maybe-all-stage2-gcc
49989configure-stage3-target-libgomp: maybe-all-stage3-gcc
49990configure-stage4-target-libgomp: maybe-all-stage4-gcc
49991configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
49992configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
49993configure-target-libitm: stage_last
49994configure-target-libatomic: stage_last
c52c6897 49995@endif gcc-bootstrap
9e6ce191 49996
c52c6897 49997@if gcc-no-bootstrap
9e6ce191 49998configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 49999configure-target-libsanitizer: maybe-all-gcc
1b6c0831 50000configure-target-libmpx: maybe-all-gcc
95e43135 50001configure-target-libvtv: maybe-all-gcc
e78e02e6 50002configure-target-libcilkrts: maybe-all-gcc
1b6c0831 50003configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 50004configure-target-libssp: maybe-all-gcc
9e6ce191 50005configure-target-newlib: maybe-all-gcc
6aa8ef82 50006configure-target-libgcc: maybe-all-gcc
2bf680c4 50007configure-target-libbacktrace: maybe-all-gcc
e552509b 50008configure-target-libquadmath: maybe-all-gcc
9e6ce191 50009configure-target-libgfortran: maybe-all-gcc
9e6ce191 50010configure-target-libobjc: maybe-all-gcc
e552509b 50011configure-target-libgo: maybe-all-gcc
9e6ce191 50012configure-target-libtermcap: maybe-all-gcc
9e6ce191 50013configure-target-winsup: maybe-all-gcc
9e6ce191 50014configure-target-libgloss: maybe-all-gcc
9e6ce191 50015configure-target-libffi: maybe-all-gcc
9e6ce191 50016configure-target-libjava: maybe-all-gcc
9e6ce191 50017configure-target-zlib: maybe-all-gcc
9e6ce191 50018configure-target-boehm-gc: maybe-all-gcc
9e6ce191 50019configure-target-rda: maybe-all-gcc
9e6ce191 50020configure-target-libada: maybe-all-gcc
b3ded179 50021configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
50022configure-target-libitm: maybe-all-gcc
50023configure-target-libatomic: maybe-all-gcc
c52c6897 50024@endif gcc-no-bootstrap
b3ded179 50025
9e6ce191 50026
ae831be5
NN
50027# There are two types of dependencies here: 'hard' dependencies, where one
50028# module simply won't build without the other; and 'soft' dependencies, where
50029# if the depended-on module is missing, the depending module will do without
50030# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 50031# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
50032# it's safer to use a soft dependency.
50033
9e6ce191
PB
50034
50035
50036
50037
c60fe18b 50038
9e6ce191
PB
50039# With all the machinery above in place, it is pretty easy to generate
50040# dependencies. Host dependencies are a bit more complex because we have
50041# to check for bootstrap/prebootstrap dependencies. To resolve
50042# prebootstrap dependencies, prebootstrap modules are gathered in
50043# a hash table.
6a9cf61e
PB
50044all-build-bison: maybe-all-build-texinfo
50045all-build-flex: maybe-all-build-texinfo
9e6ce191 50046all-build-flex: maybe-all-build-bison
9e6ce191 50047all-build-flex: maybe-all-build-m4
6a9cf61e 50048all-build-libiberty: maybe-all-build-texinfo
9e6ce191 50049all-build-m4: maybe-all-build-texinfo
ee025550 50050all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 50051all-build-libcpp: maybe-all-build-libiberty
9e6ce191
PB
50052configure-gcc: maybe-configure-intl
50053
50054configure-stage1-gcc: maybe-configure-stage1-intl
50055configure-stage2-gcc: maybe-configure-stage2-intl
50056configure-stage3-gcc: maybe-configure-stage3-intl
50057configure-stage4-gcc: maybe-configure-stage4-intl
50058configure-stageprofile-gcc: maybe-configure-stageprofile-intl
50059configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8
L
50060configure-gcc: maybe-all-gmp
50061
50062configure-stage1-gcc: maybe-all-stage1-gmp
50063configure-stage2-gcc: maybe-all-stage2-gmp
50064configure-stage3-gcc: maybe-all-stage3-gmp
50065configure-stage4-gcc: maybe-all-stage4-gmp
50066configure-stageprofile-gcc: maybe-all-stageprofile-gmp
50067configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831
L
50068configure-gcc: maybe-all-mpfr
50069
50070configure-stage1-gcc: maybe-all-stage1-mpfr
50071configure-stage2-gcc: maybe-all-stage2-mpfr
50072configure-stage3-gcc: maybe-all-stage3-mpfr
50073configure-stage4-gcc: maybe-all-stage4-mpfr
50074configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
50075configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
50076configure-gcc: maybe-all-mpc
50077
50078configure-stage1-gcc: maybe-all-stage1-mpc
50079configure-stage2-gcc: maybe-all-stage2-mpc
50080configure-stage3-gcc: maybe-all-stage3-mpc
50081configure-stage4-gcc: maybe-all-stage4-mpc
50082configure-stageprofile-gcc: maybe-all-stageprofile-mpc
50083configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
50084configure-gcc: maybe-all-isl
50085
50086configure-stage1-gcc: maybe-all-stage1-isl
50087configure-stage2-gcc: maybe-all-stage2-isl
50088configure-stage3-gcc: maybe-all-stage3-isl
50089configure-stage4-gcc: maybe-all-stage4-isl
50090configure-stageprofile-gcc: maybe-all-stageprofile-isl
50091configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a
RW
50092configure-gcc: maybe-all-lto-plugin
50093
50094configure-stage1-gcc: maybe-all-stage1-lto-plugin
50095configure-stage2-gcc: maybe-all-stage2-lto-plugin
50096configure-stage3-gcc: maybe-all-stage3-lto-plugin
50097configure-stage4-gcc: maybe-all-stage4-lto-plugin
50098configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50099configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b
PB
50100configure-gcc: maybe-all-binutils
50101
50102configure-stage1-gcc: maybe-all-stage1-binutils
50103configure-stage2-gcc: maybe-all-stage2-binutils
50104configure-stage3-gcc: maybe-all-stage3-binutils
50105configure-stage4-gcc: maybe-all-stage4-binutils
50106configure-stageprofile-gcc: maybe-all-stageprofile-binutils
50107configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
50108configure-gcc: maybe-all-gas
50109
50110configure-stage1-gcc: maybe-all-stage1-gas
50111configure-stage2-gcc: maybe-all-stage2-gas
50112configure-stage3-gcc: maybe-all-stage3-gas
50113configure-stage4-gcc: maybe-all-stage4-gas
50114configure-stageprofile-gcc: maybe-all-stageprofile-gas
50115configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
50116configure-gcc: maybe-all-ld
50117
50118configure-stage1-gcc: maybe-all-stage1-ld
50119configure-stage2-gcc: maybe-all-stage2-ld
50120configure-stage3-gcc: maybe-all-stage3-ld
50121configure-stage4-gcc: maybe-all-stage4-ld
50122configure-stageprofile-gcc: maybe-all-stageprofile-ld
50123configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408
ILT
50124configure-gcc: maybe-all-gold
50125
50126configure-stage1-gcc: maybe-all-stage1-gold
50127configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 50128configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
50129configure-stage4-gcc: maybe-all-stage4-gold
50130configure-stageprofile-gcc: maybe-all-stageprofile-gold
50131configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480
AO
50132configure-gcc: maybe-all-libelf
50133
50134configure-stage1-gcc: maybe-all-stage1-libelf
50135configure-stage2-gcc: maybe-all-stage2-libelf
50136configure-stage3-gcc: maybe-all-stage3-libelf
50137configure-stage4-gcc: maybe-all-stage4-libelf
50138configure-stageprofile-gcc: maybe-all-stageprofile-libelf
50139configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
016a3251
DD
50140configure-gcc: maybe-all-libiconv
50141
50142configure-stage1-gcc: maybe-all-stage1-libiconv
50143configure-stage2-gcc: maybe-all-stage2-libiconv
50144configure-stage3-gcc: maybe-all-stage3-libiconv
50145configure-stage4-gcc: maybe-all-stage4-libiconv
50146configure-stageprofile-gcc: maybe-all-stageprofile-libiconv
50147configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
9e6ce191
PB
50148all-gcc: all-libiberty
50149
50150all-stage1-gcc: all-stage1-libiberty
50151all-stage2-gcc: all-stage2-libiberty
50152all-stage3-gcc: all-stage3-libiberty
50153all-stage4-gcc: all-stage4-libiberty
50154all-stageprofile-gcc: all-stageprofile-libiberty
50155all-stagefeedback-gcc: all-stagefeedback-libiberty
50156all-gcc: maybe-all-intl
50157
50158all-stage1-gcc: maybe-all-stage1-intl
50159all-stage2-gcc: maybe-all-stage2-intl
50160all-stage3-gcc: maybe-all-stage3-intl
50161all-stage4-gcc: maybe-all-stage4-intl
50162all-stageprofile-gcc: maybe-all-stageprofile-intl
50163all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473
PB
50164all-gcc: maybe-all-mpfr
50165
50166all-stage1-gcc: maybe-all-stage1-mpfr
50167all-stage2-gcc: maybe-all-stage2-mpfr
50168all-stage3-gcc: maybe-all-stage3-mpfr
50169all-stage4-gcc: maybe-all-stage4-mpfr
50170all-stageprofile-gcc: maybe-all-stageprofile-mpfr
50171all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c
RW
50172all-gcc: maybe-all-mpc
50173
50174all-stage1-gcc: maybe-all-stage1-mpc
50175all-stage2-gcc: maybe-all-stage2-mpc
50176all-stage3-gcc: maybe-all-stage3-mpc
50177all-stage4-gcc: maybe-all-stage4-mpc
50178all-stageprofile-gcc: maybe-all-stageprofile-mpc
50179all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831
L
50180all-gcc: maybe-all-isl
50181
50182all-stage1-gcc: maybe-all-stage1-isl
50183all-stage2-gcc: maybe-all-stage2-isl
50184all-stage3-gcc: maybe-all-stage3-isl
50185all-stage4-gcc: maybe-all-stage4-isl
50186all-stageprofile-gcc: maybe-all-stageprofile-isl
50187all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a
PB
50188all-gcc: maybe-all-build-texinfo
50189
50190all-stage1-gcc: maybe-all-build-texinfo
50191all-stage2-gcc: maybe-all-build-texinfo
50192all-stage3-gcc: maybe-all-build-texinfo
50193all-stage4-gcc: maybe-all-build-texinfo
50194all-stageprofile-gcc: maybe-all-build-texinfo
50195all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a
PB
50196all-gcc: maybe-all-build-bison
50197
50198all-stage1-gcc: maybe-all-build-bison
50199all-stage2-gcc: maybe-all-build-bison
50200all-stage3-gcc: maybe-all-build-bison
50201all-stage4-gcc: maybe-all-build-bison
50202all-stageprofile-gcc: maybe-all-build-bison
50203all-stagefeedback-gcc: maybe-all-build-bison
72b2455a
PB
50204all-gcc: maybe-all-build-flex
50205
50206all-stage1-gcc: maybe-all-build-flex
50207all-stage2-gcc: maybe-all-build-flex
50208all-stage3-gcc: maybe-all-build-flex
50209all-stage4-gcc: maybe-all-build-flex
50210all-stageprofile-gcc: maybe-all-build-flex
50211all-stagefeedback-gcc: maybe-all-build-flex
ee025550
PB
50212all-gcc: maybe-all-build-libiberty
50213
50214all-stage1-gcc: maybe-all-build-libiberty
50215all-stage2-gcc: maybe-all-build-libiberty
50216all-stage3-gcc: maybe-all-build-libiberty
50217all-stage4-gcc: maybe-all-build-libiberty
50218all-stageprofile-gcc: maybe-all-build-libiberty
50219all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550
PB
50220all-gcc: maybe-all-build-fixincludes
50221
50222all-stage1-gcc: maybe-all-build-fixincludes
50223all-stage2-gcc: maybe-all-build-fixincludes
50224all-stage3-gcc: maybe-all-build-fixincludes
50225all-stage4-gcc: maybe-all-build-fixincludes
50226all-stageprofile-gcc: maybe-all-build-fixincludes
50227all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831
L
50228all-gcc: maybe-all-build-libcpp
50229
50230all-stage1-gcc: maybe-all-build-libcpp
50231all-stage2-gcc: maybe-all-build-libcpp
50232all-stage3-gcc: maybe-all-build-libcpp
50233all-stage4-gcc: maybe-all-build-libcpp
50234all-stageprofile-gcc: maybe-all-build-libcpp
50235all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191
PB
50236all-gcc: maybe-all-zlib
50237
50238all-stage1-gcc: maybe-all-stage1-zlib
50239all-stage2-gcc: maybe-all-stage2-zlib
50240all-stage3-gcc: maybe-all-stage3-zlib
50241all-stage4-gcc: maybe-all-stage4-zlib
50242all-stageprofile-gcc: maybe-all-stageprofile-zlib
50243all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b
L
50244all-gcc: all-libbacktrace
50245
50246all-stage1-gcc: all-stage1-libbacktrace
50247all-stage2-gcc: all-stage2-libbacktrace
50248all-stage3-gcc: all-stage3-libbacktrace
50249all-stage4-gcc: all-stage4-libbacktrace
50250all-stageprofile-gcc: all-stageprofile-libbacktrace
50251all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191
PB
50252all-gcc: all-libcpp
50253
50254all-stage1-gcc: all-stage1-libcpp
50255all-stage2-gcc: all-stage2-libcpp
50256all-stage3-gcc: all-stage3-libcpp
50257all-stage4-gcc: all-stage4-libcpp
50258all-stageprofile-gcc: all-stageprofile-libcpp
50259all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343
PB
50260all-gcc: all-libdecnumber
50261
50262all-stage1-gcc: all-stage1-libdecnumber
50263all-stage2-gcc: all-stage2-libdecnumber
50264all-stage3-gcc: all-stage3-libdecnumber
50265all-stage4-gcc: all-stage4-libdecnumber
50266all-stageprofile-gcc: all-stageprofile-libdecnumber
50267all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c
GK
50268all-gcc: maybe-all-libiberty
50269
50270all-stage1-gcc: maybe-all-stage1-libiberty
50271all-stage2-gcc: maybe-all-stage2-libiberty
50272all-stage3-gcc: maybe-all-stage3-libiberty
50273all-stage4-gcc: maybe-all-stage4-libiberty
50274all-stageprofile-gcc: maybe-all-stageprofile-libiberty
50275all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
50276all-gcc: maybe-all-fixincludes
201f096f 50277
50278all-stage1-gcc: maybe-all-stage1-fixincludes
50279all-stage2-gcc: maybe-all-stage2-fixincludes
50280all-stage3-gcc: maybe-all-stage3-fixincludes
50281all-stage4-gcc: maybe-all-stage4-fixincludes
50282all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
50283all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a
RW
50284all-gcc: maybe-all-lto-plugin
50285
50286all-stage1-gcc: maybe-all-stage1-lto-plugin
50287all-stage2-gcc: maybe-all-stage2-lto-plugin
50288all-stage3-gcc: maybe-all-stage3-lto-plugin
50289all-stage4-gcc: maybe-all-stage4-lto-plugin
50290all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50291all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
016a3251
DD
50292all-gcc: maybe-all-libiconv
50293
50294all-stage1-gcc: maybe-all-stage1-libiconv
50295all-stage2-gcc: maybe-all-stage2-libiconv
50296all-stage3-gcc: maybe-all-stage3-libiconv
50297all-stage4-gcc: maybe-all-stage4-libiconv
50298all-stageprofile-gcc: maybe-all-stageprofile-libiconv
50299all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
57eefe4d
RW
50300info-gcc: maybe-all-build-libiberty
50301
50302info-stage1-gcc: maybe-all-build-libiberty
50303info-stage2-gcc: maybe-all-build-libiberty
50304info-stage3-gcc: maybe-all-build-libiberty
50305info-stage4-gcc: maybe-all-build-libiberty
50306info-stageprofile-gcc: maybe-all-build-libiberty
50307info-stagefeedback-gcc: maybe-all-build-libiberty
50308dvi-gcc: maybe-all-build-libiberty
50309
50310dvi-stage1-gcc: maybe-all-build-libiberty
50311dvi-stage2-gcc: maybe-all-build-libiberty
50312dvi-stage3-gcc: maybe-all-build-libiberty
50313dvi-stage4-gcc: maybe-all-build-libiberty
50314dvi-stageprofile-gcc: maybe-all-build-libiberty
50315dvi-stagefeedback-gcc: maybe-all-build-libiberty
50316pdf-gcc: maybe-all-build-libiberty
50317
50318pdf-stage1-gcc: maybe-all-build-libiberty
50319pdf-stage2-gcc: maybe-all-build-libiberty
50320pdf-stage3-gcc: maybe-all-build-libiberty
50321pdf-stage4-gcc: maybe-all-build-libiberty
50322pdf-stageprofile-gcc: maybe-all-build-libiberty
50323pdf-stagefeedback-gcc: maybe-all-build-libiberty
50324html-gcc: maybe-all-build-libiberty
50325
50326html-stage1-gcc: maybe-all-build-libiberty
50327html-stage2-gcc: maybe-all-build-libiberty
50328html-stage3-gcc: maybe-all-build-libiberty
50329html-stage4-gcc: maybe-all-build-libiberty
50330html-stageprofile-gcc: maybe-all-build-libiberty
50331html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 50332install-gcc: maybe-install-fixincludes
8d8eef9a 50333install-gcc: maybe-install-lto-plugin
9b980aa1 50334install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 50335install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191
PB
50336configure-libcpp: configure-libiberty
50337
50338configure-stage1-libcpp: configure-stage1-libiberty
50339configure-stage2-libcpp: configure-stage2-libiberty
50340configure-stage3-libcpp: configure-stage3-libiberty
50341configure-stage4-libcpp: configure-stage4-libiberty
50342configure-stageprofile-libcpp: configure-stageprofile-libiberty
50343configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
50344configure-libcpp: maybe-configure-intl
50345
50346configure-stage1-libcpp: maybe-configure-stage1-intl
50347configure-stage2-libcpp: maybe-configure-stage2-intl
50348configure-stage3-libcpp: maybe-configure-stage3-intl
50349configure-stage4-libcpp: maybe-configure-stage4-intl
50350configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
50351configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
016a3251
DD
50352configure-libcpp: maybe-all-libiconv
50353
50354configure-stage1-libcpp: maybe-all-stage1-libiconv
50355configure-stage2-libcpp: maybe-all-stage2-libiconv
50356configure-stage3-libcpp: maybe-all-stage3-libiconv
50357configure-stage4-libcpp: maybe-all-stage4-libiconv
50358configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50359configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
9e6ce191
PB
50360all-libcpp: all-libiberty
50361
50362all-stage1-libcpp: all-stage1-libiberty
50363all-stage2-libcpp: all-stage2-libiberty
50364all-stage3-libcpp: all-stage3-libiberty
50365all-stage4-libcpp: all-stage4-libiberty
50366all-stageprofile-libcpp: all-stageprofile-libiberty
50367all-stagefeedback-libcpp: all-stagefeedback-libiberty
50368all-libcpp: maybe-all-intl
50369
50370all-stage1-libcpp: maybe-all-stage1-intl
50371all-stage2-libcpp: maybe-all-stage2-intl
50372all-stage3-libcpp: maybe-all-stage3-intl
50373all-stage4-libcpp: maybe-all-stage4-intl
50374all-stageprofile-libcpp: maybe-all-stageprofile-intl
50375all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
016a3251
DD
50376all-libcpp: maybe-all-libiconv
50377
50378all-stage1-libcpp: maybe-all-stage1-libiconv
50379all-stage2-libcpp: maybe-all-stage2-libiconv
50380all-stage3-libcpp: maybe-all-stage3-libiconv
50381all-stage4-libcpp: maybe-all-stage4-libiconv
50382all-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50383all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
d3ed111c 50384all-fixincludes: maybe-all-libiberty
201f096f 50385
50386all-stage1-fixincludes: maybe-all-stage1-libiberty
50387all-stage2-fixincludes: maybe-all-stage2-libiberty
50388all-stage3-fixincludes: maybe-all-stage3-libiberty
50389all-stage4-fixincludes: maybe-all-stage4-libiberty
50390all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
50391all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 50392all-gnattools: maybe-all-target-libada
50f80006 50393all-gnattools: maybe-all-target-libstdc++-v3
8d8eef9a
RW
50394all-lto-plugin: maybe-all-libiberty
50395
50396all-stage1-lto-plugin: maybe-all-stage1-libiberty
50397all-stage2-lto-plugin: maybe-all-stage2-libiberty
50398all-stage3-lto-plugin: maybe-all-stage3-libiberty
50399all-stage4-lto-plugin: maybe-all-stage4-libiberty
50400all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
50401all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831
L
50402all-lto-plugin: maybe-all-libiberty-linker-plugin
50403
50404all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
50405all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
50406all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
50407all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
50408all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
50409all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
50410configure-libcc1: maybe-configure-gcc
50411all-libcc1: maybe-all-gcc
50412all-gotools: maybe-all-target-libgo
28d9b232 50413all-utils: maybe-all-libiberty
016a3251
DD
50414configure-intl: maybe-all-libiconv
50415
50416configure-stage1-intl: maybe-all-stage1-libiconv
50417configure-stage2-intl: maybe-all-stage2-libiconv
50418configure-stage3-intl: maybe-all-stage3-libiconv
50419configure-stage4-intl: maybe-all-stage4-libiconv
50420configure-stageprofile-intl: maybe-all-stageprofile-libiconv
50421configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv
4b900473
PB
50422configure-mpfr: maybe-all-gmp
50423
50424configure-stage1-mpfr: maybe-all-stage1-gmp
50425configure-stage2-mpfr: maybe-all-stage2-gmp
50426configure-stage3-mpfr: maybe-all-stage3-gmp
50427configure-stage4-mpfr: maybe-all-stage4-gmp
50428configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
50429configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c
RW
50430configure-mpc: maybe-all-mpfr
50431
50432configure-stage1-mpc: maybe-all-stage1-mpfr
50433configure-stage2-mpc: maybe-all-stage2-mpfr
50434configure-stage3-mpc: maybe-all-stage3-mpfr
50435configure-stage4-mpc: maybe-all-stage4-mpfr
50436configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
50437configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e
L
50438configure-isl: maybe-all-gmp
50439
50440configure-stage1-isl: maybe-all-stage1-gmp
50441configure-stage2-isl: maybe-all-stage2-gmp
50442configure-stage3-isl: maybe-all-stage3-gmp
50443configure-stage4-isl: maybe-all-stage4-gmp
50444configure-stageprofile-isl: maybe-all-stageprofile-gmp
50445configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
016a3251
DD
50446all-intl: maybe-all-libiconv
50447
50448all-stage1-intl: maybe-all-stage1-libiconv
50449all-stage2-intl: maybe-all-stage2-libiconv
50450all-stage3-intl: maybe-all-stage3-libiconv
50451all-stage4-intl: maybe-all-stage4-libiconv
50452all-stageprofile-intl: maybe-all-stageprofile-libiconv
50453all-stagefeedback-intl: maybe-all-stagefeedback-libiconv
7b3200f9 50454configure-gdb: maybe-all-intl
9e6ce191 50455configure-gdb: maybe-configure-sim
31d99776 50456configure-gdb: maybe-all-bfd
dc448a7b 50457configure-gdb: maybe-all-libiconv
9e6ce191 50458all-gdb: maybe-all-libiberty
dc448a7b 50459all-gdb: maybe-all-libiconv
9e6ce191 50460all-gdb: maybe-all-opcodes
9e6ce191 50461all-gdb: maybe-all-readline
72b2455a 50462all-gdb: maybe-all-build-bison
9e6ce191 50463all-gdb: maybe-all-sim
5074315a 50464all-gdb: maybe-all-libdecnumber
dbbe5f95 50465all-gdb: maybe-all-libtermcap
9e6ce191
PB
50466configure-libgui: maybe-configure-tcl
50467configure-libgui: maybe-configure-tk
50468all-libgui: maybe-all-tcl
50469all-libgui: maybe-all-tk
50470all-libgui: maybe-all-itcl
b4a77b47 50471configure-bfd: configure-libiberty
9e6ce191
PB
50472
50473configure-stage1-bfd: configure-stage1-libiberty
50474configure-stage2-bfd: configure-stage2-libiberty
50475configure-stage3-bfd: configure-stage3-libiberty
50476configure-stage4-bfd: configure-stage4-libiberty
50477configure-stageprofile-bfd: configure-stageprofile-libiberty
50478configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23
DJ
50479configure-bfd: maybe-configure-intl
50480
50481configure-stage1-bfd: maybe-configure-stage1-intl
50482configure-stage2-bfd: maybe-configure-stage2-intl
50483configure-stage3-bfd: maybe-configure-stage3-intl
50484configure-stage4-bfd: maybe-configure-stage4-intl
50485configure-stageprofile-bfd: maybe-configure-stageprofile-intl
50486configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191
PB
50487all-bfd: maybe-all-libiberty
50488
50489all-stage1-bfd: maybe-all-stage1-libiberty
50490all-stage2-bfd: maybe-all-stage2-libiberty
50491all-stage3-bfd: maybe-all-stage3-libiberty
50492all-stage4-bfd: maybe-all-stage4-libiberty
50493all-stageprofile-bfd: maybe-all-stageprofile-libiberty
50494all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
50495all-bfd: maybe-all-intl
50496
50497all-stage1-bfd: maybe-all-stage1-intl
50498all-stage2-bfd: maybe-all-stage2-intl
50499all-stage3-bfd: maybe-all-stage3-intl
50500all-stage4-bfd: maybe-all-stage4-intl
50501all-stageprofile-bfd: maybe-all-stageprofile-intl
50502all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea
L
50503all-bfd: maybe-all-zlib
50504
50505all-stage1-bfd: maybe-all-stage1-zlib
50506all-stage2-bfd: maybe-all-stage2-zlib
50507all-stage3-bfd: maybe-all-stage3-zlib
50508all-stage4-bfd: maybe-all-stage4-zlib
50509all-stageprofile-bfd: maybe-all-stageprofile-zlib
50510all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67
AM
50511configure-opcodes: configure-libiberty
50512
50513configure-stage1-opcodes: configure-stage1-libiberty
50514configure-stage2-opcodes: configure-stage2-libiberty
66775d67 50515configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
50516configure-stage4-opcodes: configure-stage4-libiberty
50517configure-stageprofile-opcodes: configure-stageprofile-libiberty
50518configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
50519all-opcodes: maybe-all-libiberty
50520
50521all-stage1-opcodes: maybe-all-stage1-libiberty
50522all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 50523all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
50524all-stage4-opcodes: maybe-all-stage4-libiberty
50525all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50526all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23
DJ
50527configure-binutils: maybe-configure-intl
50528
50529configure-stage1-binutils: maybe-configure-stage1-intl
50530configure-stage2-binutils: maybe-configure-stage2-intl
50531configure-stage3-binutils: maybe-configure-stage3-intl
50532configure-stage4-binutils: maybe-configure-stage4-intl
50533configure-stageprofile-binutils: maybe-configure-stageprofile-intl
50534configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191
PB
50535all-binutils: maybe-all-libiberty
50536
50537all-stage1-binutils: maybe-all-stage1-libiberty
50538all-stage2-binutils: maybe-all-stage2-libiberty
50539all-stage3-binutils: maybe-all-stage3-libiberty
50540all-stage4-binutils: maybe-all-stage4-libiberty
50541all-stageprofile-binutils: maybe-all-stageprofile-libiberty
50542all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
50543all-binutils: maybe-all-opcodes
50544
50545all-stage1-binutils: maybe-all-stage1-opcodes
50546all-stage2-binutils: maybe-all-stage2-opcodes
50547all-stage3-binutils: maybe-all-stage3-opcodes
50548all-stage4-binutils: maybe-all-stage4-opcodes
50549all-stageprofile-binutils: maybe-all-stageprofile-opcodes
50550all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
50551all-binutils: maybe-all-bfd
50552
50553all-stage1-binutils: maybe-all-stage1-bfd
50554all-stage2-binutils: maybe-all-stage2-bfd
50555all-stage3-binutils: maybe-all-stage3-bfd
50556all-stage4-binutils: maybe-all-stage4-bfd
50557all-stageprofile-binutils: maybe-all-stageprofile-bfd
50558all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a
PB
50559all-binutils: maybe-all-build-flex
50560
50561all-stage1-binutils: maybe-all-build-flex
50562all-stage2-binutils: maybe-all-build-flex
50563all-stage3-binutils: maybe-all-build-flex
50564all-stage4-binutils: maybe-all-build-flex
50565all-stageprofile-binutils: maybe-all-build-flex
50566all-stagefeedback-binutils: maybe-all-build-flex
72b2455a
PB
50567all-binutils: maybe-all-build-bison
50568
50569all-stage1-binutils: maybe-all-build-bison
50570all-stage2-binutils: maybe-all-build-bison
50571all-stage3-binutils: maybe-all-build-bison
50572all-stage4-binutils: maybe-all-build-bison
50573all-stageprofile-binutils: maybe-all-build-bison
50574all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191
PB
50575all-binutils: maybe-all-intl
50576
50577all-stage1-binutils: maybe-all-stage1-intl
50578all-stage2-binutils: maybe-all-stage2-intl
50579all-stage3-binutils: maybe-all-stage3-intl
50580all-stage4-binutils: maybe-all-stage4-intl
50581all-stageprofile-binutils: maybe-all-stageprofile-intl
50582all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685
L
50583all-binutils: maybe-all-gas
50584
50585all-stage1-binutils: maybe-all-stage1-gas
50586all-stage2-binutils: maybe-all-stage2-gas
50587all-stage3-binutils: maybe-all-stage3-gas
50588all-stage4-binutils: maybe-all-stage4-gas
50589all-stageprofile-binutils: maybe-all-stageprofile-gas
50590all-stagefeedback-binutils: maybe-all-stagefeedback-gas
ae831be5 50591install-binutils: maybe-install-opcodes
9b980aa1 50592install-strip-binutils: maybe-install-strip-opcodes
cf662e21 50593install-opcodes: maybe-install-bfd
9b980aa1 50594install-strip-opcodes: maybe-install-strip-bfd
20e95c23
DJ
50595configure-gas: maybe-configure-intl
50596
50597configure-stage1-gas: maybe-configure-stage1-intl
50598configure-stage2-gas: maybe-configure-stage2-intl
50599configure-stage3-gas: maybe-configure-stage3-intl
50600configure-stage4-gas: maybe-configure-stage4-intl
50601configure-stageprofile-gas: maybe-configure-stageprofile-intl
50602configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191
PB
50603all-gas: maybe-all-libiberty
50604
50605all-stage1-gas: maybe-all-stage1-libiberty
50606all-stage2-gas: maybe-all-stage2-libiberty
50607all-stage3-gas: maybe-all-stage3-libiberty
50608all-stage4-gas: maybe-all-stage4-libiberty
50609all-stageprofile-gas: maybe-all-stageprofile-libiberty
50610all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
50611all-gas: maybe-all-opcodes
50612
50613all-stage1-gas: maybe-all-stage1-opcodes
50614all-stage2-gas: maybe-all-stage2-opcodes
50615all-stage3-gas: maybe-all-stage3-opcodes
50616all-stage4-gas: maybe-all-stage4-opcodes
50617all-stageprofile-gas: maybe-all-stageprofile-opcodes
50618all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
50619all-gas: maybe-all-bfd
50620
50621all-stage1-gas: maybe-all-stage1-bfd
50622all-stage2-gas: maybe-all-stage2-bfd
50623all-stage3-gas: maybe-all-stage3-bfd
50624all-stage4-gas: maybe-all-stage4-bfd
50625all-stageprofile-gas: maybe-all-stageprofile-bfd
50626all-stagefeedback-gas: maybe-all-stagefeedback-bfd
50627all-gas: maybe-all-intl
50628
50629all-stage1-gas: maybe-all-stage1-intl
50630all-stage2-gas: maybe-all-stage2-intl
50631all-stage3-gas: maybe-all-stage3-intl
50632all-stage4-gas: maybe-all-stage4-intl
50633all-stageprofile-gas: maybe-all-stageprofile-intl
50634all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 50635configure-gprof: maybe-configure-intl
9e6ce191
PB
50636all-gprof: maybe-all-libiberty
50637all-gprof: maybe-all-bfd
50638all-gprof: maybe-all-opcodes
50639all-gprof: maybe-all-intl
0140d685 50640all-gprof: maybe-all-gas
20e95c23
DJ
50641configure-ld: maybe-configure-intl
50642
50643configure-stage1-ld: maybe-configure-stage1-intl
50644configure-stage2-ld: maybe-configure-stage2-intl
50645configure-stage3-ld: maybe-configure-stage3-intl
50646configure-stage4-ld: maybe-configure-stage4-intl
50647configure-stageprofile-ld: maybe-configure-stageprofile-intl
50648configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191
PB
50649all-ld: maybe-all-libiberty
50650
50651all-stage1-ld: maybe-all-stage1-libiberty
50652all-stage2-ld: maybe-all-stage2-libiberty
50653all-stage3-ld: maybe-all-stage3-libiberty
50654all-stage4-ld: maybe-all-stage4-libiberty
50655all-stageprofile-ld: maybe-all-stageprofile-libiberty
50656all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
50657all-ld: maybe-all-bfd
50658
50659all-stage1-ld: maybe-all-stage1-bfd
50660all-stage2-ld: maybe-all-stage2-bfd
50661all-stage3-ld: maybe-all-stage3-bfd
50662all-stage4-ld: maybe-all-stage4-bfd
50663all-stageprofile-ld: maybe-all-stageprofile-bfd
50664all-stagefeedback-ld: maybe-all-stagefeedback-bfd
50665all-ld: maybe-all-opcodes
50666
50667all-stage1-ld: maybe-all-stage1-opcodes
50668all-stage2-ld: maybe-all-stage2-opcodes
50669all-stage3-ld: maybe-all-stage3-opcodes
50670all-stage4-ld: maybe-all-stage4-opcodes
50671all-stageprofile-ld: maybe-all-stageprofile-opcodes
50672all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a
PB
50673all-ld: maybe-all-build-bison
50674
50675all-stage1-ld: maybe-all-build-bison
50676all-stage2-ld: maybe-all-build-bison
50677all-stage3-ld: maybe-all-build-bison
50678all-stage4-ld: maybe-all-build-bison
50679all-stageprofile-ld: maybe-all-build-bison
50680all-stagefeedback-ld: maybe-all-build-bison
72b2455a
PB
50681all-ld: maybe-all-build-flex
50682
50683all-stage1-ld: maybe-all-build-flex
50684all-stage2-ld: maybe-all-build-flex
50685all-stage3-ld: maybe-all-build-flex
50686all-stage4-ld: maybe-all-build-flex
50687all-stageprofile-ld: maybe-all-build-flex
50688all-stagefeedback-ld: maybe-all-build-flex
9e6ce191
PB
50689all-ld: maybe-all-intl
50690
50691all-stage1-ld: maybe-all-stage1-intl
50692all-stage2-ld: maybe-all-stage2-intl
50693all-stage3-ld: maybe-all-stage3-intl
50694all-stage4-ld: maybe-all-stage4-intl
50695all-stageprofile-ld: maybe-all-stageprofile-intl
50696all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685
L
50697all-ld: maybe-all-gas
50698
50699all-stage1-ld: maybe-all-stage1-gas
50700all-stage2-ld: maybe-all-stage2-gas
50701all-stage3-ld: maybe-all-stage3-gas
50702all-stage4-ld: maybe-all-stage4-gas
50703all-stageprofile-ld: maybe-all-stageprofile-gas
50704all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403
YS
50705all-ld: maybe-all-binutils
50706
50707all-stage1-ld: maybe-all-stage1-binutils
50708all-stage2-ld: maybe-all-stage2-binutils
50709all-stage3-ld: maybe-all-stage3-binutils
50710all-stage4-ld: maybe-all-stage4-binutils
50711all-stageprofile-ld: maybe-all-stageprofile-binutils
50712all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 50713install-ld: maybe-install-gold
9b980aa1 50714install-strip-ld: maybe-install-strip-gold
93f9b408
ILT
50715configure-gold: maybe-configure-intl
50716
50717configure-stage1-gold: maybe-configure-stage1-intl
50718configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 50719configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
50720configure-stage4-gold: maybe-configure-stage4-intl
50721configure-stageprofile-gold: maybe-configure-stageprofile-intl
50722configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
50723all-gold: maybe-all-libiberty
50724
50725all-stage1-gold: maybe-all-stage1-libiberty
50726all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 50727all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
50728all-stage4-gold: maybe-all-stage4-libiberty
50729all-stageprofile-gold: maybe-all-stageprofile-libiberty
50730all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
50731all-gold: maybe-all-intl
50732
50733all-stage1-gold: maybe-all-stage1-intl
50734all-stage2-gold: maybe-all-stage2-intl
93f9b408 50735all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
50736all-stage4-gold: maybe-all-stage4-intl
50737all-stageprofile-gold: maybe-all-stageprofile-intl
50738all-stagefeedback-gold: maybe-all-stagefeedback-intl
50739all-gold: maybe-all-bfd
50740
50741all-stage1-gold: maybe-all-stage1-bfd
50742all-stage2-gold: maybe-all-stage2-bfd
93f9b408 50743all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
50744all-stage4-gold: maybe-all-stage4-bfd
50745all-stageprofile-gold: maybe-all-stageprofile-bfd
50746all-stagefeedback-gold: maybe-all-stagefeedback-bfd
50747all-gold: maybe-all-build-bison
50748
50749all-stage1-gold: maybe-all-build-bison
50750all-stage2-gold: maybe-all-build-bison
93f9b408 50751all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
50752all-stage4-gold: maybe-all-build-bison
50753all-stageprofile-gold: maybe-all-build-bison
50754all-stagefeedback-gold: maybe-all-build-bison
0140d685
L
50755all-gold: maybe-all-gas
50756
50757all-stage1-gold: maybe-all-stage1-gas
50758all-stage2-gold: maybe-all-stage2-gas
50759all-stage3-gold: maybe-all-stage3-gas
50760all-stage4-gold: maybe-all-stage4-gas
50761all-stageprofile-gold: maybe-all-stageprofile-gas
50762all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97
ILT
50763check-gold: maybe-all-binutils
50764
50765check-stage1-gold: maybe-all-stage1-binutils
50766check-stage2-gold: maybe-all-stage2-binutils
e5164e97 50767check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
50768check-stage4-gold: maybe-all-stage4-binutils
50769check-stageprofile-gold: maybe-all-stageprofile-binutils
50770check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca
ILT
50771check-gold: maybe-all-gas
50772
50773check-stage1-gold: maybe-all-stage1-gas
50774check-stage2-gold: maybe-all-stage2-gas
50775check-stage3-gold: maybe-all-stage3-gas
50776check-stage4-gold: maybe-all-stage4-gas
50777check-stageprofile-gold: maybe-all-stageprofile-gas
50778check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee
JJ
50779configure-opcodes: maybe-configure-intl
50780
50781configure-stage1-opcodes: maybe-configure-stage1-intl
50782configure-stage2-opcodes: maybe-configure-stage2-intl
50783configure-stage3-opcodes: maybe-configure-stage3-intl
50784configure-stage4-opcodes: maybe-configure-stage4-intl
50785configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
50786configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191
PB
50787all-opcodes: maybe-all-bfd
50788
50789all-stage1-opcodes: maybe-all-stage1-bfd
50790all-stage2-opcodes: maybe-all-stage2-bfd
50791all-stage3-opcodes: maybe-all-stage3-bfd
50792all-stage4-opcodes: maybe-all-stage4-bfd
50793all-stageprofile-opcodes: maybe-all-stageprofile-bfd
50794all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
50795all-opcodes: maybe-all-libiberty
50796
50797all-stage1-opcodes: maybe-all-stage1-libiberty
50798all-stage2-opcodes: maybe-all-stage2-libiberty
50799all-stage3-opcodes: maybe-all-stage3-libiberty
50800all-stage4-opcodes: maybe-all-stage4-libiberty
50801all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50802all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee
JJ
50803all-opcodes: maybe-all-intl
50804
50805all-stage1-opcodes: maybe-all-stage1-intl
50806all-stage2-opcodes: maybe-all-stage2-intl
50807all-stage3-opcodes: maybe-all-stage3-intl
50808all-stage4-opcodes: maybe-all-stage4-intl
50809all-stageprofile-opcodes: maybe-all-stageprofile-intl
50810all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
50811all-dejagnu: maybe-all-tcl
50812all-dejagnu: maybe-all-expect
50813all-dejagnu: maybe-all-tk
50814configure-expect: maybe-configure-tcl
50815configure-expect: maybe-configure-tk
50816all-expect: maybe-all-tcl
50817all-expect: maybe-all-tk
50818configure-itcl: maybe-configure-tcl
50819configure-itcl: maybe-configure-tk
50820all-itcl: maybe-all-tcl
50821all-itcl: maybe-all-tk
ae831be5 50822install-itcl: maybe-install-tcl
9b980aa1 50823install-strip-itcl: maybe-install-strip-tcl
b4a77b47 50824configure-tk: maybe-configure-tcl
ae831be5 50825all-tk: maybe-all-tcl
9e6ce191
PB
50826all-sid: maybe-all-libiberty
50827all-sid: maybe-all-bfd
50828all-sid: maybe-all-opcodes
50829all-sid: maybe-all-tcl
50830all-sid: maybe-all-tk
50831install-sid: maybe-install-tcl
9b980aa1 50832install-strip-sid: maybe-install-strip-tcl
9e6ce191 50833install-sid: maybe-install-tk
9b980aa1 50834install-strip-sid: maybe-install-strip-tk
20e95c23
DJ
50835configure-sim: maybe-configure-intl
50836all-sim: maybe-all-intl
9e6ce191
PB
50837all-sim: maybe-all-libiberty
50838all-sim: maybe-all-bfd
50839all-sim: maybe-all-opcodes
50840all-sim: maybe-all-readline
50841all-sim: maybe-configure-gdb
50842all-fastjar: maybe-all-zlib
72b2455a 50843all-fastjar: maybe-all-build-texinfo
9e6ce191 50844all-fastjar: maybe-all-libiberty
9e6ce191 50845all-bison: maybe-all-intl
72b2455a 50846all-bison: maybe-all-build-texinfo
72b2455a 50847all-flex: maybe-all-build-bison
9e6ce191
PB
50848all-flex: maybe-all-intl
50849all-flex: maybe-all-m4
72b2455a 50850all-flex: maybe-all-build-texinfo
9e6ce191 50851all-m4: maybe-all-intl
72b2455a 50852all-m4: maybe-all-build-texinfo
f7c83eac 50853configure-target-boehm-gc: maybe-all-target-libstdc++-v3
b4a77b47 50854configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 50855all-target-fastjar: maybe-all-target-zlib
e552509b
ILT
50856configure-target-libgo: maybe-configure-target-libffi
50857configure-target-libgo: maybe-all-target-libstdc++-v3
8e71395b 50858all-target-libgo: maybe-all-target-libbacktrace
e552509b 50859all-target-libgo: maybe-all-target-libffi
9417cd2f 50860all-target-libgo: maybe-all-target-libatomic
9e6ce191
PB
50861configure-target-libjava: maybe-configure-target-zlib
50862configure-target-libjava: maybe-configure-target-boehm-gc
9e6ce191
PB
50863configure-target-libjava: maybe-configure-target-libffi
50864all-target-libjava: maybe-all-fastjar
50865all-target-libjava: maybe-all-target-zlib
50866all-target-libjava: maybe-all-target-boehm-gc
9e6ce191 50867all-target-libjava: maybe-all-target-libffi
4f0ef2d8 50868configure-target-libobjc: maybe-configure-target-boehm-gc
4f0ef2d8 50869all-target-libobjc: maybe-all-target-boehm-gc
cff87f51 50870configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
50871
50872configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50873configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50874configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50875configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50876configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50877configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50878configure-target-liboffloadmic: maybe-configure-target-libgomp
5286fdef 50879configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
50880
50881configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
50882configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
50883configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
50884configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
50885configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
50886configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135
JBG
50887configure-target-libvtv: maybe-all-target-libstdc++-v3
50888
50889configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
50890configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
50891configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
50892configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
50893configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
50894configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0
JR
50895all-target-libstdc++-v3: maybe-configure-target-libgomp
50896
50897all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50898all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50899all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50900all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50901all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50902all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50903all-target-liboffloadmic: maybe-all-target-libgomp
9417cd2f
JBG
50904install-target-libgo: maybe-install-target-libatomic
50905install-target-libgfortran: maybe-install-target-libquadmath
50906install-target-libgfortran: maybe-install-target-libgcc
3dae1673 50907install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 50908install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
50909install-target-libvtv: maybe-install-target-libstdc++-v3
50910install-target-libvtv: maybe-install-target-libgcc
522e3d71 50911install-target-libcilkrts: maybe-install-target-libstdc++-v3
50912install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
50913install-target-liboffloadmic: maybe-install-target-libstdc++-v3
50914install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
50915install-target-libjava: maybe-install-target-libgcc
50916install-target-libitm: maybe-install-target-libgcc
50917install-target-libobjc: maybe-install-target-libgcc
50918install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 50919all-target-libgloss: maybe-all-target-newlib
9e6ce191 50920all-target-winsup: maybe-all-target-libtermcap
c1102ce7
RW
50921configure-target-newlib: maybe-all-binutils
50922configure-target-newlib: maybe-all-ld
e552509b 50923configure-target-libgfortran: maybe-all-target-libquadmath
9e6ce191
PB
50924
50925
6aa8ef82
DJ
50926# Dependencies for target modules on other target modules are
50927# described by lang_env_dependencies; the defaults apply to anything
50928# not mentioned there.
50929
50930
50931@if gcc-bootstrap
e8a5fa9c
RW
50932configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
50933configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
50934configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
50935configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
50936configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
50937configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
50938configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
50939configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
50940configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
50941configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
50942configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
50943configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
50944configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
50945configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
50946configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
50947configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
50948configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
50949configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
50950configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
50951configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
50952configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
50953configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
50954configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
50955configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
50956configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
50957configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
50958configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
50959configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
50960configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
50961configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
50962@endif gcc-bootstrap
50963
50964@if gcc-no-bootstrap
50965configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 50966configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 50967configure-target-libmpx: maybe-all-target-libgcc
95e43135 50968configure-target-libvtv: maybe-all-target-libgcc
522e3d71 50969configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 50970configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 50971configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 50972configure-target-newlib: maybe-all-target-libgcc
2bf680c4 50973configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 50974configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
50975configure-target-libgfortran: maybe-all-target-libgcc
50976configure-target-libobjc: maybe-all-target-libgcc
e552509b 50977configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
50978configure-target-libtermcap: maybe-all-target-libgcc
50979configure-target-winsup: maybe-all-target-libgcc
50980configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82
DJ
50981configure-target-libffi: maybe-all-target-libgcc
50982configure-target-libjava: maybe-all-target-libgcc
50983configure-target-zlib: maybe-all-target-libgcc
50984configure-target-boehm-gc: maybe-all-target-libgcc
6aa8ef82
DJ
50985configure-target-rda: maybe-all-target-libgcc
50986configure-target-libada: maybe-all-target-libgcc
50987configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
50988configure-target-libitm: maybe-all-target-libgcc
50989configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
50990@endif gcc-no-bootstrap
50991
50992
50993configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
50994
5286fdef
L
50995configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
50996
1b6c0831
L
50997configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
50998
95e43135
JBG
50999configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
51000
e78e02e6 51001configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
51002configure-target-libcilkrts: maybe-all-target-libstdc++-v3
51003
1b6c0831
L
51004configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
51005configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
51006
6aa8ef82
DJ
51007configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
51008
51009
51010
2bf680c4
ILT
51011configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
51012
e552509b
ILT
51013configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
51014
6aa8ef82
DJ
51015configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
51016
51017configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
51018
e552509b
ILT
51019configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
51020
6aa8ef82
DJ
51021configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
51022
51023configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
51024
51025
6aa8ef82
DJ
51026configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
51027
51028configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
51029configure-target-libjava: maybe-all-target-libstdc++-v3
51030
51031configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
51032
51033configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
51034
6aa8ef82
DJ
51035configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
51036
51037configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
51038
51039configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
51040
7ec59b9e
L
51041configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
51042configure-target-libitm: maybe-all-target-libstdc++-v3
51043
51044configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
51045
6aa8ef82 51046
907be67c 51047CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 51048GDB_TK = @GDB_TK@
907be67c
DJ
51049INSTALL_GDB_TK = @INSTALL_GDB_TK@
51050configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 51051all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 51052install-gdb: $(INSTALL_GDB_TK)
907a7241 51053
a2cc058a
NN
51054# Serialization dependencies. Host configures don't work well in parallel to
51055# each other, due to contention over config.cache. Target configures and
51056# build configures are similar.
51057@serialization_dependencies@
51058
15723a45
NN
51059# --------------------------------
51060# Regenerating top level configury
51061# --------------------------------
252b5132 51062
14a2a2f1 51063# Rebuilding Makefile.in, using autogen.
43be203f 51064AUTOGEN = autogen
6b784d9f 51065$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 51066 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 51067
a0da8069 51068# Rebuilding Makefile.
43be203f
AO
51069Makefile: $(srcdir)/Makefile.in config.status
51070 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
51071
479759c8 51072config.status: configure
10ecffb9 51073 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 51074
a0da8069 51075# Rebuilding configure.
43be203f 51076AUTOCONF = autoconf
da888c87
PB
51077$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
51078 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
43be203f 51079 cd $(srcdir) && $(AUTOCONF)
252b5132 51080
3728fade
NN
51081# ------------------------------
51082# Special directives to GNU Make
51083# ------------------------------
51084
3728fade
NN
51085# Don't pass command-line variables to submakes.
51086.NOEXPORT:
51087MAKEOVERRIDES=
51088
252b5132 51089# end of Makefile.in
This page took 4.88774 seconds and 4 git commands to generate.